minikube - Error from server (BadRequest): container "hello-minikube" in pod "hello-minikube-180744149-z87pb" is waiting to start: ContainerCreating

749 views
Skip to first unread message

DK

unread,
Oct 20, 2017, 4:50:10 AM10/20/17
to Kubernetes user discussion and Q&A
Hi,

Trying to setup minikube on Windows 10 with Hyper-V.

kubectl run hello-minikube --image=gcr.io/google_containers/echoserver:1.4 --port=8080

But hello-minikube pod is stuck in ContainerCreating

kubectl get pod
NAME                             READY     STATUS              RESTARTS   AGE
hello-minikube-180744149-z87pb   0/1       ContainerCreating   0          15h

kubectl logs hello-minikube-180744149-z87pb
Error from server (BadRequest): container "hello-minikube" in pod "hello-minikube-180744149-z87pb" is waiting to start: ContainerCreating

kubectl describe pods hello-minikube-180744149-z87pb

Events:
  Type     Reason      Age                   From               Message
  ----     ------      ----                  ----               -------
  Warning  FailedSync  11s (x4103 over 15h)  kubelet, minikube  Error syncing pod


How can I debug this further?

DK

unread,
Oct 20, 2017, 9:12:03 AM10/20/17
to Kubernetes user discussion and Q&A
Also there doesn't seem to be a way to delete the pod in this state
kubectl delete pods hello-minikube-180744149-z87pb
pod "hello-minikube-180744149-z87pb" deleted

But it never gets removed
 

Rodrigo Campos

unread,
Oct 20, 2017, 10:00:13 AM10/20/17
to kubernet...@googlegroups.com
Check the docs, but IIRC the kubectl run created a deployment or rc. That's why, I guess
--
You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscribe@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.

DK

unread,
Oct 20, 2017, 11:24:14 AM10/20/17
to Kubernetes user discussion and Q&A
The problem was my imagePullSecret

I used:
 
But I needed:
--docker-server=https://nexus.mycompany.com:50000/v2/

kubectl create secret docker-registry regsecret --docker-server=https://nexus.mycompany.com:50000/v2/ --docker-username=foo --docker-password=bar --docker-email=f...@bar.com
Reply all
Reply to author
Forward
0 new messages