sigs.k8s.io/azuredisk-csi-driver@v1.30.1/deploy/v2.0.0-beta.6/csi-azuredisk-node-windows.yaml (about)

     1  ---
     2  kind: DaemonSet
     3  apiVersion: apps/v1
     4  metadata:
     5    name: csi-azuredisk-node-win
     6    namespace: kube-system
     7  spec:
     8    updateStrategy:
     9      rollingUpdate:
    10        maxUnavailable: 1
    11      type: RollingUpdate
    12    selector:
    13      matchLabels:
    14        app: csi-azuredisk-node-win
    15    template:
    16      metadata:
    17        labels:
    18          app: csi-azuredisk-node-win
    19      spec:
    20        serviceAccountName: csi-azuredisk-node-sa
    21        tolerations:
    22          - key: "node.kubernetes.io/os"
    23            operator: "Exists"
    24            effect: "NoSchedule"
    25        nodeSelector:
    26          kubernetes.io/os: windows
    27        affinity:
    28          nodeAffinity:
    29            requiredDuringSchedulingIgnoredDuringExecution:
    30              nodeSelectorTerms:
    31                - matchExpressions:
    32                    - key: type
    33                      operator: NotIn
    34                      values:
    35                        - virtual-kubelet
    36        priorityClassName: system-node-critical
    37        containers:
    38          - name: liveness-probe
    39            volumeMounts:
    40              - mountPath: C:\csi
    41                name: plugin-dir
    42            image: mcr.microsoft.com/oss/kubernetes-csi/livenessprobe:v2.7.0
    43            args:
    44              - "--csi-address=$(CSI_ENDPOINT)"
    45              - "--probe-timeout=3s"
    46              - "--health-port=29603"
    47              - "--v=2"
    48            env:
    49              - name: CSI_ENDPOINT
    50                value: unix://C:\\csi\\csi.sock
    51            resources:
    52              limits:
    53                memory: 100Mi
    54              requests:
    55                cpu: 10m
    56                memory: 40Mi
    57          - name: node-driver-registrar
    58            image: mcr.microsoft.com/oss/kubernetes-csi/csi-node-driver-registrar:v2.5.1
    59            args:
    60              - "--v=2"
    61              - "--csi-address=$(CSI_ENDPOINT)"
    62              - "--kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)"
    63            livenessProbe:
    64              exec:
    65                command:
    66                  - /csi-node-driver-registrar.exe
    67                  - --kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)
    68                  - --mode=kubelet-registration-probe
    69              initialDelaySeconds: 60
    70              timeoutSeconds: 30
    71            env:
    72              - name: CSI_ENDPOINT
    73                value: unix://C:\\csi\\csi.sock
    74              - name: DRIVER_REG_SOCK_PATH
    75                value: C:\\var\\lib\\kubelet\\plugins\\disk.csi.azure.com\\csi.sock
    76              - name: KUBE_NODE_NAME
    77                valueFrom:
    78                  fieldRef:
    79                    fieldPath: spec.nodeName
    80            volumeMounts:
    81              - name: kubelet-dir
    82                mountPath: "C:\\var\\lib\\kubelet"
    83              - name: plugin-dir
    84                mountPath: C:\csi
    85              - name: registration-dir
    86                mountPath: C:\registration
    87            resources:
    88              limits:
    89                memory: 100Mi
    90              requests:
    91                cpu: 30m
    92                memory: 40Mi
    93          - name: azuredisk
    94            image: mcr.microsoft.com/oss/kubernetes-csi/azuredisk-csi:v2.0.0-beta.6
    95            imagePullPolicy: IfNotPresent
    96            args:
    97              - "--v=5"
    98              - "--endpoint=$(CSI_ENDPOINT)"
    99              - "--nodeid=$(KUBE_NODE_NAME)"
   100              - "--metrics-address=0.0.0.0:29605"
   101              - "--allow-empty-cloud-config=true"
   102              - "--get-node-info-from-labels=false"
   103              - "--is-node-plugin=true"
   104            ports:
   105              - containerPort: 29603
   106                name: healthz
   107                protocol: TCP
   108            livenessProbe:
   109              failureThreshold: 5
   110              httpGet:
   111                path: /healthz
   112                port: healthz
   113              initialDelaySeconds: 30
   114              timeoutSeconds: 10
   115              periodSeconds: 30
   116            env:
   117              - name: AZURE_CREDENTIAL_FILE
   118                valueFrom:
   119                  configMapKeyRef:
   120                    name: azure-cred-file
   121                    key: path-windows
   122                    optional: true
   123              - name: CSI_ENDPOINT
   124                value: unix://C:\\csi\\csi.sock
   125              - name: KUBE_NODE_NAME
   126                valueFrom:
   127                  fieldRef:
   128                    apiVersion: v1
   129                    fieldPath: spec.nodeName
   130            volumeMounts:
   131              - name: kubelet-dir
   132                mountPath: "C:\\var\\lib\\kubelet"
   133              - name: plugin-dir
   134                mountPath: C:\csi
   135              - name: azure-config
   136                mountPath: C:\k
   137              - name: csi-proxy-fs-pipe-v1
   138                mountPath: \\.\pipe\csi-proxy-filesystem-v1
   139              - name: csi-proxy-disk-pipe-v1
   140                mountPath: \\.\pipe\csi-proxy-disk-v1
   141              - name: csi-proxy-volume-pipe-v1
   142                mountPath: \\.\pipe\csi-proxy-volume-v1
   143              # these paths are still included for compatibility, they're used
   144              # only if the node has still the beta version of the CSI proxy
   145              - name: csi-proxy-fs-pipe-v1beta1
   146                mountPath: \\.\pipe\csi-proxy-filesystem-v1beta1
   147              - name: csi-proxy-disk-pipe-v1beta2
   148                mountPath: \\.\pipe\csi-proxy-disk-v1beta2
   149              - name: csi-proxy-volume-pipe-v1beta2
   150                mountPath: \\.\pipe\csi-proxy-volume-v1beta2
   151            resources:
   152              limits:
   153                memory: 200Mi
   154              requests:
   155                cpu: 10m
   156                memory: 40Mi
   157        volumes:
   158          - name: csi-proxy-fs-pipe-v1
   159            hostPath:
   160              path: \\.\pipe\csi-proxy-filesystem-v1
   161          - name: csi-proxy-disk-pipe-v1
   162            hostPath:
   163              path: \\.\pipe\csi-proxy-disk-v1
   164          - name: csi-proxy-volume-pipe-v1
   165            hostPath:
   166              path: \\.\pipe\csi-proxy-volume-v1
   167          # these paths are still included for compatibility, they're used
   168          # only if the node has still the beta version of the CSI proxy
   169          - name: csi-proxy-fs-pipe-v1beta1
   170            hostPath:
   171              path: \\.\pipe\csi-proxy-filesystem-v1beta1
   172          - name: csi-proxy-disk-pipe-v1beta2
   173            hostPath:
   174              path: \\.\pipe\csi-proxy-disk-v1beta2
   175          - name: csi-proxy-volume-pipe-v1beta2
   176            hostPath:
   177              path: \\.\pipe\csi-proxy-volume-v1beta2
   178          - name: registration-dir
   179            hostPath:
   180              path: C:\var\lib\kubelet\plugins_registry\
   181              type: Directory
   182          - name: kubelet-dir
   183            hostPath:
   184              path: C:\var\lib\kubelet\
   185              type: Directory
   186          - name: plugin-dir
   187            hostPath:
   188              path: C:\var\lib\kubelet\plugins\disk.csi.azure.com\
   189              type: DirectoryOrCreate
   190          - name: azure-config
   191            hostPath:
   192              path: C:\k
   193              type: DirectoryOrCreate