Install the control plane in your Kubernetes
On-premises, the whole of Fistron runs in your infrastructure: the control plane (API and web UI), the agent and, if you want one, a local model. One Helm chart installs them; PostgreSQL and the identity provider are yours. Without internet access, follow Install without internet access instead: it uses the same chart from the offline bundle. To run images you build yourself from Fistron’s source on your own base image, see Build Fistron’s images yourself: the chart takes them from your registry.
Before you start
No cluster, PostgreSQL or identity provider yet? See All on one host: the installer brings them.
- Kubernetes 1.29 or later (a conformant distribution or a managed
service; a single node is enough, see On one node),
Helm 3.8 or later or Helm 4, and
kubectl, a namespace for Fistron. - An ingress controller and a TLS certificate for the control plane’s
address, for example
https://fistron.example.com. - PostgreSQL 16 or later (CloudNativePG or another), with a database
and two roles created beforehand: its owner (the migrations) and the
application role
fistron_appwith a password. Connect directly or through a pooler in session mode; transaction pooling is not supported. - An identity provider with OpenID Connect: an issuer and a client for
Fistron with the redirect URI
https://<host>/auth/callback, a claim with the user’s groups. Without one, the installer installs Keycloak with Fistron (--with-keycloak); Google Workspace signs in through Keycloak (Choose how people sign in). For a first look, the local bootstrap admin alone is enough. Give the identity provider an address of its own (for examplehttps://idp.example.com): under a path of Fistron’s address,/authcollides with Fistron’s own/auth/callbackand/auth/bootstrap. With one organisation, the identity provider keeps the accounts and the groups; Fistron maps the groups to roles (Set up your organisation). - A certificate of your own CA, for the control plane’s address or the identity provider’s: see Your own CA.
- The organisation’s licence file from Fistron (a pilot or a paid
licence). A control plane on your own infrastructure comes with
Enterprise, a pilot agreed with Fistron (a Pilot licence with
self-hosted) or the add-onself-hostedto Team and Business. Without it nothing stops: the installer and the Organisation page say so. - Fistron’s registry
registry.fistron.ioreachable from the host you install from and from the cluster, or a mirror registry that has the chart and the images. Until Fistron’s general availability the chart and the images are private: your licence signs in, with the user namelicenceand the licence as the password.
Install in one command
With kubectl’s context on your cluster, Helm 3.8 or later and curl:
curl -fsSL https://get.fistron.io | sh -s -- on-premises --licence organisation.paseto
- The installer checks, before it changes anything: your licence (Team
and above, or a pilot, not expired; without
self-hostedit says so and goes on), the cluster’s Kubernetes version, the ingress class, the nodes’ free disk, Fistron’s registry, your CA (--ca, Your own CA) and your identity provider’s discovery document. It says each problem in plain words, with how to fix it, all of them at once, and stops. - It asks only what it cannot find: the address people open, your identity provider’s client, PostgreSQL’s two URLs (typed without being shown). The organisation’s short name comes from your licence.
- It writes the Secrets in the namespace
fistron(--namespace). The session secret, the bootstrap admin’s password and the key that encrypts the organisation’s keys are generated once and kept on the next run. - It checks PostgreSQL from the cluster with the control plane’s own image
(
fistron-control-plane preflight): both URLs connect, PostgreSQL 16 or later, the owner may create, the application role isfistron_app. It creates nothing in your database. - It installs the chart with your answers in
~/.config/fistron/install/fistron-values.yaml, kept for upgrades. Then it creates the organisation and installs its licence. - It prints the address, the bootstrap admin’s password (once), how to back up the key, the questions it asked and the time it took.
To answer without questions, for example in automation, give a file of
key=value lines with --answers answers.env --yes. The keys are url,
organisation, issuer, client_id, client_secret, database_url and
migrations_url (with Keycloak installed with Fistron, keycloak=yes,
keycloak_url and keycloak_database_url). Flags do the same: --url, --issuer, --client-id,
--client-secret-file, --database-url-file, --migrations-url-file,
--ingress-class, --tls-secret. More of the chart’s values, over the
installer’s: --values my-values.yaml. Without --version it installs
the chart Fistron’s channel stable names; --version <chart version>
(for example 0.1.0-dev.38) installs that one.
An upgrade is one command on the same machine, where the installer kept your answers (install-upgrade.md):
curl -fsSL https://get.fistron.io | sh -s -- update on-premises
It backs up the database first, upgrades to the chart the channel stable
names (or --version), checks the version and goes back to the release
before when the new one does not come up. fistron-install status shows
the chart running and the channel’s. From another machine, run the
installation command again with your answers (--answers, the database
URLs too, or --database-url-file and --migrations-url-file) and a newer
--version.
All on one host
On one Linux host with nothing on it, --all-in-one installs what the
control plane needs, then the control plane:
curl -fsSL https://get.fistron.io | sh -s -- on-premises --all-in-one --licence organisation.paseto
| Part | What it installs | Instead, give |
|---|---|---|
| Kubernetes | k3s from its project’s stable channel; RKE2 with --distribution rke2; a version with --distribution-version (for example v1.34.5+k3s1) |
a cluster: leave out --all-in-one |
| Storage | k3s’s local-path; on RKE2, the local-path provisioner | |
| PostgreSQL | CloudNativePG’s operator and one instance in the namespace (fistron-postgres): the database fistron, its owner and the role fistron_app, Keycloak’s database |
the two database URLs (--database-url-file, --migrations-url-file) |
| Identity provider | Keycloak, as with --with-keycloak, at https://<name>-id.<domain> unless --keycloak-url |
--issuer and its client |
| Certificates | a CA of this installation and a certificate for each address | --tls-secret (and --keycloak-tls-secret) |
- Run it as root or as a user who may use
sudo: Kubernetes is installed as root; Fistron’s answers stay in your home directory. - The host needs 8 GiB of memory and 4 CPUs (6 GiB and 2 CPUs at the
least), 40 GiB free in
/varand ports 80 and 443 free; the installer checks them, with the rest, before it installs anything. - Give both addresses DNS records that point at the host. On k3s the
cluster resolves them to the host by itself, so names that only your
machines’
/etc/hostsknow work too; RKE2’s cluster asks your DNS. - The passwords of PostgreSQL’s roles are generated once and kept in Secrets of the namespace. The owner bypasses row-level security, so the backup before an upgrade has every organisation’s rows.
- The CA is in
~/.config/fistron/install/fistron-ca/(its key readable by you alone). Make your people’s browsers trustca.crt, and give it to agents on other hosts with--ca. The certificates last 397 days; run the same command again and it renews them in their last 30 days. kubectluses the cluster’s kubeconfig, written to~/.kube/config(or beside your answers when that file is another cluster’s). The installer says where. Without Helm on the host, it downloads Helm to the same place.- The agent on the same host: after Agents › Create a registration
token,
fistron-install agent --kubernetes --token fcr_... --ca ~/.config/fistron/install/fistron-ca/ca.crt. - Run the same command again whenever you like: what runs is kept.
- Without internet access, the bundle carries it too: install-air-gapped.md.
On one node
The chart runs two replicas of the control plane with a
PodDisruptionBudget, so that an upgrade or a node’s drain keeps it up. On
a single node the budget would block the node’s drain, so the installer
sees one node and runs one replica, without the budget: it says so in a
note. When the cluster grows, run it again and it gives the chart’s two
replicas back. Without the installer, set in your --values file:
controlPlane:
replicas: 1 # one replica has no PodDisruptionBudget
Your own CA
Python, which the control plane runs on, checks certificates strictly: a
chain that curl and the browser accept can still fail at sign-in with
CA cert does not include key usage extension. Your CA needs
basicConstraints = CA:TRUE and keyUsage = keyCertSign; a server’s
certificate a subjectAltName with its DNS name, an
authorityKeyIdentifier and extendedKeyUsage = serverAuth.
Give the installer your CA’s certificate:
curl -fsSL https://get.fistron.io | sh -s -- on-premises --licence organisation.paseto --ca ca.crt
- Its checks trust the CA: the identity provider’s discovery document is read with it when the host’s own CAs do not sign it.
- It checks the CA and the identity provider’s certificate as strictly
as the control plane does (with
openssl, when the host has it), and says what is missing before anything changes. - It keeps the CA in the ConfigMap
fistron-caand gives it to the chart:controlPlane.oidc.caConfigMapfor the identity provider andagent.caConfigMapfor the control plane’s address. A later run without--catrusts the CA kept there.
The same option installs the agent in Kubernetes when your CA signs the
control plane’s address: agent --kubernetes --ca ca.crt.
To check a chain by hand, as the control plane checks it:
openssl verify -x509_strict -CAfile ca.crt server.crt
Without the installer, put the CA in a ConfigMap and give it to the
chart through --values:
kubectl -n fistron create configmap internal-ca --from-file=ca.crt=ca.crt
controlPlane:
oidc:
caConfigMap: {name: internal-ca}
agent:
caConfigMap: {name: internal-ca}
The identity provider in the same cluster
The control plane’s NetworkPolicy lets it reach the identity provider on
port 443 only. When the identity provider runs behind the ingress
controller of the same cluster, the connection is to the ingress
controller’s pod, on its container’s port (RKE2’s Traefik: 8443), and the
sign-in ends with the identity provider is not reachable. With Keycloak
installed by the installer (--with-keycloak, --all-in-one) the
installer adds the port itself, and agent --kubernetes adds it for an
agent whose control plane the same cluster serves. Otherwise add it:
controlPlane:
networkPolicy:
oidc:
ports: [443, 8443]
The steps below are what the installer does, for those who must do them by hand.
1. Prepare the secrets
Every secret comes from an existing Secret, never from the values. Your licence signs in to Fistron’s registry, for Helm and for the cluster’s pulls:
helm registry login registry.fistron.io --username licence --password-stdin < organisation.paseto
kubectl create namespace fistron
kubectl -n fistron create secret docker-registry fistron-registry \
--docker-server=registry.fistron.io --docker-username=licence \
--docker-password="$(cat organisation.paseto)"
kubectl -n fistron create secret generic fistron-db \
--from-literal=app-uri='postgresql://fistron_app:...@postgres.example.internal:5432/fistron' \
--from-literal=owner-uri='postgresql://fistron_owner:...@postgres.example.internal:5432/fistron'
kubectl -n fistron create secret generic fistron-control-plane \
--from-literal=session-secret="$(openssl rand -hex 32)" \
--from-literal=bootstrap-admin-password="$(openssl rand -base64 24)" \
--from-literal=secrets-key="$(openssl rand -base64 32)" \
--from-literal=client-secret='<the OIDC client secret>'
secrets-key seals the keys of the organisation’s model endpoints
(Configure models (LLM endpoints)); keep a copy, it cannot be recovered.
2. Write the values
# values-fistron.yaml
global:
imageRegistry: registry.fistron.io
imagePullSecrets: [{name: fistron-registry}]
database:
url: {secretName: fistron-db, key: app-uri}
migrationsUrl: {secretName: fistron-db, key: owner-uri}
controlPlane:
publicUrl: https://fistron.example.com
singleTenant: example # on-premises: one organisation
session:
secret: {secretName: fistron-control-plane, key: session-secret}
modelKeys:
secret: {secretName: fistron-control-plane, key: secrets-key}
oidc:
issuer: https://idp.example.com/realms/example
clientId: fistron
clientSecret: {secretName: fistron-control-plane, key: client-secret}
groupsClaim: groups
bootstrapAdmin: # optional: for the first setup only
tenant: example
password: {secretName: fistron-control-plane, key: bootstrap-admin-password}
ingress:
enabled: true
className: nginx
tls: {secretName: fistron-tls}
The chart’s values.yaml describes every value, and its schema refuses a
value it does not know. Things you may want:
| Value | For |
|---|---|
controlPlane.oidc.caConfigMap |
an identity provider signed by your own CA |
controlPlane.packageKey |
an Ed25519 key that signs the compliance audit packages |
controlPlane.metrics.serviceMonitor |
Prometheus metrics |
controlPlane.networkPolicy.ingressFrom |
only your ingress controller may reach the API |
database.networkPolicy.to |
only your PostgreSQL may be reached |
podSecurityContext |
where the namespace assigns the user (for example OpenShift), set runAsUser, runAsGroup and fsGroup to null |
3. Install
helm install fistron oci://registry.fistron.io/charts/fistron --version <version> \
-n fistron -f values-fistron.yaml --wait
The database migrations run first, as a hook job; then the control plane starts with two replicas, a PodDisruptionBudget and a NetworkPolicy per component. A retention job runs every night.
4. Create the organisation and install its licence
The operator’s commands run as the schema’s owner, in a pod of their own that you delete afterwards (the serving pods never hold the owner’s credentials). It wears the retention job’s labels, so the chart’s NetworkPolicy lets it reach PostgreSQL:
kubectl -n fistron run fistron-admin --restart=Never \
--image=registry.fistron.io/fistron-io/fistron-control-plane:<app version> \
--labels=app.kubernetes.io/name=fistron,app.kubernetes.io/instance=fistron,app.kubernetes.io/component=retention \
--overrides='{"spec":{"securityContext":{"runAsNonRoot":true,"runAsUser":10001,"seccompProfile":{"type":"RuntimeDefault"}},
"imagePullSecrets":[{"name":"fistron-registry"}],
"containers":[{"name":"fistron-admin","image":"registry.fistron.io/fistron-io/fistron-control-plane:<app version>",
"command":["python3","-c","import time; time.sleep(3600)"],
"securityContext":{"allowPrivilegeEscalation":false,"readOnlyRootFilesystem":true,"capabilities":{"drop":["ALL"]}},
"env":[{"name":"FISTRON_CP_MIGRATIONS_DATABASE_URL","valueFrom":{"secretKeyRef":{"name":"fistron-db","key":"owner-uri"}}}],
"volumeMounts":[{"name":"tmp","mountPath":"/tmp"}]}],"volumes":[{"name":"tmp","emptyDir":{}}]}}'
kubectl -n fistron wait --for=condition=Ready pod/fistron-admin
kubectl -n fistron exec fistron-admin -- fistron-control-plane tenant create example --name "Example"
kubectl -n fistron exec -i fistron-admin -- \
fistron-control-plane tenant licence example --file /dev/stdin < example.paseto
kubectl -n fistron delete pod fistron-admin
<app version> is the application’s version of the chart (0.4.0 for the
chart 0.4.0, 0.1.0.dev19 for 0.1.0-dev.19).
The licence is verified offline by the closed core; an invalid or expired licence is not installed.
With GitOps, or a plain helm install: for an installation of one
organisation (singleTenant), the licence can come from a Secret instead
of this step’s commands. The migrations’ hook creates the organisation when
it is not there and installs the licence when it differs from the one
installed; its log says what it did:
kubectl -n fistron create secret generic fistron-licence --from-file=licence.paseto=example.paseto
controlPlane:
singleTenant: example
licence:
secretName: fistron-licence
key: licence.paseto
A licence that does not verify leaves the installed one, and the release goes on. A renewed licence: Renew the licence.
5. Sign in and set the organisation up
- Open
https://fistron.example.comand sign in with your identity provider (or as the bootstrap admin). - Map your groups to roles, check the licence and create the projects: Set up your organisation.
- Once your own admins can sign in through the identity provider, one of
them switches the bootstrap admin off under Organisation › People
(admin-organisation.md).
Removing
bootstrapAdminfrom the values (andhelm upgrade) removes it for good.
6. Add the agent and a local model
The same chart runs the agent: create a registration token on the Agents page, put it in a Secret and enable the component.
agent:
enabled: true
controlPlaneUrl: https://fistron.example.com
registration: {secretName: fistron-agent-registration}
caConfigMap: {name: internal-ca} # if your CA signs the control plane
config: |
[acquisition.gitlab]
base_url = "https://gitlab.example.com"
token_env = "FISTRON_GITLAB_TOKEN"
projects = ["qe/shop"]
env:
- name: FISTRON_GITLAB_TOKEN
valueFrom:
secretKeyRef: {name: platform-tokens, key: gitlab}
networkPolicy:
egress:
- to: [{ipBlock: {cidr: 10.20.0.0/16}}] # your GitLab, model endpoint or proxy
ports: [{port: 443, protocol: TCP}]
Files the configuration names (a probe’s SSH key and known_hosts, a
product server’s CA, for the
Verification log): a Secret of yours, mounted
read-only at /config/files as the Podman agent’s --file mounts them, so
that key = "/config/files/probe":
kubectl -n fistron create secret generic agent-files \
--from-file=probe --from-file=known_hosts --from-file=server-ca.pem
agent:
extraVolumes:
- {name: files, secret: {secretName: agent-files, defaultMode: 0400}}
extraVolumeMounts:
- {name: files, mountPath: /config/files, readOnly: true}
With a GPU and a validated model, llm.enabled serves the model inside the
cluster at http://<release>-llm:8000/v1; put that address into the
agent’s configuration as an endpoint
(Configure models (LLM endpoints)). The model’s weights are loaded onto
the component’s volume beforehand.
helm upgrade with the new values, then check the agent on Agents
(admin-agent.md) and delete the
registration Secret.
Renew the licence
The renewal Fistron sends you, or a licence of another plan, goes in the way the installation was made. Each way verifies it offline with the closed core: a licence that is not valid, or has ended, is not installed, and the one installed stays. A Pilot in a paid licence’s place deletes the organisation’s documents when it ends, so it is installed only when you confirm it.
-
Installed with fistron-install (online or air-gapped): on the machine you installed from,
fistron-install update on-premises --licence renewal.pasetoIt installs the licence into the organisation, with the control plane’s own command line in the image it runs, and says what the control plane answered. From Fistron’s registry it also signs the images’ pulls in with it (the Secret
fistron-registry), which the next upgrade needs; then it upgrades the control plane if a newer chart waits. A Pilot in a paid licence’s place needs--yes. Air-gapped, nothing goes out, and the upgrade still comes from a newer bundle. -
On the page, as an admin: Organisation › Licence › Install a licence: choose the file or paste its text, then Install the licence. This works on any control plane of one organisation whose licence comes from no Secret. If its images come from Fistron’s registry, renew the registry’s sign-in too: fistron-install does that for you, and by hand it is step 1’s
fistron-registrySecret, made again with the new licence. -
With GitOps or
helm, the licence from a Secret (controlPlane.licence.secretName): replace the Secret, then upgrade the release, withhelm upgradeor your GitOps tool’s sync. Its migrations install the new licence:kubectl -n fistron create secret generic fistron-licence \ --from-file=licence.paseto=renewal.paseto --dry-run=client -o yaml | kubectl apply -f -If your Git holds the Secret (a sealed or external secret), change it there. The Licence page says this, with the command for your Secret’s name, key and namespace, and installs nothing itself: the next upgrade would replace it with the Secret’s.
Check
kubectl -n fistron get pods: the control plane’s pods are ready, the migrations job completed.- The sign-in works, and Organisation shows the licence.
- Agents shows the agent as answers.
Next
- Backups: back up the PostgreSQL database; it holds everything the control plane keeps.
- Upgrades: Upgrade Fistron.
- Configuration: Connect GitHub and GitLab, Configure models (LLM endpoints), Run and schedule work.