# Default values for n8n
replicaCount: 1

image:
  repository: n8n
  tag: latest
  pullPolicy: IfNotPresent

nameOverride: ""
fullnameOverride: ""

service:
  type: ClusterIP
  port: 80
  brokerPort: 5679

ingress:
  enabled: true
  className: traefik
  annotations: {}
    # cert-manager.io/cluster-issuer: letsencrypt
    # traefik.ingress.kubernetes.io/router.entrypoints: web
  hosts:
    - host: n8n.example.com
      paths:
        - path: /
          pathType: Prefix
  tls: []
    # - secretName: n8n-cert
    #   hosts:
    #     - n8n.example.com

persistence:
  enabled: true
  storageClass: nfs-client
  size: 10Gi

# Configuration values for n8n
config:
  N8N_HOST: n8n.example.com
  N8N_PROTOCOL: https
  WEBHOOK_URL: https://n8n.example.com
  GENERIC_TIMEZONE: Asia/Jerusalem
  N8N_SECURE_COOKIE: "true"
  DB_TYPE: sqlite
  DB_SQLITE_FILE: /root/.n8n/database.db

# Extra configuration data to be added to ConfigMap
configData: {}

# Extra environment variables
env: {}
  # LOG_LEVEL: info

# Environment variables from ConfigMaps or Secrets
envFrom: []
  # - configMapRef:
  #     name: n8n-extra-config
  # - secretRef:
  #     name: n8n-tokens

resources:
  requests:
    cpu: 100m
    memory: 128Mi
  limits:
    cpu: 500m
    memory: 512Mi

nodeSelector: {}
  # workload: general

runners:
  enabled: false
  replicaCount: 1
  image:
    repository: n8nio/runners
    tag: latest
    pullPolicy: IfNotPresent
  # Secret containing N8N_RUNNERS_AUTH_TOKEN key
  authSecretName: n8n-secrets
  authSecretKey: N8N_ENCRYPTION_KEY
  # Secret containing TELEGRAM_BOT_TOKEN key for expression env access
  envSecretName: n8n-secrets
  launcherConfig:
    enabled: true
    jsAllowedEnv:
      - PATH
      - GENERIC_TIMEZONE
      - NODE_OPTIONS
      - NODE_PATH
      - N8N_RUNNERS_AUTO_SHUTDOWN_TIMEOUT
      - N8N_RUNNERS_TASK_TIMEOUT
      - N8N_RUNNERS_MAX_CONCURRENCY
      - N8N_SENTRY_DSN
      - N8N_VERSION
      - ENVIRONMENT
      - DEPLOYMENT_NAME
      - HOME
      - N8N_BLOCK_ENV_ACCESS_IN_NODE
      - TELEGRAM_BOT_TOKEN
    pythonAllowedEnv:
      - PATH
      - N8N_RUNNERS_LAUNCHER_LOG_LEVEL
      - N8N_RUNNERS_AUTO_SHUTDOWN_TIMEOUT
      - N8N_RUNNERS_TASK_TIMEOUT
      - N8N_RUNNERS_MAX_CONCURRENCY
      - N8N_SENTRY_DSN
      - N8N_VERSION
      - ENVIRONMENT
      - DEPLOYMENT_NAME
  resources:
    requests:
      cpu: 100m
      memory: 128Mi
    limits:
      cpu: 500m
      memory: 512Mi
