Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rsteckler/a550cfdc2c7515629abca4172346be71 to your computer and use it in GitHub Desktop.
Save rsteckler/a550cfdc2c7515629abca4172346be71 to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: external-home-secure-ingress
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
kubernetes.io/ingress.class: "nginx"
certmanager.k8s.io/cluster-issuer: letsencrypt-prod
nginx.org/worker-connections: "2048"
nginx.ingress.kubernetes.io/auth-signin: https://$host/oauth2/start
nginx.ingress.kubernetes.io/auth-url: https://$host/oauth2/auth
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
nginx.ingress.kubernetes.io/secure-backends: "true"
kubernetes.io/ingress.allow-http: "false"
spec:
tls:
- hosts:
- ombi.ryansteckler.com
- redirect.ryansteckler.com
secretName: home-secure-tls-secret
rules:
- host: ombi.ryansteckler.com
http:
paths:
- path: /
backend:
serviceName: ombi-service
servicePort: 3579
- host: redirect.ryansteckler.com
http:
paths:
- path: /
backend:
serviceName: redirect-service
servicePort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment