Skip to content

Self-hosted deployment

Self-hosted deployment means you own the machine, the network, and the change control: an on-premises datacenter, a private cloud, a rented Linux server, or a laptop used for evaluation. You run the same charts, the same pinned releases, and the same fontana apply as every other deployment model.

  • Data residency or air-gap requirements that keep the cluster inside your facility
  • Existing Kubernetes operations: you already run clusters and want Fontana as a standard Kubernetes workload
  • Private registry policy: you mirror Fontana images internally rather than pulling from the public registry at runtime
  • Customer-operated change control: your change board, backup, and disaster-recovery procedures own the lifecycle
  • Evaluation on a laptop before committing to an environment

Four steps from a bare machine to a working workspace: provision Kubernetes, install the fontana CLI, write fontana.yaml, run fontana apply. Apply refuses to run while a service is undeclared, then certificates are issued and the workspace answers on its own HTTPS address.

A fresh Ubuntu 24.04 server reaches a workspace answering over HTTPS with Let’s Encrypt certificates in about ten minutes, with no build tools on the machine. You need root on the machine, a registry read token from Fontana, and DNS for your base domain.

The published bootstrap script turns a bare machine into a cluster the CLI can target. It is idempotent, so re-running it changes nothing, and it installs only infrastructure:

Terminal window
curl -fsSL https://<install-host>/cli/bootstrap-ubuntu.sh \
| sudo -E bash -s -- --base-domain acme.example.com
It sets up Why
k3s with the API server’s audit log enabled and retained for 30 days A Kubernetes cluster, and an audit trail your reviewers can read
A host firewall: SSH, HTTP, and HTTPS open; the Kubernetes API closed to the internet The cluster API is reachable over SSH, not from the public internet
Unattended security upgrades and time synchronisation OS patching and trustworthy audit timestamps
Helm and the YAML tooling the installer expects The CLI brings its own pinned copies as well

The script never installs Fontana itself. Disk encryption, restricting SSH to your operator ranges or a bastion, and the provenance of the OS image remain your responsibility.

Terminal window
export FONTANA_GHCR_PAT=… # registry read token from Fontana
curl -fsSL https://<install-host>/cli/install.sh | sudo -E bash

The installer pulls the versioned deploy bundle, verifies its checksums, links the version-matched fontana command into your PATH, and seeds a starter fontana.yaml in the working directory. See Fontana CLI for where it keeps its state.

Edit the seeded file: base domain, release tag, certificate issuer contact, every platform service, and every workspace. Nothing installs by omission: a service you leave out is an error, not a default. The starter file already has the right shape; you fill in the values. The full key reference is in Fontana CLI.

Terminal window
export FONTANA_GHCR_PAT=… # same token, same shell
fontana apply

The CLI validates the file, installs Traefik and cert-manager, installs the services you declared, and deploys each workspace into its own namespace. When it returns, Let’s Encrypt has issued certificates for your base domain and every workspace hostname, and your workspace answers at https://<tenant>.<baseDomain> with single sign-on at https://auth-<tenant>.<baseDomain>. fontana status repeats the health checks at any time.

Set source.tag to the new release and run fontana apply again. Only the workloads that changed roll, and the workspace keeps serving while they do. See Fontana CLI.

You can evaluate Fontana on a macOS laptop with OrbStack and its built-in Kubernetes. It is the same fontana apply and the same charts, sized down by consuming the heavy shared services from a URL or turning them off. See Hardware requirements for the memory the virtual machine needs.

Install OrbStack and enable Kubernetes. That places an orbstack context in your kubeconfig, which is all the CLI needs.

Terminal window
orb config set k8s.enable true

Run the installer as your user. It installs into your Homebrew prefix and keeps its state under your home directory.

Terminal window
export FONTANA_GHCR_PAT=… # registry read token from Fontana
curl -fsSL https://<install-host>/cli/install.sh | bash

Use a local-only base domain such as acme.test, the local certificate issuer, and the orbstack context. OrbStack publishes the ingress ports on the laptop’s loopback address, so declare hostsAddress: 127.0.0.1 and the CLI maps your hostnames for you:

baseDomain: acme.test
tls:
issuer: local-ca
clusters:
local:
kubeconfig: "{HOME}/.kube/config"
context: orbstack
hostsAddress: 127.0.0.1
tenants:
demo:
cluster: local
marquez: { disabled: true }
zitadel: { mfa: false } # accepted only on local-only base domains
Terminal window
fontana apply

Two things need your permission, once each per machine: the CLI writes a managed block in /etc/hosts mapping the workspace hostnames to loopback (an administrator password prompt), and it trusts the cluster’s certificate authority in your login keychain (a keychain prompt). After that, the workspace is at https://demo.acme.test and single sign-on at https://auth-demo.acme.test, with certificates your browser accepts.

MFA may be switched off only on local-only domains (localhost, *.localhost, *.test). The CLI refuses to disable it anywhere else.

Area Your responsibility
Hardware or VM Sizing, OS patching policy, disk encryption on the underlying volumes
Network Public HTTPS, SSH for operator access, firewall rules, corporate DNS
Kubernetes The cluster itself: nodes, upgrades, storage class, and capacity
Backups An S3-compatible bucket for the nightly backups, its access policy, and your restore drills
Upgrades Pin source.tag, run fontana apply in approved windows, validate with fontana status
  • Pinned, content-addressed images and charts for every release, from the registry or your mirror
  • The Fontana CLI, which reconciles the whole cluster from fontana.yaml and carries its own pinned toolchain
  • The same architecture as cloud: system, platform, and per-workspace namespaces
  • Online backups as a nightly job per workspace, with retention you declare
  • Documentation for observability, identity, compliance, and upgrade semantics

Where outbound access is limited, two things need a decision up front:

  • Images: mirror the release into a registry your cluster can reach, and pin source.tag to the release you mirrored.
  • Certificates: Let’s Encrypt validation needs the ingress to be reachable over HTTP from the internet. Where it is not, use the local certificate issuer and distribute its CA through your device management, or have your platform team supply certificates through your existing certificate process.