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 in Kubernetes by akhtar
• 25,030 points
726 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 by MD
• 56,480 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 29, 2019 in Kubernetes by Lisa
1,057 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,280 points
940 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
8,371 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 11, 2019 in Kubernetes by Kalgi
• 51,950 points

reshown Apr 12, 2019 by Kalgi 2,530 views