Skip to content

Commit

Permalink
Merge pull request #8 from BahmniIndiaDistro/BAH-2755
Browse files Browse the repository at this point in the history
BAH-2755 | Install Ingress from Helm Charts
  • Loading branch information
umair-fayaz authored Jan 10, 2023
2 parents 76ef6b8 + 8b0a28f commit 5fc9d78
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@ jobs:
run: aws eks update-kubeconfig --name $CLUSTER_NAME
- name: Install Nginx Ingress
run: |
wget https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.5.1/deploy/static/provider/aws/nlb-with-tls-termination/deploy.yaml
sed -i.bak "s|XXX.XXX.XXX/XX|10.0.0.0/16|" deploy.yaml
sed -i.bak "s|arn:aws:acm:us-west-2:XXXXXXXX:certificate/XXXXXX-XXXXXXX-XXXXXXX-XXXXXXXX|${{ secrets.MYBAHMNI_CERT_ARN }}|" deploy.yaml
kubectl apply -f deploy.yaml
helm upgrade ingress-nginx ingress-nginx \
--repo https://kubernetes.github.io/ingress-nginx \
--namespace=ingress-nginx --create-namespace \
--install \
--set 'controller.service.annotations.service\.beta\.kubernetes\.io\/aws-load-balancer-ssl-cert'=${{ secrets.MYBAHMNI_CERT_ARN }} \
--values=values/ingress_config.yaml
- name: Upsert Route53 A record with INGRESS_DNS
run: |
INGRESS_DNS=$(kubectl -n ingress-nginx get svc ingress-nginx-controller -o jsonpath="{.status.loadBalancer.ingress[0].hostname}")
Expand Down
20 changes: 20 additions & 0 deletions values/ingress_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
controller:
config:
http-snippet: |
server {
listen 2443;
return 308 https://$host$request_uri;
}
containerPort:
http: 80
https: 443
tohttps: 2443
service:
targetPorts:
http: tohttps
https: http
annotations:
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: "http"
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "https"
service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout: '3600'
service.beta.kubernetes.io/aws-load-balancer-type: nlb

0 comments on commit 5fc9d78

Please sign in to comment.