CodeBlanks Logo Icon CodeBlanks

minikube status

Learn the cluster status with minikube status.

minikube status

minikube status reports the state of the cluster components and whether the kubectl configuration points at this cluster:

$ minikube status
minikube
type: Control Plane
host: Running
kubelet: Running
apiserver: Running
kubeconfig: Configured

If you see kubeconfig: Misconfigured, minikube update-context fixes the kubectl setting.

Accessing the cluster

minikube ip gives the cluster's IP address. NodePort services are opened through this IP; minikube service produces the address to open directly in the browser. minikube ssh connects into the node:

$ minikube ip
192.168.49.2
$ minikube service web --url
http://192.168.49.2:31234
$ minikube ssh -- crictl ps | head -3

Practice State and access

Write three commands: show the Minikube status; print the cluster IP; print the address of the web service without opening a browser.

Starter code

terminal
# buraya yaz

Sample solution

terminal
minikube status
minikube ip
minikube service web --url

Expected output

minikube
type: Control Plane
host: Running
kubelet: Running
apiserver: Running
kubeconfig: Configured
192.168.49.2
http://192.168.49.2:31234

Questions and answers

Review the lesson questions together with their answers. To test yourself, solve the lesson interactively.

1 If host: Running but apiserver: Stopped, what does kubectl get pods do?

  • It returns an empty list
  • It starts the cluster
  • It gives a connection error Correct answer
  • It lists the pods

Explanation: kubectl only talks to the API server.

2 Print a service's address.

Question
minikube service web ____
Answer
minikube service web --url

Explanation: --url prints the address without opening a browser.

3 Match.

Term Meaning
minikube status Component state
minikube ip Cluster IP
minikube service Service address
minikube ssh Connect to the node

All lessons in Intermediate