Skip to content

Commit

Permalink
add ingress for http
Browse files Browse the repository at this point in the history
  • Loading branch information
phamlequang committed Oct 28, 2023
1 parent 6e5229d commit 8ddffbb
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- name: Deploy image to Amazon EKS
run: |
kubectl apply -f eks/aws-auth.yaml
kubectl apply -f eks/deployment.yaml
kubectl rollout restart -f eks/deployment.yaml
kubectl apply -f eks/service.yaml
kubectl apply -f eks/issuer.yaml
kubectl apply -f eks/ingress.yaml
23 changes: 23 additions & 0 deletions eks/ingress-http.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: simple-bank-ingress-http
annotations:
cert-manager.io/cluster-issuer: letsencrypt
spec:
ingressClassName: nginx
rules:
- host: "rest.simplebanktest.com"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: simple-bank-api-service
port:
number: 80
tls:
- hosts:
- rest.simplebanktest.com
secretName: simple-bank-rest-cert

0 comments on commit 8ddffbb

Please sign in to comment.