Why DOKS with Ankra
- Live pricing and options - regions, Kubernetes versions with support windows, and droplet sizes are fetched live with your DigitalOcean token, with a monthly cost summary as you build the cluster.
- Highly available control plane - opt into DigitalOcean’s HA control plane at creation, through the API.
- Full day-2 from the portal, the CLI or the API - add and scale node pools, upgrade Kubernetes, and manage add-ons and Stacks the same way as any Ankra cluster.
Before you start
- A DigitalOcean API token with read/write, stored in Ankra. See DigitalOcean API Credentials. If you have none, the create form shows Add a DigitalOcean Kubernetes credential first with an Add a credential button.
- A payment method on the organisation. Without one the review step warns “A payment method is required to create this cluster.” and the create is refused - see Billing.
- A role with the
clusters.createpermission. Without it Add a cluster reads “Your role does not allow creating clusters.”
Creating a DOKS cluster
- Portal
- CLI
- API
The portal creates the cluster without the HA control plane. To turn HA on, create the cluster through the API.
1
Choose DigitalOcean, run by DigitalOcean
Open Infrastructure → Clusters → Add a cluster (
/next/clusters/new). Choose DigitalOcean as the provider, then Provider managed under Who runs Kubernetes on DigitalOcean?. The page now reads Add a DigitalOcean Kubernetes cluster.2
Name and purpose
Enter a Cluster name (3 to 53 lowercase letters, digits and hyphens, starting with a letter) and answer What will this cluster run?. The answer is required before you can review.
3
Where it runs
Pick the DigitalOcean Kubernetes credential and a Region (for example
fra1). Regions load live from DigitalOcean.4
Worker nodes
Each node group has a Group name, a number of Nodes, a Size for the group (Droplet sizes with live pricing) and Scale this group automatically with At least and At most. Add a node group adds another; Placement, labels and taints holds node labels and taints. The Estimated monthly cost panel follows your choices.
5
Kubernetes and Git
Pick a Kubernetes version or keep Provider default. Under Cluster configuration in Git, optionally choose a Git connection, Repository and Branch.
6
Review and create
Click Review cluster, check the settings and the Checks before creating, then click Create cluster. Ankra provisions the cluster, retrieves the kubeconfig and installs the Ankra agent. The page reads Your cluster is ready when it is done.
DOKS options
Verify
The create progress view follows the control plane, the node pools, kubeconfig retrieval and the Ankra Agent install. The cluster shows Online once the agent has connected. Then pointkubectl at it through Ankra - this needs a Cluster Access grant - and check that every node is Ready:
Day-2 operations
Node pools, upgrades, and deletion work from the portal, the CLI or the API. The CLI examples use--provider doks:
ankra cluster managed node-pool update --autoscaling --autoscaling-min <n> --autoscaling-max <n>, or with the PATCH .../node-pools/{name} endpoint. See Managed Kubernetes - day-2 operations for the shared node-pool and upgrade mechanics.
Importing an existing DOKS cluster
Already running DOKS? Discover clusters at DigitalOcean and adopt them into Ankra without touching them. Discovery and import run from the portal (Infrastructure → Clusters → Connect a cluster → Find a managed cluster), the CLI (ankra cluster managed discover --provider doks, then ankra cluster managed import --provider doks) or the API - see Managed Kubernetes - importing existing clusters.