Created
May 18, 2019 18:55
-
-
Save ddebroy/e55251faebd249cae131b23e723c6168 to your computer and use it in GitHub Desktop.
Diffs for GCE PD daemonset for Windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/deploy/kubernetes/base/node.yaml b/deploy/kubernetes/base/node.yaml | |
| index 5195b34..80d6ea5 100644 | |
| --- a/deploy/kubernetes/base/node.yaml | |
| +++ b/deploy/kubernetes/base/node.yaml | |
| @@ -13,17 +13,20 @@ spec: | |
| app: gcp-compute-persistent-disk-csi-driver | |
| spec: | |
| serviceAccountName: csi-node-sa | |
| + tolerations: | |
| + - key: "node.kubernetes.io/os" | |
| + operator: "Equal" | |
| + value: "win1809" | |
| + effect: "NoSchedule" | |
| + nodeSelector: | |
| + beta.kubernetes.io/os: windows | |
| containers: | |
| - name: csi-driver-registrar | |
| - image: MUSTPATCHWITHKUSTOMIZE | |
| + image: ddebroy/drv-reg | |
| args: | |
| - "--v=5" | |
| - - "--csi-address=/csi/csi.sock" | |
| - - "--kubelet-registration-path=/var/lib/kubelet/plugins/pd.csi.storage.gke.io/csi.sock" | |
| - lifecycle: | |
| - preStop: | |
| - exec: | |
| - command: ["/bin/sh", "-c", "rm -rf /registration/pd.csi.storage.gke.io /registration/pd.csi.storage.gke.io-reg.sock"] | |
| + - "--csi-address=C:\\csi\\csi.sock" | |
| + - "--kubelet-registration-path=C:\\var\\lib\\kubelet\\plugins\\pd.csi.storage.gke.io\\csi.sock" | |
| env: | |
| - name: KUBE_NODE_NAME | |
| valueFrom: | |
| @@ -31,64 +34,32 @@ spec: | |
| fieldPath: spec.nodeName | |
| volumeMounts: | |
| - name: plugin-dir | |
| - mountPath: /csi | |
| + mountPath: C:\\csi | |
| - name: registration-dir | |
| - mountPath: /registration | |
| + mountPath: C:\\registration | |
| - name: gce-pd-driver | |
| securityContext: | |
| privileged: true | |
| - image: MUSTPATCHWITHKUSTOMIZE | |
| + image: ddebroy/gcp-pd | |
| args: | |
| - "--v=5" | |
| - "--endpoint=unix:/csi/csi.sock" | |
| volumeMounts: | |
| - name: kubelet-dir | |
| - mountPath: /var/lib/kubelet | |
| + mountPath: C:\\var\\lib\\kubelet | |
| mountPropagation: "Bidirectional" | |
| - name: plugin-dir | |
| - mountPath: /csi | |
| - - name: device-dir | |
| - mountPath: /dev | |
| - # The following mounts are required to trigger host udevadm from container | |
| - - name: udev-rules-etc | |
| - mountPath: /etc/udev | |
| - - name: udev-rules-lib | |
| - mountPath: /lib/udev | |
| - - name: udev-socket | |
| - mountPath: /run/udev | |
| - - name: sys | |
| - mountPath: /sys | |
| + mountPath: C:\\csi | |
| volumes: | |
| - name: registration-dir | |
| hostPath: | |
| - path: /var/lib/kubelet/plugins_registry/ | |
| + path: C:\\var\\lib\\kubelet\\plugins_registry\\ | |
| type: Directory | |
| - name: kubelet-dir | |
| hostPath: | |
| - path: /var/lib/kubelet | |
| + path: C:\\var\\lib\\kubelet\\ | |
| type: Directory | |
| - name: plugin-dir | |
| hostPath: | |
| - path: /var/lib/kubelet/plugins/pd.csi.storage.gke.io/ | |
| + path: C:\\var\\lib\\kubelet\\plugins\\pd.csi.storage.gke.io\\ | |
| type: DirectoryOrCreate | |
| - - name: device-dir | |
| - hostPath: | |
| - path: /dev | |
| - type: Directory | |
| - # The following mounts are required to trigger host udevadm from container | |
| - - name: udev-rules-etc | |
| - hostPath: | |
| - path: /etc/udev | |
| - type: Directory | |
| - - name: udev-rules-lib | |
| - hostPath: | |
| - path: /lib/udev | |
| - type: Directory | |
| - - name: udev-socket | |
| - hostPath: | |
| - path: /run/udev | |
| - type: Directory | |
| - - name: sys | |
| - hostPath: | |
| - path: /sys | |
| - type: Directory |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment