Need to convert deployment to daemonset

I have a certain deployment yaml that I want to convert to a daemonset yaml.
The problem is that I can’t just change the kind because the deployment uses properties that daemonsets don’t have.
Is there any tool/command/some easier way than manually check every property to convert it?
Thanks in advance.

I don’t think there is any tool that will automatically do this for you. Besides, the two abstractions are quite different. Deployment is for creating/running Pods on any worker node. Daemonset is for running Pods on every worker node. Given the different characteristics of the two abstractions, I would suggest doing it manually as that would require you to think about every property from Deployment Spec and check if that is needed/not needed in Daemonset.

1 Like