add environment

This commit is contained in:
Morten Olsen
2025-11-25 20:29:51 +01:00
parent 316a2db1d9
commit bf41a067a8
12 changed files with 246 additions and 6 deletions

View File

@@ -0,0 +1,52 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- cluster-issuer.yaml
- certificate.yaml
# Configuration: Edit the domain and email values below
replacements:
- source:
kind: ConfigMap
name: cloudflare-config
fieldPath: data.domain
targets:
- select:
kind: ClusterIssuer
name: cloudflare-dns
fieldPaths:
- spec.acme.solvers[0].selector.dnsZones[0]
- select:
kind: Certificate
name: wildcard-certificate
fieldPaths:
- spec.dnsNames[1]
- source:
kind: ConfigMap
name: cloudflare-config
fieldPath: data.wildcard-domain
targets:
- select:
kind: Certificate
name: wildcard-certificate
fieldPaths:
- spec.dnsNames[0]
- source:
kind: ConfigMap
name: cloudflare-config
fieldPath: data.email
targets:
- select:
kind: ClusterIssuer
name: cloudflare-dns
fieldPaths:
- spec.acme.email
configMapGenerator:
- name: cloudflare-config
literals:
# Change these values to match your domain and email
- domain=demo.olsen.cloud
- wildcard-domain=*.demo.olsen.cloud
- email=admin@demo.olsen.cloud