Kestra 2.0: automate DigitalOcean droplet deployment

Build a reusable Kestra 2.0 flow for DigitalOcean droplets, with an API token and inputs for the name, image, region and size.

Player not loading? Watch on YouTube

This tutorial builds a Kestra 2.0 flow that creates DigitalOcean droplets, then adds inputs so users can reuse it with different server settings. The walkthrough starts with fixed values and replaces them with prompts for the droplet name, image, region and size.

The prerequisites are an existing Kestra installation, a DigitalOcean account and an API token with permission to manage droplets. The presenter uses Docker Compose on Ubuntu 26.04, configures basic authentication and adds a base64-encoded API key to the configuration. Installation itself is covered in an earlier video. The flow uses the DigitalOcean plugin's create task, with the token supplied through the configured secret. The presenter notes that the flow ID and namespace cannot be edited after saving.

For the input-driven example, the presenter chooses NYC1 and a droplet with 2 GB of RAM and two virtual processors. The demonstration covers server creation; network and firewall automation are suggested extensions.

The version overview describes MCP support for exposing existing flows as tools an AI agent can call. The speaker also discusses YAML agent definitions and says the AI plugin uses the Apache 2.0 license and works with the open source edition. The closing section explains how the documentation panel and built-in AI can help draft flows, with a recommendation to review generated code. Kestra sponsors the video.