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,388 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,067 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,458 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,441 views
+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,350 points

reshown Apr 12, 2019 by Kalgi 7,079 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