Skip to main content

ClickHouse on GKE Autopilot

ClickHouse on GKE Autopilot

ClickHouse is an open-source (Apache-2.0) column-oriented OLAP database built for real-time analytics over large event streams. This module deploys a single-node ClickHouse server on GKE Autopilot on top of the App_GKE foundation, which provisions and manages the shared Google Cloud and Kubernetes infrastructure.

ClickHouse_GKE exists primarily as the mandatory event store for Plausible Analytics (Plausible_GKE): Plausible's PostgreSQL database holds only accounts and site configuration — every pageview/event is written to and queried from this ClickHouse instance. The module also works as a general-purpose single-node OLAP database.

This guide focuses on the cloud services ClickHouse uses and how to explore and operate them from the Google Cloud Console and the command line. For the mechanics common to every GKE application — Workload Identity, ingress, autoscaling, CI/CD, Cloud Armor, IAP, Binary Authorization, VPC Service Controls, backups, and the deployment lifecycle — refer to the App_GKE foundation guide rather than repeating them here.


1. Overview

ClickHouse runs as a StatefulSet workload. The deployment wires together a focused set of Google Cloud services:

CapabilityGoogle Cloud serviceNotes
ComputeGKE AutopilotClickHouse StatefulSet pod, 2 vCPU / 4 GiB by default
Persistent storagePersistent Disk30 GiB PVC (standard-rwo) at /var/lib/clickhouse, survives pod restarts
SecretsSecret ManagerAuto-generated ClickHouse user password, injected as CLICKHOUSE_PASSWORD
IngressCloud Load BalancingLoadBalancer Service on port 8123 (ClickHouse HTTP interface) for cross-namespace access
Image registryArtifact Registryclickhouse/clickhouse-server mirrored from Docker Hub

No Cloud SQL, no Redis, no GCS buckets — the wrapper hard-forces database_type = "NONE", enable_cloudsql_volume = false, and enable_redis = false into the foundation call. All data lives in the PVC.

Sensible defaults worth knowing up front:

  • The version is explicitly pinned — latest is rejected. application_version defaults to the known-good tag 24.12-alpine and a plan-time validation rejects "latest", because Plausible CE version-pins ClickHouse — untested versions have broken it upstream (plausible/analytics#3855). The Foundation resolves the deployed tag from this variable (a config-level remap is ignored), so an explicit pin is the only reliable control.
  • Bootstrap happens once. The official image creates CLICKHOUSE_DB (plausible_events_db) and CLICKHOUSE_USER (plausible) only on the first start of an empty data dir, with CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT=1 so that user can manage users/databases over SQL. Plausible's migrations create the events schema.
  • Password auth is always on. A 28-character password (no special characters — it travels in URLs and basic-auth headers) is generated by Terraform, stored in Secret Manager as secret-<tenant_resource_prefix>-clickhouse-clickhouse-password, and injected as CLICKHOUSE_PASSWORD. Since the service is a LoadBalancer by default, an unauthenticated instance would be an open analytics store.
  • Single-node is enforced at plan timemax_instance_count must be 1. Multi-node ClickHouse requires Keeper/replication configuration this module does not provide.
  • The Service listens on 8123, not App_GKE's default 80 — the wrapper forwards service_port = container_port so consumers (Plausible's CLICKHOUSE_DATABASE_URL) build their connection string against ClickHouse's standard HTTP-interface port.
  • Probes are TCP, hard-wired in the module config. Startup: 30 s initial delay, 10 s period, failure threshold 60 — up to ~10 minutes, because Autopilot must provision a node, attach the PVC, and pull the image before the container even starts. Liveness: 60 s / 30 s / 3. TCP is robust across image variants and cannot be wedged by auth changes.
  • fsGroup 101. The clickhouse/clickhouse-server image runs as UID/GID 101; the module sets the pod fsGroup to 101 so Kubernetes chowns the PVC on attach and the server can create /var/lib/clickhouse.
  • Termination grace period is 120 seconds so ClickHouse can flush in-memory data parts (segments) to disk before the pod is forcibly removed; deployment_timeout is 1800 s.

2. Google Cloud Services & How to Explore Them

All commands assume you have run gcloud container clusters get-credentials <cluster> --region <region> --project <project> and that PROJECT, REGION, and NAMESPACE are set. The namespace and other identifiers are reported in the deployment Outputs.

A. GKE Autopilot — the ClickHouse workload

ClickHouse runs as a Kubernetes StatefulSet on GKE Autopilot. Autopilot bills for the CPU and memory the pod actually requests. A PodDisruptionBudget keeps the pod available during node upgrades.

  • Console: Kubernetes Engine → Workloads → select the ClickHouse StatefulSet to see pod status, events, and the PVC attachment. Kubernetes Engine → Services & Ingress shows the LoadBalancer external IP on port 8123.
  • CLI:
    gcloud container clusters list --project "$PROJECT"
    kubectl get statefulset,pvc,svc -A | grep clickhouse # name-agnostic discovery
    kubectl get statefulsets,pods,svc,pvc -n "$NAMESPACE"
    kubectl logs -n "$NAMESPACE" <pod-name> --tail=100
    kubectl describe pvc -n "$NAMESPACE" # confirm the PVC is Bound

See App_GKE for Autopilot scaling, PDB, and the StatefulSet lifecycle.

B. Persistent Disk — event storage

All ClickHouse data parts live on a Persistent Disk-backed PersistentVolumeClaim, provisioned by the standard-rwo StorageClass and mounted at /var/lib/clickhouse (the server's data directory).

  • Console: Kubernetes Engine → Storage → PersistentVolumeClaims for size and binding state. Compute Engine → Disks shows the underlying disk.
  • CLI:
    kubectl get pvc -n "$NAMESPACE"
    kubectl describe pvc -n "$NAMESPACE" <pvc-name>
    # Check disk usage inside the pod:
    kubectl exec -n "$NAMESPACE" <pod-name> -- df -h /var/lib/clickhouse

Size the PVC against event volume — Plausible workloads compress extremely well in ClickHouse, but leave headroom for merges (background part merges temporarily need extra space).

C. ClickHouse service endpoint & authentication

The ClickHouse HTTP interface is exposed on port 8123 through a Kubernetes LoadBalancer Service. The external address is the clickhouse_endpoint output; the in-cluster DNS address is clickhouse_internal_endpoint (preferred when Plausible runs in the same cluster). The bootstrapped user's password lives in Secret Manager.

  • Console: Kubernetes Engine → Services & Ingress for the external IP; Security → Secret Manager for the password secret.
  • CLI:
    CH_IP=$(kubectl get svc -n "$NAMESPACE" \
    -o jsonpath='{.items[?(@.spec.type=="LoadBalancer")].status.loadBalancer.ingress[0].ip}')
    CH_SECRET=$(gcloud secrets list --project "$PROJECT" \
    --filter="name~clickhouse-password" --format="value(name)" --limit=1)
    CH_PASS=$(gcloud secrets versions access latest --secret="$CH_SECRET" --project "$PROJECT")

    # Unauthenticated health ping (expect "Ok."):
    curl -s "http://$CH_IP:8123/ping"

    # Authenticated query over HTTP:
    echo "SELECT version()" | curl -s "http://$CH_IP:8123/" --user "plausible:$CH_PASS" --data-binary @-
    echo "SHOW DATABASES" | curl -s "http://$CH_IP:8123/" --user "plausible:$CH_PASS" --data-binary @-

    # Native client inside the pod:
    kubectl exec -n "$NAMESPACE" -it <pod-name> -- \
    clickhouse-client --user plausible --password "$CH_PASS" --query "SELECT 1"

D. Secret Manager

The ClickHouse user password is generated by Terraform (random_password, 28 characters, no special characters) and stored as a service-scoped application secret — secret-<tenant_resource_prefix>-clickhouse-clickhouse-password — then injected into the container as the CLICKHOUSE_PASSWORD secret env var. Consuming modules (Plausible) reference the same secret via the clickhouse_password_secret_id output and have the foundation grant their workload SA secretAccessor.

  • Console: Security → Secret Manager.
  • CLI:
    gcloud secrets list --project "$PROJECT" --filter="name~clickhouse-password"
    gcloud secrets versions access latest --secret=<secret-name> --project "$PROJECT"

See App_GKE for the secret-injection mechanism and rotation.

E. Artifact Registry — container image

The official clickhouse/clickhouse-server:<version> image is mirrored into Artifact Registry before deployment (when enable_image_mirroring = true), avoiding Docker Hub rate limits and keeping images inside your VPC perimeter.

  • Console: Artifact Registry → select the repository for tags and digests.
  • CLI:
    gcloud artifacts repositories list --project "$PROJECT" --location "$REGION"
    gcloud artifacts docker images list "$REGION-docker.pkg.dev/$PROJECT/<repo>" --project "$PROJECT"

F. Networking & ingress

The LoadBalancer Service exposes ClickHouse on port 8123 so Plausible (and Cloud Run services) can reach it across namespaces. Password auth protects the endpoint, but for defence in depth prefer service_type = "ClusterIP" when everything shares the cluster, or restrict reachability with enable_network_segmentation / admin_ip_ranges / firewall rules.

  • Console: Network services → Load balancing; VPC network → IP addresses.
  • CLI:
    kubectl get ingress,svc -n "$NAMESPACE"
    gcloud compute addresses list --project "$PROJECT"

See App_GKE for custom domains, static IPs, and Cloud Armor details.

G. Cloud Logging & Monitoring

Pod stdout/stderr (the ClickHouse server log) flows to Cloud Logging; GKE metrics flow to Cloud Monitoring.

  • Console: Logging → Logs Explorer; Monitoring → Dashboards / Alerting.
  • CLI:
    gcloud logging read 'resource.type="k8s_container" AND resource.labels.namespace_name="'"$NAMESPACE"'"' \
    --project "$PROJECT" --limit 50

3. ClickHouse Application Behaviour

  • First-start-only bootstrap. The image reads CLICKHOUSE_DB, CLICKHOUSE_USER, and CLICKHOUSE_PASSWORD only when /var/lib/clickhouse is empty. Once data exists in the PVC, changing these variables has no effect on the running server — manage users and databases over SQL instead (CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT=1 grants the bootstrapped user access management). Plan-time validation rejects empty clickhouse_db / clickhouse_user.
  • Plausible creates the schema. No initialization jobs run; the module ships the database empty and Plausible's migrations create the events tables on Plausible's first boot. The clickhouse_database / clickhouse_username / clickhouse_password_secret_id outputs are exactly what Plausible_GKE consumes.
  • Version pinning is a correctness feature. application_version defaults to 24.12-alpine and "latest" is rejected at plan time — the Foundation resolves the deployed tag from this variable (a config-level remap is ignored), so the explicit pin is the only reliable control. Plausible CE only supports the ClickHouse versions it tests against; an arbitrary newer tag has broken Plausible upstream before (plausible/analytics#3855). Treat a version bump as a change to validate against your Plausible release, not a routine update.
  • Single-node only. max_instance_count = 1 is enforced by a plan-time precondition. Scaling a plain ClickHouse StatefulSet to 2+ replicas does not create a cluster — replicas would need ClickHouse Keeper and Replicated* table engines, which this module does not configure.
  • TCP probes by design. /ping answers HTTP 200 without auth, but TCP probes are robust across image variants and cannot be wedged by auth configuration changes. The trade-off: a probe pass proves only that the port is listening — verify auth and query behaviour explicitly after deploy (see the exploration commands above). The startup_probe_config / health_check_config variables exist for convention mirroring; the container probes actually used are the TCP ones assembled in clickhouse.tf.
  • Slow cold start is normal. On a fresh Autopilot cluster the first rollout can take up to ~10 minutes before Ready: node provisioning, PVC attach, image pull, then ClickHouse initialisation. The startup probe (threshold 60 × 10 s) and deployment_timeout = 1800 are sized for this — do not shorten them because a warm redeploy was fast.
  • Graceful shutdown matters. ClickHouse buffers inserts into in-memory parts and merges on disk in the background; termination_grace_period_seconds = 120 gives it time to flush cleanly. Force-killing risks slow recovery on the next start.
  • UID/GID 101. The server process runs as clickhouse (101:101). The module's stateful_fs_group = 101 makes the PVC group-writable on attach; without it the server cannot create its data directory and crashes immediately.

4. Configuration Variables

Variables are grouped exactly as they appear on the deployment platform. Only settings specific to or notable for ClickHouse are listed; every other input is inherited from App_GKE with its standard behaviour and defaults.

Group 1 — Project & Identity

VariableDefaultDescription
project_id(required)Target Google Cloud project.
regionus-central1Region for the workload and regional resources.

Group 2 — Deployment Environment

VariableDefaultDescription
tenant_deployment_iddemoShort suffix that makes resource names unique per environment.
support_users[]Emails granted project access and monitoring alerts.
resource_labels{}Labels applied to all resources for cost/ownership tracking.

Group 3 — Application Identity

VariableDefaultDescription
application_nameclickhouseBase name for resources. Do not change after first deploy.
application_display_nameClickHouseFriendly name shown in the Console.
application_version24.12-alpineImage tag. latest is rejected at plan time — the Foundation resolves the deployed tag from this variable (a config-level remap is ignored), so an explicit Plausible-tested pin is the only reliable control.
clickhouse_dbplausible_events_dbDatabase bootstrapped on first start (CLICKHOUSE_DB). Non-empty enforced at plan time.
clickhouse_userplausibleUser bootstrapped on first start (CLICKHOUSE_USER); password auto-generated into Secret Manager. Non-empty enforced at plan time.

Group 4 — Runtime & Scaling

VariableDefaultDescription
deploy_applicationtrueSet false to provision infrastructure only.
container_image_sourceprebuiltAlways prebuilt — official clickhouse/clickhouse-server image, no build.
container_image""Override image URI; leave empty for the official image.
enable_image_mirroringtrueMirror the image into Artifact Registry before deploy.
min_instance_count1Keep at 1 for single-node mode.
max_instance_count1Must be 1 — enforced at plan time; multi-node needs Keeper/replication this module does not provide.
container_port8123ClickHouse HTTP interface port — also forwarded as the Service port (not App_GKE's default 80).
cpu_limit2000mCPU per pod.
memory_limit4GiMemory per pod. ClickHouse recommends 4Gi as a practical floor; low-traffic Plausible runs acceptably at 2Gi.
timeout_seconds300Load balancer backend timeout.

Group 5 — Environment Variables & Secrets

VariableDefaultDescription
environment_variables{}Extra env vars merged into the container; user values override the module's built-ins (CLICKHOUSE_DB, CLICKHOUSE_USER, CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT).
secret_environment_variables{}Map of env var → Secret Manager secret name (the module already injects CLICKHOUSE_PASSWORD).
secret_rotation_period2592000sSecret Manager rotation notification cadence.
secret_propagation_delay30Seconds to wait after secret creation before proceeding.

Group 6 — GKE Backend & Cluster

VariableDefaultDescription
gke_cluster_name""GKE cluster name; leave empty for auto-discovery.
namespace_name""Kubernetes namespace; auto-generated when empty.
workload_typenullLeave unset — null auto-resolves to StatefulSet when stateful_pvc_enabled = true (the default); a Deployment is rejected with a PVC.
service_typeLoadBalancerRequired for cross-namespace/cross-platform access from Plausible. Use ClusterIP when all consumers share the cluster.
termination_grace_period_seconds120SIGTERM grace for segment flush.
deployment_timeout1800Seconds Terraform waits for the StatefulSet rollout.

Group 7 — StatefulSet & Persistence

Data persistence is critical — all ClickHouse event data lives in the PVC.

VariableDefaultDescription
stateful_pvc_enabledtrueDefaults true — without a PVC ClickHouse deploys as a Deployment on ephemeral disk and the entire event store is wiped on every pod reschedule. Auto-resolves workload_type to StatefulSet.
stateful_pvc_size30GiPVC size. Leave headroom for background merges.
stateful_pvc_mount_path/var/lib/clickhouseDo not change — the server's data directory.
stateful_pvc_storage_classstandard-rwoGKE Autopilot default; premium-rwo for heavier query loads. Cannot change after PVC creation.
stateful_fs_group0 (declared)Convention mirror only — the module's assembled config hard-sets fsGroup 101 (the image's UID/GID).

Group 8 — Resource Quota

VariableDefaultDescription
enable_resource_quotafalseCap namespace CPU/memory.
quota_memory_requests / quota_memory_limits""Must use binary units (4Gi, 8192Mi) — bare integers are read as bytes and block all pod scheduling.

Group 9 — Reliability Policies

VariableDefaultDescription
enable_pod_disruption_budgettrueProtect availability during node upgrades.
pdb_min_available1For single-node ClickHouse, "1" prevents any voluntary disruption.

Group 10 — Observability & Health

VariableDefaultDescription
startup_probe_config / health_check_config(declared)Convention mirrors — the container uses the module's hard-wired TCP probes (startup 30 s/10 s/60; liveness 60 s/30 s/3).
uptime_check_configdisabled, path /_cluster/healthOptional Cloud Monitoring uptime check; the configured path is not a real ClickHouse endpoint (use /ping if you enable this).
alert_policies[]Optional metric alert policies.

Group 11 — Jobs & Scheduled Tasks

VariableDefaultDescription
initialization_jobs[]Not required — ClickHouse bootstraps itself; Plausible creates the schema.
cron_jobs / additional_services[]Optional CronJobs / sidecar services.

Group 12 — CI/CD & GitHub Integration

Standard App_GKE Cloud Build / Cloud Deploy integration — see App_GKE. Key inputs: enable_cicd_trigger, github_repository_url, github_token, enable_cloud_deploy, enable_binary_authorization.

Groups 13-16 — NFS, Cloud Storage, Redis, Database

Not used by ClickHouse. enable_nfs = false and create_cloud_storage = false by default; main.tf hard-forces enable_redis = false, database_type = "NONE", and enable_cloudsql_volume = false regardless of the declared variables (which exist for foundation-interface parity). Artifact Registry retention knobs (max_images_to_retain = 7, delete_untagged_images = true, image_retention_days = 30) apply to the mirrored image.

Group 17 — Backup & Maintenance

VariableDefaultDescription
backup_schedule0 2 * * *Cron (UTC). For ClickHouse, prefer native BACKUP ... TO S3/GCS statements over OS-level backups.
backup_retention_days7Retention in days.
enable_backup_importfalseNot applicable for ClickHouse.

Group 19 — Custom Domain, Static IP & Networking

VariableDefaultDescription
enable_custom_domaintrueProvision Ingress for custom hostname routing.
application_domains[]Hostnames to serve.
reserve_static_iptrueStable external IP across redeploys.
network_tags["nfsserver"]GKE node/pod network tags for firewall rules.

Static IP quota: on projects capped on external global static IP quota, when the only consumer is in-cluster (Plausible in the same GKE cluster), set service_type = "ClusterIP", reserve_static_ip = false, and enable_custom_domain = false — this avoids consuming a global static external IP for a database that nothing outside the cluster calls.

Group 20 — Identity-Aware Proxy (IAP)

IAP is not recommended for ClickHouse — consumers are services, not browsers. Use network-level controls instead. When enable_iap = true, both iap_oauth_client_id and iap_oauth_client_secret are required (plan-time check).

Group 21 — Cloud Armor

enable_cloud_armor = false, admin_ip_ranges = [], cloud_armor_policy_name = "default-waf-policy", enable_cdn = false (not applicable).

Group 22 — VPC Service Controls & Audit Logging

enable_vpc_sc = false, vpc_cidr_ranges = [], vpc_sc_dry_run = true, organization_id = "", enable_audit_logging = false.


5. Outputs

These values are returned on a successful deployment and are the quickest way to locate and explore the running resources.

OutputDescription
clickhouse_endpointExternal HTTP endpoint: http://<external-ip>:8123. Pass to Plausible as clickhouse_url. Returns null until the external IP is assigned.
clickhouse_internal_endpointIn-cluster endpoint: http://<svc>.<ns>.svc.cluster.local:8123preferred when Plausible_GKE runs in the same cluster.
clickhouse_databaseDatabase bootstrapped by the image on first start.
clickhouse_usernameClickHouse username bootstrapped on first start.
clickhouse_password_secret_idSecret Manager secret ID holding the user password. Consuming modules pass this as Plausible_GKE's clickhouse_password_secret.
service_name / namespaceKubernetes Service name / namespace.
service_cluster_ip / service_external_ip / service_urlIn-cluster IP, LoadBalancer IP, and URL.
stage_service_cluster_ipsMap of ClusterIPs for stage-specific services (Cloud Deploy).
statefulset_nameName of the StatefulSet resource.
storage_bucketsCreated Cloud Storage buckets (empty — none are provisioned).
network_name / network_exists / regionsVPC network, presence, available regions.
container_image / container_registryDeployed image and Artifact Registry repo.
monitoring_enabled / monitoring_notification_channelsMonitoring status and channels.
initialization_jobsNames of any setup jobs (none by default).
deployment_id / tenant_id / resource_prefixNaming identifiers.
project_id / project_numberProject identifiers.
cicd_enabled / cicd_configurationCI/CD status and details.
github_repository_url / github_repository_owner / github_repository_nameConnected GitHub repository details.
artifact_registry_repository / cloudbuild_trigger_name / cloudbuild_trigger_idRegistry and build trigger.
kubernetes_readytrue when the cluster endpoint is available and all workload resources are deployed; false on the first apply of a new inline cluster — re-run apply to complete.
vpc_sc_enabled / vpc_sc_perimeter_name / vpc_sc_dry_run_modeVPC-SC status.
audit_logging_enabled / artifact_registry_cmek_enabledAudit logging and CMEK status.

6. Configuration Pitfalls & Sensible Defaults

Risk: Critical (data loss / outage / security) — High (service degraded) — Medium (cost or partial degradation) — Low (minor).

RiskPitfallConsequenceAvoidance
CriticalSetting application_version to an untested ClickHouse versionPlausible CE version-pins ClickHouse; an arbitrary newer tag has broken it upstream (plausible/analytics#3855) — migrations or queries fail and analytics ingestion stops. "latest" is now rejected at plan time.Keep the default 24.12-alpine pin. Only set an explicit version validated against your Plausible release; treat a bump as a tested change.
CriticalDeleting the PVC, or setting stateful_pvc_enabled = falseEvery analytics event ever recorded is destroyed (or, without a PVC, silently lost on each pod restart/node eviction). Plausible's PostgreSQL keeps accounts, but the event history is unrecoverable.Keep the default stateful_pvc_enabled = true (StatefulSet) — the ephemeral-disk trap is closed by default. Never delete the PVC outside an intentional teardown; back up with native ClickHouse BACKUP first.
CriticalSetting max_instance_count > 1Plain replicas are NOT a cluster — each pod would have an isolated data dir; writes and reads diverge. Blocked at plan time: multi-node needs Keeper/replication this module does not provide.Leave min = max = 1. For real HA, use a Keeper-configured ClickHouse deployment outside this module.
HighExposing 8123 on a public LoadBalancer without network controlsPassword auth is always on, but the HTTP interface is still internet-reachable — brute force, /ping reconnaissance, and any future auth misconfig become externally exploitable.Prefer service_type = "ClusterIP" (use clickhouse_internal_endpoint) when consumers share the cluster; otherwise restrict with enable_network_segmentation, firewall rules, and admin_ip_ranges.
HighTrusting the TCP probe as proof of healthThe TCP probe passes as soon as the port listens — an auth misconfiguration or an empty/foreign data dir still shows a "healthy" pod while every Plausible query fails.After deploy, verify explicitly: curl http://$CH_IP:8123/ping, then an authenticated SELECT version() with the Secret Manager password.
HighChanging clickhouse_db/clickhouse_user (or expecting a new password to apply) after first startThe image bootstraps credentials only on the first start of an empty data dir — post-bootstrap changes silently do nothing; consumers then authenticate with values the server never learned.Set them once before first deploy (plan-time check rejects empties). Post-bootstrap, manage users/databases over SQL (CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT=1).
MediumDeclaring the first rollout failed before Autopilot finishesA fresh Autopilot cluster needs node provisioning + PVC attach + image pull — up to ~10 minutes before Ready. Manual intervention mid-rollout (deleting pods, re-applying) wedges the StatefulSet.Wait out the startup probe window (60 × 10 s + 30 s delay; deployment_timeout = 1800). Watch kubectl get pods -w and events instead of restarting.
MediumUndersizing memory_limit below ~2GiClickHouse's merges and query memory push past small limits; the pod OOM-kills under ingestion or dashboard queries.Keep the 4Gi default (ClickHouse's practical floor); 2Gi only for genuinely low-traffic Plausible sites.
Mediumquota_memory_requests / quota_memory_limits without binary suffixesBare integers are treated as bytes by Kubernetes and block ALL pod scheduling in the namespace.Always use "4Gi" / "8192Mi"-style values (plan-time validation in App_GKE).
LowDisabling enable_image_mirroringPulls come straight from Docker Hub; rate limits can intermittently fail deployments and imagePullPolicy re-pulls.Keep mirroring on; retention knobs (max_images_to_retain, image_retention_days) manage repo growth.

For the foundation behaviour referenced throughout — IAM and Workload Identity, autoscaling, ingress and certificates, CI/CD, Cloud Armor, IAP, Binary Authorization, VPC-SC, backups, and image mirroring — see App_GKE.