-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathcertificate.yaml
72 lines (72 loc) · 1.89 KB
/
certificate.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt-test
spec:
acme:
email: acme@${CLUSTER_DOMAIN}
server: https://acme-staging-v02.api.letsencrypt.org/directory
privateKeySecretRef:
name: letsencrypt-test
solvers:
# An empty 'selector' means that this solver matches all domains
- selector: {}
dns01:
webhook:
groupName: "${CLUSTER_DOMAIN}"
solverName: dnsmadeeasy
config:
apiKeyRef:
name: dnsmadeeasy
key: key
apiSecretRef:
name: dnsmadeeasy
key: secret
---
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt-prod
spec:
acme:
email: "acme@${CLUSTER_DOMAIN}"
server: https://acme-v02.api.letsencrypt.org/directory
privateKeySecretRef:
name: letsencrypt-prod
solvers:
# An empty 'selector' means that this solver matches all domains
- selector: {}
dns01:
webhook:
groupName: "${CLUSTER_DOMAIN}"
solverName: dnsmadeeasy
config:
apiKeyRef:
name: dnsmadeeasy
key: key
apiSecretRef:
name: dnsmadeeasy
key: secret
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: acme-crt
namespace: cert-manager
spec:
secretName: "${CLUSTER_DOMAIN_CERT}"
issuerRef:
#name: letsencrypt-test
name: letsencrypt-prod
kind: ClusterIssuer
dnsNames:
- '${CLUSTER_DOMAIN}'
- '*.${CLUSTER_DOMAIN}'
- '*.home.${CLUSTER_DOMAIN}'
- '*.pub.${CLUSTER_DOMAIN}'
# This dummy can be changed to circumvent Letsencrypt check for duplicated certs
# The right fix is to backup certificates correctly
- '*.${CLUSTER_DOMAIN_DUMMY}.${CLUSTER_DOMAIN}'
secretTemplate:
annotations:
replicator.v1.mittwald.de/replicate-to: "authentik,maddy"