-
-
Save vthily/b6ee5fc4a3f7fe03bf44b092136e8ffc to your computer and use it in GitHub Desktop.
Revisions
-
ragul28 created this gist
Jan 11, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ * Scaling k8s daemonset down to zero ``` kubectl -n kube-system patch daemonset myDaemonset -p '{"spec": {"template": {"spec": {"nodeSelector": {"non-existing": "true"}}}}}' ``` * Scaling up k8s daemonset ``` kubectl -n kube-system patch daemonset myDaemonset --type json -p='[{"op": "remove", "path": "/spec/template/spec/nodeSelector/non-existing"}]' ```