kubelet minikube Back-off restarting failed container

0 votes

Hi Guys,

I am trying to create one mysql pod in kubernetes cluster. But I got this below error.

$ kubectl describe pods mysql 

Normal   Scheduled  <unknown>          default-scheduler  Successfully assigned default/mysql to minikube
Normal   Pulled     15s (x4 over 58s)  kubelet, minikube  Container image "mysql:5.7" already present on machine
Normal   Created    15s (x4 over 58s)  kubelet, minikube  Created container mysql-con
Normal   Started    15s (x4 over 57s)  kubelet, minikube  Started container mysql-con
Warning  BackOff    2s (x6 over 55s)   kubelet, minikube  Back-off restarting failed container

How can I solve this?

May 22, 2020 in Kubernetes by akhtar
• 38,210 points

1 answer to this question.

0 votes


You may get this error if you didn't provide environment variable. Mysql pod needs environment variable to launch a container. You can use the below given variables in your code.


Hope this is helpful.

answered May 22, 2020 by MD
• 95,300 points

Related Questions In Kubernetes

0 votes
1 answer
0 votes
4 answers

minikube start is giving OS Type not recognized

I had the same issue. i had ...READ MORE

answered Apr 30, 2019 in Kubernetes by Lisa
0 votes
1 answer

How to use gravitational teleport in a container/kubernetes environment?

You can use teleport to augment kubernetes ...READ MORE

answered Jun 28, 2018 in Kubernetes by ajs3033
• 7,280 points
+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
+4 votes
1 answer

Installing Web UI (Dashboard):kubernetes-dashboard on main Ubuntu 16.04.6 LTS (Xenial Xerus) server

Follow these steps: $ kubeadm reset $ kubeadm init ...READ MORE

answered Apr 12, 2019 in Kubernetes by Kalgi
• 52,370 points

reshown Apr 12, 2019 by Kalgi 3,546 views