Skip to content

Kube - Tips

Commands

Scale daemonset to zero:

# Unschedule all ds pods:
oc patch daemonset fluentd \
  -p='{"spec": {"template": {"spec": {"nodeSelector": {"non-existing": "true"}}}}}'

# Reschedule all ds pods:
oc patch daemonset fluentd \
  --type json \
  -p='[{"op": "remove", "path": "/spec/template/spec/nodeSelector/non-existing"}]'

Utils

Copy image from a repository to an other: https://github.com/containers/skopeo

  • https://github.com/kelseyhightower/kubernetes-the-hard-way
Back to top