Operate
Kubernetes with Helm
For production, BastionOS runs on your cluster and uses the services your team already operates. The chart deploys BastionOS only.
What you bring#
The chart never deploys production dependencies. Point it at yours in externalServices:
| Service | Values |
|---|---|
| PostgreSQL | externalServices.postgres: host, a runtime login that owns nothing, a schema owner for migrations, sslMode: verify-full and its CA |
| OpenBao | externalServices.openbao: address, namespace, mounts, Kubernetes auth (see OpenBao) |
| Valkey or Redis | externalServices.valkey |
| NATS JetStream | externalServices.nats |
| S3 object store | externalServices.s3: endpoint, bucket, credentials. Enable Object Lock on the bucket for immutable recordings |
Install#
Start from the full example of values in the chart (ci/full-values.yaml), then:
$ helm install bastion deploy/helm/bastionos -f my-values.yaml -n bastionos --create-namespaceThe chart and its images come with each release; in an air-gapped site, from the air-gapped bundle.
What the chart does#
- Migrations first: a
pre-installandpre-upgradehook runs them before any new pod starts. - Gateways apart: the SSH and database gateways have their own Services (set them to
LoadBalancerorNodePortto publish SSH, RDP and database ports), separate from the console's Ingress. - Never as root: the chart refuses values that would run a container as root or with extra capabilities.
- Network policies, pod disruption budgets and anti-affinity are available in the values.
- Ingress for the console, with an existing TLS Secret, for example from cert-manager. WebSockets must pass on
/terminal/wsand/sql/ws.
Replicas#
Community runs one instance of each service: the control plane and each gateway hold a lease while they serve, and a second instance waits for it. The chart's default is one replica of each. Several replicas of the control plane and the gateways are the Enterprise images', with Enterprise Standard (active/passive) or Ultimate (active/active): see High availability.
Upgrades#
$ helm upgrade bastion deploy/helm/bastionos -f my-values.yaml -n bastionosMigrations run in the hook; then the control plane, then the gateways roll. Back up PostgreSQL, OpenBao and the bucket first, with your own tools.
The first administrator#
The first administrator is created from inside the cluster, never from the network:
printf '%s\n' "$PASSWORD" | kubectl -n bastionos exec -i deploy/bastion-bastionos-controlplane -- \
service admin set-password --username adminThe same command is the break-glass if every administrator is locked out.