Kubernetes

De Mon Wiki
Aller à la navigation Aller à la recherche

K9s

Installation de K9s:

cd /usr/local/bin
curl -OL https://github.com/derailed/k9s/releases/latest/download/k9s_Linux_amd64.tar.gz
tar xvfz k9s_Linux_amd64.tar.gz
rm LICENSE README.md k9s_Linux_amd64.tar.gz

Scale Down/Up Daemonset

Source: https://gist.github.com/ragul28/6af1b536abe1d2e1e62dbea0ee64f2d5

Down

kubectl -n kube-system patch daemonset myDaemonset -p '{"spec": {"template": {"spec": {"nodeSelector": {"non-existing": "true"}}}}}'

Up

kubectl -n kube-system patch daemonset myDaemonset --type json -p='[{"op": "remove", "path": "/spec/template/spec/nodeSelector/non-existing"}]'