Skip to content

Instantly share code, notes, and snippets.

@codeluggage
Created July 24, 2017 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codeluggage/7750b41929299a5e9f9ccc4999e707d6 to your computer and use it in GitHub Desktop.
Save codeluggage/7750b41929299a5e9f9ccc4999e707d6 to your computer and use it in GitHub Desktop.
Full Kubernetes Nginx Service
apiVersion: v1
kind: Service
metadata:
name: nginx
annotations:
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: “https”
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: “arn:aws:iam::ABCDE:server-certificate/www_yourwebsite_com”
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: “443”
service.beta.kubernetes.io/aws-load-balancer-connection-draining-enabled: “true”
service.beta.kubernetes.io/aws-load-balancer-connection-draining-timeout: “60”
spec:
type: LoadBalancer
selector:
component: nginx
stack: {{STACK_NAME}}
ports:
- protocol: TCP
port: 80
name: http
- protocol: TCP
port: 443
targetPort: 8080
name: https
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment