mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
Added kubectl notes to the knowledge base
This commit is contained in:
11
knowledge base/kubectl.md
Normal file
11
knowledge base/kubectl.md
Normal 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
|
||||
```
|
||||
Reference in New Issue
Block a user