Last active
September 11, 2018 07:27
-
-
Save ramene/c6e563bdf2fc1f0398b7d243baceda93 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: ingress-nginx | |
| namespace: che | |
| labels: | |
| app.kubernetes.io/name: ingress-nginx | |
| app.kubernetes.io/part-of: ingress-nginx | |
| annotations: | |
| # Enable PROXY protocol | |
| service.beta.kubernetes.io/aws-load-balancer-proxy-protocol: '*' | |
| # Ensure the ELB idle timeout is less than nginx keep-alive timeout. By default, | |
| # NGINX keep-alive is set to 75s. If using WebSockets, the value will need to be | |
| # increased to '3600' to avoid any potential issues. | |
| service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout: '3600' | |
| spec: | |
| type: LoadBalancer | |
| selector: | |
| app.kubernetes.io/name: ingress-nginx | |
| app.kubernetes.io/part-of: ingress-nginx | |
| ports: | |
| - name: http | |
| port: 80 | |
| targetPort: http | |
| - name: https | |
| port: 443 | |
| targetPort: https |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment