Why GKE with Ankra
- Standard or Autopilot - run node pools you size yourself, or let Google manage nodes with Autopilot.
- Release channels - pin the cluster to the
RAPID,REGULAR, orSTABLEchannel. - Live pricing and options - locations, Kubernetes versions, and machine types are fetched live with your service account, including GPU and spot capacity where available.
Prerequisites
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 VPC networks from the cluster wizard, the service account additionally needs Compute Network Admin (roles/compute.networkAdmin) for the compute.networks.create permission. See Google Cloud (GCP) Credentials.
GitOps is optional: connect a repository at creation and Ankra commits the cluster’s stack definitions to Git.
Creating a GKE cluster
- Portal
- CLI
- API
1
Create Cluster
Go to Clusters → Create Cluster and pick Google Cloud’s Cloud Managed action.
2
Credential & Location
Select the GCP credential and a location - 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 live; if the project has a default network it is preselected. Create new network provisions a fresh VPC from Ankra without leaving the wizard - see VPC networking.3
Mode & Node Pools
Choose Standard and define worker pools (name, machine type with live pricing, count, labels, autoscaling), or choose Autopilot and let Google manage the nodes.
4
Kubernetes
Pick a Kubernetes version or keep the default, and select a release channel.
5
GitOps (optional) & Create
Optionally connect a Git repository, then create. Ankra runs GKE preflight checks, provisions the cluster, retrieves the kubeconfig, and installs the Ankra Agent.
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 wizard 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? Create new network in the wizard provisions one from Ankra: 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. The same flow is available on the API:
Day-2 operations
Node pools, upgrades, and deletion work from the CLI, portal, or API. The CLI examples use--provider gke:
PATCH .../node-pools/{name} endpoint. See Managed Kubernetes - day-2 operations for the shared mechanics.