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
• 11,250 points
51 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
• 24,500 points

Related Questions In Kubernetes

0 votes
4 answers
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
724 views
0 votes
1 answer

Getting the pod's ip address for the container inside of it

You can make sure that the replication ...READ MORE

answered Aug 24, 2018 in Kubernetes by DareDev
• 6,850 points
398 views
0 votes
1 answer

Heron Failed to set packing plan for topology 'WordCountTopology'

This error occurs becaouse of zookeeper running ...READ MORE

answered Aug 29, 2018 in Kubernetes by Kalgi
• 51,850 points
77 views
0 votes
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
6,638 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,850 points

reshown Apr 12, 2019 by Kalgi 1,971 views
0 votes
1 answer

How to install minikube in windows?

Hi@akhtar, To install Minikube manually on Windows using Windows ...READ MORE

answered May 18 in Kubernetes by MD
• 24,500 points
29 views
0 votes
1 answer

How to deploy Jenkins pod in minikube?

Hi@akhtar, In minikube you don't have to download ...READ MORE

answered May 19 in Kubernetes by MD
• 24,500 points
31 views