Why GKE with Ankra
- Live pricing and options - locations, Kubernetes versions, machine types (GPU types included) and the project’s VPC networks are read live with your service account.
- Standard or Autopilot, with a release channel - through the API, run node pools you size yourself or let Google manage nodes with Autopilot, and pin the cluster to the
RAPID,REGULARorSTABLEchannel.
Before you start
- A GCP service account key stored in Ankra, with the Kubernetes Engine Admin (
roles/container.admin) and Service Account User (roles/iam.serviceAccountUser) roles, and the Kubernetes Engine API enabled on the project. To create a VPC network through the API, the service account also needs Compute Network Admin (roles/compute.networkAdmin) for thecompute.networks.createpermission. See Google Cloud (GCP) Credentials. If you have none, the create form shows Add a Google Kubernetes Engine 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 GKE cluster
- Portal
- CLI
- API
The portal creates a Standard cluster with no release channel. Autopilot, a release channel and a new VPC network are set through the API.
1
Choose Google Cloud, run by Google
Open Infrastructure → Clusters → Add a cluster (
/next/clusters/new). Choose Google Cloud as the provider, then Provider managed under Who runs Kubernetes on Google Cloud?. The page now reads Add a Google Kubernetes Engine cluster.2
Name and purpose
Enter a Cluster name (at most 40 characters; GKE allows 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 Google Kubernetes Engine credential and a Region - a zone (
europe-west1-b) or a region (europe-west1). Locations load live from Google Cloud. Then pick the VPC network the cluster attaches to: Ankra lists the project’s networks, and preselects default when the project has one. See VPC networking.4
Worker nodes
Each node group has a Group name, a number of Nodes, a Size for the group (machine 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.
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.
GKE options
Autopilot clusters ignore node-pool sizing - Google manages the nodes automatically. Cluster names are lowercase letters, numbers, and hyphens, and must start with a letter.
VPC networking
Every GKE cluster attaches to a VPC network. The VPC network field lists the project’s networks live with your credential and preselectsdefault when the project has one; projects without a default network must pick one explicitly - otherwise the GKE API fails the create with “no network named default”. The subnetwork for the cluster’s region is resolved automatically (auto-mode networks have one per region; for custom-mode networks Ankra picks the region’s subnetwork).
Don’t have a usable network? The portal cannot create one. Create it through the API: the VPC is created in auto subnet mode - Google creates a subnetwork in every region, exactly like the built-in default network - so the cluster can attach in any location with no further subnet setup. It then appears in the VPC network list:
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 gke:
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 GKE cluster
Already running GKE? Discover clusters in your project 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 gke, then ankra cluster managed import --provider gke) or the API - see Managed Kubernetes - importing existing clusters.