当前位置:网站首页>BACK-OFF RESTARTING FAILED CONTAINER 的解决方法
BACK-OFF RESTARTING FAILED CONTAINER 的解决方法
2022-06-26 04:33:00 【hay_lee】
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-file
namespace: model
labels:
appkey: test-file
spec:
replicas: 1
selector:
matchLabels:
appkey: test-file
template:
metadata:
labels:
appkey: test-file
spec:
containers:
- name: test-file
image: xxx:v1
command: ["/bin/bash", "-ce", "tail -f /dev/null"]
imagePullPolicy: IfNotPresent
volumeMounts:
- name: test-file-data
mountPath: /mnt
volumes:
- name: test-file-data
hostPath:
path: /mnt边栏推荐
- Video label forbids downloading. The test is valid. Hide button. The test is valid at three points
- Zhubo Huangyu: you can try these non-agricultural operation skills
- OSS CDN alicloud configuration method
- 问题随记 —— pip 换源
- Group by and order by are used together
- [Qunhui] this suite requires you to start PgSQL adapter service
- ctf [RoarCTF 2019]easy_ calc
- Mysql8.0 configuring my SQL in INI file_ mode=NO_ AUTO_ CREATE_ User can start
- Laravel access error could not be opened
- Composer version rollback version switching
猜你喜欢

pip 批量完全卸载包

Motivational skills for achieving goals

一幅脑图总结一下需求分析(工作上实际遇到的情况的补充)
![Alipay failed to verify the signature (sandbox test indicates fishing risk?) [original]](/img/64/c3bb27a3711a6f0cc7b281d1a961af.jpg)
Alipay failed to verify the signature (sandbox test indicates fishing risk?) [original]

Introduction to markdown grammar

Install Damon database

Performance test comparison between PHP framework jsnpp and thinkphp6

OSS CDN alicloud configuration method

How to carry out word-of-mouth marketing for enterprises' products and services? Can word of mouth marketing be done on behalf of others?

CTF PHP audit bypasses filtering learning from topics
随机推荐
Mysql8.0 configuring my SQL in INI file_ mode=NO_ AUTO_ CREATE_ User can start
Mobile terminal pull-down loading pull-down loading data
NPM installation tutorial
1.14 learning summary
[Qunhui] this suite requires you to start PgSQL adapter service
Add, delete, modify and query curd in PHP native SQL
2021-02-07
问题随记 —— pip 换源
Thinkphp6 implements a simple lottery system
digital image processing
Report on the "fourteenth five year plan" and future development direction of global and Chinese indoor vertical farms from 2022 to 2028
Understand CGI and fastcgi
Laravel file stream download file
Minecraft 1.16.5 biochemical 8 module 1.9 version 1.18 version synchronization
[Qunhui] no port access (reverse proxy + intranet penetration)
MySQL index details
08_ Spingboot integrated redis
PHP installation SSH2 extension
1.17 learning summary
SQL related knowledge - DDL