Skip to content

Instantly share code, notes, and snippets.

@Depado
Created July 19, 2018 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Depado/05f188225e74753c29a727d4c1ff941a to your computer and use it in GitHub Desktop.
Save Depado/05f188225e74753c29a727d4c1ff941a to your computer and use it in GitHub Desktop.
{{- if and .Values.ingress.enabled .Values.tls.enabled -}}
apiVersion: certmanager.k8s.io/v1alpha1
kind: Certificate
metadata:
name: {{ template "dummy.fullname" . }}
labels:
app: {{ template "dummy.name" . }}
chart: {{ template "dummy.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
secretName: {{ template "dummy.fullname" . }}-tls
issuerRef:
name: {{ required "A valid .Values.tls.issuer.name entry required!" .Values.tls.issuerName }}
kind: ClusterIssuer
commonName: {{ required "A valid .Values.tls.commonName entry is required!" .Values.tls.commonName }}
dnsNames:
{{- range .Values.tls.dnsNames }}
- {{ . }}
{{- end }}
acme:
config:
- http01:
ingress: {{ template "dummy.fullname" . }}
domains:
{{- range .Values.tls.domains }}
- {{ . }}
{{- end }}
{{- end -}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment