Skip to content

Instantly share code, notes, and snippets.

@mikejk8s
Created May 23, 2017 21:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikejk8s/5cf163cdd027e74deb504811ff51697f to your computer and use it in GitHub Desktop.
Save mikejk8s/5cf163cdd027e74deb504811ff51697f to your computer and use it in GitHub Desktop.
ingress
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: ingress
annotations:
# This tells to only use the Nginx Ingress Controller
# and avoids the creation on a Global LoadBalancer on GKE.
kubernetes.io/ingress.class: "nginx"
spec:
tls:
- secretName: wildcard-staging
# List of hosts supported by this certificate:
hosts:
- socket-1.staging.mynodeapp.com
- socket-2.staging.mynodeapp.com
rules:
- host: socket-1.staging.mynodeapp.com
http:
paths:
- path: /
backend:
serviceName: socket-1
servicePort: 10001
- host: socket-2.staging.mynodeapp.com
http:
paths:
- path: /
backend:
serviceName: socket-2
servicePort: 10002
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment