Files
obsidian_note/技术探究/虚拟机/k8s/操作命令.md
2025-12-04 09:12:56 +08:00

633 B

kubectl get namespace cattle-system -o yaml

kubectl get namespace cattle-system -o json >tmp.json

kubectl proxy

curl -k -H "Content-Type: application/json" -X PUT --data-binary @tmp.json http://127.0.0.1:8001/api/v1/namespaces/cattle-system/finalize

kubernetes-dashboard

kubectl get namespace kubernetes-dashboard -o yaml

kubectl get namespace kubernetes-dashboard -o json >tmp.json

curl -k -H "Content-Type: application/json" -X PUT --data-binary @tmp.json http://127.0.0.1:8001/api/v1/namespaces/kubernetes-dashboard/finalize

kubectl get pod -n cattle-system kubectl get pods --all-namespaces -o wide

docker stats