Ресурс с кастомными колонками kubectl
Вывести только нужные поля без jq
kubectl get pods -n <ns> -o custom-columns='NAME:.metadata.name,NODE:.spec.nodeName,STATUS:.status.phase'
more kubectl
all 73 commands →
Patch поля ресурса
kubectl patch deployment <name> -n <ns> -p '{"spec":{"replicas":2}}'
Добавить аннотацию к ресурсу
kubectl annotate pod <pod> -n <ns> key=value --overwrite
Добавить лейбл к ресурсу
kubectl label node <node> role=worker --overwrite
Добавить taint на ноду
kubectl taint nodes <node> key=value:NoSchedule
Снять taint с ноды
kubectl taint nodes <node> key=value:NoSchedule-