Skip to main content

N8N AI GKE Module — Configuration Guide

n8n is an open-source workflow automation platform that lets you connect services, run logic, and build AI-powered pipelines through a visual node-based interface. This module deploys n8n on GKE Autopilot alongside two companion AI services: Qdrant (vector database for RAG and document search) and Ollama (local LLM inference for privacy-first AI). Together they form an AI Starter Kit for building intelligent agents, chatbots, and document analysis workflows without external AI API dependencies.

N8N AI GKE is a wrapper module built on top of App GKE. It uses App GKE for all GCP infrastructure provisioning (GKE Autopilot cluster, networking, Cloud SQL Auth Proxy, GCS, secrets, CI/CD) and adds n8n-specific application configuration and AI component orchestration on top.

Note: Variables marked as platform-managed are set and maintained by the platform. You do not normally need to change them.


How This Guide Is Structured

This guide documents only the variables that are unique to N8N_AI_GKE or that have n8n-specific defaults that differ from the App_GKE base module. For all other variables — project identity, GKE backend configuration, CI/CD, GCS storage, backup, custom SQL, observability, networking, IAP, and Cloud Armor — refer directly to the App_GKE Configuration Guide.

Variables fully covered by the App GKE guide:

Configuration AreaApp GKE.md SectionN8N_AI-Specific Notes
Module Metadata & Configuration§1 Module OverviewDifferent defaults for module_description and module_documentation. module_documentation defaults to "https://docs.radmodules.dev/docs/modules/N8N_AI_GKE".
Project & Identity§2 IAM & Access ControlRefer to base App GKE module documentation.
Application Identity§3.A Compute (GKE Autopilot)See N8N AI Application Identity below for n8n-specific defaults.
Runtime & Scaling§3.A Compute (GKE Autopilot)See N8N Runtime Configuration below. cpu_limit and memory_limit are top-level variables.
Environment Variables & Secrets§3 Core Service ConfigurationSee N8N Environment Variables below for SMTP defaults.
GKE Backend Configuration§3.A Compute (GKE Autopilot)Refer to base App GKE module documentation (service_type, workload_type, session_affinity, gke_cluster_name, namespace_name, etc.).
Networking & Network Policies§3.D Networking & Network PoliciesIdentical.
Jobs & Scheduled Tasks§3.E Initialization Jobs & CronJobsRefer to base App GKE module documentation.
Additional Services§3.F Additional ServicesIdentical.
CI/CD & GitHub Integration§6 CI/CD & DeliveryRefer to base App GKE module documentation.
Storage — NFS§3.C Storage (NFS / GCS / GCS Fuse)NFS is enabled by default (enable_nfs = true). See Platform-Managed Behaviours.
Storage — GCS§3.C Storage (NFS / GCS / GCS Fuse)Refer to base App GKE module documentation.
Database Configuration§3.B Database (Cloud SQL)See N8N Database Configuration below. db_name and db_user replace application_database_name and application_database_user.
Backup Schedule & Retention§3.B Database (Cloud SQL)Refer to base App GKE module documentation.
Custom SQL Scripts§3.E Initialization Jobs & CronJobsRefer to base App GKE module documentation.
Observability & Health§3.A Compute (GKE Autopilot)See N8N Health Probes below for the two-path probe system. startup_probe_config, health_check_config, uptime_check_config, and alert_policies pass directly to App GKE.
Cloud Armor WAF§4.A Cloud Armor WAFRefer to base App GKE module documentation.
Identity-Aware Proxy§4.B Identity-Aware Proxy (IAP)Refer to base App GKE module documentation. Note: GKE IAP requires iap_oauth_client_id and iap_oauth_client_secret.
Binary Authorization§4.C Binary AuthorizationIdentical.
VPC Service Controls§4.D VPC Service ControlsIdentical.
Secrets Store CSI Driver§4.E Secrets Store CSI DriverIdentical.
Traffic & Ingress§5 Traffic & IngressRefer to base App GKE module documentation.
CDN§5.B CDNIdentical.
Pod Disruption Budgets§7.A Pod Disruption Budgetsenable_pod_disruption_budget defaults to true.
Topology Spread Constraints§7.B Topology Spread ConstraintsIdentical.
Resource Quotas§7.C Resource QuotasRefer to base App GKE module documentation.
Auto Password Rotation§7.D Auto Password RotationSee N8N Database Configuration.
Redis Cache§8.A Redis / Memorystoreenable_redis defaults to true. See Redis Configuration for n8n-specific details.
Backup Import§8.B Backup ImportUses backup_uri instead of backup_file — mapped internally to App GKE's backup_file input.
Service Mesh (ASM)§8.C Service Mesh (ASM via Fleet)Identical.
Multi-Cluster Services§8.D Multi-Cluster Services (MCS)Identical.

Platform-Managed Behaviours

The following behaviours are applied automatically by N8N AI GKE regardless of the variable values in your tfvars file. They cannot be overridden by user configuration.

BehaviourDetail
Encryption key auto-generatedA 32-character random encryption key is generated and stored in Secret Manager as N8N_ENCRYPTION_KEY, then synced to a Kubernetes Secret. This key encrypts all n8n credentials (API keys, OAuth tokens, workflow passwords). Back up this secret before destroying the module — credentials encrypted with one key cannot be decrypted with a different key.
SMTP password auto-generatedA placeholder SMTP password is generated and stored in Secret Manager as N8N_SMTP_PASS. Replace the secret value with your real SMTP credentials before enabling email sending.
n8n port fixed at 5678N8N_PORT=5678 is injected automatically via the application configuration.
Database type set to PostgreSQLDB_TYPE=postgresdb is injected automatically. n8n requires PostgreSQL — do not change database_type to MySQL or SQL Server.
Database connection variables injectedDB_POSTGRESDB_HOST, DB_POSTGRESDB_PORT, DB_POSTGRESDB_DATABASE, DB_POSTGRESDB_USER, and DB_POSTGRESDB_PASSWORD are injected automatically from the Cloud SQL instance provisioned by App GKE. The n8n Pod connects via the Cloud SQL Auth Proxy sidecar running at 127.0.0.1.
Webhook and editor URLs auto-setWEBHOOK_URL and N8N_EDITOR_BASE_URL are set to the predicted service URL. When enable_custom_domain = true and application_domains is non-empty, the first domain is used. Otherwise the internal ClusterIP service URL (http://<service>.<namespace>.svc.cluster.local) is used.
Qdrant URL auto-injectedWhen enable_qdrant = true, QDRANT_URL is set to the internal ClusterIP service URL of the Qdrant Kubernetes Deployment. Qdrant is accessible only within the cluster namespace via the ClusterIP service.
Ollama host auto-injectedWhen enable_ollama = true, OLLAMA_HOST is set to the internal ClusterIP service URL of the Ollama Kubernetes Deployment. Ollama is accessible only within the cluster namespace.
Qdrant and Ollama deployed as Kubernetes DeploymentsQdrant and Ollama run as separate Kubernetes Deployments in the same namespace as n8n, each with a ClusterIP service. They are not exposed outside the cluster.
Workload Identity for IAMThe n8n Pod uses Workload Identity to authenticate to GCP services (Cloud SQL, GCS, Secret Manager) without needing to embed service account keys in the container.
GCS persistence for AI dataQdrant stores its vector index in a GCS Fuse volume and Ollama stores model weights in a GCS Fuse volume on the shared -n8n-data bucket. This persists data across Pod restarts and rescheduling.
Database initialisation jobA Kubernetes Job (db-init) is created automatically to provision the n8n_db database and n8n_user PostgreSQL user before the n8n Deployment starts.

N8N AI Application Identity

These variables control how the n8n deployment is named and described. They correspond to §3.A variables in App GKE but carry n8n-specific defaults.

VariableDefaultOptions / FormatDescription & Implications
application_name"n8nai"[a-z][a-z0-9-]{0,19}Internal identifier used as the base name for GKE workloads, Cloud SQL, GCS buckets, Kubernetes namespace, and Artifact Registry. Do not change after initial deployment — it is embedded in resource names and changing it will cause resources to be recreated.
application_display_name"N8N AI Starter Kit"Any stringHuman-readable name shown in the platform UI and GKE monitoring dashboards. Equivalent to application_display_name in App GKE. Can be updated freely without affecting resource names.
description"N8N AI Starter Kit - Workflow automation with Qdrant and Ollama"Any stringBrief description of the deployment. Populated into Kubernetes resource annotations and platform documentation.
application_version"2.4.7"n8n version string, e.g. "2.4.7", "latest"Version tag applied to the container image and used for deployment tracking. Increment this value to trigger a new image build and revision. See n8n releases for available versions.
region"us-central1"GCP region stringFallback region used when network discovery cannot determine the region from existing VPC subnets. Unlike N8N AI CloudRun, this variable is explicitly declared in N8N AI GKE and used as a fallback in the region local.

Validating Application Identity

# Confirm the Deployment exists with the expected name
kubectl get deployments -n NAMESPACE -o wide

# View annotations (description is stored here)
kubectl describe deployment n8nai -n NAMESPACE | grep -A5 Annotations

N8N Runtime Configuration

n8n exposes cpu_limit and memory_limit as dedicated top-level variables rather than requiring users to set the full container_resources object.

VariableDefaultOptions / FormatDescription & Implications
cpu_limit"2000m"Kubernetes CPU quantity (e.g. "1000m", "2000m", "4")CPU limit for the n8n container in GKE Autopilot. 2 vCPU is recommended for active AI workflows. n8n executes workflow nodes concurrently and AI node operations are CPU-bound. In GKE Autopilot, the CPU limit also determines Pod scheduling and billing.
memory_limit"4Gi"Kubernetes memory quantity (e.g. "2Gi", "4Gi", "8Gi")Memory limit for the n8n container. 4 Gi is recommended for AI workflows. n8n caches workflow state and credential data in memory; AI nodes processing large document sets can require 2–3 Gi alone. Setting below 2Gi risks OOMKilled Pod restarts during complex workflows.
min_instance_count0Integer ≥ 0Minimum number of n8n Pod replicas. Set to 0 to scale to zero when idle (lowest cost, but webhooks will miss events while scaled down). Set to 1 to ensure continuous webhook availability.
max_instance_count3Integer ≥ 1Maximum number of n8n Pod replicas allowed by the HPA. The default of 3 permits horizontal scaling. Increase only after enabling Redis queue mode (enable_redis = true) — without Redis, multiple replicas will conflict on workflow state.
timeout_seconds300Integer, 0–3600Maximum request duration before the ingress layer times out. Increase for long-running workflow executions or Ollama inference requests.

Note on container_resources: The full container_resources object (as documented in App_GKE §3.A) is also available. If container_resources is set explicitly in your tfvars, it takes precedence over the top-level cpu_limit and memory_limit variables. Use container_resources when you also need to set cpu_request or mem_request.

Note on container_port: N8N AI GKE declares a container_port variable (default 8080) but does not forward it to App GKE. The n8n container port is always 5678, set directly by N8N AI Common in the application_config. The container_port variable in this module has no effect in the current implementation.

N8N-specific runtime defaults that differ from App GKE:

VariableApp GKE DefaultN8N AI GKE DefaultReason
cpu_limit (via container_resources)"1000m""2000m"AI workflows are CPU-intensive.
memory_limit (via container_resources)"512Mi""4Gi"n8n with AI nodes requires substantial memory.
enable_nfsfalsetrueNFS provides shared persistence for workflow data and credentials.

Note: max_instance_count defaults to 3 in both App GKE and N8N AI GKE. enable_cloudsql_volume defaults to true in both modules. Neither is an n8n-specific override.

Validating Runtime Configuration

# View resource requests and limits on the running n8n Pod
kubectl describe pod -n NAMESPACE -l app=n8nai | grep -A10 "Limits:"

# Check the HPA (if min/max_instance_count > 1)
kubectl get hpa -n NAMESPACE

AI Components Configuration

These variables are unique to N8N AI GKE — they do not exist in App GKE. They control the Qdrant vector database and Ollama LLM server that are deployed as companion Kubernetes Deployments in the same namespace as n8n.

VariableDefaultOptions / FormatDescription & Implications
enable_ai_componentstruetrue / falseMaster toggle for the entire AI stack. Set to false to deploy n8n as a standard workflow automation tool without Qdrant or Ollama. When false, the QDRANT_URL and OLLAMA_HOST environment variables are not injected and the companion Deployments are not created.
enable_qdranttruetrue / falseDeploys Qdrant vector database as a Kubernetes Deployment and ClusterIP service for n8n AI workflows. Qdrant enables RAG pipelines, document embedding search, and AI memory. Only used when enable_ai_components = true. When false, the QDRANT_URL variable is not injected.
qdrant_version"latest"Docker image tag, e.g. "latest", "v1.9.0"Image version of the qdrant/qdrant container. Use a pinned version in production for reproducible deployments. Only used when enable_qdrant = true.
enable_ollamatruetrue / falseDeploys Ollama LLM server as a Kubernetes Deployment and ClusterIP service. Ollama runs open-source models (Llama 3, Mistral, Gemma) on your infrastructure — no external AI API keys required. Only used when enable_ai_components = true.
ollama_version"latest"Docker image tag, e.g. "latest", "0.3.0"Image version of the ollama/ollama container. Use a pinned version in production. Only used when enable_ollama = true.
ollama_model"llama3.2"Ollama model name, e.g. "llama3.2", "mistral", "gemma2"Default language model name for Ollama. Note: This variable is declared in N8N AI GKE but is not currently forwarded to N8N AI Common — it has no effect in the current implementation. Model selection must be configured at the Ollama service level directly.

AI Component Resource Allocation

The Qdrant and Ollama Kubernetes Deployments are configured with fixed resources managed by the platform. These are not user-configurable in this release:

ServiceCPUMemoryReplicasStorage
Qdrant1 vCPU1 GiFixed: 1GCS Fuse via CSI driver
Ollama2 vCPU4 GiFixed: 1GCS Fuse via CSI driver

Note on GPU support: Ollama currently runs on CPU only. When GKE Autopilot GPU node pools become generally available for this configuration, a future release will add GPU acceleration for faster LLM inference.

Validating AI Components

# List all Deployments in the namespace (n8n, qdrant, and ollama should appear)
kubectl get deployments -n NAMESPACE

# Confirm QDRANT_URL and OLLAMA_HOST are injected into the n8n Pod
kubectl describe pod -n NAMESPACE -l app=n8nai | grep -E "QDRANT|OLLAMA"

# Confirm Qdrant and Ollama are accessible only via ClusterIP
kubectl get services -n NAMESPACE

Redis Configuration

These variables configure n8n's Redis integration. The underlying Redis infrastructure support is provided by App_GKE (see App_GKE §8.A); the variables below are n8n-specific. Redis is required for n8n queue mode, which enables reliable multi-replica workflow execution.

VariableDefaultOptions / FormatDescription & Implications
enable_redistruetrue / falseEnables Redis as the n8n queue mode backend by injecting REDIS_HOST and REDIS_PORT environment variables. When true and redis_host is empty, the module defaults to the NFS server IP discovered from Services GCP. Required when max_instance_count > 1 to avoid workflow state conflicts between replicas.
redis_host"" (auto-discovered)Hostname or IP, e.g. "10.0.0.5", "redis.internal"Hostname or IP of the Redis server. Leave blank to use the NFS server IP auto-discovered from Services GCP. Override with a dedicated Redis/Memorystore instance endpoint for production deployments requiring higher availability or AUTH.
redis_port"6379"Port string, e.g. "6379"TCP port of the Redis server. Must match the port configured on the Redis instance.
redis_auth""Sensitive stringAuthentication password for the Redis server. Leave empty for unauthenticated Redis. For Google Cloud Memorystore with AUTH enabled, set this to the instance auth string. Treated as sensitive — never stored in Terraform state in plaintext.

Validating Redis Configuration

# Confirm REDIS_HOST and REDIS_PORT are set in the n8n Pod
kubectl describe pod -n NAMESPACE -l app=n8nai | grep -E "REDIS"

N8N Database Configuration

n8n requires PostgreSQL. This module exposes db_name and db_user as short top-level variables in place of the application_database_name and application_database_user variables documented in App_GKE §3.B.

All other database variables (database_password_length, enable_mysql_plugins, etc.) behave identically to the App_GKE equivalents — refer to App_GKE §3.B for their documentation.

VariableDefaultOptions / FormatDescription & Implications
db_name"n8n_db"[a-z][a-z0-9_]{0,62}Name of the PostgreSQL database created within the Cloud SQL instance. Injected automatically as DB_POSTGRESDB_DATABASE. Do not change after initial deployment — renaming the database requires a full backup-and-restore migration.
db_user"n8n_user"[a-z][a-z0-9_]{0,31}PostgreSQL user created for n8n. Injected automatically as DB_POSTGRESDB_USER. The password is auto-generated, stored in Secret Manager, synced to a Kubernetes Secret, and injected as DB_POSTGRESDB_PASSWORD.

Validating Database Configuration

# Confirm the database and user were created
gcloud sql databases list --instance=INSTANCE_NAME --project=PROJECT_ID

gcloud sql users list --instance=INSTANCE_NAME --project=PROJECT_ID

# Confirm DB env vars are injected into the n8n Pod
kubectl describe pod -n NAMESPACE -l app=n8nai | grep -E "DB_POSTGRES"

N8N Environment Variables

The environment_variables variable (documented in App_GKE §3) has n8n-specific defaults that configure email delivery.

Default environment_variables in N8N AI GKE:

environment_variables = {
SMTP_HOST = ""
SMTP_PORT = "25"
SMTP_USER = ""
SMTP_PASSWORD = ""
SMTP_SSL = "false"
EMAIL_FROM = "ghost@example.com"
}

Override the SMTP values to enable n8n email notifications (workflow failure alerts, credential sharing invitations). For providers such as SendGrid or Mailgun that use API key authentication, set SMTP_USER = "apikey" and store the actual key in secret_environment_variables.

Do not set N8N_PORT, DB_TYPE, DB_POSTGRESDB_*, N8N_ENCRYPTION_KEY, WEBHOOK_URL, N8N_EDITOR_BASE_URL, QDRANT_URL, or OLLAMA_HOST in environment_variables — these are injected automatically by the platform and will be overridden.


N8N Health Probes

N8N AI GKE exposes two parallel sets of probe variables that configure Kubernetes probes via different routing paths:

Variable setPassed toConfigures
startup_probe, liveness_probeN8N AI Common sub-moduleThe application container's Kubernetes probe spec (initialDelaySeconds, path, failureThreshold, etc.)
startup_probe_config, health_check_configApp GKE directlyThe App GKE-standard probe configuration used for load balancer health checks and GKE infrastructure probes

These are parallel paths, not aliases. Changing startup_probe does not affect startup_probe_config, and vice versa.

Application container probes (startup_probe, liveness_probeN8N AI Common):

VariableDefault
startup_probe{ enabled = true, type = "HTTP", path = "/", initial_delay_seconds = 120, timeout_seconds = 3, period_seconds = 10, failure_threshold = 3 }
liveness_probe{ enabled = true, type = "HTTP", path = "/", initial_delay_seconds = 30, timeout_seconds = 5, period_seconds = 30, failure_threshold = 3 }

The initial_delay_seconds = 120 on the startup probe gives n8n time to connect to PostgreSQL and load encrypted credentials before health checks begin.

App GKE-standard probes (startup_probe_config, health_check_configApp GKE):

VariableDefault
startup_probe_config{ enabled = true, type = "TCP" } — TCP type; no HTTP path check
health_check_config{ enabled = true, type = "HTTP", path = "/" } — HTTP GET on "/"

Note on uptime_check_config: In N8N AI GKE, this variable defaults to { enabled = false, path = "/" } — uptime checks are disabled by default, unlike N8N AI CloudRun where they are enabled by default. Enable explicitly for production monitoring.

For full documentation on uptime_check_config and alert_policies, refer to App_GKE §3.A.


Configuration Examples

Basic Deployment

Deploys n8n with AI components on GKE using default settings. Suitable for evaluation and development.

# config/basic.tfvars
resource_creator_identity = ""
project_id = "my-project-123"
tenant_deployment_id = "basic"

Advanced Deployment

Production-grade deployment with scaled resources, Redis queue mode, CI/CD, GKE-specific reliability policies, and full observability.

# config/advanced.tfvars
resource_creator_identity = ""
project_id = "my-project-123"
tenant_deployment_id = "prod"

application_name = "n8nai"
application_display_name = "N8N AI Production"

# Scaling & Performance
cpu_limit = "4000m"
memory_limit = "8Gi"
min_instance_count = 1
max_instance_count = 5

# AI Components
enable_ai_components = true
enable_qdrant = true
qdrant_version = "v1.9.0"
enable_ollama = true
ollama_version = "0.3.0"
ollama_model = "llama3.2"

# Redis (required for multi-replica scaling)
enable_redis = true

# Database
database_password_length = 32

# GKE Specific
enable_resource_quota = true
enable_pod_disruption_budget = true
enable_network_segmentation = true
enable_vertical_pod_autoscaling = true

# CI/CD & Cloud Deploy
enable_cicd_trigger = true
enable_cloud_deploy = true
cloud_deploy_stages = [
{ name = "dev", require_approval = false, auto_promote = false },
{ name = "staging", require_approval = false, auto_promote = false },
{ name = "prod", require_approval = true, auto_promote = false },
]

# Security
enable_iap = true
enable_binary_authorization = true
enable_cloud_armor = true

# Backup
backup_schedule = "0 2 * * *"
backup_retention_days = 30

# Observability
uptime_check_config = {
enabled = true
path = "/"
check_interval = "60s"
timeout = "10s"
}

alert_policies = [
{
name = "high-cpu"
metric_type = "kubernetes.io/container/cpu/usage_time"
comparison = "COMPARISON_GT"
threshold_value = 2000
duration_seconds = 300
aggregation_period = "60s"
}
]

Custom Image Deployment

Deploys n8n with a custom-built container image, explicit Redis, and custom SMTP configuration.

# config/custom.tfvars
resource_creator_identity = ""
project_id = "my-project-123"
tenant_deployment_id = "custom"

application_name = "n8nai"

# Custom Container Build
container_image_source = "custom"
container_build_config = {
enabled = true
dockerfile_path = "Dockerfile"
context_path = "scripts"
dockerfile_content = null
build_args = {}
artifact_repo_name = "n8n-repo"
}

# AI Components
enable_ai_components = true
enable_qdrant = true
enable_ollama = true

# Redis
enable_redis = true
redis_host = "10.0.0.5" # Explicit Memorystore IP

# GKE Specific
enable_resource_quota = true
enable_pod_disruption_budget = true

# SMTP
environment_variables = {
SMTP_HOST = "smtp.sendgrid.net"
SMTP_PORT = "587"
SMTP_USER = "apikey"
SMTP_SSL = "true"
EMAIL_FROM = "noreply@example.com"
}

secret_environment_variables = {
SMTP_PASSWORD = "sendgrid-api-key-secret"
}

Configuration Pitfalls & Sensible Defaults

Risk levels: Critical (data loss, full outage, security breach) — High (service unavailable or significant degradation) — Medium (degraded function or increased cost) — Low (minor impact).

VariableSensible DefaultRiskConsequence of Incorrect Value
N8N_ENCRYPTION_KEY (auto-generated secret)Auto-generated 32-char random string stored in Secret ManagerCriticalChanging after first run permanently destroys all saved credentials in every workflow. Never rotate unless prepared to re-enter all credentials.
application_name"n8nai"CriticalImmutable after first deploy. Renaming triggers full Kubernetes and GCP resource recreation with data loss.
db_name"n8n_db"CriticalImmutable after first deploy. Changing causes n8n to connect to a new empty database, losing all workflows and AI pipeline configs.
WEBHOOK_URL / N8N_EDITOR_BASE_URL (injected from service_url)Predicted service URLCriticalMust match the actual public URL. Incorrect values break all webhook triggers and OAuth callbacks.
enable_ai_componentstrueHighMaster toggle. Setting to false prevents Qdrant and Ollama from deploying. GKE validation blocks enable_qdrant = true or enable_ollama = true when this is false.
enable_qdranttrueHighQdrant stores the vector index at /mnt/gcs/qdrant. Disabling it with active AI workflows referencing Qdrant causes runtime connection failures in those workflows.
enable_ollamatrueHighOllama serves local LLMs. Disabling it breaks all n8n AI nodes using the Ollama endpoint. Only disable when exclusively using external providers.
enable_redistrueHighDisabling Redis with max_instance_count > 1 causes split-brain execution. GKE validation blocks: "When enable_redis is true, either redis_host must be set or enable_nfs must be true."
redis_host"" (uses NFS server IP when enable_nfs = true)HighWhen enable_redis = true, redis_host is empty, and enable_nfs = false, plan-time validation fails with a blocking error.
memory_limit"4Gi"HighAI workflows and embedding generation are memory-intensive. Values below 4Gi cause OOM kills on active AI pipelines. Increase to 8Gi for large model workflows.
workload_typenull (defaults to Deployment)HighSetting workload_type = "StatefulSet" without stateful_pvc_enabled = true creates a StatefulSet with ephemeral storage. Setting stateful_pvc_enabled = true without explicit workload_type automatically resolves to StatefulSet.
quota_memory_requests / quota_memory_limits"" (not enforced)HighMust use binary suffixes ("4Gi", "8192Mi"). Bare integers (e.g. "4") are treated as bytes by Kubernetes and block all pod scheduling.
min_instance_count1 (GKE default)HighGKE does not support true scale-to-zero without KEDA. The HPA validation guard rejects min > max. Setting to 0 may leave the deployment in an inconsistent HPA state.
enable_nfstrueHighQdrant and Ollama use GCS Fuse volumes for persistent storage. Without NFS/GCS volumes, model files and vector indexes are lost on pod restart or rescheduling.
enable_iapfalseHighEnabling IAP without both iap_oauth_client_id and iap_oauth_client_secret is blocked at plan time by validation.
session_affinity"ClientIP"Mediumn8n AI editor holds WebSocket connections. Disabling affinity ("None") can cause UI disconnections when requests route to different pods.
enable_pod_disruption_budgettrueMediumDisabling PDB allows GKE to evict all pods during maintenance, causing a complete outage including loss of in-flight AI executions.
termination_grace_period_seconds30MediumAI workflow steps (embedding generation, LLM calls) can be long-running. Values below 30 may abort active AI pipeline executions mid-run.
secret_environment_variables{}MediumExternal AI provider API keys must be passed via secret_environment_variables pointing to existing Secret Manager secrets. Passing them as plain env vars exposes them in Kubernetes pod specs and GCP audit logs.
organization_id""MediumRequired for VPC-SC. If empty, VPC Service Controls are silently skipped regardless of enable_vpc_sc.
enable_topology_spreadfalseLowWithout topology spread, all pods (n8n, Qdrant, Ollama) may schedule on the same node, creating a single point of failure for the entire AI stack.