本文共 827 字,大约阅读时间需要 2 分钟。
本章涉及到的命令不完全列表:kubectl describe node/xxxkubectl get node/xxx -o yamlkubectl drain node/xxxkubectl delete nodes/xxxkubectl cordon node/xxxkubectl uncordon node/xxxkubectl get nodes --show-labelskubect get pods --show-labelskubectl get services --show-labelskubectl label pod PODNAME key1=value1kubectl label pod PODNAME key1-kubectl label pod PODNAME key1=value2 --overwritekubectl create namespace fookubectl delete namespace fookubectl config get-contextskubectl config use-context foo-ctxkubectl create -f xxxx.yamlkubectl delete pods/xxxkubectl delete -f xxx.yamlkubectl get podskubectl get pod/xxxxkubectl get pod/xxxx -o widekubectl edit pod/xxxxkubectl describe pods/xxxxkubectl apply -f xxx.yamlkubectl delete service/xxxkubectl get service/xxkubectl describe service/xxxkubectl edit service/xxkubectl get events
内容来自:
转载地址:http://zakof.baihongyu.com/