forked from kubernetes-sigs/vsphere-csi-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vsphere-csi-node-windows-ds.yaml
134 lines (134 loc) · 4.19 KB
/
vsphere-csi-node-windows-ds.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: vsphere-csi-node-windows
namespace: kube-system
spec:
selector:
matchLabels:
app: vsphere-csi-node-windows
template:
metadata:
labels:
app: vsphere-csi-node-windows
role: vsphere-csi-windows
spec:
nodeSelector:
kubernetes.io/os: windows
containers:
- args:
- --v=5
- --csi-address=$(ADDRESS)
- --kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)
env:
- name: ADDRESS
value: unix://C:\\csi\\csi.sock
- name: DRIVER_REG_SOCK_PATH
value: C:\\var\\lib\\kubelet\\plugins\\csi.vsphere.vmware.com\\csi.sock
image: k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.1.0
name: node-driver-registrar
resources: {}
volumeMounts:
- mountPath: /csi
name: plugin-dir
- mountPath: /registration
name: registration-dir
- env:
- name: CSI_ENDPOINT
value: unix://C:\\csi\\csi.sock
- name: X_CSI_MODE
value: node
- name: X_CSI_SPEC_REQ_VALIDATION
value: "false"
- name: VSPHERE_CSI_CONFIG
value: /etc/cloud/csi-vsphere.conf
- name: LOGGER_LEVEL
value: DEVELOPMENT
- name: X_CSI_LOG_LEVEL
value: DEBUG
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
image: gcr.io/cf-london-servces-k8s/gs/csi-driver:latest
imagePullPolicy: Always
# livenessProbe:
# failureThreshold: 3
# httpGet:
# path: /healthz
# port: healthz
# initialDelaySeconds: 10
# periodSeconds: 5
# timeoutSeconds: 3
name: vsphere-csi-node
ports:
- containerPort: 9808
name: healthz
protocol: TCP
resources: {}
securityContext:
allowPrivilegeEscalation: true
capabilities:
add:
- SYS_ADMIN
privileged: true
volumeMounts:
- mountPath: /etc/cloud
name: vsphere-config-volume
- mountPath: /csi
name: plugin-dir
- mountPath: /var/lib/kubelet
mountPropagation: Bidirectional
name: pods-mount-dir
- name: csi-proxy-disk-pipe
mountPath: \\.\pipe\csi-proxy-disk-v1beta2
- name: csi-proxy-filesystem-pipe
mountPath: \\.\pipe\csi-proxy-filesystem-v1beta1
- name: csi-proxy-volume-pipe
mountPath: \\.\pipe\csi-proxy-volume-v1beta2
# - mountPath: /dev
# name: device-dir
# - args:
# - --csi-address=/csi/csi.sock
# image: quay.io/k8scsi/livenessprobe:v1.1.0
# name: liveness-probe
# resources: {}
# volumeMounts:
# - mountPath: /csi
# name: plugin-dir
dnsPolicy: Default
tolerations:
- effect: NoSchedule
operator: Exists
- effect: NoExecute
operator: Exists
volumes:
- name: vsphere-config-volume
secret:
secretName: csi-vsphere-config
- hostPath:
path: C:\var\lib\kubelet\plugins_registry\
type: Directory
name: registration-dir
- hostPath:
path: C:\var\lib\kubelet\plugins\csi.vsphere.vmware.com\
type: DirectoryOrCreate
name: plugin-dir
- hostPath:
path: /var/lib/kubelet
type: Directory
name: pods-mount-dir
- name: csi-proxy-disk-pipe
hostPath:
path: \\.\pipe\csi-proxy-disk-v1beta2
type: null
- name: csi-proxy-filesystem-pipe
hostPath:
path: \\.\pipe\csi-proxy-filesystem-v1beta1
type: null
- name: csi-proxy-volume-pipe
hostPath:
path: \\.\pipe\csi-proxy-volume-v1beta2
type: null
updateStrategy:
type: RollingUpdate