Created
March 11, 2020 18:41
-
-
Save xandout/3c6ed252f4a71966659530eaa316a335 to your computer and use it in GitHub Desktop.
K8S Ingress/SVC for "TLS Termination Proxy" - productboard
This file contains 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: 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