File tree 3 files changed +48
-2
lines changed
3 files changed +48
-2
lines changed Original file line number Diff line number Diff line change 34
34
labels :
35
35
app : csi-hostpathplugin
36
36
spec :
37
+ serviceAccount : csi-external-health-monitor-controller
37
38
containers :
38
39
- name : node-driver-registrar
39
40
image : k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.0.1
59
60
name : registration-dir
60
61
- mountPath : /csi-data-dir
61
62
name : csi-data-dir
62
-
63
+ - name : csi-external-health-monitor-controller
64
+ image : k8s.gcr.io/sig-storage/csi-external-health-monitor-controller:v0.1.0
65
+ args :
66
+ - " --v=5"
67
+ - " --csi-address=$(ADDRESS)"
68
+ - " --leader-election"
69
+ env :
70
+ - name : ADDRESS
71
+ value : /csi/csi.sock
72
+ imagePullPolicy : " IfNotPresent"
73
+ volumeMounts :
74
+ - name : socket-dir
75
+ mountPath : /csi
63
76
- name : hostpath
64
77
image : k8s.gcr.io/sig-storage/hostpathplugin:v1.4.0
65
78
args :
Original file line number Diff line number Diff line change 34
34
labels :
35
35
app : csi-hostpathplugin
36
36
spec :
37
+ serviceAccount : csi-external-health-monitor-controller
37
38
containers :
38
39
- name : node-driver-registrar
39
40
image : k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.0.1
60
61
- mountPath : /csi-data-dir
61
62
name : csi-data-dir
62
63
64
+ - name : csi-external-health-monitor-agent
65
+ image : k8s.gcr.io/sig-storage/csi-external-health-monitor-agent:v0.1.0
66
+ args :
67
+ - " --v=5"
68
+ - " --csi-address=$(ADDRESS)"
69
+ env :
70
+ - name : NODE_NAME
71
+ valueFrom :
72
+ fieldRef :
73
+ fieldPath : spec.nodeName
74
+ - name : ADDRESS
75
+ value : /csi/csi.sock
76
+ imagePullPolicy : " IfNotPresent"
77
+ volumeMounts :
78
+ - name : socket-dir
79
+ mountPath : /csi
80
+ - name : csi-external-health-monitor-controller
81
+ image : k8s.gcr.io/sig-storage/csi-external-health-monitor-controller:v0.1.0
82
+ args :
83
+ - " --v=5"
84
+ - " --csi-address=$(ADDRESS)"
85
+ - " --leader-election"
86
+ - " --list-volumes-interval=1m"
87
+ env :
88
+ - name : ADDRESS
89
+ value : /csi/csi.sock
90
+ imagePullPolicy : " IfNotPresent"
91
+ volumeMounts :
92
+ - name : socket-dir
93
+ mountPath : /csi
63
94
- name : hostpath
64
95
image : k8s.gcr.io/sig-storage/hostpathplugin:v1.4.0
65
96
args :
Original file line number Diff line number Diff line change @@ -116,6 +116,8 @@ if version_gt $(rbac_version "${BASE_DIR}/hostpath/csi-hostpath-snapshotter.yaml
116
116
SNAPSHOTTER_RBAC_RELATIVE_PATH=" csi-snapshotter/rbac-csi-snapshotter.yaml"
117
117
fi
118
118
119
+ CSI_EXTERNAL_HEALTH_MONITOR_RBAC_YAML=" https://raw.githubusercontent.com/kubernetes-csi/external-health-monitor/$( rbac_version " ${BASE_DIR} /hostpath/csi-hostpath-plugin.yaml" csi-external-health-monitor-controller false) /deploy/kubernetes/external-health-monitor-controller/rbac.yaml"
120
+ : ${CSI_EXTERNAL_HEALTH_MONITOR_RBAC:= https:// raw.githubusercontent.com/ kubernetes-csi/ external-health-monitor/ $(rbac_version " ${BASE_DIR} /hostpath/csi-hostpath-plugin.yaml" csi-external-health-monitor-controller " ${UPDATE_RBAC_RULES} " )/ deploy/ kubernetes/ external-health-monitor-controller/ rbac.yaml}
119
121
CSI_PROVISIONER_RBAC_YAML=" https://raw.githubusercontent.com/kubernetes-csi/external-provisioner/$( rbac_version " ${BASE_DIR} /hostpath/csi-hostpath-provisioner.yaml" csi-provisioner false) /deploy/kubernetes/rbac.yaml"
120
122
: ${CSI_PROVISIONER_RBAC:= https:// raw.githubusercontent.com/ kubernetes-csi/ external-provisioner/ $(rbac_version " ${BASE_DIR} /hostpath/csi-hostpath-provisioner.yaml" csi-provisioner " ${UPDATE_RBAC_RULES} " )/ deploy/ kubernetes/ rbac.yaml}
121
123
CSI_ATTACHER_RBAC_YAML=" https://raw.githubusercontent.com/kubernetes-csi/external-attacher/$( rbac_version " ${BASE_DIR} /hostpath/csi-hostpath-attacher.yaml" csi-attacher false) /deploy/kubernetes/rbac.yaml"
@@ -140,7 +142,7 @@ run () {
140
142
141
143
# rbac rules
142
144
echo " applying RBAC rules"
143
- for component in CSI_PROVISIONER CSI_ATTACHER CSI_SNAPSHOTTER CSI_RESIZER; do
145
+ for component in CSI_PROVISIONER CSI_ATTACHER CSI_SNAPSHOTTER CSI_RESIZER CSI_EXTERNAL_HEALTH_MONITOR ; do
144
146
eval current=" \$ {${component} _RBAC}"
145
147
eval original=" \$ {${component} _RBAC_YAML}"
146
148
if [ " $current " != " $original " ]; then
You can’t perform that action at this time.
0 commit comments