-
Notifications
You must be signed in to change notification settings - Fork 24
/
node.yaml
248 lines (247 loc) · 7.41 KB
/
node.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
# Generated file. Do not edit. Update using "make update".
#
# Loaded from base/node.yaml
# Applied strategic merge patch overlays/azure-file/patches/node_add_driver.yaml
# node_driver_registrar.yaml: Loaded from common/sidecars/node_driver_registrar.yaml
# Applied strategic merge patch node_driver_registrar.yaml
# livenessprobe.yaml: Loaded from common/sidecars/livenessprobe.yaml
# livenessprobe.yaml: Added arguments [--probe-timeout=3s]
# Applied strategic merge patch livenessprobe.yaml
#
#
apiVersion: apps/v1
kind: DaemonSet
metadata:
annotations:
config.openshift.io/inject-proxy: csi-driver
config.openshift.io/inject-proxy-cabundle: csi-driver
name: azure-file-csi-driver-node
namespace: openshift-cluster-csi-drivers
spec:
selector:
matchLabels:
app: azure-file-csi-driver-node
template:
metadata:
annotations:
cluster-autoscaler.kubernetes.io/enable-ds-eviction: "false"
openshift.io/required-scc: privileged
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
labels:
app: azure-file-csi-driver-node
spec:
containers:
- args:
- --endpoint=$(CSI_ENDPOINT)
- --logtostderr
- --nodeid=$(KUBE_NODE_NAME)
- --user-agent-suffix=OSS-kubectl
- --v=${LOG_LEVEL}
- --cloud-config-secret-name=""
- --cloud-config-secret-namespace=""
env:
- name: AZURE_CREDENTIAL_FILE
value: /etc/kubernetes/cloud.conf
- name: CSI_ENDPOINT
value: unix:///csi/csi.sock
- name: KUBE_NODE_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
image: ${DRIVER_IMAGE}
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 5
httpGet:
path: /healthz
port: healthz
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 3
name: csi-driver
ports:
- containerPort: 10302
name: healthz
protocol: TCP
resources:
requests:
cpu: 10m
memory: 50Mi
securityContext:
privileged: true
terminationMessagePolicy: FallbackToLogsOnError
volumeMounts:
- mountPath: /csi
name: socket-dir
- mountPath: /var/lib/kubelet
mountPropagation: Bidirectional
name: kubelet-dir
- mountPath: /etc/kubernetes/
name: cloud-config
readOnly: true
- mountPath: /dev
name: device-dir
- mountPath: /sys/bus/scsi/devices
name: sys-devices-dir
- mountPath: /sys/class/scsi_host/
name: scsi-host-dir
- mountPath: /etc/selinux
name: etc-selinux
- mountPath: /sys/fs
name: sys-fs
- mountPath: /var/run/secrets/openshift/serviceaccount
name: bound-sa-token
readOnly: true
- args:
- --csi-address=/csi/csi.sock
- --kubelet-registration-path=/var/lib/kubelet/plugins/file.csi.azure.com/csi.sock
- --http-endpoint=:10305
- --v=${LOG_LEVEL}
env: []
image: ${NODE_DRIVER_REGISTRAR_IMAGE}
imagePullPolicy: IfNotPresent
lifecycle:
preStop:
exec:
command:
- /bin/sh
- -c
- rm -rf /registration/file.csi.azure.com-reg.sock /csi/csi.sock
livenessProbe:
failureThreshold: 5
httpGet:
path: /healthz
port: rhealthz
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 3
name: csi-node-driver-registrar
ports:
- containerPort: 10305
name: rhealthz
protocol: TCP
resources:
requests:
cpu: 10m
memory: 50Mi
securityContext:
privileged: true
terminationMessagePolicy: FallbackToLogsOnError
volumeMounts:
- mountPath: /csi
name: socket-dir
- mountPath: /registration
name: registration-dir
- args:
- --csi-address=/csi/csi.sock
- --health-port=10302
- --v=${LOG_LEVEL}
- --probe-timeout=3s
env: []
image: ${LIVENESS_PROBE_IMAGE}
imagePullPolicy: IfNotPresent
name: csi-liveness-probe
resources:
requests:
cpu: 10m
memory: 50Mi
volumeMounts:
- mountPath: /csi
name: socket-dir
hostNetwork: true
initContainers:
- args:
- --cloud-config-file-path=/etc/cloud-config/config
- --output-file-path=/etc/merged-cloud-config/cloud.conf
- --disable-identity-extension-auth
- --enable-azure-workload-identity=${ENABLE_AZURE_WORKLOAD_IDENTITY}
command:
- /azure-config-credentials-injector
env:
- name: AZURE_CLIENT_ID
valueFrom:
secretKeyRef:
key: azure_client_id
name: azure-file-credentials
- name: AZURE_CLIENT_SECRET
valueFrom:
secretKeyRef:
key: azure_client_secret
name: azure-file-credentials
optional: true
- name: AZURE_TENANT_ID
valueFrom:
secretKeyRef:
key: azure_tenant_id
name: azure-file-credentials
optional: true
- name: AZURE_FEDERATED_TOKEN_FILE
valueFrom:
secretKeyRef:
key: azure_federated_token_file
name: azure-file-credentials
optional: true
image: ${CLUSTER_CLOUD_CONTROLLER_MANAGER_OPERATOR_IMAGE}
name: azure-inject-credentials
terminationMessagePolicy: FallbackToLogsOnError
volumeMounts:
- mountPath: /etc/cloud-config
name: src-cloud-config
readOnly: true
- mountPath: /etc/merged-cloud-config
name: cloud-config
nodeSelector:
kubernetes.io/os: linux
priorityClassName: system-node-critical
serviceAccount: azure-file-csi-driver-node-sa
tolerations:
- operator: Exists
volumes:
- hostPath:
path: /var/lib/kubelet
type: Directory
name: kubelet-dir
- hostPath:
path: /var/lib/kubelet/plugins/file.csi.azure.com/
type: DirectoryOrCreate
name: socket-dir
- hostPath:
path: /var/lib/kubelet/plugins_registry/
type: Directory
name: registration-dir
- hostPath:
path: /dev
type: Directory
name: device-dir
- hostPath:
path: /etc/selinux
type: DirectoryOrCreate
name: etc-selinux
- hostPath:
path: /sys/fs
type: Directory
name: sys-fs
- configMap:
name: azure-cloud-config
name: src-cloud-config
- hostPath:
path: /sys/bus/scsi/devices
type: Directory
name: sys-devices-dir
- hostPath:
path: /sys/class/scsi_host/
type: Directory
name: scsi-host-dir
- emptydir: {}
name: cloud-config
- name: bound-sa-token
projected:
sources:
- serviceAccountToken:
audience: openshift
path: token
updateStrategy:
rollingUpdate:
maxUnavailable: 10%
type: RollingUpdate