36 lines
839 B
YAML
36 lines
839 B
YAML
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
|
|
|