fix: force CSI endpoint socket for controller and node
This commit is contained in:
@@ -13,6 +13,14 @@
|
|||||||
command: kubectl apply -f {{ csi_manifest_url }}
|
command: kubectl apply -f {{ csi_manifest_url }}
|
||||||
changed_when: true
|
changed_when: true
|
||||||
|
|
||||||
|
- name: Ensure CSI controller endpoint is set for sidecars
|
||||||
|
command: kubectl -n kube-system set env deployment/hcloud-csi-controller CSI_ENDPOINT=unix:///run/csi/socket
|
||||||
|
changed_when: true
|
||||||
|
|
||||||
|
- name: Ensure CSI node endpoint is set for sidecars
|
||||||
|
command: kubectl -n kube-system set env daemonset/hcloud-csi-node CSI_ENDPOINT=unix:///run/csi/socket
|
||||||
|
changed_when: true
|
||||||
|
|
||||||
- name: Restart CSI controller to pick up current secret
|
- name: Restart CSI controller to pick up current secret
|
||||||
command: kubectl -n kube-system rollout restart deployment/hcloud-csi-controller
|
command: kubectl -n kube-system rollout restart deployment/hcloud-csi-controller
|
||||||
changed_when: true
|
changed_when: true
|
||||||
|
|||||||
Reference in New Issue
Block a user