Pod error “back-off Restarting Failed Container” solution
Phenomenon:
Phenomenon:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 3m default-scheduler Successfully assigned default/jenkins-master-deploy-6694c4f497-r46fn to master.localdomain
Normal SandboxChanged 85s kubelet, master.localdomain Pod sandbox changed, it will be killed and re-created.
Normal Pulled 83s (x5 over 2m59s) kubelet, master.localdomain Container image "drud/jenkins-master:v0.29.0" already present on machine
Normal Created 83s (x5 over 2m59s) kubelet, master.localdomain Created container jenkins-master
Normal Started 81s (x5 over 2m59s) kubelet, master.localdomain Started container jenkins-master
Warning BackOff 78s (x9 over 2m57s) kubelet, master.localdomain Back-off restarting failed container
Solution:
reference page:
https://serverfault.com/questions/924243/back-off-restarting-failed-container-error-syncing-pod-in-minikube in deployment that mirror followed by the command
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
div>
Read More:
- Error syncing pod, skipping: failed to “StartContainer” for “POD” with Image
- Docker starts MySQL container and reports an error driver failed programming external connectivity on endpoint mysq
- Solution encountered when updating pod (error: failed to build gem native extension.)
- Solution to (ERROR: Failed to build gem native extension.) encountered when updating pod
- pod install error: Oh no, an error occurred. (Ultimate Solution)
- Solution for iPhone wechat flash back with mysterious code
- Error running docker container: starting container process caused “exec: \“python\“: executable file
- Coppelia sim (vrep) turns on the solution of flash back
- The solution of flashing back after the end of console program running
- Eclipse reports Failed to load the JNI shared library jvm.dll error solution
- Error in Git clone or pod install: smudge filter LFS failed clone succeeded, but checkout failed
- Nginx reports 502 error, log connect() failed (111: Connection refused) while connecting to upstream. A personal effective solution
- Solution for flash back of vs2015 running interface
- Solution to flash back of MacBook Pro open software of M1 chip
- Dm7 Dameng database dmrman reports an error OS_ pipe2_ conn_ Server open failed solution
- Solution to flash back of visual studio 2017 running program
- Solution to the problem of console output window’s CMD flashing back when vs2015 writes C + + program
- Get connection timeout retry: 1 MySQL errorcode 0, state 08s01 docker container accessing MySQL container is very slow and sometimes interrupted
- Sendmail config error: mail loops back to me (MX problem?) solution
- Solution to the flash back, error report and unexpected exit of idea MAC windows