ingress-nginx-helm/deploy/provider/aws/service-l7.yaml

32 lines
1.1 KiB
YAML
Raw Normal View History

2017-10-13 13:55:03 +00:00
kind: Service
apiVersion: v1
metadata:
name: ingress-nginx
namespace: ingress-nginx
labels:
2018-08-22 13:37:22 +00:00
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
2017-10-13 13:55:03 +00:00
annotations:
2018-02-08 03:15:50 +00:00
# replace with the correct value of the generated certificate in the AWS console
2018-08-22 13:37:22 +00:00
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: "arn:aws:acm:us-west-2:XXXXXXXX:certificate/XXXXXX-XXXXXXX-XXXXXXX-XXXXXXXX"
2017-10-13 13:55:03 +00:00
# the backend instances are HTTP
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: "http"
# Map port 443
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "https"
# 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: '60'
2017-10-13 13:55:03 +00:00
spec:
type: LoadBalancer
selector:
2018-08-22 13:37:22 +00:00
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
2017-10-13 13:55:03 +00:00
ports:
- name: http
port: 80
targetPort: http
- name: https
port: 443
targetPort: http