一、Kubernetes基础命令
1.1 查看Kubernetes版本
Kubectl version
二、Kubernetes集群管理
2.1 查看Node节点
kubectl get node
Kubectl describe node
2.2 查看Pod容器组
Kubectl get pod
Kubectl get pod -A
Kubectl describe pod
2.3 查看NameSpace命名空间
Kubectl get ns
Kubectl master服务起来后
服务重启后查看
三、Kubernetes网络管理
3.1 查看Ingress
Kubectl get ingress
Kubectl describe ingress
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
四、Kubernetes存储管理
4.1 查看PV
PV回收策略
Delete
默认回收策略为“Delete”,当用户删除对应的PVC时,动态配置的volume也会自动删除
注意:当volume包含重要数据时,自动行为不合适
Retain
如果用户删除PVC,对应的PV不会被删除;它将变为Released状态,表示所有的数据可以被手动恢复