@@ -23,14 +23,39 @@ spec:
2323 spec :
2424 priorityClassName : system-cluster-critical
2525 serviceAccountName : cloudstack-csi-controller
26+ affinity :
27+ podAntiAffinity :
28+ requiredDuringSchedulingIgnoredDuringExecution :
29+ - labelSelector :
30+ matchExpressions :
31+ - key : " app.kubernetes.io/name"
32+ operator : In
33+ values :
34+ - cloudstack-csi-controller
35+ topologyKey : " kubernetes.io/hostname"
36+ nodeAffinity :
37+ requiredDuringSchedulingIgnoredDuringExecution :
38+ nodeSelectorTerms :
39+ - matchExpressions :
40+ - key : node-role.kubernetes.io/control-plane
41+ operator : Exists
2642 nodeSelector :
2743 kubernetes.io/os : linux
28- node-role.kubernetes.io/control-plane : " "
2944 tolerations :
30- - effect : NoExecute
45+ - key : node-role.kubernetes.io/control-plane
46+ operator : Exists
47+ effect : NoSchedule
48+ - key : CriticalAddonsOnly
3149 operator : Exists
32- - effect : NoSchedule
50+ - effect : NoExecute
3351 operator : Exists
52+ tolerationSeconds : 300
53+ securityContext :
54+ runAsNonRoot : true
55+ runAsUser : 65532
56+ runAsGroup : 65532
57+ fsGroup : 65532
58+ fsGroupChangePolicy : OnRootMismatch
3459
3560 containers :
3661 - name : cloudstack-csi-controller
4570 env :
4671 - name : CSI_ENDPOINT
4772 value : unix:///var/lib/csi/sockets/pluginproxy/csi.sock
48- securityContext :
49- runAsNonRoot : true
50- runAsUser : 65532
51- runAsGroup : 65532
5273 volumeMounts :
5374 - name : socket-dir
5475 mountPath : /var/lib/csi/sockets/pluginproxy/
@@ -62,10 +83,21 @@ spec:
6283 httpGet :
6384 path : /healthz
6485 port : healthz
65- initialDelaySeconds : 30
66- timeoutSeconds : 10
67- periodSeconds : 180
68- failureThreshold : 3
86+ initialDelaySeconds : 10
87+ timeoutSeconds : 3
88+ periodSeconds : 10
89+ failureThreshold : 5
90+ resources :
91+ requests :
92+ cpu : 10m
93+ memory : 40Mi
94+ limits :
95+ memory : 256Mi
96+ securityContext :
97+ seccompProfile :
98+ type : RuntimeDefault
99+ readOnlyRootFilesystem : true
100+ allowPrivilegeEscalation : false
69101
70102 - name : external-provisioner
71103 image : registry.k8s.io/sig-storage/csi-provisioner:v5.0.1
@@ -89,6 +121,11 @@ spec:
89121 volumeMounts :
90122 - name : socket-dir
91123 mountPath : /var/lib/csi/sockets/pluginproxy/
124+ securityContext :
125+ seccompProfile :
126+ type : RuntimeDefault
127+ readOnlyRootFilesystem : true
128+ allowPrivilegeEscalation : false
92129
93130 - name : external-attacher
94131 image : registry.k8s.io/sig-storage/csi-attacher:v4.6.1
@@ -109,6 +146,11 @@ spec:
109146 volumeMounts :
110147 - name : socket-dir
111148 mountPath : /var/lib/csi/sockets/pluginproxy/
149+ securityContext :
150+ seccompProfile :
151+ type : RuntimeDefault
152+ readOnlyRootFilesystem : true
153+ allowPrivilegeEscalation : false
112154
113155 - name : external-resizer
114156 image : registry.k8s.io/sig-storage/csi-resizer:v1.11.1
@@ -129,6 +171,11 @@ spec:
129171 volumeMounts :
130172 - name : socket-dir
131173 mountPath : /var/lib/csi/sockets/pluginproxy/
174+ securityContext :
175+ seccompProfile :
176+ type : RuntimeDefault
177+ readOnlyRootFilesystem : true
178+ allowPrivilegeEscalation : false
132179
133180 - name : liveness-probe
134181 image : registry.k8s.io/sig-storage/livenessprobe:v2.12.0
@@ -141,6 +188,9 @@ spec:
141188 volumeMounts :
142189 - name : socket-dir
143190 mountPath : /var/lib/csi/sockets/pluginproxy/
191+ securityContext :
192+ readOnlyRootFilesystem : true
193+ allowPrivilegeEscalation : false
144194
145195 volumes :
146196 - name : socket-dir
0 commit comments