add helm charts
This commit is contained in:
19
backing-services/emqx/templates/certificate.yaml
Normal file
19
backing-services/emqx/templates/certificate.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
{{- if and (.Values.ssl.enabled) (not .Values.ssl.useExisting) -}}
|
||||
---
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: {{ include "emqx.fullname" . }}-tls
|
||||
spec:
|
||||
secretName: {{ include "emqx.fullname" . }}-tls
|
||||
issuerRef:
|
||||
name: {{ default "letsencrypt-staging" .Values.ssl.issuer.name }}
|
||||
kind: {{ default "ClusterIssuer" .Values.ssl.issuer.kind }}
|
||||
{{- if .Values.ssl.commonName }}
|
||||
commonName: {{ .Values.ssl.commonName }}
|
||||
{{- end }}
|
||||
dnsNames:
|
||||
{{- range .Values.ssl.dnsnames }}
|
||||
- {{ . }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
Reference in New Issue
Block a user