官术网_书友最值得收藏!

Using the kubectl get command

The first essential command to run is kubectl get nodes. It gives us the number of Kubernetes nodes available:

$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
minikube 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 namespaces
NAME STATUS AGE
default Active 15h
kube-public Active 15h
kube-system Active 15h

It says No resources found, all because the pod is a Kubernetes resource, similar to other resources we are going to cover in this book.

Similarly to kubectl get pods, you can get the status of any other Kubernetes resource. We will discuss other Kubernetes resources later in this chapter.  
主站蜘蛛池模板: 莆田市| 方城县| 安泽县| 酉阳| 门源| 宁乡县| 锡林浩特市| 鸡泽县| 呼图壁县| 凤凰县| 罗源县| 游戏| 博罗县| 梓潼县| 广汉市| 大洼县| 嵊泗县| 巴彦县| 奉节县| 股票| 文登市| 黄石市| 马公市| 临邑县| 西安市| 菏泽市| 溆浦县| 宜春市| 象山县| 新河县| 大庆市| 封开县| 金山区| 华蓥市| 阿瓦提县| 二手房| 临潭县| 西昌市| 新田县| 永丰县| 白朗县|