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