- Learn OpenShift
- Denis Zuev Artemii Kropachev Aleksey Usov
- 159字
- 2021-08-13 16:03:51
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.
推薦閱讀
- Containerization with LXC
- 阿里云數(shù)字新基建系列:云原生操作系統(tǒng)Kubernetes
- Ganglia系統(tǒng)監(jiān)控
- 精解Windows8
- Moodle 3.x Teaching Techniques(Third Edition)
- Social Data Visualization with HTML5 and JavaScript
- 嵌入式微系統(tǒng)
- Linux集群之美
- Linux內(nèi)核分析及應用
- Azure Resource Manager Templates Quick Start Guide
- Windows 8完全自學手冊
- Windows7系統(tǒng)維護百寶箱
- Linux從入門到精通
- 電子商務系統(tǒng)建設(shè)與管理
- SQL Server on Azure Virtual Machines