Created
May 23, 2017 21:07
-
-
Save mikejk8s/5cf163cdd027e74deb504811ff51697f to your computer and use it in GitHub Desktop.
ingress
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: 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