Separate Kubernetes Ingress TLS spec from backend spec

This commit is contained in:
Harrison Katz 2020-12-04 10:50:49 -05:00 committed by GitHub
parent d93d0f00ee
commit 6ab3d5301c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -546,12 +546,6 @@ metadata:
spec:
{% if kubernetes_ingress_hostname is defined %}
{% if kubernetes_ingress_tls_secret is defined %}
tls:
- hosts:
- {{ kubernetes_ingress_hostname }}
secretName: {{ kubernetes_ingress_tls_secret }}
{% endif %}
rules:
- host: {{ kubernetes_ingress_hostname }}
http:
@ -566,6 +560,12 @@ spec:
serviceName: {{ kubernetes_deployment_name }}-web-svc
servicePort: 80
{% endif %}
{% if kubernetes_ingress_tls_secret is defined %}
tls:
- hosts:
- {{ kubernetes_ingress_hostname }}
secretName: {{ kubernetes_ingress_tls_secret }}
{% endif %}
{% endif %}
{% if openshift_host is defined %}
---