1.问题

pod启动后一直重启,并报Back-off restarting failed container。

原理:

Back-off restarting failed container的Warning事件,一般是由于通过指定的镜像启动容器后,容器内部没有常驻进程,导致容器启动成功后即退出,从而进行了持续的重启。

2.解决方案

解决方法:找到对应的deployment command: ["/bin/bash", "-ce", "tail -f /dev/null"]

apiVersion: apps/v1
kind: Deployment
metadata:name: test-filenamespace: modellabels:appkey: test-file
spec:replicas: 1selector:matchLabels:appkey: test-filetemplate:metadata:labels:appkey: test-filespec:containers:- name: test-fileimage: xxx:v1command: ["/bin/bash", "-ce", "tail -f /dev/null"]imagePullPolicy: IfNotPresentvolumeMounts:- name: test-file-datamountPath: /mntvolumes:- name: test-file-datahostPath: path: /mnt

BACK-OFF RESTARTING FAILED CONTAINER 的解决方法相关推荐

  1. Back-off restarting failed container

    所遇问题 Back-off restarting failed container 基本原理 Back-off restarting failed container的Warning事件,一般是由于通 ...

  2. Back-off restarting failed container报错

    我的配置文件中有这样一小段 apiVersion: v1 kind: Pod metadata: name: busyboxnamespace: defaultlabels:app: busybox ...

  3. recipe for target ‘***‘ failed 问题的解决方法

    recipe for target '' failed* 问题的解决方法 可能性1: https://blog.csdn.net/weixin_48156266/article/details/123 ...

  4. go get 下载包时提示 nnection failed because connected host has failed to respond 解决方法.

    go get 下载包时提示 nnection failed because connected host has failed to respond 解决方法. 第一步: 打开 cmd 输入命令配置国 ...

  5. linux ssh 报错 Write failed: Broken pipe 解决方法

    目录 原理 方法1:通过客户端配置 方法2:服务器端配置 方法3:临时SSH命令配置 总结 在使用SSH连接远程服务器的时候,如果长时间不操作,再次进入 Terminal 时就会有卡死一段时间没有响应 ...

  6. crs-4124   Oracle 11gR2 RAC ohasd failed to start 解决方法

    CRS-4124: Oracle High Availability Services startup failed. CRS-4000: Command Start failed, or compl ...

  7. dd var tmp .oracle,Oracle 11gR2 RAC ohasd failed to start 解决方法

    rcrCRS-4124: Oracle High Availability Services startup failed. CRS-4000: Command Start failed, or co ...

  8. Django配置163邮箱出现 authentication failed(535)错误解决方法

    2019独角兽企业重金招聘Python工程师标准>>> 最近用Django写某网站,当配置163邮箱设置完成后,出现535错误即:smtplib.SMTPAuthentication ...

  9. [RabbitMQ]Windows环境下rabbitmqclt(Command Line Tools)出现Erlang distribution failed错误的解决方法...

    摘要 当使用rabbitmqctl时出现Erlang distribution failed,把%SystemRoot%Windows\System32\config\systemprofile下的. ...

最新文章

  1. [jqpolt] formatString 日期格式化列表
  2. IDEA mybatis 在service无法使用@Autowired , could not autowire
  3. 前端发给后台的参数中含有中文
  4. 2015-03-19 My Appointment text read case
  5. 7-37 整数分解为若干项之和 (20 分)(dfs)
  6. Vue.js - Day4
  7. TBSchedule原理与实践
  8. 同一操作系统中安装多个不同版本谷歌Chrome浏览器
  9. add new color number to the color drop down in enovia PLM
  10. 本周最新文献速递20220227
  11. 计算机在语文教学中,计算机技术在语文教学中的运用
  12. 浅谈海明码,码距及其计算问题(看过的都明白了)
  13. 阿里巴巴实习一年之后的感悟
  14. 怎么用python写数据库_Python实现数据库编程方法详解
  15. 朋友圈内容防折叠不折叠小技巧
  16. C# Development 13 Things Every C# Developer Should Know--C#开发人员应该知道的13件事情
  17. Levenberger-Marquardt for nonlinear elliptical system
  18. 【2013Esri中国用户大会】ArcGIS的大数据挖掘和并行处理
  19. Sophie‘s World 《苏菲的世界》
  20. js websocket同步等待_javascript – 如何等待WebSocket的readyState更改

热门文章

  1. 《Linux C编程从入门到精通》——1.4 Linux的常用命令
  2. BZOJ1067降雨量
  3. 螺旋矩阵---易懂系列
  4. 字符串格式化:Formatter类
  5. Android Watchdog框架解析、应用与改造(上)
  6. 应对长尾分布的目标检测 -- Balanced Group Softmax
  7. μC/OS-II或III移植时keil里面的文件有个金黄色小钥匙的原因
  8. yun2win即时通讯云-最安全的即时通讯云服务
  9. Non-Reflecting Boundary Conditions in OpenFOAM
  10. 2019郑大计算机考研分,2019年郑大分数线未出?郑州大学近三年考研分数线汇总...