add environment
This commit is contained in:
52
environment/cloudflare-issuer/kustomization.yaml
Normal file
52
environment/cloudflare-issuer/kustomization.yaml
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user