@@ -22,13 +22,21 @@ spec:
22
22
serviceAccountName : csi-gce-pd-node-sa-win
23
23
nodeSelector :
24
24
kubernetes.io/os : windows
25
+ hostNetwork : true
26
+ securityContext :
27
+ windowsOptions :
28
+ hostProcess : true
29
+ runAsUserName : " NT AUTHORITY\\ SYSTEM" # TODO: customize
25
30
containers :
26
31
- name : csi-driver-registrar
27
32
image : k8s.gcr.io/sig-storage/csi-node-driver-registrar
33
+ command :
34
+ - csi-node-driver-registrar.exe
28
35
args :
29
36
- --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
37
+ - --csi-address=unix://c:\var\lib\kubelet\plugins\pd.csi.storage.gke.io\csi.sock
38
+ - --kubelet-registration-path=/var/lib/kubelet/plugins/pd.csi.storage.gke.io/csi.sock
39
+ - --plugin-registration-path=/var/lib/kubelet/plugins_registry
32
40
env :
33
41
- name : KUBE_NODE_NAME
34
42
valueFrom :
@@ -37,74 +45,20 @@ spec:
37
45
volumeMounts :
38
46
- name : plugin-dir
39
47
mountPath : /csi
40
- - name : registration-dir
41
- mountPath : /registration
42
48
- name : gce-pd-driver
43
49
# Don't change base image without changing pdImagePlaceholder in
44
50
# test/k8s-integration/main.go
45
51
image : gke.gcr.io/gcp-compute-persistent-disk-csi-driver
52
+ command :
53
+ - gce-pd-csi-driver.exe
46
54
args :
47
- - " --v=5"
48
- - " --endpoint=unix:/csi/csi.sock"
49
- - " --run-controller-service=false"
50
- volumeMounts :
51
- - name : kubelet-dir
52
- mountPath : C:\var\lib\kubelet
53
- mountPropagation : " None"
54
- - name : plugin-dir
55
- mountPath : C:\csi
56
- - name : csi-proxy-volume-v1
57
- mountPath : \\.\pipe\csi-proxy-volume-v1
58
- - name : csi-proxy-filesystem-v1
59
- mountPath : \\.\pipe\csi-proxy-filesystem-v1
60
- - name : csi-proxy-disk-v1
61
- mountPath : \\.\pipe\csi-proxy-disk-v1
62
- # these paths are still included for compatibility, they're used
63
- # only if the node has still the beta version of the CSI proxy
64
- - name : csi-proxy-volume-v1beta1
65
- mountPath : \\.\pipe\csi-proxy-volume-v1beta1
66
- - name : csi-proxy-filesystem-v1beta1
67
- mountPath : \\.\pipe\csi-proxy-filesystem-v1beta1
68
- - name : csi-proxy-disk-v1beta2
69
- mountPath : \\.\pipe\csi-proxy-disk-v1beta2
55
+ - --v=5
56
+ - --endpoint=unix:/c:\var\lib\kubelet\plugins\pd.csi.storage.gke.io\csi.sock
57
+ - --run-controller-service=false
70
58
volumes :
71
- - name : csi-proxy-disk-v1
72
- hostPath :
73
- path : \\.\pipe\csi-proxy-disk-v1
74
- type : " "
75
- - name : csi-proxy-volume-v1
76
- hostPath :
77
- path : \\.\pipe\csi-proxy-volume-v1
78
- type : " "
79
- - name : csi-proxy-filesystem-v1
80
- hostPath :
81
- path : \\.\pipe\csi-proxy-filesystem-v1
82
- type : " "
83
- # these paths are still included for compatibility, they're used
84
- # only if the node has still the beta version of the CSI proxy
85
- - name : csi-proxy-disk-v1beta2
86
- hostPath :
87
- path : \\.\pipe\csi-proxy-disk-v1beta2
88
- type : " "
89
- - name : csi-proxy-volume-v1beta1
90
- hostPath :
91
- path : \\.\pipe\csi-proxy-volume-v1beta1
92
- type : " "
93
- - name : csi-proxy-filesystem-v1beta1
94
- hostPath :
95
- path : \\.\pipe\csi-proxy-filesystem-v1beta1
96
- type : " "
97
- - name : registration-dir
98
- hostPath :
99
- path : \var\lib\kubelet\plugins_registry
100
- type : Directory
101
- - name : kubelet-dir
102
- hostPath :
103
- path : \var\lib\kubelet
104
- type : Directory
105
59
- name : plugin-dir
106
60
hostPath :
107
- path : \ var\ lib\ kubelet\ plugins\ pd.csi.storage.gke.io
61
+ path : / var/ lib/ kubelet/ plugins/ pd.csi.storage.gke.io
108
62
type : DirectoryOrCreate
109
63
tolerations :
110
64
- operator : Exists
0 commit comments