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

40 lines
987 B
YAML
Raw Normal View History

{{- range $cert := (index .Values "istio-ingress" "certificates") }}
{{- if $cert.dnsNames }}
apiVersion: cert-manager.io/v1
2020-07-21 17:30:21 +00:00
kind: Certificate
metadata:
name: {{ $cert.name }}
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:
secretName: {{ $cert.name }}
2020-07-21 17:30:21 +00:00
issuerRef:
name: {{ default "letsencrypt-dns-prod" $cert.issuer }}
2020-07-21 17:30:21 +00:00
kind: ClusterIssuer
dnsNames:
{{ toYaml $cert.dnsNames | indent 4 }}
---
{{- end }}
2020-07-22 19:25:18 +00:00
{{- end }}
2020-11-28 23:01:20 +00:00
{{- range $cert := (index .Values "istio-private-ingress" "certificates") }}
{{- if $cert.dnsNames }}
2020-11-28 23:01:20 +00:00
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: {{ $cert.name }}
namespace: {{ $.Release.Namespace }}
2020-11-28 23:01:20 +00:00
labels:
{{ include "kubezero-lib.labels" $ | indent 4 }}
2020-11-28 23:01:20 +00:00
spec:
secretName: private-ingress-cert
issuerRef:
name: {{ default "letsencrypt-dns-prod" $cert.issuer }}
2020-11-28 23:01:20 +00:00
kind: ClusterIssuer
dnsNames:
{{ toYaml $cert.dnsNames | indent 4 }}
---
{{- end }}
2020-11-28 23:01:20 +00:00
{{- end }}