|
| 1 | +#TODO(#40): Force DaemonSet to not run on master. |
| 2 | +kind: DaemonSet |
| 3 | +apiVersion: apps/v1 |
| 4 | +metadata: |
| 5 | + name: csi-gce-pd-node-win |
| 6 | +spec: |
| 7 | + selector: |
| 8 | + matchLabels: |
| 9 | + app: gcp-compute-persistent-disk-csi-driver-win |
| 10 | + template: |
| 11 | + metadata: |
| 12 | + labels: |
| 13 | + app: gcp-compute-persistent-disk-csi-driver-win |
| 14 | + spec: |
| 15 | + # Host network must be used for interaction with Workload Identity in GKE |
| 16 | + # since it replaces GCE Metadata Server with GKE Metadata Server. Remove |
| 17 | + # this requirement when issue is resolved and before any exposure of |
| 18 | + # metrics ports. But hostNetwork is not working for Windows, might be an issue |
| 19 | + # when deploying on GKE Windows node. |
| 20 | + # hostNetwork: true |
| 21 | + priorityClassName: csi-gce-pd-node |
| 22 | + serviceAccountName: csi-gce-pd-node-sa |
| 23 | + nodeSelector: |
| 24 | + kubernetes.io/os: windows |
| 25 | + containers: |
| 26 | + - name: csi-driver-registrar |
| 27 | + image: gcr.io/k8s-staging-csi/csi-node-driver-registrar-win |
| 28 | + args: |
| 29 | + - --v=5 |
| 30 | + - --csi-address=unix://C:\\csi\\csi.sock |
| 31 | + - --kubelet-registration-path=C:\\var\\lib\\kubelet\\plugins\\pd.csi.storage.gke.io\\csi.sock |
| 32 | + env: |
| 33 | + - name: KUBE_NODE_NAME |
| 34 | + valueFrom: |
| 35 | + fieldRef: |
| 36 | + fieldPath: spec.nodeName |
| 37 | + volumeMounts: |
| 38 | + - name: plugin-dir |
| 39 | + mountPath: /csi |
| 40 | + - name: registration-dir |
| 41 | + mountPath: /registration |
| 42 | + - name: gce-pd-driver |
| 43 | + # Don't change base image without changing pdImagePlaceholder in |
| 44 | + # test/k8s-integration/main.go |
| 45 | + image: gke.gcr.io/gcp-compute-persistent-disk-csi-driver-win |
| 46 | + args: |
| 47 | + - "--v=5" |
| 48 | + - "--endpoint=unix:/csi/csi.sock" |
| 49 | + volumeMounts: |
| 50 | + - name: kubelet-dir |
| 51 | + mountPath: C:\var\lib\kubelet |
| 52 | + mountPropagation: "None" |
| 53 | + - name: plugin-dir |
| 54 | + mountPath: C:\csi |
| 55 | + - name: csi-proxy-disk-pipe |
| 56 | + mountPath: \\.\pipe\csi-proxy-disk-v1alpha1 |
| 57 | + - name: csi-proxy-volume-pipe |
| 58 | + mountPath: \\.\pipe\csi-proxy-volume-v1alpha1 |
| 59 | + - name: csi-proxy-filesystem-pipe |
| 60 | + mountPath: \\.\pipe\csi-proxy-filesystem-v1alpha1 |
| 61 | + volumes: |
| 62 | + - name: csi-proxy-disk-pipe |
| 63 | + hostPath: |
| 64 | + path: \\.\pipe\csi-proxy-disk-v1alpha1 |
| 65 | + type: "" |
| 66 | + - name: csi-proxy-volume-pipe |
| 67 | + hostPath: |
| 68 | + path: \\.\pipe\csi-proxy-volume-v1alpha1 |
| 69 | + type: "" |
| 70 | + - name: csi-proxy-filesystem-pipe |
| 71 | + hostPath: |
| 72 | + path: \\.\pipe\csi-proxy-filesystem-v1alpha1 |
| 73 | + type: "" |
| 74 | + - name: registration-dir |
| 75 | + hostPath: |
| 76 | + path: \var\lib\kubelet\plugins_registry |
| 77 | + - name: kubelet-dir |
| 78 | + hostPath: |
| 79 | + path: \var\lib\kubelet |
| 80 | + - name: plugin-dir |
| 81 | + hostPath: |
| 82 | + path: \var\lib\kubelet\plugins\pd.csi.storage.gke.io |
0 commit comments