|
| 1 | +kind: DaemonSet |
| 2 | +apiVersion: apps/v1 |
| 3 | +metadata: |
| 4 | + name: csi-blobfuse-node |
| 5 | + namespace: kube-system |
| 6 | +spec: |
| 7 | + selector: |
| 8 | + matchLabels: |
| 9 | + app: csi-blobfuse-node |
| 10 | + template: |
| 11 | + metadata: |
| 12 | + labels: |
| 13 | + app: csi-blobfuse-node |
| 14 | + spec: |
| 15 | + hostNetwork: true |
| 16 | + nodeSelector: |
| 17 | + beta.kubernetes.io/os: linux |
| 18 | + containers: |
| 19 | + - name: liveness-probe |
| 20 | + imagePullPolicy: Always |
| 21 | + volumeMounts: |
| 22 | + - mountPath: /csi |
| 23 | + name: socket-dir |
| 24 | + image: quay.io/k8scsi/livenessprobe:v1.0.2 |
| 25 | + args: |
| 26 | + - --csi-address=/csi/csi.sock |
| 27 | + - --connection-timeout=3s |
| 28 | + - --health-port=9802 |
| 29 | + - name: node-driver-registrar |
| 30 | + image: quay.io/k8scsi/csi-node-driver-registrar:v1.1.0 |
| 31 | + args: |
| 32 | + - --csi-address=$(ADDRESS) |
| 33 | + - --kubelet-registration-path=$(DRIVER_REG_SOCK_PATH) |
| 34 | + - --v=5 |
| 35 | + lifecycle: |
| 36 | + preStop: |
| 37 | + exec: |
| 38 | + command: ["/bin/sh", "-c", "rm -rf /registration/blobfuse.csi.azure.com-reg.sock /csi/csi.sock"] |
| 39 | + env: |
| 40 | + - name: ADDRESS |
| 41 | + value: /csi/csi.sock |
| 42 | + - name: DRIVER_REG_SOCK_PATH |
| 43 | + value: /var/lib/kubelet/plugins/blobfuse.csi.azure.com/csi.sock |
| 44 | + volumeMounts: |
| 45 | + - name: socket-dir |
| 46 | + mountPath: /csi |
| 47 | + - name: registration-dir |
| 48 | + mountPath: /registration |
| 49 | + - name: blobfuse |
| 50 | + image: mcr.microsoft.com/k8s/csi/blobfuse-csi:v0.2.0 |
| 51 | + args: |
| 52 | + - "--v=5" |
| 53 | + - "--endpoint=$(CSI_ENDPOINT)" |
| 54 | + - "--nodeid=$(KUBE_NODE_NAME)" |
| 55 | + ports: |
| 56 | + - containerPort: 9802 |
| 57 | + name: healthz |
| 58 | + protocol: TCP |
| 59 | + livenessProbe: |
| 60 | + failureThreshold: 5 |
| 61 | + httpGet: |
| 62 | + path: /healthz |
| 63 | + port: healthz |
| 64 | + initialDelaySeconds: 30 |
| 65 | + timeoutSeconds: 10 |
| 66 | + periodSeconds: 30 |
| 67 | + env: |
| 68 | + - name: AZURE_CREDENTIAL_FILE |
| 69 | + value: "/etc/kubernetes/azure.json" |
| 70 | + - name: CSI_ENDPOINT |
| 71 | + value: unix:///csi/csi.sock |
| 72 | + - name: KUBE_NODE_NAME |
| 73 | + valueFrom: |
| 74 | + fieldRef: |
| 75 | + apiVersion: v1 |
| 76 | + fieldPath: spec.nodeName |
| 77 | + imagePullPolicy: Always |
| 78 | + securityContext: |
| 79 | + privileged: true |
| 80 | + volumeMounts: |
| 81 | + - mountPath: /csi |
| 82 | + name: socket-dir |
| 83 | + - mountPath: /var/lib/kubelet/ |
| 84 | + mountPropagation: Bidirectional |
| 85 | + name: mountpoint-dir |
| 86 | + - mountPath: /etc/kubernetes/ |
| 87 | + name: azure-cred |
| 88 | + - mountPath: /var/lib/waagent/ManagedIdentity-Settings |
| 89 | + readOnly: true |
| 90 | + name: msi |
| 91 | + - mountPath: /usr/blob/ |
| 92 | + name: blobfuse-bin |
| 93 | + - mountPath: /mnt |
| 94 | + name: blobfuse-cache |
| 95 | + volumes: |
| 96 | + - hostPath: |
| 97 | + path: /var/lib/kubelet/plugins/blobfuse.csi.azure.com |
| 98 | + type: DirectoryOrCreate |
| 99 | + name: socket-dir |
| 100 | + - hostPath: |
| 101 | + path: /var/lib/kubelet/ |
| 102 | + type: DirectoryOrCreate |
| 103 | + name: mountpoint-dir |
| 104 | + - hostPath: |
| 105 | + path: /var/lib/kubelet/plugins_registry/ |
| 106 | + type: DirectoryOrCreate |
| 107 | + name: registration-dir |
| 108 | + - hostPath: |
| 109 | + path: /etc/kubernetes/ |
| 110 | + type: Directory |
| 111 | + name: azure-cred |
| 112 | + - hostPath: |
| 113 | + path: /var/lib/waagent/ManagedIdentity-Settings |
| 114 | + name: msi |
| 115 | + - hostPath: |
| 116 | + path: /usr/bin |
| 117 | + name: blobfuse-bin |
| 118 | + - hostPath: |
| 119 | + path: /mnt |
| 120 | + name: blobfuse-cache |
0 commit comments