pod Error: back off restarting failed container
Solution:
1. Find the corrosponding deployment
2. Add command: [ “/bin/bash”, “-ce”, “tail -f /dev/null” ]
as following:
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
Read More:
- [Solved] k8s Error: Back-off restarting failed container
- Error from server (BadRequest): a container name must be specified for pod
- Failed to create pod sandbox: rpc error: code = Unknown desc = [failed to set up sandbox container…
- [Solved] kubectl top pod error: error: Metrics API not available
- [Solved] pod CDN: trunk Repo update failed – 56 error(s):
- [Solved] CCS compilation and debug error: Source lookup: unable to restore CPU specific source container – expecting valid source container id value.
- git clone,pod install error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
- [ERROR] Terminal initialization failed; falling back to unsupported java.lang.IncompatibleClassChang
- Pod install Error: LoadError [How to Solve]
- Hbase Shell startup error: [ERROR] Terminal initialization failed; falling back to unsupported
- [Solved] Spring MVC Error: A child container failed during start
- M1 Computer: How to Solve pod update
- Turn off eslint checksum and resolve formatting conflicts
- [Solved] TensorFlow severing Container Creat Error: failed: Out of range: Read less bytes than requested
- [Solved] docker Error response from daemon OCI runtime create failed container_linux.go380
- How to Solve Macbookm1 pod error
- Docker run Error: container_linux.go:235: starting container process caused “process_linux.go:258: appl
- [Solved] Error response from daemon: OCI runtime create failed: container with id exists: xxzxxxxxxxx
- [Solved] Springboot Error: org.apache.catalina.core.ContainerBase : A child container failed during start
- [kubernetes] the pod instance of calico node always reports an error and restarts