I have installed Kubernetes in Ubuntu server using instructions here. I am trying to create pods using kubectl run hello-minikube --image=gcr.io/google_containers/echoserver:1.4 --hostport=8000 --port=8080
as listed in the example. However, when I do kubectl get pod
I get the status of the container as pending
. I further did kubectl describe pod
for debugging and I see the message:
FailedScheduling pod (hello-minikube-3383150820-1r4f7) failed to fit in any node fit failure on node (minikubevm): PodFitsHostPorts
.
I am further trying to delete this pod by kubectl delete pod hello-minikube-3383150820-1r4f7
but when I further do kubectl get pod
I see another pod with prefix "hello-minikube-3383150820-" that I havent created. Does anyone know how to fix this problem? Thank you in advance.