Before you start
- A payment method on the organisation. Without one, the create is refused with “Add a payment method to create this cluster.” See Credit and payment method.
- A DigitalOcean personal access token with read and write scope, stored as a DigitalOcean credential: Integrations & alerts → Credentials → Add credential → DigitalOcean, or Add a credential inside the create form. Tokens start with
dop_v1_. - An SSH key credential - your own public key, or one Ankra generates. See SSH Key Credentials.
- Room in your account limits for the Droplets, a VPC, load balancers and volumes. Check them in the DigitalOcean Control Panel; DigitalOcean support raises them.
Create the cluster
- Portal
- CLI
- API
Follow Create a Cluster with these DigitalOcean choices:
1
Choose DigitalOcean
Go to Infrastructure → Clusters, click Add a cluster, pick DigitalOcean, then Ankra managed under Who runs Kubernetes on DigitalOcean? (Provider managed creates a DOKS cluster).The form Add a DigitalOcean cluster opens.
2
Where it runs
Choose the DigitalOcean credential, the SSH key and the Region, for example
nyc3, fra1 or lon1. Only regions DigitalOcean reports as available are listed.3
Control plane, servers and worker nodes
Pick Single node or High availability, the Control plane size, the Management server size, and one or more node groups. Each size field lists the region’s Droplet sizes, with prices, under Exact server type; GPU Droplets (
gpu- sizes) are listed there only. The form starts with s-2vcpu-4gb for the control plane and workers.4
Advanced configuration (optional)
Private network range is the cluster’s VPC, a private range from
/16 to /28. Leave it empty and Ankra picks a 10.x.y.0/24 for the cluster, different for each cluster. Addresses allowed to reach the management server limits SSH to the bastion.5
Review and create
Click Review cluster. Ankra checks the name and settings here; your DigitalOcean account is checked when creation starts. Check the cost, then click Create cluster. The progress page follows the stages to <cluster name> is ready.
Verify
- In Infrastructure → Clusters, the cluster’s status moves from In progress to Online once the Ankra Agent has connected.
-
Point
kubectlat it through Ankra (this needs a Cluster Access grant) and check the nodes:Every control plane and worker should beReady. See Accessing Clusters with kubectl.
What Ankra created in your account
- A VPC for all traffic between the Droplets.
- A VPC NAT gateway, set as the VPC’s default route - the egress path for the nodes. DigitalOcean bills it separately; see VPC NAT gateway pricing.
- A bastion Droplet - the only Droplet with a public IP and the only SSH entry point. It carries no workload or egress traffic.
- Control plane and worker Droplets with private IPs only, and dedicated etcd Droplets for a kubeadm cluster with external etcd.
- Two tag-scoped cloud firewalls, kept as defence in depth.
- The
digitalocean-cloud-providerstack: the DigitalOcean cloud controller manager (load balancers forLoadBalancerServices) and CSI driver (block storage through thedo-block-storageStorageClass), using your credential.
DigitalOcean specifics
- Clusters created before private-Droplet support keep their original layout: every Droplet has a public IP and the tag-scoped cloud firewalls are the ingress boundary. Public networking is fixed when a Droplet is created, so those clusters - including nodes added when you scale them - stay on that model. Only new clusters get private nodes and a NAT gateway.
- Resizing a node group powers each Droplet off, resizes it and powers it on again, with brief downtime for its workloads. Droplet sizes only grow; for smaller nodes, create a new group and delete the old one.
- SSH allowlist. At create time, Addresses allowed to reach the management server (or
--bastion-allowed-ips) limits SSH to the bastion to the IPv4 addresses or ranges you list; empty allows any address. On a running cluster, replace the list withankra cluster digitalocean bastion allowed-ips my-cluster 203.0.113.7 198.51.100.0/24, or remove it with--clear. - A stop deletes the node Droplets, the bastion and the VPC NAT gateway, and keeps the cluster’s configuration, network definition and SSH keys. The block storage volumes the CSI driver created are kept and keep billing while the cluster is stopped.
- Terminating deletes the Droplets, NAT gateway, VPC and SSH keys. Anything left over from an earlier teardown can be removed in the DigitalOcean Control Panel.
Operate it
Day-2 tasks work the same way on every Ankra Managed provider, with the CLI namedigitalocean:
- Node groups and legacy worker scaling
- Control plane
- Restart a node and the bastion
- SSH access and keys
- Upgrade Kubernetes
- Stop and start
- Terminate a cluster