Prerequisites
An Ankra Cloud credential stored in Ankra - the same credential the self-managed clusters use. See Ankra Cloud Credentials. No SSH key is needed: there is no bastion and no server access. GitOps is optional: connect a repository at creation and Ankra commits the cluster’s stack definitions to Git.Choosing a control plane
A cluster comes in one of three shapes. You choose when you create it, and the choice cannot be changed afterwards.
The production control plane is the default. Its three replicas keep the Kubernetes API available through an upgrade or the loss of a host node.
The development control plane has no fee of its own: you pay for the nodes only. It is not for production. With one replica, an upgrade or a host node failure interrupts the Kubernetes API while the control plane restarts, and you cannot deploy or change anything until it is back.
A dev cluster is a different shape, described in Dev clusters.
Creating a cluster
- Portal
- API
- CLI
1
Create Cluster
Go to Clusters → Create Cluster and pick Ankra Cloud Kubernetes under Cloud Managed.
2
Credential & Zone
Select the Ankra Cloud credential, or add one inline, and a zone. Zones, versions and plans load live from Ankra Cloud.
3
Node Pools
Define one or more node pools: name, plan (with live pricing), count, labels and taints, and optionally autoscaling bounds.
4
Kubernetes
Pick a Kubernetes version or keep Ankra Cloud’s default, and choose the control plane: production or development. Production is selected to begin with. The cost summary’s control-plane row shows the fee of the one you chose, which is none for development.
5
GitOps (optional) & Create
Optionally connect a Git repository, then create. Ankra runs the preflight checks, creates the cluster, fetches a kubeconfig, and installs the Ankra Agent.
Ankra Cloud Kubernetes options
Every option is optional and goes in anankracloud_k8s block on the create request:
Without
private_network_id, Ankra creates a network named ankra-<cluster-name> and deletes it again when the cluster is deleted. A network you named is never deleted.
Limits
Preflight checks the name, zone, version and every pool’s plan, and counts the account’s live clusters, so a sixth cluster is refused before anything is created.
The control plane is chosen when the cluster is created and cannot be changed afterwards. To move from development to production, or back, create a new cluster and redeploy your workloads to it.
Dev clusters
A dev cluster is one Ankra Cloud server running k3s. That server is the control plane, the only node and the cluster’s own network edge, so there is no managed control plane and no control-plane fee: you pay for the one server at its plan price. It cannot autoscale and it joins no private network. Use it to try something out, not to run anything that has to stay up. Dev clusters are offered zone by zone. Thedev_cluster block of the options call says where:
Create one from Create Cluster with the Ankra Cloud card labelled Dev cluster on one server, under Cloud Managed. The wizard limits the zones to the ones that offer dev clusters, asks for one server plan in place of node pools, and uses the latest stable Kubernetes release Ankra Cloud offers for dev clusters. Its cost summary prices the server and the public IPv4 address from the same options. Where no zone offers dev clusters, the wizard says they are not available for your organisation yet and creates a managed Kubernetes cluster instead.
From the CLI:
--location is a zone from dev_cluster.zones and --node-pool-size is the plan of the one server. --dev-cluster is refused together with --autoscaling, --network-cidr, --private-network-id, a --node-pool-count other than 1, and --control-plane.
On the API, set ankracloud_k8s.dev_cluster to true and send exactly one node pool with a count of 1, whose size is the server’s plan. The request is refused when that pool enables autoscaling, when cni is set, and when ankracloud_k8s.network_cidr or ankracloud_k8s.control_plane is set.
How Ankra connects
Ankra Cloud hands out a kubeconfig whose token expires eight hours after it is issued. Ankra never stores it: it fetches a fresh one each time it needs the Kubernetes API directly, installs the Ankra Agent with it at creation, and from then on works through the agent. For your own access, use Ankra’s kubeconfig or download one from the Ankra Cloud console. Ankra labels the cluster in Ankra Cloud withplatform.ankra.io/managed-by=ankra-platform and platform.ankra.io/cluster-id=<cluster-id>, so Ankra Cloud knows the platform already manages it.
Ankra Cloud installs its own cloud controller manager and CSI driver in the cluster, so LoadBalancer Services get Ankra Cloud load balancers and persistent volumes use Ankra Cloud storage, with the same StorageClasses as a self-managed cluster. Ankra does not add a cloud-provider stack of its own.
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 - add, scale and delete pools from cluster settings or the API. Labels and taints are set when a pool is created.
- Autoscaling - set
min_countandmax_counton a pool and Ankra Cloud scales it between them; clear autoscaling to return to a fixed count. See Managed Kubernetes - day-2 operations. - Upgrades - Ankra Cloud upgrades one minor version at a time; cluster settings offer the next version when one is available.
- Deletion - deleting the cluster waits for Ankra Cloud to release its nodes, volumes and load balancers, then removes the network Ankra created for it.
Cost
What a cluster costs depends on its control plane:- Production control plane: €40 a month per cluster, for three replicas that keep the Kubernetes API highly available.
- Development control plane: no control-plane fee. You pay for the nodes only. It runs one replica and is not for production, because an upgrade or a host node failure interrupts the Kubernetes API while it restarts.
- Dev cluster: no control-plane fee. You pay for its one server.