Install¶
Tenax is one Helm chart and one image. The image holds the tenax binary plus the Postgres 15/16/17 and MySQL 8.4
client tools the data movers run; the same binary is the CLI.
Get the image and the chart¶
Releases are built from tags only; nothing is published from main. A tag v1.2.3 publishes:
- the image
ghcr.io/republic-global/tenax:v1.2.3, public; - the chart
oci://ghcr.io/republic-global/charts/tenax, version1.2.3, public; - CLI binaries for Linux and macOS on the GitHub release.
The image and the chart are signed with cosign (keyless, by the release workflow). Tenax is also listed on Artifact Hub.
The published chart defaults to the image of its own release, so the install needs no image values:
helm install tenax oci://ghcr.io/republic-global/charts/tenax --version 1.2.3 -n tenax-system --create-namespace \
-f values.yaml
From a checkout, helm install tenax charts/tenax … works too, but the chart in the source tree has no default image:
add --set image.repository=… --set image.tag=….
Verify the signatures¶
Check that the image and the chart come from the Tenax release workflow before you install them:
cosign verify ghcr.io/republic-global/tenax:v1.2.3 \
--certificate-identity-regexp 'https://github.com/republic-global/tenax/.github/workflows/release.yml@.*' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
cosign verify ghcr.io/republic-global/charts/tenax:1.2.3 \
--certificate-identity-regexp 'https://github.com/republic-global/tenax/.github/workflows/release.yml@.*' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
Private registry or mirror¶
To install from your own registry, copy the image and the chart into it, for example with crane copy, helm pull
and helm push:
crane copy ghcr.io/republic-global/tenax:v1.2.3 registry.example.com/tenax/tenax:v1.2.3
helm pull oci://ghcr.io/republic-global/charts/tenax --version 1.2.3
helm push tenax-1.2.3.tgz oci://registry.example.com/helm
cosign copy copies the signatures along with the image, if you want to verify the copy too. Then install from
oci://registry.example.com/helm/tenax with the image values pointing at your registry:
image:
repository: registry.example.com/tenax/tenax
tag: v1.2.3
pullSecrets: [registry-pull] # also copied into sandbox namespaces
Minimal values¶
targetNamespaces: [team-a, team-b] # where BackupTargets and their tenax-* secrets live
examplePolicies: # prod, dev and critical presets in tenax-system
enabled: true
store: main
metrics:
serviceMonitor: { enabled: true }
prometheusRule: { enabled: true }
grafanaDashboard: { enabled: true }
The image values are only needed for a mirror (see Private registry or mirror) or an
install from a checkout.
Tenax ships no organization-specific defaults: the chart holds no endpoints, hostnames or credentials, and every one
of them is yours to set. The only default that points anywhere is the published chart's image, the public
ghcr.io/republic-global/tenax. All values: Helm values.
Authentication and exposure¶
Both are pluggable. A login is on by default; external access is off.
| Setting | Values | What it does |
|---|---|---|
auth.provider |
tenax · cloudflare-access · none |
tenax (default): Tenax's own login page, with an administrator account whose password is generated into the Secret tenax-initial-admin, single sign-on with any OIDC provider (auth.oidc) and Kubernetes tokens for automation; see Logging in. cloudflare-access: verifies the Cloudflare Access JWT on every request and maps users and groups to roles; port-forwards get auth.portForwardRole. none: no login, so the API's network port refuses every request; the console is reached only through tenax console (a kubectl port-forward through your kubeconfig), with auth.portForwardRole. |
api.networkPolicy |
enabled · allowFrom |
On by default: only Tenax's tunnel and the peers in allowFrom reach the API's port (add an ingress controller's namespace, or an ipBlock for a NodePort or LoadBalancer Service); metrics stay open and port-forwards are not affected. |
auth.roles |
viewer · operator · restorer · restorer-admin |
Who may look, back up and restore to a sandbox, restore to a new database or a download, and restore in place or pin. |
expose.provider |
none · service · cloudflare |
How sandboxes are reached from outside the cluster: none, tenax sandbox connect port-forwards through the kubeconfig; service, a Kubernetes Service per sandbox (load balancer, MetalLB, Tailscale, external-dns) that any database client connects to over TLS; cloudflare, a tunnel behind an Access login. See Sandboxes. |
expose.cloudflared.enabled |
true / false |
With cloudflare: runs the cloudflared connector for the sandbox routes (and the console, if consoleHostname is set). |
See Console, CLI and access for the details.
What gets installed¶
| Object | Purpose |
|---|---|
| 6 CRDs | BackupStore, BackupPolicy, BackupTarget, Backup, Restore, Sandbox (reference) |
tenax-controller Deployment (2 replicas, leader election) |
schedules backups, runs streamers, restores, sandboxes, verification and garbage collection |
tenax-api Deployment (2 replicas) and Service |
the console, the JSON API and server-sent events |
| RBAC | cluster-wide read of Tenax resources; per target namespace, read of tenax-* secrets only |
Secrets tenax-session-key, tenax-admin, tenax-initial-admin |
the built-in login: created by tenax-api at its first start (the last one holds the generated administrator password until you change it) |
| PrometheusRule, ServiceMonitor, Grafana dashboard | optional, see Monitoring |
Pods run as non-root with a read-only root filesystem, no privilege escalation and all capabilities dropped. Data moves only in Jobs (movers, restorers) and per-target streamer Deployments; the controller and the API never carry backup data.
Upgrades¶
helm upgrade replaces the CRDs (installCRDs: true) and rolls the controller and the API. Running backups finish
or retry: every data path is crash-only, and a backup only exists once its manifest is written.