forked from publicarray/dns-resolver-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
acme-init-job.yml
58 lines (58 loc) · 1.5 KB
/
acme-init-job.yml
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
apiVersion: batch/v1
kind: Job
metadata:
name: acme-init
spec:
template:
metadata:
name: acme-init
spec:
# schedule: 30 03 01 */3 *
containers:
- name: acme-init
image: neilpang/acme.sh
env:
# - name: DOMAIN
# value: doh.seby.io
- name: CF_Email
valueFrom:
secretKeyRef:
name: cloudflare
key: username
- name: CF_Key
valueFrom:
secretKeyRef:
name: cloudflare
key: password
command:
- acme.sh
- --issue
- --staging # remember to remove in production
- --dns
- dns_cf
- --dnssleep
- "60"
- -d
# - $(DOMAIN)
- doh.seby.io
# - -d
# - www.$(DOMAIN)
- --fullchain-file
- /opt/ssl/fullchain.pem
- --key-file
- /opt/ssl/key.pem
- --ca-file
- /opt/ssl/ca.pem
- --cert-file
- /opt/ssl/cert.pem
- --reloadcmd
- 'cat /opt/ssl/key.pem > cat /opt/ssl/fullchain.pem > /opt/ssl/fullchain-key.pem'
volumeMounts:
- name: ssl
mountPath: /opt/ssl
restartPolicy: Never # OnFailure
volumes:
- name: ssl
hostPath:
path: /data/ssl
type: DirectoryOrCreate