当前位置:网站首页>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边栏推荐
- Numpy random number
- Svn correlation
- Text horizontal alignment attribute text align and element vertical alignment attribute vertical align
- 2020-12-18
- How can the intelligent transformation path of manufacturing enterprises be broken due to talent shortage and high cost?
- 1.19 learning summary
- 1064 (42000) error occurred when installing MySQL and modifying root password
- Laravel framework Alipay payment fails to receive asynchronous callback request [original]
- Large numbers (C language)
- 22.2.8
猜你喜欢

PHP small factory moves bricks for three years - interview series - my programming life

1.11 learning summary

Sixtool- source code of multi-functional and all in one generation hanging assistant

修改Oracle连接数

Stm8 MCU ADC sampling function is triggered by timer
![[H5 development] 03- take you hand in hand to improve H5 development - single submission vs batch submission with a common interface](/img/37/84b7d59818e854dac71d6f06700cde.jpg)
[H5 development] 03- take you hand in hand to improve H5 development - single submission vs batch submission with a common interface

1.24 learning summary

Rdkit chemical formula molecular formula search

2021-02-07

1.21 learning summary
随机推荐
redis集群的方式
What is the best way to store chat messages in a database? [Close] - best way to store chat messages in a database? [closed]
Clean up photo SCR virus / iframekill injection removal /iframekill removal photo scr
Numpy index and slice
Notes on enterprise wechat development [original]
Oracle data pump table
Thinkphp6 parsing QR code
2021-02-07
做软件测试学历重要还是能力重要
PHP splits a string into arrays
Install SVN in Pagoda and build SVN version Library
An unexpected attempt (Imperial CMS list template filters spaces and newlines in smalltext introduction)
修改Oracle连接数
SSH password free login, my server password free login to the other server, the other server password free login to your server
Tp6 multi table Association (table a is associated with table B, table B is associated with table C, and table d)
Navicat connects the pit of shardingsphere sub table and sub library plug-ins
Navicat connects the pit of shardingsphere sub table and sub library plug-ins
Tips for using idea
1.13 learning summary
2022 talent strategic transformation under the development trend of digital economy