1+ {{- if .Values.windows.enabled}}
2+ kind : DaemonSet
3+ apiVersion : apps/v1
4+ metadata :
5+ name : csi-smb-node-win
6+ namespace : {{ .Release.Namespace }}
7+ {{ include "smb.labels" . | indent 2 }}
8+ spec :
9+ selector :
10+ matchLabels :
11+ app : csi-smb-node-win
12+ template :
13+ metadata :
14+ {{ include "smb.labels" . | indent 6 }}
15+ app : csi-smb-node-win
16+ spec :
17+ nodeSelector :
18+ kubernetes.io/os : windows
19+ priorityClassName : system-node-critical
20+ {{- include "smb.pullSecrets" . | indent 6 }}
21+ containers :
22+ - name : liveness-probe
23+ volumeMounts :
24+ - mountPath : C:\csi
25+ name : plugin-dir
26+ image : " {{ .Values.windows.image.livenessProbe.repository }}:{{ .Values.windows.image.livenessProbe.tag }}"
27+ args :
28+ - --csi-address=$(CSI_ENDPOINT)
29+ - --probe-timeout=3s
30+ - --health-port=29643
31+ - --v=5
32+ env :
33+ - name : CSI_ENDPOINT
34+ value : unix://C:\\csi\\csi.sock
35+ imagePullPolicy : {{ .Values.windows.image.livenessProbe.pullPolicy }}
36+ resources :
37+ limits :
38+ cpu : 200m
39+ memory : 200Mi
40+ requests :
41+ cpu : 10m
42+ memory : 20Mi
43+ - name : node-driver-registrar
44+ image : " {{ .Values.windows.image.nodeDriverRegistrar.repository }}:{{ .Values.windows.image.nodeDriverRegistrar.tag }}"
45+ args :
46+ - --v=5
47+ - --csi-address=$(CSI_ENDPOINT)
48+ - --kubelet-registration-path=C:\\var\\lib\\kubelet\\plugins\\smb.csi.k8s.io\\csi.sock
49+ env :
50+ - name : CSI_ENDPOINT
51+ value : unix://C:\\csi\\csi.sock
52+ - name : KUBE_NODE_NAME
53+ valueFrom :
54+ fieldRef :
55+ fieldPath : spec.nodeName
56+ imagePullPolicy : {{ .Values.windows.image.nodeDriverRegistrar.pullPolicy }}
57+ volumeMounts :
58+ - name : kubelet-dir
59+ mountPath : " C:\\ var\\ lib\\ kubelet"
60+ - name : plugin-dir
61+ mountPath : C:\csi
62+ - name : registration-dir
63+ mountPath : C:\registration
64+ resources :
65+ limits :
66+ cpu : 200m
67+ memory : 200Mi
68+ requests :
69+ cpu : 10m
70+ memory : 20Mi
71+ - name : smb
72+ image : " {{ .Values.image.smb.repository }}:{{ .Values.image.smb.tag }}"
73+ imagePullPolicy : {{ .Values.image.smb.pullPolicy }}
74+ args :
75+ - --v=5
76+ - --endpoint=$(CSI_ENDPOINT)
77+ - --nodeid=$(KUBE_NODE_NAME)
78+ - " --metrics-address=0.0.0.0:{{ .Values.node.metricsPort }}"
79+ ports :
80+ - containerPort : 29643
81+ name : healthz
82+ protocol : TCP
83+ - containerPort : {{ .Values.node.metricsPort }}
84+ name : metrics
85+ protocol : TCP
86+ livenessProbe :
87+ failureThreshold : 5
88+ httpGet :
89+ path : /healthz
90+ port : healthz
91+ initialDelaySeconds : 30
92+ timeoutSeconds : 10
93+ periodSeconds : 30
94+ env :
95+ - name : CSI_ENDPOINT
96+ value : unix://C:\\csi\\csi.sock
97+ - name : KUBE_NODE_NAME
98+ valueFrom :
99+ fieldRef :
100+ apiVersion : v1
101+ fieldPath : spec.nodeName
102+ securityContext :
103+ privileged : true
104+ volumeMounts :
105+ - name : kubelet-dir
106+ mountPath : " C:\\ var\\ lib\\ kubelet"
107+ - name : plugin-dir
108+ mountPath : C:\csi
109+ - name : csi-proxy-fs-pipe
110+ mountPath : \\.\pipe\csi-proxy-filesystem-v1alpha1
111+ - name : csi-proxy-smb-pipe
112+ mountPath : \\.\pipe\csi-proxy-smb-v1alpha1
113+ resources :
114+ limits :
115+ cpu : 400m
116+ memory : 400Mi
117+ requests :
118+ cpu : 10m
119+ memory : 20Mi
120+ volumes :
121+ - name : csi-proxy-fs-pipe
122+ hostPath :
123+ path : \\.\pipe\csi-proxy-filesystem-v1alpha1
124+ type : " "
125+ - name : csi-proxy-smb-pipe
126+ hostPath :
127+ path : \\.\pipe\csi-proxy-smb-v1alpha1
128+ type : " "
129+ - name : registration-dir
130+ hostPath :
131+ path : {{ .Values.kubelet.windowsPath }}\plugins_registry\
132+ type : Directory
133+ - name : kubelet-dir
134+ hostPath :
135+ path : {{ .Values.kubelet.windowsPath }}\
136+ type : Directory
137+ - name : plugin-dir
138+ hostPath :
139+ path : {{ .Values.kubelet.windowsPath }}\plugins\smb.csi.k8s.io\
140+ type : DirectoryOrCreate
141+ {{- end -}}
0 commit comments