cert change for helm

This commit is contained in:
afeiszli 2021-10-17 16:42:09 -04:00
parent 445df67030
commit ef029b0713
2 changed files with 5 additions and 3 deletions

View file

@ -35,6 +35,7 @@ metadata:
{{- end }}
{{- if .tls.enabled }}
{{- toYaml .annotations.tls | nindent 4 }}
cert-manager.io/cluster-issuer: {{ .tls.issuerName }}
{{- end }}
{{- end }}
spec:
@ -89,6 +90,7 @@ metadata:
{{- end }}
{{- if .tls.enabled }}
{{- toYaml .annotations.tls | nindent 4 }}
cert-manager.io/cluster-issuer: {{ .tls.issuerName }}
{{- end }}
{{- end }}
spec:
@ -145,6 +147,7 @@ metadata:
{{- end }}
{{- if .tls.enabled }}
{{- toYaml .annotations.tls | nindent 4 }}
cert-manager.io/cluster-issuer: {{ .tls.issuerName }}
{{- end }}
{{- end }}
spec:

View file

@ -53,15 +53,14 @@ ingress:
enabled: false
tls:
enabled: true
issuerName: "letsencrypt-prod"
annotations:
base:
# -- annotation to generate ACME certs if available
kubernetes.io/ingress.allow-http: "false"
tls:
# -- use acme cert if available
kubernetes.io/tls-acme: "true"
# -- LE issuer name
cert-manager.io/cluster-issuer: "letsencrypt-prod"
# -- Block HTTP requests
nginx:
# -- Redirect http to https
nginx.ingress.kubernetes.io/ssl-redirect: 'true'