问题解决:pod报错“Back-off restarting failed container“
Posted 看,未来
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了问题解决:pod报错“Back-off restarting failed container“相关的知识,希望对你有一定的参考价值。
1、找到对应 deployment
2、添加 command: [ “/bin/bash”, “-ce”, “tail -f /dev/null” ]
示例如下:
kind: Deployment
apiVersion: apps/v1beta2
metadata:
labels:
app: jenkins-master
name: jenkins-master-deploy
spec:
replicas: 1
selector:
matchLabels:
app: jenkins-master
template:
metadata:
labels:
app: jenkins-master
spec:
containers:
- name: jenkins-master
image: drud/jenkins-master:v0.29.0
imagePullPolicy: IfNotPresent
command: [ "/bin/bash", "-ce", "tail -f /dev/null" ]
volumeMounts:
- mountPath: /var/jenkins_home/
name: masterjkshome
ports:
- containerPort: 8080
volumes:
- name: masterjkshome
persistentVolumeClaim:
claimName: pvcjkshome
以上是关于问题解决:pod报错“Back-off restarting failed container“的主要内容,如果未能解决你的问题,请参考以下文章
解决Mac Pro M1芯片 pod install报错问题
解决Mac Pro M1芯片 pod install报错问题
pod安装报错Git - SSL_ERROR_SYSCALL 问题解决