blob: bf103262a162cc585fb9e784b6795f61b7fda39e (
plain)
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
|
apiVersion: apps/v1
kind: Deployment
metadata:
name: webhook-example
labels:
app: webhook-example
spec:
replicas: 1
selector:
matchLabels:
app: webhook-example
template:
metadata:
labels:
app: webhook-example
spec:
serviceAccount: webhook-example
containers:
- name: webhook-example
image: docker.io/webhook-example:v1
imagePullPolicy: Always
args:
- --namespace=webhook-example
- --automatic-authentication=false
volumeMounts:
- name: webhook-certs
mountPath: ~/.webhookExample/pki
readOnly: true
volumes:
- name: webhook-certs
secret:
secretName: webhook-example
|