I’m a huge K8s advocate but if all you’re looking for his a repeatable way to spin up DO droplets then use a user-data script.
User data is a bash script that can be automatically run when the machine first spins up.
You could pass that script via digital oceans cli or even a tool like terraform.