-
Notifications
You must be signed in to change notification settings - Fork 31
/
template.yaml
104 lines (104 loc) · 2.72 KB
/
template.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
apiVersion: v1
kind: Template
metadata:
name: letsencrypt
objects:
- apiVersion: v1
kind: DeploymentConfig
metadata:
labels:
app: letsencrypt
name: letsencrypt
spec:
replicas: 1
selector:
app: letsencrypt
deploymentconfig: letsencrypt
strategy:
recreateParams:
timeoutSeconds: 600
type: Recreate
template:
metadata:
labels:
app: letsencrypt
deploymentconfig: letsencrypt
spec:
containers:
- args:
- watcher
env:
- name: LETSENCRYPT_CONTACT_EMAIL
value: ${LETSENCRYPT_CONTACT_EMAIL}
image: ibotty/openshift-letsencrypt:latest
imagePullPolicy: Always
name: watcher
volumeMounts:
- mountPath: /etc/openshift-letsencrypt
name: account-creds
- mountPath: /var/lib/letsencrypt-container
name: datadir
- mountPath: /var/www/acme-challenge
name: acme-challenge
- args:
- cron
env:
- name: LETSENCRYPT_CONTACT_EMAIL
value: ${LETSENCRYPT_CONTACT_EMAIL}
image: ibotty/openshift-letsencrypt:latest
name: cron
terminationMessagePath: /dev/termination-log
volumeMounts:
- mountPath: /etc/openshift-letsencrypt
name: account-creds
- mountPath: /var/lib/letsencrypt-container
name: datadir
- mountPath: /var/www/acme-challenge
name: acme-challenge
- args:
- /usr/libexec/s2i/run
image: ibotty/s2i-nginx:latest
name: nginx
terminationMessagePath: /dev/termination-log
volumeMounts:
- mountPath: /opt/app-root/src/html/.well-known/acme-challenge
name: acme-challenge
dnsPolicy: ClusterFirst
restartPolicy: Always
serviceAccount: letsencrypt
serviceAccountName: letsencrypt
terminationGracePeriodSeconds: 30
volumes:
- emptyDir: {}
name: acme-challenge
- secret:
secretName: letsencrypt-creds
name: account-creds
- emptyDir: {}
name: datadir
triggers:
- type: ConfigChange
- apiVersion: v1
kind: Service
metadata:
labels:
app: letsencrypt
name: letsencrypt
spec:
ports:
- port: 8080
protocol: TCP
targetPort: 8080
selector:
app: letsencrypt
deploymentconfig: letsencrypt
sessionAffinity: None
type: ClusterIP
- apiVersion: v1
kind: ServiceAccount
metadata:
name: letsencrypt
parameters:
- description: The email to be register by the ACME registry.
name: LETSENCRYPT_CONTACT_EMAIL
required: true