Skip to content

Instantly share code, notes, and snippets.

@xandout
Created March 11, 2020 18:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xandout/3c6ed252f4a71966659530eaa316a335 to your computer and use it in GitHub Desktop.
Save xandout/3c6ed252f4a71966659530eaa316a335 to your computer and use it in GitHub Desktop.
K8S Ingress/SVC for "TLS Termination Proxy" - productboard
---
apiVersion: v1
kind: Service
metadata:
name: ext-productboard-tls-proxy
spec:
type: ExternalName
externalName: portal.productboard.com
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: ext-productboard-tls-proxy-ingress
annotations:
external-dns.alpha.kubernetes.io/hostname: "roadmap.mydomain.com"
nginx.ingress.kubernetes.io/backend-protocol: HTTPS
nginx.ingress.kubernetes.io/proxy-buffer-size: "8k"
ingress.kubernetes.io/upstream-vhost: "portal.mydomain.com"
spec:
rules:
- host: "roadmap.mydomain.com"
http: &http_rule
paths:
- path: /
backend:
serviceName: ext-productboard-tls-proxy
servicePort: 443
tls: # < placing a host in the TLS config will indicate a cert should be created
- hosts:
- "roadmap.mydomain.com"
secretName: letsencrypt-prod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment