$ kubectl apply -f aws-elb-service.yaml -n ingress-nginx
$ kubectl apply -f nginx-configmap.yml -n ingress-nginx
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: ingress-nginx | |
| namespace: ingress-nginx | |
| annotations: | |
| service.beta.kubernetes.io/aws-load-balancer-backend-protocol: "tcp" | |
| service.beta.kubernetes.io/aws-load-balancer-proxy-protocol: "*" | |
| service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout: "60" | |
| # service.beta.kubernetes.io/aws-load-balancer-internal: 0.0.0.0/0 | |
| spec: | |
| type: LoadBalancer | |
| ports: | |
| - port: 80 | |
| targetPort: 80 | |
| protocol: TCP | |
| name: http | |
| - port: 443 | |
| targetPort: 443 | |
| protocol: TCP | |
| name: https | |
| selector: | |
| app: ingress-nginx |
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| labels: | |
| app: ingress-nginx | |
| name: nginx-configuration | |
| data: | |
| use-proxy-protocol: "true" |
For anyone arriving here and using the helm chart this thread might help.
kubernetes/ingress-nginx#3857
BTW Thanks for posting this gist. :D