-
Notifications
You must be signed in to change notification settings - Fork 19
/
bundle.yaml
252 lines (239 loc) · 5.53 KB
/
bundle.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
apiVersion: v1
kind: ServiceAccount
metadata:
name: cert-manager-webhook-dnspod
namespace: cert-manager
labels:
app: cert-manager-webhook-dnspod
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: cert-manager-webhook-dnspod:domain-solver
labels:
app: cert-manager-webhook-dnspod
rules:
- apiGroups:
- acme.imroc.cc
resources:
- "*"
verbs:
- "create"
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: cert-manager-webhook-dnspod:secret-reader
labels:
app: cert-manager-webhook-dnspod
rules:
- apiGroups:
- ""
resources:
- secrets
verbs:
- get
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: cert-manager-webhook-dnspod:auth-delegator
labels:
app: cert-manager-webhook-dnspod
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: system:auth-delegator
subjects:
- apiGroup: ""
kind: ServiceAccount
name: cert-manager-webhook-dnspod
namespace: cert-manager
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: cert-manager-webhook-dnspod:domain-solver
labels:
app: cert-manager-webhook-dnspod
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cert-manager-webhook-dnspod:domain-solver
subjects:
- apiGroup: ""
kind: ServiceAccount
name: cert-manager
namespace: cert-manager
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: cert-manager-webhook-dnspod:secret-reader
labels:
app: cert-manager-webhook-dnspod
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cert-manager-webhook-dnspod:secret-reader
subjects:
- apiGroup: ""
kind: ServiceAccount
name: cert-manager-webhook-dnspod
namespace: cert-manager
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: cert-manager-webhook-dnspod:webhook-authentication-reader
namespace: kube-system
labels:
app: cert-manager-webhook-dnspod
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: extension-apiserver-authentication-reader
subjects:
- apiGroup: ""
kind: ServiceAccount
name: cert-manager-webhook-dnspod
namespace: cert-manager
---
apiVersion: v1
kind: Service
metadata:
name: cert-manager-webhook-dnspod
namespace: cert-manager
labels:
app: cert-manager-webhook-dnspod
spec:
type: ClusterIP
ports:
- port: 443
targetPort: https
protocol: TCP
name: https
selector:
app: cert-manager-webhook-dnspod
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: cert-manager-webhook-dnspod
namespace: cert-manager
labels:
app: cert-manager-webhook-dnspod
spec:
replicas: 1
selector:
matchLabels:
app: cert-manager-webhook-dnspod
template:
metadata:
labels:
app: cert-manager-webhook-dnspod
spec:
serviceAccountName: cert-manager-webhook-dnspod
containers:
- name: cert-manager-webhook-dnspod
image: "imroc/cert-manager-webhook-dnspod:1.3.0"
imagePullPolicy: IfNotPresent
args:
- --tls-cert-file=/tls/tls.crt
- --tls-private-key-file=/tls/tls.key
env:
- name: GROUP_NAME
value: "acme.imroc.cc"
ports:
- name: https
containerPort: 443
protocol: TCP
livenessProbe:
httpGet:
scheme: HTTPS
path: /healthz
port: https
readinessProbe:
httpGet:
scheme: HTTPS
path: /healthz
port: https
volumeMounts:
- name: certs
mountPath: /tls
readOnly: true
volumes:
- name: certs
secret:
secretName: cert-manager-webhook-dnspod-tls
---
apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
name: v1alpha1.acme.imroc.cc
labels:
app: cert-manager-webhook-dnspod
annotations:
cert-manager.io/inject-ca-from: "cert-manager/cert-manager-webhook-dnspod-tls"
spec:
group: acme.imroc.cc
groupPriorityMinimum: 1000
versionPriority: 15
service:
name: cert-manager-webhook-dnspod
namespace: cert-manager
version: v1alpha1
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: cert-manager-webhook-dnspod-ca
namespace: cert-manager
labels:
app: cert-manager-webhook-dnspod
spec:
secretName: cert-manager-webhook-dnspod-ca
duration: 43800h0m0s # 5y
issuerRef:
name: cert-manager-webhook-dnspod-selfsign
commonName: "ca.dnspod-webhook.cert-manager"
isCA: true
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: cert-manager-webhook-dnspod-tls
namespace: cert-manager
labels:
app: cert-manager-webhook-dnspod
spec:
secretName: cert-manager-webhook-dnspod-tls
duration: 8760h0m0s # 1y
issuerRef:
name: cert-manager-webhook-dnspod-ca
dnsNames:
- cert-manager-webhook-dnspod
- cert-manager-webhook-dnspod.cert-manager
- cert-manager-webhook-dnspod.cert-manager.svc
---
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: cert-manager-webhook-dnspod-selfsign
namespace: cert-manager
labels:
app: cert-manager-webhook-dnspod
spec:
selfSigned: {}
---
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: cert-manager-webhook-dnspod-ca
namespace: cert-manager
labels:
app: cert-manager-webhook-dnspod
spec:
ca:
secretName: cert-manager-webhook-dnspod-ca