Files
oam/knowledge base/kubectl.md
2022-04-19 13:50:10 +02:00

243 B

Kubectl

TL;DR

# taint all nodes in a certain nodepool (azure aks)
kubectl get nodes \
  -l "agentpool=nodepool1" \
  -o jsonpath='{.items[*].metadata.name}'
| xargs -n1 -I{} -p kubectl taint nodes {} key1=value1:NoSchedule