Skip to content

Commit 8fb7fe1

Browse files
authored
Merge pull request #149 from davidz627/feature/preStopSocketcleanup
Add preStop hook to remove registration sockets when driver registrar node container goes down
2 parents ed8c03c + f208819 commit 8fb7fe1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

deploy/kubernetes/base/node.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ spec:
2020
- "--v=5"
2121
- "--csi-address=$(ADDRESS)"
2222
- "--kubelet-registration-path=/var/lib/kubelet/plugins/com.google.csi.gcepd/csi.sock"
23+
lifecycle:
24+
preStop:
25+
exec:
26+
command: ["/bin/sh", "-c", "rm -rf /registration/com.google.csi.gcepd /registration/com.google.csi.gcepd-reg.sock"]
2327
env:
2428
- name: ADDRESS
2529
value: /var/lib/kubelet/plugins/com.google.csi.gcepd/csi.sock

0 commit comments

Comments
 (0)