Skip to content

Instantly share code, notes, and snippets.

@paul-lupu
Created April 13, 2020 18:41
Show Gist options
  • Save paul-lupu/844e237651c235731e8e0fac4caee410 to your computer and use it in GitHub Desktop.
Save paul-lupu/844e237651c235731e8e0fac4caee410 to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: example-ingress
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/force-ssl-redirect: "false"
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
tls:
- hosts:
- nginx.mobileinsight.com
secretName: tls-secret
rules:
- host: nginx.mobileinsight.com
http:
paths:
- path: /apple
backend:
serviceName: apple-service
servicePort: 5678
- path: /banana
backend:
serviceName: banana-service
servicePort: 5678
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment