ソースを参照

adding prestop hook

afeiszli 3 年 前
コミット
68c7b87717
1 ファイル変更4 行追加0 行削除
  1. 4 0
      k8s/client/netclient-daemonset.yaml

+ 4 - 0
k8s/client/netclient-daemonset.yaml

@@ -25,6 +25,10 @@ spec:
           name: etc-netclient
         securityContext:
           privileged: true
+        lifecycle:
+          preStop:
+            exec:
+              command: ["/root/netclient","uninstall"]
       volumes:
       - hostPath:
           # change path for every netclient deployed, e.g. /etc/netclient-1, /etc/netclient-2, etc.