-
Notifications
You must be signed in to change notification settings - Fork 0
/
ClusterIssuer.yaml
69 lines (69 loc) · 2.11 KB
/
ClusterIssuer.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
# requires certmgr to be installed, creates an issuer for prod and staging servers
# follows https://cert-manager.io/docs/configuration/acme/dns01/route53/
# but with renamed secret keys
# you can also create this manually
# kubectl create secret generic -n cert-manager prod-route53-credentials-secret \
# --from-literal=AWS_ACCESS_KEY_ID=AK..P6 \
# --from-literal=AWS_SECRET_ACCESS_KEY=gC..cL
# apiVersion: v1
# kind: Secret
# metadata:
# name: prod-route53-credentials-secret
# namespace: cert-manager
# type: Opaque
# data:
# AWS_SECRET_ACCESS_KEY: <key>== # base64 encoded
# AWS_ACCESS_KEY_ID: <secret>= # base64 encoded
---
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt-prod
spec:
acme:
email: <email>
privateKeySecretRef:
name: pk-letsencrypt-prod
server: https://acme-v02.api.letsencrypt.org/directory
solvers:
- dns01:
route53:
region: eu-west-2
# accessKeyID: AKIAYWQ3QCCFJMO5EFP6
# from v1.13.0 we can use accessKeyIDSecretRef
# see https://cert-manager.io/v1.13-docs/configuration/acme/dns01/route53/#credentials
accessKeyIDSecretRef:
name: prod-route53-credentials-secret
key: AWS_ACCESS_KEY_ID
secretAccessKeySecretRef:
key: AWS_SECRET_ACCESS_KEY
name: prod-route53-credentials-secret
selector:
dnsZones:
- cynexia.net
---
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt-stg
spec:
acme:
email: <email>
privateKeySecretRef:
name: pk-letsencrypt-stg
server: https://acme-staging-v02.api.letsencrypt.org/directory
solvers:
- dns01:
route53:
region: eu-west-2
# accessKeyID: AKIAYWQ3QCCFJMO5EFP6
# from v1.13.0 we can use accessKeyIDSecretRef
accessKeyIDSecretRef:
name: prod-route53-credentials-secret
key: AWS_ACCESS_KEY_ID
secretAccessKeySecretRef:
key: AWS_SECRET_ACCESS_KEY
name: prod-route53-credentials-secret
selector:
dnsZones:
- cynexia.net