Browse Source

adding prestop hook

afeiszli 3 năm trước cách đây
mục cha
commit
68c7b87717
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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.