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