Error creating containers in Kubernet

I installed Kubernetes on an Ubuntu server using the instructions here . I am trying to create containers using kubectl run hello-minikube --image=gcr.io/google_containers/echoserver:1.4 --hostport=8000 --port=8080, as shown in the example. However, when I do kubectl get pod, I get the status of the container as pending. I also did kubectl describe podfor debugging, and I see a message:

FailedScheduling pod (hello-minikube-3383150820-1r4f7) failed to fit in any node fit failure on node (minikubevm): PodFitsHostPorts.

I also try to remove this pod kubectl delete pod hello-minikube-3383150820-1r4f7, but when I do further kubectl get pod, I see another block with the prefix "hello-minikube-3383150820-" that I created. Does anyone know how to solve this problem? Thank you in advance.

+3
source share
1 answer

PodFitsHostPorts , - 8000. , , , kubectl describe svc.

kubectl run deployment ( kubectl describe deployments), , pod ( 1). , . , kubectl delete deployments hello-minikube.

+1

All Articles