apiVersion: v1
kind: Pod
metadata:
name: lifecycle-demo
spec:
containers:
- name:lifecycle-demo-container
image: nginx
1ifecycle:
poststart: #启动时运行
exec:
command: ["/bin/sh","-c","echo Hello from the postStart handler> /usr/share/message"]
prestop: #退出时运行
exec:
command: ["/bin/sh","-c","echo Hello from the poststop handler> /usr/share/message"]

最新文章

  1. iOS之在写一个iOS应用之前必须做的7件事(附相关资源)
  2. (原)String类两种实例化的区别
  3. 【转】【Asp.Net MVC】asp.net mvc Model验证总结及常用正则表达式
  4. leetcode-99 Recover_Binary_Search_Tree
  5. Cocos2d-x数据持久化-查询数据
  6. 之前C#代码的重新设计
  7. node.js url模块
  8. PS软件操作应用—文字特效
  9. Django_form
  10. 在Mac OS X中配置Apache + PHP + MySQL 很详细
  11. Python内置函数(28)——hash
  12. Spring中的AOP 专题
  13. DeleteFile 删除文件
  14. NuGet包和功能
  15. vue-amap | 基于 Vue 2.x 与高德的地图组件
  16. maven 插
  17. 关于Strategy和State设计模式
  18. Cause: java.sql.SQLException: Could not retrieve transation read-only status server
  19. MYSQL中可以实现类似IF判断的方法
  20. UNIX环境高级编程 第5章 标准I/O库

热门文章

  1. [题解] [BZOJ4144] 「AMPPZ2014」Petrol
  2. mysql.zip版本的安装教程
  3. API网关的用处
  4. linux下的什么工具能将DVI文件转换成PostScript文件?
  5. 分JOB实例
  6. windows10下idea快捷键文件
  7. 如何不让Excel图表随源数据改变而改变
  8. AppCode 2016.3 注册码
  9. QFramework 使用指南 2020(九):Res Kit(3)异步加载 与 异步队列加载
  10. QFramework 使用指南 2020 (一): 概述