Przejdź do treści

Helm values

Every value of the tenax chart, with its default. Nothing is specific to any organization: set endpoints, hostnames and credentials for your deployment.

This is the chart in the source tree, where image.repository is required. The chart published at oci://ghcr.io/republic-global/charts/tenax differs in one place: image.repository and image.tag default to the public image of the same release, ghcr.io/republic-global/tenax:vX.Y.Z.

charts/tenax/values.yaml
# Tenax Helm values. Nothing here is specific to any organization: set every endpoint, hostname and
# credential for your deployment (see docs and examples/).

image:
  # Required, for example registry.example.com/tenax/tenax
  repository: ""
  tag: ""
  pullPolicy: IfNotPresent
  # Names of existing image pull secrets in the release namespace. They are also copied into sandbox namespaces.
  pullSecrets: []

# Install / upgrade the CRDs with the release.
installCRDs: true

# Optional cluster name used in metrics and audit records.
clusterName: ""

logLevel: info

controller:
  replicas: 2
  resources:
    requests: { cpu: 50m, memory: 128Mi }
    limits: { memory: 512Mi }
  extraEnv: []
  # Garbage collection interval per store and orphan horizon.
  gcInterval: 24h
  orphanAge: 24h
  resyncInterval: 1m
  # Automatic recovery: mirror every backup found in a store into a Backup object when it has none (on start, when
  # targets change and every interval). After a cluster is rebuilt, all backups reappear by themselves. Read-only.
  autoImport:
    enabled: true
    interval: 1h
  # How often a streamer checks again whether a target's user may replicate, while it may not (ADR 0016).
  replicationRecheck: 5m
  # Size limit of each streamer's scratch volume. Postgres streamers write one WAL segment at a time there (16 MiB
  # unless the server was built with larger ones); MySQL streamers ship binlog from memory and write nothing (ADR 0040).
  streamerScratch: 512Mi
  # Anomaly incidents list the rollouts and Jobs that started shortly before them (ADR 0026). This grants the
  # controller cluster-wide read-only "list" on replicasets and jobs; false leaves incidents without that context.
  incidentContext: true

api:
  replicas: 2
  resources:
    requests: { cpu: 50m, memory: 128Mi }
    limits: { memory: 1Gi }
  extraEnv: []
  service:
    type: ClusterIP
    port: 80
    nodePort: null
  # External URL of the console (used in links and the CLI), for example https://tenax.example.com. Default:
  # https://<expose.cloudflared.consoleHostname> when the console is published.
  externalURL: ""
  # Only these may reach the API's port: Tenax's own tunnel (cloudflared) and the peers in allowFrom (NetworkPolicy
  # "from" entries, for example an ingress controller's namespace, or an ipBlock for a NodePort or LoadBalancer
  # Service). Metrics stay open to scrapers; `kubectl port-forward` is not affected (it does not cross the network).
  networkPolicy:
    enabled: true
    allowFrom: []

# Console authentication.
auth:
  # tenax: Tenax's own login page (ADR 0046): an administrator account with a generated password, single sign-on
  #       with OIDC (auth.oidc), Kubernetes tokens for automation; nothing answers without a login.
  # cloudflare-access: verify the Cf-Access-Jwt-Assertion JWT on every request (Cloudflare Access in front).
  # none: no login, so the API's network port answers nobody; only `tenax console` (kubectl port-forward through
  #       your kubeconfig) gets in, with auth.portForwardRole.
  provider: tenax
  # With tenax: the administrator account "admin". Its password is generated at the first start into the Secret
  # <release>-initial-admin (key password); the console asks for a new one at the first login. Turn it off once
  # single sign-on works; `tenax admin reset-password` (through the kubeconfig) generates a new one.
  admin:
    enabled: true
  # With tenax: single sign-on with any OIDC provider (Google Workspace, Microsoft Entra ID, Okta, Keycloak, Dex,
  # GitLab...). Register <console URL>/auth/callback as the redirect URI and give the client here.
  oidc:
    issuer: ""
    clientID: ""
    # The Secret (in the release namespace) and key holding the client secret. Leave name empty for a public client:
    # the code flow uses PKCE either way (Microsoft Entra ID: the redirect URI under "Mobile and desktop
    # applications" and "Allow public client flows" on).
    clientSecret: { name: "", key: clientSecret }
    # Scopes besides openid (default: email profile). Add "groups" if your provider needs it for the groups claim.
    scopes: []
    groupsClaim: groups
    # The provider's name on the login button (default "single sign-on").
    name: ""
    # Refuse identity tokens without a verified email: email_verified true, or Entra ID's optional claim xms_edov.
    # Turn off only for a provider trusted for its own accounts (an Entra tenant's issuer URL, never "common"); then an
    # account without an email claim signs in with preferred_username when that is an email.
    requireVerifiedEmail: true
    # Default <api.externalURL or the request's host>/auth/callback.
    redirectURL: ""
  # With tenax: accept Kubernetes tokens (Authorization: Bearer) for automation: the role comes from auth.roles
  # (k8s:<username>, group:<group>) or from Kubernetes RBAC on the virtual resource tenax.republic.global/roles in
  # the release namespace (verbs viewer, operator, restorer, restorer-admin). Binds tenax-api to
  # system:auth-delegator (TokenReview, SubjectAccessReview).
  kubernetesTokens: true
  # With tenax: let `kubectl port-forward` skip the login (the 0.18 behaviour, with auth.portForwardRole). Off: port-
  # forwards show the login page like any other address.
  portForwardSkipsLogin: false
  # Deprecated: with provider none, the role of port-forwards (auth.portForwardRole when empty).
  devRole: ""
  # The role of requests that come through `kubectl port-forward` (`tenax console`) to the API pod's loopback port,
  # which needs no login: Kubernetes RBAC (pods/portforward in this namespace) already decided who may. With
  # cloudflare-access, empty means no such port (port-forwards then need an Access token like everyone else).
  portForwardRole: restorer-admin
  cloudflareAccess:
    # Access team domain, for example myteam.cloudflareaccess.com, and the application's audience (AUD) tag. Both
    # can stay empty when Tenax publishes the console (expose.cloudflared.consoleHostname): it creates the Access
    # application and finds both itself. A team domain set here is used instead of looking it up.
    teamDomain: ""
    audience: ""
    # Override the JWKS URL (default https://<teamDomain>/cdn-cgi/access/certs).
    jwksURL: ""
    # Load the JWKS from a ConfigMap key "jwks.json" in the release namespace instead (air-gapped tests).
    jwksConfigMap: ""
  # Role mapping. Each role lists emails, *@domain, group:<group> (from Access or OIDC) and k8s:<username>. Roles:
  # viewer, operator, restorer, restorer-admin. With tenax, restorer-admins can add more on the console (Access).
  roles:
    viewer: []
    operator: []
    restorer: []
    restorer-admin: []
  # Optional scoping of roles by org/project label: { "alice@example.com": { orgs: [acme], projects: [] } }
  scopes: {}

# AI agents (ADR 0045, 0047).
agents:
  # Agents act by default (back up, verify, sandboxes, and ask for what people must approve; restores and requests
  # still wait for a person). Rules saved on the Agents page win over this value. false: agents only read until a
  # restorer-admin allows them to act.
  write: true
  # The durable record of what agents do (ADR 0050): JSONL batches, age-encrypted, under agents/activity/ in a backup
  # store, read by the Agents page's Activity tab and GET /api/v1/agents/activity.
  activity:
    # Days kept; older days are deleted by tenax-api.
    retentionDays: 90
    # The BackupStore it is kept in. Empty: the first writable store by name.
    store: ""

# Sandbox exposure for external clients.
expose:
  # How sandboxes are reached from outside the cluster ("Open external access" in the console, tenax sandbox expose):
  #   none        in-cluster only; people with a kubeconfig run `tenax sandbox connect`, which port-forwards.
  #   service     a Kubernetes Service per sandbox, built from expose.service below; whatever the cluster runs for
  #               Services gives it an address (cloud load balancer, MetalLB, Tailscale operator, external-dns).
  #               Clients connect straight to it with any database tool, over TLS.
  #   cloudflare  a Cloudflare Tunnel route behind an Access login; clients run cloudflared.
  provider: none
  service:
    # LoadBalancer or NodePort.
    type: LoadBalancer
    # A load-balancer implementation, for example "tailscale" (the sandbox joins your tailnet, nothing public).
    loadBalancerClass: ""
    # Annotations on each sandbox's Service; {id} becomes the sandbox id. For example external-dns:
    #   external-dns.alpha.kubernetes.io/hostname: "sbx-{id}.db.example.com"
    annotations: {}
    # Client addresses the load balancer accepts (loadBalancerSourceRanges), for example your office or VPN.
    # Sandboxes hold copies of production data: set this whenever the load balancer is public.
    sourceRanges: []
    # The address clients use when DNS names each sandbox (external-dns): "sbx-{id}.db.example.com". Empty: the load
    # balancer's IP or hostname. Required for NodePort: a name that reaches the nodes ("nodes.example.com").
    hostnamePattern: ""
    # CIDRs the sandbox's NetworkPolicy admits on the database port while it is exposed. Traffic from a load
    # balancer often arrives from node addresses, so the default is everything and sourceRanges does the filtering.
    allowFrom: []
  cloudflare:
    # Zone name, for example example.com. With the API token, this is all Tenax needs: it finds the account from
    # the zone and finds (or creates) the tunnel named tunnelName.
    zone: ""
    # Secret with key "token": a Cloudflare API token with Account: Cloudflare Tunnel: Edit, Account: Access: Apps
    # and Policies: Edit, Zone: DNS: Edit and Zone: Zone: Read. With a published console, Account: Access:
    # Organizations, Identity Providers, and Groups: Read lets Tenax read the team domain (without it, Tenax reads it
    # from the console's login redirect, or set auth.cloudflareAccess.teamDomain).
    apiTokenSecret: ""
    # Hostname pattern for sandbox routes; {id} is replaced by the sandbox id. Keep it one level under the zone:
    # Cloudflare's free certificate covers *.zone only.
    hostnamePattern: "sbx-{id}.example.com"
    # Access policy for sandbox routes: emails ("*@example.com" for a whole domain) and Access group ids.
    allowEmails: []
    allowGroups: []
    # Name of the tunnel Tenax uses (created when missing).
    tunnelName: tenax
    # Optional: a tunnel you manage yourself (its id), and ids that save a lookup.
    tunnelID: ""
    accountID: ""
    zoneID: ""
    # Override the Cloudflare API base URL (tests, proxies). Default https://api.cloudflare.com/client/v4.
    apiURL: ""
  # cloudflared connector Deployment (console + sandbox routes).
  cloudflared:
    enabled: false
    image: cloudflare/cloudflared:2025.9.1
    replicas: 2
    # Secret with key "token" holding the tunnel's connector token. Empty: the controller reads the token with the
    # API token and keeps it in <fullname>-tunnel-token; the connector pods start once it is there.
    tunnelTokenSecret: ""
    # Public hostname of the console, for example tenax.example.com (one level under the zone). Tenax publishes it
    # like a sandbox route: an Access application with expose.cloudflare.allowEmails/allowGroups, a DNS record and
    # a tunnel route to tenax-api. People then use https://<hostname> or `tenax login --server https://<hostname>`
    # without cluster access; set auth.provider cloudflare-access so tenax-api checks their Access login.
    consoleHostname: ""
    # Public hostname for remote AI agents' MCP endpoint, for example mcp.tenax.example.com (ADR 0045). Off when
    # empty. Tenax publishes it like the console but with an Access bypass: tenax-api serves only /mcp, the OAuth
    # endpoints and llms.txt there and requires its own OAuth tokens, which people grant on the console's host.
    # Without it, remote agents use the console's host with an Access service token, and local ones `tenax mcp`.
    mcpHostname: ""
    # Where people consent to an agent connecting through mcpHostname. Default: the published console
    # (api.externalURL or consoleHostname), else http://127.0.0.1:8080, where `tenax console` opens the console on
    # the person's machine. Never the MCP host: it has no login.
    mcpConsentURL: ""

sandbox:
  defaultTTL: 24h
  maxTTL: 168h
  # Defaults for every sandbox. A target's spec.sandbox and a restore (console, CLI, Restore CR) override them.
  resources:
    # CPU request (no CPU limit). Empty: 100m.
    cpu: ""
    # Memory request and limit. Empty: 256Mi requested, 1Gi limit.
    memory: ""
    # Data on a PVC of this storage class instead of an emptyDir on the node. Empty: emptyDir.
    storageClass: ""
  # Ceilings for what a target or a restore may ask for; empty means none. The data size is automatic (what the
  # restore needs, rounded up to GiB, at least 1Gi: ADR 0030) unless someone sets it; a restore that needs more than
  # its size or the ceiling fails with the size to use rather than filling the disk midway.
  limits:
    cpu: ""
    memory: ""
    size: ""

# Namespaces that contain BackupTargets. Tenax gets a Role there to read its target credential secrets.
targetNamespaces: []
# Only secrets whose names start with this prefix may be referenced by targets ("" disables the check).
secretPrefix: "tenax-"

# AI with your own model (ADR 0029): the tenax-ai component runs AIRuns (why did a backup fail, provider doctor)
# against the AIProviders you create. Off by default; without an AIProvider nothing leaves the cluster. It holds no
# S3, database or data-key credentials: it reads Tenax objects, Jobs, pods, their logs and events, and only the
# provider Secrets listed here.
ai:
  enabled: false
  replicas: 1
  # Names of the Secrets in the release namespace that hold provider API keys (key "apiKey"). The component may
  # read these Secrets and no other.
  credentialSecrets: []
  # Secrets the console may create and update when someone types an API key on "Add an AI provider": one per preset
  # (tenax-ai-<preset>) and tenax-ai-custom for an endpoint of your own, in the release namespace. Each is made only
  # when a key is typed, labelled app.kubernetes.io/managed-by=tenax-console and owned by the providers that use it,
  # so it goes with the last of them. tenax-api may update these names only and tenax-ai may read them. A Secret of
  # one of these names that the console did not make (Git, SOPS, External Secrets) is never changed. [] turns typing
  # keys off: providers then name one of credentialSecrets.
  consoleKeys: [tenax-ai-anthropic, tenax-ai-openai, tenax-ai-gemini, tenax-ai-deepseek, tenax-ai-mistral, tenax-ai-custom]
  # Longest time one run may take.
  runTimeout: 10m
  # Start an anomaly-triage run for every new incident (it only reads and proposes a detector rule; a person
  # applies it). Off by default: each run costs model tokens.
  autoTriage: false
  resources:
    requests: { cpu: 20m, memory: 64Mi }
    limits: { memory: 256Mi }
  extraEnv: []
  # The console assistant (ADR 0039): the "Search or ask Tenax" bar on every page, a streaming chat that reads what
  # the user may read, drives the console and offers writes as buttons the user clicks. Needs ai.enabled and a
  # provider with the feature "assistant" (or a default provider).
  assistant:
    enabled: true
    # BackupStore that keeps conversations, encrypted to the catalog key. Empty: the first store by name. Without a
    # catalog key the assistant answers but keeps no history.
    store: ""
  # Local models (ADR 0038): an AIProvider with spec.local runs its model inside the cluster with Ollama, and the
  # console can deploy one from a catalog of small models. The download runs in a deadline-bound Job, the only pod
  # with egress; the model server has no egress at all and admits only tenax-ai. Needs ai.enabled.
  local:
    enabled: true
    # At most this many local models run at once (each is a pod with its memory reserved); 0: no limit.
    maxServers: 3
    image: docker.io/ollama/ollama:0.40.8
    pullSecrets: []
    # Where models live. Empty (the default): on the node's disk, an emptyDir the server's init container downloads
    # the model into, so nothing depends on a storage class; a new pod downloads it again. A class (it must exist)
    # keeps every model on a volume of it, downloaded once by a Job. A provider's spec.local.storageClass wins.
    storageClass: ""
    # Longest time one model download may take. The server has egress only while it downloads, unless a provider
    # sets spec.local.internet.
    pullTimeout: 1h
    # Behind a proxy: HTTPS_PROXY and NO_PROXY of the download, and a ConfigMap in the release namespace whose key
    # ca.crt replaces the CAs the download trusts (a TLS-inspecting proxy).
    proxy: ""
    noProxy: ""
    caBundleConfigMap: ""

metrics:
  serviceMonitor:
    enabled: false
    interval: 30s
    labels: {}
  prometheusRule:
    enabled: false
    labels: {}
    # Hours without a successful full backup before BackupOverdue fires, per env label.
    overdueHours: { prod: 26, default: 50 }
  grafanaDashboard:
    enabled: false
    # Label the Grafana sidecar watches.
    labels: { grafana_dashboard: "1" }

# Example shared policies (prod, dev, critical) in the release namespace. They need a BackupStore name.
examplePolicies:
  enabled: false
  store: ""
  timeZone: UTC
  # Compression of backup data. Empty: zstd at level default (on). Example: { level: better }, or
  # { algorithm: none } for data that is already compressed (ADR 0013).
  compression: {}

podSecurityContext:
  runAsNonRoot: true
  runAsUser: 65532
  seccompProfile: { type: RuntimeDefault }
securityContext:
  allowPrivilegeEscalation: false
  readOnlyRootFilesystem: true
  capabilities: { drop: [ALL] }

nodeSelector: {}
tolerations: []
affinity: {}