k8s lifecycle 之 preStop

用法:
在容器deployment 中添加:
        lifecycle:
          preStop:
            exec:
              command:
              - /bin/sh
              - /tmp/stop.sh

 

 
posted @ 2022-03-11 11:42  devops运维-小灰灰  阅读(730)  评论(0编辑  收藏  举报