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,260 points
3,416 views

1 answer to this question.

0 votes

Hi@akhtar,

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.

MYSQL_ROOT_PASSWORD:
MYSQL_USER:
MYSQL_PASSWORD:
MYSQL_DATABASE:

Hope this is helpful.

answered May 22, 2020 by MD
• 95,460 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
3,129 views
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,300 points
2,496 views
+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
15,572 views
0 votes
1 answer

permissions related to AWS ECR

if you add allowContainerRegistry: true, kops will add those permissions ...READ MORE

answered Oct 9, 2018 in Kubernetes by Kalgi
• 52,350 points
1,427 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP