Connect Google Cloud
A Google Cloud connection gives KeelPilot access to one project. There are no keys: KeelPilot signs in with a federated identity (Workload Identity Federation) that impersonates a service account in your project. You run the commands KeelPilot generates; KeelPilot never applies them.
Before you start
- You must be the organization’s owner or an admin, with MFA set up.
- A Google Cloud project counts toward the same connection limit as an AWS account (Free 1, Pro 10, Enterprise unlimited, trial 2). See Plans & limits.
- In Google Cloud, permission to enable APIs, create a workload identity pool and a service account, and grant roles in the project. Cloud Shell is enough.
- One connection is one project. With several projects, create one connection per project.
1. Create the connection
- 1Go to Settings → AWS connections (
/settings/conexiones), click New connection and choose Google Cloud (“GKE · keyless”). - 2Enter a name, the project ID and the project number (it is on the project dashboard, or
gcloud projects describe <ID> --format='value(projectNumber)'). - 3Choose the access level and the modules (below), and click Generate commands.
- 4Run the commands in your project. They enable the APIs, create the
keelpilotpool with a provider that only accepts this connection’s session, create the service account, grant the roles and let the federated identity use the service account. - 5Click Verify connection. KeelPilot lists the GKE clusters and detects the level and the modules that are actually granted (with
testIamPermissions), not the ones you chose.
roles/iam.workloadIdentityUser on the service account). KeelPilot stores no secret for this connection.2. Access levels
| Level | Roles on the project | What it allows |
|---|---|---|
| Read only (default) | roles/container.viewer | Lists and reads clusters and Kubernetes objects, without creating, changing or deleting anything. |
| Operations | roles/container.developer | Also creates, changes and deletes Kubernetes objects, and turns on the write side of the modules (alert policies, VM resize, Cloud Run deployments, secret and parameter values). It does not manage clusters. |
| Infrastructure | roles/container.developer + roles/container.clusterAdmin | Also scales GKE node pools and runs night mode. It does not create or delete clusters or pools, or touch IAM. |
KeelPilot never asks for roles/owner, roles/editor or roles/container.admin.
3. Permission modules
Each module adds the APIs and roles for one area. All are checked by default except the two “create and delete” boxes, which are separate and unchecked. A module you don’t grant only turns off its screen.
| Module | Read | Operations |
|---|---|---|
| Costs | roles/bigquery.jobUser on the project + roles/bigquery.dataViewer only on the export dataset | — |
| Logs | roles/logging.viewer (no Data Access logs) | — |
| Metrics | roles/monitoring.viewer | — |
| Alerts | — | roles/monitoring.alertPolicyEditor |
| Traces | roles/cloudtrace.user | — |
| Savings | roles/recommender.viewer + roles/compute.viewer | — |
| Resize | — | roles/compute.instanceAdmin.v1 (+ serviceAccountUser on the VM’s service account) |
| Cloud Run | roles/run.viewer | — |
| Deployments | — | roles/run.developer (+ serviceAccountUser on each execution service account) |
| Images | roles/artifactregistry.reader | — |
| Secrets / secret values | roles/secretmanager.viewer | secretAccessor + secretVersionAdder |
| Parameters / parameter values | roles/parametermanager.parameterViewer | parameterAccessor + parameterVersionAdder |
| Create and delete secrets (separate) | — | roles/secretmanager.editor |
| Create and delete parameters (separate) | — | roles/parametermanager.editor |
Roles granted on a resource and not on the project (the billing export dataset, a VM’s or a Cloud Run service’s service account) come as a separate command with a placeholder for you to fill in.
4. When a permission is missing
A screen whose module was not detected does not show a Google error: it shows the exact commands to grant it, and KeelPilot does not call Google until you verify the connection again. For example, without the Logs module:
gcloud services enable logging.googleapis.com --project=my-project
# Logs: leer Cloud Logging (sin Data Access)
gcloud projects add-iam-policy-binding my-project --member="serviceAccount:keelpilot@my-project.iam.gserviceaccount.com" --role=roles/logging.viewerRun them, then go back to Settings → AWS connections and click Verify on the connection.
5. What works with Google Cloud today
| Area | With Google Cloud | Guide |
|---|---|---|
| Kubernetes | GKE clusters, K8s explorer, logs, exec, kubectl console, kubeconfig, Helm, policies, CIS check, Loki, Prometheus, Tempo/Jaeger. Private clusters through the GKE DNS endpoint (no agent). | Kubernetes |
| Node pools and night mode | View and scale node pools, night mode (infrastructure level). | Nodes & Node Groups, Cost Management |
| Costs | Billing from the Cloud Billing export to BigQuery, budgets, cost anomalies, reports, weekly summary. | Cost Management |
| Savings | Cost Guardrails with Recommender, Cost Optimization (rightsizing, CUD, Spot), VM resize, verified savings. | Cost Guardrails |
| Observability | Cloud Logging, Cloud Monitoring (dashboard, explorer, widgets), alert policies and open alerts, Cloud Trace, AIOps anomalies and capacity. | Metrics & Logs, Alerting, Traces |
| Containers | Cloud Run and Artifact Registry. | ECS & Containers |
| Configuration | Secret Manager and Parameter Manager. | Security & Compliance |
6. The menu follows your connections
- No connection yet: the menu only shows Getting started, Settings and help (Support, FAQ, Documentation). Any other screen shows “No connection configured” with the Add connection button, which opens
/settings/conexiones. - Only Google Cloud: the AWS-only screens are hidden, even while the connection is still pending verification.
- AWS and Google Cloud: the active connection in the top selector decides. With a Google Cloud connection the AWS group is called Google Cloud and ECS Services, ECR Images, Secrets Manager and Parameter Store become Cloud Run, Artifact Registry, Secret Manager and Parameter Manager.
Troubleshooting
“The service account is missing … (module “…”)”.
Cause: The module was not granted, or a role was removed after verifying.
Fix: Run the commands on the screen and verify the connection again.
“Cluster … only accepts internal traffic”.
Cause: The cluster has neither the DNS endpoint enabled nor a public IP.
Fix: Enable the DNS endpoint: gcloud container clusters update <cluster> --location=<location> --enable-dns-access.
“Scaling node pools needs the infrastructure level…”.
Cause: The connection is at read or operations level.
Fix: Grant roles/container.clusterAdmin with the command shown and verify again.