sigs.k8s.io/azuredisk-csi-driver@v1.30.1/deploy/latest-v2/csi-azuredisk-node-windows-hostprocess.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        securityContext:
    38          windowsOptions:
    39            hostProcess: true
    40            runAsUserName: "NT AUTHORITY\\SYSTEM"
    41        hostNetwork: true
    42        initContainers:
    43          - name: init
    44            image: mcr.microsoft.com/k8s/csi/azuredisk-csi:latest
    45            imagePullPolicy: IfNotPresent
    46            command:
    47              - "powershell.exe"
    48              - "-c"
    49              - "New-Item"
    50              - "-ItemType"
    51              - "Directory"
    52              - "-Path"
    53              - "C:\\var\\lib\\kubelet\\plugins\\disk.csi.azure.com\\"
    54              - "-Force"
    55        containers:
    56          - name: liveness-probe
    57            image: mcr.microsoft.com/oss/kubernetes-csi/livenessprobe:v2.7.0
    58            command:
    59              - "livenessprobe.exe"
    60            args:
    61              - "--csi-address=$(CSI_ENDPOINT)"
    62              - "--probe-timeout=3s"
    63              - "--health-port=29603"
    64              - "--v=2"
    65            env:
    66              - name: CSI_ENDPOINT
    67                value: unix://C:\\var\\lib\\kubelet\\plugins\\disk.csi.azure.com\\csi.sock
    68            resources:
    69              limits:
    70                memory: 100Mi
    71              requests:
    72                cpu: 10m
    73                memory: 40Mi
    74          - name: node-driver-registrar
    75            image: mcr.microsoft.com/oss/kubernetes-csi/csi-node-driver-registrar:v2.5.1
    76            command:
    77              - "csi-node-driver-registrar.exe"
    78            args:
    79              - "--v=2"
    80              - "--csi-address=$(CSI_ENDPOINT)"
    81              - "--kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)"
    82              - "--plugin-registration-path=$(PLUGIN_REG_DIR)"
    83            livenessProbe:
    84              exec:
    85                command:
    86                  - csi-node-driver-registrar.exe
    87                  - --kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)
    88                  - --mode=kubelet-registration-probe
    89              initialDelaySeconds: 60
    90              timeoutSeconds: 30
    91            env:
    92              - name: CSI_ENDPOINT
    93                value: unix://C:\\var\\lib\\kubelet\\plugins\\disk.csi.azure.com\\csi.sock
    94              - name: DRIVER_REG_SOCK_PATH
    95                value: C:\\var\\lib\\kubelet\\plugins\\disk.csi.azure.com\\csi.sock
    96              - name: PLUGIN_REG_DIR
    97                value: C:\\var\\lib\\kubelet\\plugins_registry\\
    98              - name: KUBE_NODE_NAME
    99                valueFrom:
   100                  fieldRef:
   101                    fieldPath: spec.nodeName
   102            resources:
   103              limits:
   104                memory: 100Mi
   105              requests:
   106                cpu: 30m
   107                memory: 40Mi
   108          - name: azuredisk
   109            image: mcr.microsoft.com/k8s/csi/azuredisk-csi:latest
   110            imagePullPolicy: IfNotPresent
   111            command:
   112              - "azurediskplugin.exe"
   113            args:
   114              - "--v=5"
   115              - "--endpoint=$(CSI_ENDPOINT)"
   116              - "--nodeid=$(KUBE_NODE_NAME)"
   117              - "--metrics-address=0.0.0.0:29605"
   118              - "--allow-empty-cloud-config=true"
   119            ports:
   120              - containerPort: 29603
   121                name: healthz
   122                protocol: TCP
   123            livenessProbe:
   124              failureThreshold: 5
   125              httpGet:
   126                path: /healthz
   127                port: healthz
   128              initialDelaySeconds: 30
   129              timeoutSeconds: 10
   130              periodSeconds: 30
   131            env:
   132              - name: AZURE_CREDENTIAL_FILE
   133                valueFrom:
   134                  configMapKeyRef:
   135                    name: azure-cred-file
   136                    key: path-windows
   137                    optional: true
   138              - name: CSI_ENDPOINT
   139                value: unix://C:\\var\\lib\\kubelet\\plugins\\disk.csi.azure.com\\csi.sock
   140              - name: KUBE_NODE_NAME
   141                valueFrom:
   142                  fieldRef:
   143                    apiVersion: v1
   144                    fieldPath: spec.nodeName
   145            resources:
   146              limits:
   147                memory: 200Mi
   148              requests:
   149                cpu: 10m
   150                memory: 40Mi