-
Notifications
You must be signed in to change notification settings - Fork 139
/
deployment.yaml
98 lines (98 loc) · 2.79 KB
/
deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
azure-workload-identity.io/system: "true"
name: pod-identity-webhook
namespace: openshift-cloud-credential-operator
spec:
replicas: 2
selector:
matchLabels:
app: pod-identity-webhook
template:
metadata:
annotations:
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
labels:
app: pod-identity-webhook
spec:
containers:
- args:
- --log-level=info
- --disable-cert-rotation=true
command:
- /usr/bin/azure-workload-identity-webhook
env:
- name: AZURE_TENANT_ID
valueFrom:
secretKeyRef:
name: azure-credentials
key: azure_tenant_id
- name: POD_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
image: ${IMAGE}
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 6
httpGet:
path: /healthz
port: healthz
initialDelaySeconds: 15
periodSeconds: 20
name: pod-identity-webhook
resources:
requests:
cpu: 10m
memory: 10Mi
ports:
- containerPort: 6443
name: webhook-server
protocol: TCP
- containerPort: 8095
name: metrics
protocol: TCP
- containerPort: 9440
name: healthz
protocol: TCP
readinessProbe:
httpGet:
path: /readyz
port: healthz
initialDelaySeconds: 5
periodSeconds: 5
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: [ "ALL" ]
volumeMounts:
- mountPath: /certs
name: webhook-certs
readOnly: true
nodeSelector:
node-role.kubernetes.io/master: ""
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
operator: Exists
- effect: NoExecute
key: node.kubernetes.io/unreachable
operator: Exists
tolerationSeconds: 120
- effect: NoExecute
key: node.kubernetes.io/not-ready
operator: Exists
tolerationSeconds: 120
priorityClassName: system-cluster-critical
serviceAccountName: pod-identity-webhook
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
volumes:
- name: webhook-certs
secret:
secretName: pod-identity-webhook