KubeZero/charts/kubezero-istio-ingress/templates/ingress-certificate.yaml

36 lines
876 B
YAML
Raw Normal View History

2020-11-24 14:44:57 +00:00
{{- if index .Values "istio-ingress" "dnsNames" }}
apiVersion: cert-manager.io/v1
2020-07-21 17:30:21 +00:00
kind: Certificate
metadata:
2020-11-28 23:01:20 +00:00
name: ingress-cert
2020-11-24 14:44:57 +00:00
namespace: {{ .Release.Namespace }}
2020-08-06 17:43:59 +00:00
labels:
{{ include "kubezero-lib.labels" . | indent 4 }}
2020-07-21 17:30:21 +00:00
spec:
2020-11-28 23:01:20 +00:00
secretName: ingress-cert
2020-07-21 17:30:21 +00:00
issuerRef:
name: letsencrypt-dns-prod
kind: ClusterIssuer
dnsNames:
2020-11-24 14:44:57 +00:00
{{ toYaml (index .Values "istio-ingress" "dnsNames") | indent 4 }}
2020-07-22 19:25:18 +00:00
{{- end }}
2020-11-28 23:01:20 +00:00
{{- if index .Values "istio-private-ingress" "dnsNames" }}
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: private-ingress-cert
namespace: {{ .Release.Namespace }}
labels:
{{ include "kubezero-lib.labels" . | indent 4 }}
spec:
secretName: private-ingress-cert
issuerRef:
name: letsencrypt-dns-prod
kind: ClusterIssuer
dnsNames:
{{ toYaml (index .Values "istio-private-ingress" "dnsNames") | indent 4 }}
{{- end }}