(九)Kubernetes资源清单-start、stop、相位

一、演示模板(生命周期模板)

  

  postStart: 启动时 

    exec: 运行了一条命令

    command:命令内容

  preStop:退出时

          exec:执行了一条命令

    command:["/usr/sbin/nginx","-s","quit"]  退出命令

 

 

 二、Pod phase可能存在的值(启动状态)

  

 

 

    

 

posted on 2021-04-18 16:14  向往的生活  阅读(67)  评论(0编辑  收藏  举报

导航

页面底部