-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathadmission-webhook.yaml
48 lines (48 loc) · 1.01 KB
/
admission-webhook.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
apiVersion: v1
kind: Service
metadata:
name: admission-webhook
labels:
kubernetes.courselabs.co: admission
spec:
type: ClusterIP
ports:
- port: 443
targetPort: https
selector:
app: admission-webhook
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: admission-webhook
labels:
kubernetes.courselabs.co: admission
spec:
selector:
matchLabels:
app: admission-webhook
template:
metadata:
labels:
app: admission-webhook
spec:
containers:
- name: admission-webhook
image: kiamol/ch16-admission-webhook
env:
- name: USE_HTTPS
value: "true"
- name: PORT
value: "8443"
ports:
- name: https
containerPort: 8443
volumeMounts:
- name: certs
mountPath: /run/secrets/tls
readOnly: true
volumes:
- name: certs
secret:
secretName: admission-webhook-cert