Some more research to do here, but everything you need is in the DaemonSet API spec - and it isn't very complex.
Reminder, here are the Kubernetes API docs.
Need more? Here's the solution.