Skip to content

Conversation

@KilianDargel
Copy link

By default, k8s DaemonSets cannot be directly scaled down using e.g. kubectl scale, because it is only intended to resize Deployment, ReplicaSet or Replication Controller.

This PR implements a pretty popular workaround from stackoverflow, which adds the artificial nodeSelector ("scaled-down=true") to the template.

I implemented it without any dependencies based on kubectl patch--type=merge/RFC7386.
Since nodeSelector is map, this patch strategy will merge at the key-level and allows to add our additional key without replacing any existing ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant