Skip to content

Instantly share code, notes, and snippets.

@ddebroy
Created September 30, 2019 16:34
Show Gist options
  • Select an option

  • Save ddebroy/7bef6a63ad8a8c1840a52e39f6afa460 to your computer and use it in GitHub Desktop.

Select an option

Save ddebroy/7bef6a63ad8a8c1840a52e39f6afa460 to your computer and use it in GitHub Desktop.

Revisions

  1. ddebroy revised this gist Sep 30, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gcepd.yaml
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    kind: DaemonSet
    apiVersion: apps/v1
    metadata:
    name: csi-gce-pd-node-win
  2. ddebroy created this gist Sep 30, 2019.
    75 changes: 75 additions & 0 deletions gcepd.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,75 @@
    apiVersion: apps/v1
    metadata:
    name: csi-gce-pd-node-win
    spec:
    selector:
    matchLabels:
    app: gcp-compute-persistent-disk-csi-driver-win
    template:
    metadata:
    labels:
    app: gcp-compute-persistent-disk-csi-driver-win
    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: ddebroy/drv-reg
    args:
    - "--v=5"
    - "--csi-address=unix://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:
    fieldRef:
    fieldPath: spec.nodeName
    volumeMounts:
    - name: plugin-dir
    mountPath: C:\csi
    - name: registration-dir
    mountPath: C:\registration
    - name: test-dir
    mountPath: c:\temp
    - name: gce-pd-driver
    securityContext:
    privileged: true
    image: ddebroy/gce-win
    args:
    - "--v=5"
    - "--endpoint=unix:/csi/csi.sock"
    volumeMounts:
    - name: kubelet-dir
    mountPath: C:\var\lib\kubelet
    - name: plugin-dir
    mountPath: C:\csi
    - name: test-dir
    mountPath: C:\temp
    - name: csi-pipe
    mountPath: \\.\pipe\csipipe
    volumes:
    - name: csi-pipe
    hostPath:
    path: \\.\pipe\csipipe
    type: ""
    - name: registration-dir
    hostPath:
    path: C:\var\lib\kubelet\plugins_registry\
    type: Directory
    - name: kubelet-dir
    hostPath:
    path: C:\var\lib\kubelet\
    type: Directory
    - name: test-dir
    hostPath:
    path: C:\temp\
    type: DirectoryOrCreate
    - name: plugin-dir
    hostPath:
    path: C:\var\lib\kubelet\plugins\pd.csi.storage.gke.io\