d68d20c6f4
Every environment value is a ${VAR} for the caller to substitute: hostname,
images, storage, ingress class, TLS issuer, Vault server and path, timezone,
retention. Nothing in k8s/ names a host, a realm, an agent or an estate.
Removed: the Flux plumbing under dev/, which described one deployment, and the
ExternalSecret pulling a specific agent's Keycloak client secret. Both belong to
whoever deploys this. The lab CA ConfigMap goes with them — the mount stays,
parameterised and marked optional, because 'trust a private CA' is a property of
an environment and not of n8n.
The README is now the template's: how to consume it, what every variable means,
and the three things it deliberately does not do.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
42 lines
1.6 KiB
YAML
42 lines
1.6 KiB
YAML
# Nothing here is sensitive. The two values that are — the database password and
|
|
# the credential encryption key — arrive through n8n-secrets.
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: n8n-config
|
|
namespace: ${NAMESPACE}
|
|
data:
|
|
GENERIC_TIMEZONE: ${TIMEZONE}
|
|
TZ: ${TIMEZONE}
|
|
NODE_ENV: production
|
|
|
|
# What n8n believes it is reachable at. It goes into the webhook URLs it
|
|
# generates and into the links it puts in its own UI, so it must be the
|
|
# ingress host and not the Service — a webhook advertised as `n8n` inside the
|
|
# cluster is a webhook nothing outside can call.
|
|
N8N_HOST: ${N8N_HOSTNAME}
|
|
N8N_PORT: "5678"
|
|
N8N_PROTOCOL: https
|
|
WEBHOOK_URL: https://${N8N_HOSTNAME}/
|
|
N8N_EDITOR_BASE_URL: https://${N8N_HOSTNAME}/
|
|
|
|
# TLS terminates at the ingress, so n8n itself serves plain HTTP and must be
|
|
# told it is behind a proxy — otherwise it reads the hop's address instead of
|
|
# the caller's.
|
|
N8N_PROXY_HOPS: "1"
|
|
|
|
# The default is to keep every execution for ever, which turns the database
|
|
# into a log. Two weeks is long enough to debug a failed run.
|
|
EXECUTIONS_DATA_PRUNE: "true"
|
|
EXECUTIONS_DATA_MAX_AGE: ${EXECUTIONS_MAX_AGE_HOURS}
|
|
|
|
N8N_DIAGNOSTICS_ENABLED: "false"
|
|
N8N_VERSION_NOTIFICATIONS_ENABLED: "false"
|
|
N8N_RUNNERS_ENABLED: "true"
|
|
|
|
# "false" lets a workflow read `$env.<NAME>`, which is how a secret reaches a
|
|
# workflow without being stored in the workflow JSON. n8n blocks it by
|
|
# default, and that default is right wherever more than one team can write a
|
|
# workflow: any workflow can then read any variable in the pod.
|
|
N8N_BLOCK_ENV_ACCESS_IN_NODE: ${BLOCK_ENV_ACCESS}
|