-
Notifications
You must be signed in to change notification settings - Fork 24
/
node.yaml
169 lines (168 loc) · 4.78 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
# Generated file. Do not edit. Update using "make update".
#
# Loaded from base/node.yaml
# Applied strategic merge patch overlays/aws-ebs/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: aws-ebs-csi-driver-node
namespace: openshift-cluster-csi-drivers
spec:
selector:
matchLabels:
app: aws-ebs-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: aws-ebs-csi-driver-node
spec:
containers:
- args:
- node
- --endpoint=$(CSI_ENDPOINT)
- --logtostderr
- --v=${LOG_LEVEL}
- --reserved-volume-attachments=1
env:
- name: CSI_ENDPOINT
value: unix:/csi/csi.sock
image: ${DRIVER_IMAGE}
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 5
httpGet:
path: /healthz
port: healthz
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 3
name: csi-driver
ports:
- containerPort: 10300
name: healthz
protocol: TCP
resources:
requests:
cpu: 10m
memory: 50Mi
securityContext:
privileged: true
terminationMessagePolicy: FallbackToLogsOnError
volumeMounts:
- mountPath: /var/lib/kubelet
mountPropagation: Bidirectional
name: kubelet-dir
- mountPath: /csi
name: socket-dir
- mountPath: /dev
name: device-dir
- mountPath: /etc/selinux
name: etc-selinux
- mountPath: /sys/fs
name: sys-fs
- args:
- --csi-address=/csi/csi.sock
- --kubelet-registration-path=/var/lib/kubelet/plugins/ebs.csi.aws.com/csi.sock
- --http-endpoint=:10304
- --v=${LOG_LEVEL}
env: []
image: ${NODE_DRIVER_REGISTRAR_IMAGE}
imagePullPolicy: IfNotPresent
lifecycle:
preStop:
exec:
command:
- /bin/sh
- -c
- rm -rf /registration/ebs.csi.aws.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: 10304
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=10300
- --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
nodeSelector:
kubernetes.io/os: linux
priorityClassName: system-node-critical
serviceAccount: aws-ebs-csi-driver-node-sa
tolerations:
- operator: Exists
volumes:
- hostPath:
path: /var/lib/kubelet
type: Directory
name: kubelet-dir
- hostPath:
path: /var/lib/kubelet/plugins/ebs.csi.aws.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
updateStrategy:
rollingUpdate:
maxUnavailable: 10%
type: RollingUpdate