add environment

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

View File

@@ -0,0 +1,20 @@
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: cloudflare-dns
spec:
acme:
server: https://acme-v02.api.letsencrypt.org/directory
email: PLACEHOLDER_EMAIL
privateKeySecretRef:
name: cloudflare-dns-issuer-key
solvers:
- dns01:
cloudflare:
apiTokenSecretRef:
name: cloudflare-api-token
key: api-token
selector:
dnsZones:
- PLACEHOLDER_DOMAIN

View File

@@ -0,0 +1,35 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- cluster-issuer.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]
- 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=example.com
- email=admin@example.com