home-server/charts/subcharts/templates/cert-manager.yaml

41 lines
1.4 KiB
YAML
Raw Normal View History

2025-07-10 11:26:46 +10:00
---
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: {{ .Values.global.issuerName }}
spec:
acme:
email: {{ .Values.global.email | quote }}
server: https://acme-v02.api.letsencrypt.org/directory
privateKeySecretRef:
name: {{ .Values.global.issuerName }}
solvers:
- dns01:
rfc2136:
2025-07-10 12:23:43 +10:00
nameserver: {{ .Values.global.rfc2136.nameserver | quote }}
tsigKeyName: {{ .Values.global.rfc2136.tsigKeyName | quote }}
tsigAlgorithm: {{ .Values.global.rfc2136.tsigAlgorithm | quote }}
2025-07-10 11:26:46 +10:00
tsigSecretSecretRef:
2025-07-10 12:23:43 +10:00
name: {{ .Values.global.rfc2136.tsigSecretName | quote }}
key: {{ .Values.global.rfc2136.tsigSecretKey | quote }}
2025-07-10 11:26:46 +10:00
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: wildcard-{{ .Values.global.domain | replace "." "-" }}
namespace: {{ .Values.global.namespace }}
spec:
secretName: wildcard-{{ .Values.global.domain | replace "." "-" }}
secretTemplate:
annotations:
replicator.v1.mittwald.de/replication-allowed: "true"
2025-07-10 12:23:43 +10:00
replicator.v1.mittwald.de/replicate-to: "{{ .Values.global.replicatorNamespaces }}"
2025-07-10 11:26:46 +10:00
issuerRef:
name: {{ .Values.global.issuerName }}
kind: ClusterIssuer
commonName: {{ .Values.global.domain | quote }}
dnsNames:
- {{ .Values.global.domain | quote }}
2025-07-10 12:23:43 +10:00
- "*.{{ .Values.global.domain }}"
2025-07-10 11:26:46 +10:00