当前位置:网站首页>Solution to back-off restarting failed container
Solution to back-off restarting failed container
2022-06-26 04:41:00 【hay_ lee】
1. problem
pod Always restart after startup , Consolidated report Back-off restarting failed container.
principle :
Back-off restarting failed container Of Warning event , Generally, the container is started through the specified image , There is no resident process inside the container , This causes the container to exit after it is successfully started , Thus, a continuous restart is carried out .
2. Solution
resolvent : Find the corresponding 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边栏推荐
- Gateway can not connect to tcp://127.0.0.1: Connection refused
- 1.18 learning summary
- [H5 development] 01 take you to experience H5 development from a simple page ~ the whole page implementation process from static page to interface adjustment manual teaching
- PHP get mobile number operator
- PHP inherited in class return does not work
- Laravel framework Alipay payment fails to receive asynchronous callback request [original]
- Resolve PHP is not an internal or external command
- Text horizontal alignment attribute text align and element vertical alignment attribute vertical align
- PHP has the problem of using strtotime to obtain time in months and months [original]
- PHP small factory moves bricks for three years - interview series - my programming life
猜你喜欢

NPM installation tutorial

1.12 learning summary

Dameng database backup and restore

How can the intelligent transformation path of manufacturing enterprises be broken due to talent shortage and high cost?

0622-马棕榈跌9%

The statistics in the MySQL field become strings, and then they are converted into numbers for sorting

#微信小程序# 在小程序里面退出退出小程序(navigator以及API--wx.exitMiniProgram)

Thinkphp6 using kindeditor

2.9 learning summary

NVM installation and use and NPM package installation failure record
随机推荐
2.8 learning summary
Oracle data pump table
Multipass中文文档-提高挂载性能
Create alicloud test instances
Zhimeng CMS will file a lawsuit against infringing websites
PHP splits a string into arrays
NPM installation tutorial
Composer version rollback version switching
Add, delete, modify and query curd in PHP native SQL
1.24 learning summary
Compiling and installing phpredis extension on MAC
Numpy general function
A method of quickly transplanting library function code to register code by single chip microcomputer
Motivational skills for achieving goals
Group by and order by are used together
1.13 learning summary
2022.2.17
2022.1.23
Laravel uses phpword to generate word documents
OSS CDN alicloud configuration method