Difference between revisions of "Kubectl patch daemonset"
Jump to navigation
Jump to search
(Redirected page to Kubectl patch) Tag: New redirect |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | {{lc}} | |
+ | |||
+ | |||
+ | [[Stop DaemonSet]] by appliying a [[nodeSelector]] | ||
+ | * <code>[[kubectl patch daemonset]] <name-of-daemon-set> -p '{"spec": {"template": {"spec": {"nodeSelector": {"non-existing": "true"}}}}}'</code> | ||
+ | Start [[DaemonSet]] by removing the [[nodeSelector]] : | ||
+ | kubectl patch daemonset <name-of-daemon-set> --type json -p='[{"op": "remove", "path": "/spec/template/spec/nodeSelector/non-existing"}]' | ||
+ | |||
+ | == See also == | ||
+ | * {{DaemonSet}} | ||
+ | * {{kubectl patch}} | ||
+ | |||
+ | [[Category:Daemonset]] |
Latest revision as of 11:30, 28 February 2024
Stop DaemonSet by appliying a nodeSelector
kubectl patch daemonset <name-of-daemon-set> -p '{"spec": {"template": {"spec": {"nodeSelector": {"non-existing": "true"}}}}}'
Start DaemonSet by removing the nodeSelector :
kubectl patch daemonset <name-of-daemon-set> --type json -p='[{"op": "remove", "path": "/spec/template/spec/nodeSelector/non-existing"}]'
See also[edit]
- DaemonSet,
kind: DaemonSet
,tolerations:
kubectl patch [ cronjobs | svc | pv | pvc | sts | service | secret | sts elastic-operator | node | daemonset | --help ]
Advertising: