k8s-deployment/common/extensions/self-signed-cert.yaml

14 lines
375 B
YAML
Raw Normal View History

2024-11-17 20:52:41 +00:00
ext-self-signed-cert:
templates:
- |
---
apiVersion: v1
kind: Secret
metadata:
name: {{ .Values.name }}
data:
{{- $ca := genCA .Values.domain 365 -}}
{{- $cert := genSignedCert .Values.domain nil (list .Values.domain ) 365 $ca }}
tls.crt: {{ $cert.Cert | b64enc }}
tls.key: {{ $cert.Key | b64enc }}