Minikube: Quickstart not working

Created on 12 Jul 2016  Â·  2Comments  Â·  Source: kubernetes/minikube

➜  $ kubectl run hello-minikube --image=gcr.io/google_containers/echoserver:1.4 --port=8080
deployment "hello-minikube" created
➜  $ kubectl get pod
NAME                              READY     STATUS              RESTARTS   AGE
hello-minikube-2433534028-g3m1b   0/1       ContainerCreating   0          6s
➜  $ kubectl get pod
NAME                              READY     STATUS    RESTARTS   AGE
hello-minikube-2433534028-g3m1b   1/1       Running   0          15s
➜  $ curl $(minikube service hello-minikube --url)
Error getting hello-minikube service: services "hello-minikube" not found
Check that minikube is running and that you have specified the correct namespace (-n flag).
curl: try 'curl --help' or 'curl --manual' for more information
➜  $ minikube service
Please specify a service name.
➜  $ minikube service hello-minikube
Error getting hello-minikube service: services "hello-minikube" not found
Check that minikube is running and that you have specified the correct namespace (-n flag).

Most helpful comment

I think you missed one step in the quickstart at https://github.com/kubernetes/minikube/#quickstart:

kubectl expose deployment hello-minikube --type=NodePort

All 2 comments

I think you missed one step in the quickstart at https://github.com/kubernetes/minikube/#quickstart:

kubectl expose deployment hello-minikube --type=NodePort

@jimmidyson This is true ;)

Was this page helpful?
0 / 5 - 0 ratings