-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.yml
49 lines (49 loc) · 1.07 KB
/
app.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: ProxyAllMAW
labels:
app: ProxyAllMAW
spec:
replicas: 1
selector:
matchLabels:
app: ProxyAllMAW
template:
metadata:
labels:
app: ProxyAllMAW
spec:
containers:
- name: ProxyAllMAW
image: pcfkubo/cfcr-sample-mutating-admission-webhook-proxy-amd64:0.1-dev
ports:
- containerPort: 443
volumeMounts:
- name: certs
mountPath: "/webhook.local.config/certificates"
readonly: true
args:
- --tls-cert-file=/webhook.local.config/certificates/tls.crt
- --tls-private-key-file=/webhook.local.config/certificates/tls.key
volumes:
- name: certs
secret:
secretName: ProxyAllMAW-Secret
items:
- key: "tls.crt"
path: ./tls.crt
- key: "tls.key"
path: ./tls.key
---
kind: Service
apiVersion: v1
metadata:
name: ProxyAllMAW-Service
spec:
selector:
app: ProxyAllMAW
ports:
- protocol: TCP
port: 443
targetPort: 443