July 2018
Intermediate to advanced
504 pages
11h 34m
English
The first essential command to run is kubectl get nodes. It gives us the number of Kubernetes nodes available:
$ kubectl get nodesNAME STATUS ROLES AGE VERSIONminikube Ready <none> 2h v1.9.0
In our case, the number of nodes will be equal to one, since we are using one VM for our practice. As we mentioned already, in order for different projects to coexist on the same or different nodes, namespaces are used. You may guess that the command we should use is kubectl get namespaces:
$ kubectl get namespacesNAME STATUS AGEdefault Active 15hkube-public Active 15hkube-system Active 15h
It shows you that three default namespaces are available when you install Kubernetes with Minikube:
|
Name
|
Description
|
|
default ... |