Added kubectl notes to the knowledge base

This commit is contained in:
Michele Cereda
2022-04-19 13:50:10 +02:00
parent ec5e83b62f
commit 4cc4e396ba

11
knowledge base/kubectl.md Normal file
View File

@@ -0,0 +1,11 @@
# Kubectl
## TL;DR
```shell
# 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
```