Last active 1 month ago

Revision 2ce31df94ac4ba788d7fac8af82b3fc2ff2c8eec

scale_ds_k8s Raw
1* Scaling k8s daemonset down to zero
2```
3kubectl -n kube-system patch daemonset myDaemonset -p '{"spec": {"template": {"spec": {"nodeSelector": {"non-existing": "true"}}}}}'
4```
5
6* Scaling up k8s daemonset
7```
8kubectl -n kube-system patch daemonset myDaemonset --type json -p='[{"op": "remove", "path": "/spec/template/spec/nodeSelector/non-existing"}]'
9```