Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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