Why EKS with Ankra
- Automatic IAM setup - Ankra creates the required IAM roles for the cluster and node groups, so you do not have to wire them by hand.
- Bring your own network, or don’t - pick a VPC, specify
subnet_idsandsecurity_group_ids, or let Ankra use your default VPC subnets. - Live pricing and options - regions, Kubernetes versions, and EC2 instance types are fetched live with your AWS credential, including spot capacity and autoscaling.
Before you start
- An AWS credential stored in Ankra (access keys or an IAM role) with permissions for EKS, EC2, and IAM role management. The IAM-role wizard’s Provisioning (EKS clusters) access level creates a correctly scoped role for you. See AWS Credentials. If you have none, the create form shows Add an Amazon EKS 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 an EKS cluster
- Portal
- CLI
- API
The portal takes a VPC but not subnets, security groups or control-plane logging. Set those through the API.
1
Choose AWS, run by AWS
Open Infrastructure → Clusters → Add a cluster (
/next/clusters/new). Choose AWS as the provider, then Provider managed under Who runs Kubernetes on AWS?. The page now reads Add an Amazon EKS cluster.2
Name and purpose
Enter a Cluster name (EKS allows letters, digits and hyphens) and answer What will this cluster run?. The answer is required before you can review.
3
Where it runs
Pick the Amazon EKS credential and a Region (for example
eu-west-1). Regions load live from AWS. Then pick the VPC the cluster runs in.4
Worker nodes
Each node group has a Group name, a number of Nodes, a Size for the group (instance types 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, and Use spot capacity with an optional Maximum spot price per hour.
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 creates the IAM roles, provisions the cluster, retrieves the kubeconfig and installs the Ankra agent. The page reads Your cluster is ready when it is done.
EKS options
EKS creates the IAM roles for the cluster and node groups automatically and uses your default VPC subnets when
subnet_ids is omitted. Control planes routinely take 10-15 minutes to provision; node groups follow after.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 groups, upgrades, and deletion work from the portal, the CLI or the API. The CLI examples use--provider eks:
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 mechanics.
Importing an existing EKS cluster
Already running EKS? Discover clusters in your AWS account and adopt them into Ankra. Discovery and import run from the portal (Infrastructure → Clusters → Connect a cluster → Find a managed cluster), the CLI (ankra cluster managed discover --provider eks, then ankra cluster managed import --provider eks) or the API - see Managed Kubernetes - importing existing clusters.
What a managed import changes on your cluster
By default, Amazon EKS gives Kubernetes access only to the identity that created a cluster, so the AWS role you connected to Ankra starts with none. To install the agent, Ankra gives that role access for the length of the install:- Ankra creates an access entry for the role, tagged
managed-by=ankra-agent-install, and associatesAmazonEKSClusterAdminPolicyat cluster scope. - Ankra installs the agent.
- Ankra deletes the access entry, whether the install worked or not. If AWS refuses the delete, or the install is cut off, the step fails and says so, and Ankra tries again until the entry is gone. An agent that did install keeps running in the meantime. If you disconnect the cluster from Ankra before that retry, the entry stays: delete the role’s access entry tagged
managed-by=ankra-agent-installin the EKS console.
- The role needs to manage access entries. The Ankra CloudFormation template already allows this with
eks:*. A role you wrote yourself needseks:CreateAccessEntry,eks:DescribeAccessEntry,eks:AssociateAccessPolicyandeks:DeleteAccessEntry. - An access entry you already made is yours. If the role already has an entry that Ankra didn’t tag, Ankra leaves it exactly as it is and doesn’t delete it.
- Clusters on the
CONFIG_MAPauthentication mode have no access entries. Ankra never changes the authentication mode. Map the role in theaws-authConfigMap, or switch the cluster toAPI_AND_CONFIG_MAP, which AWS doesn’t let you undo. If the cluster refuses the role, the setup page says what to change.