5

K8S 常用命令记录

 3 years ago
source link: https://www.hehuapei.com/k8s-command/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

K8S 常用命令记录

Wiken
2021-07-30 (Updated: 2021-07-30)
# 获取node信息
kubectl get nodes

# 获取命名空间
kubectl get namespaces

# 查看node资源使用情况
kubectl top nodes

# 查看pod资源使用情况
kubectl top po -n 命名空间

# 查看pod运行情况
kubectl get po -n 命名空间

# 进入pod内部
kubectl exec -it pod名称 -n 命名空间 /bin/sh

# 查看service
Kubectl get svc -n 命名空间

# 查看ingress
Kubectl get ingress -n 命名空间

本文链接:

https://www.hehuapei.com/k8s-command/index.html

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK