Skip to content

Instantly share code, notes, and snippets.

@ddebroy
Created September 30, 2019 16:34
Show Gist options
  • Save ddebroy/7bef6a63ad8a8c1840a52e39f6afa460 to your computer and use it in GitHub Desktop.
Save ddebroy/7bef6a63ad8a8c1840a52e39f6afa460 to your computer and use it in GitHub Desktop.
Windows GCE PD CSI daemonset
kind: DaemonSet
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\
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment