Installing in Kubernetes with Helm
Run Bifröst as a gateway in an existing cluster. This example accepts your SSH key and opens a separately authenticated shell on an existing SSH server. It does not create Kubernetes session Pods or grant Kubernetes API permissions.
Prerequisites
| Component | Requirement |
|---|---|
| Kubernetes | 1.32 or newer, with Linux worker nodes |
| Helm | 4.3.2 Expected minimum version 4.3.2, not a verified lower bound. Tested with Helm 4.3.2. Helm 3 is not supported for this chart. |
| Storage | A persistent-volume provisioner and a default StorageClass, or an explicitly selected persistence.storageClass |
| Networking | A network plugin that enforces NetworkPolicy, and outbound access to your SSH target |
| Workstation | An OpenSSH client, plus kubectl and Helm configured for the intended cluster |
The available images for the worker nodes, not the workstation, are:
| Architecture | Linux |
|---|---|
i386 |
/ |
amd64 |
/ |
armv6 |
/ |
armv7 |
/ |
arm64 |
/ |
riscv64 |
/ |
Cells show generic/extended edition support. Your Kubernetes distribution must also support the node architecture. The chart selects the generic image by default; see distributions before choosing another edition.
1. Prepare the gateway credentials
The target needs an existing target-user account. Create a separate key for Bifröst on your workstation:
1 | |
Have the target administrator add id_target.pub to that account's authorized_keys and provide a verified known_hosts entry for target.example.org through a trusted channel. Prepare these files before installing:
| File on your workstation | Purpose |
|---|---|
gateway-clients.pub |
A copy of your client's public key, such as ~/.ssh/id_ed25519.pub; its private key stays on the client |
id_target |
A separate private key for Bifröst, whose public key is authorized for target-user on the target |
target_known_hosts |
The target's host key, verified through a trusted channel |
Create a namespace and store those files in a Secret:
1 2 | |
Protect access to this Secret and the local private-key file. Do not use the client's private key as id_target.
2. Configure the access flow
Save this as values.yaml, replacing the target address and account. The target must be reachable from Bifröst's Pod.
| values.yaml | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | |
configuration is the regular Bifröst configuration. An object merges with the chart's defaults; flows replaces the default flow list. Bifröst templates such as {{ .session.id }} are kept literally, not evaluated by Helm. Without your own flow, the chart denies every login.
Gateway names this flow's optional browser access link. HTTP remains disabled until you explicitly enable it.
3. Install and test
Replace <version> in every command with the full release version, without its leading v, including any alpha/beta suffix. Chart and application versions match; leaving image.tag empty selects that application version.
1 2 | |
Expect bifroest-bifroest-0 to be ready and its PVC to be bound. The SSH Service is private by default. For the first test, forward it to a local port:
1 | |
In another terminal, export Bifröst's host key through your trusted Kubernetes connection, then connect with the client's private key:
1 2 | |
The result should be target-user. The exported key belongs to Bifröst, not the target; both SSH connections are verified separately. If startup or login fails, inspect kubectl --namespace bifroest logs bifroest-bifroest-0; a Pending PVC usually needs attention to the StorageClass or provisioner.
To provide direct SSH access beyond this test, choose service.ssh.type: LoadBalancer or NodePort to suit your cluster, and restrict networkPolicy.sshPeers to the intended sources. An HTTP Ingress does not expose native SSH.
Configuration sources
For a complete local configuration file instead of an object, add --set-file configuration=configuration.yaml to the Helm command. A YAML string in configuration is also supported. Both replace the complete application configuration rather than merging its fields with defaults.
To mount an existing object in the same namespace, set one of these values:
| Source | Helm value |
|---|---|
Secret containing configuration.yaml |
configuration: "secret:bifroest-config" |
ConfigMap containing configuration.yaml |
configuration: "configMap:bifroest-config" |
Use a Secret for configuration containing credentials. Inline configuration is also stored in a Secret. A complete external configuration must supply its flows and keep listeners and storage aligned with the chart:
| Setting in the Bifröst configuration | With default chart settings |
|---|---|
flows |
Your authorization and session-environment definitions |
ssh.addresses |
[":2222"] while the SSH Service is enabled |
ssh.keys.hostKeys |
Writable persistent paths, such as ["/var/lib/engity/bifroest/ssh/host"], or mounted existing keys |
session.storage |
/var/lib/engity/bifroest/sessions |
monitoring.enabled |
true |
monitoring.addresses |
[":9090"], matching the chart's monitoring.port |
monitoring.allowedRemoteHosts |
Permit the actual node/probe sources; [] relies on cluster network restrictions |
Enable monitoring TLS only together with monitoring.scheme: HTTPS and the necessary certificate mounts. Keep other writable repositories and generated keys under /var/lib/engity/bifroest; /etc/engity/bifroest and the root filesystem are read-only. The chart defaults to live reload with watch: preserve. Unsupported changes require a deliberate Pod rollout. If you select watch: off, external configuration changes also require an explicit rollout.
HTTP ingress
With the Helm installation above, use an existing Traefik controller to serve Bifröst at https://gateway.example.org/. Point that hostname at the controller and provide a valid TLS Secret named bifroest-public-tls in Bifröst's namespace. The chart does not install an ingress controller or a certificate manager.
Configure the controller to satisfy the forwarded-header contract before exposing the backend. Replace the trusted source range and both selectors below with those of your actual controller. Keep namespace and Pod selectors in the same peer entry so both must match. Review existing flows: enabling HTTP makes them HTTP-eligible by default; set http.enabled: false on flows that must stay SSH-only.
Save these additional values as ingress-values.yaml:
| ingress-values.yaml | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | |
Apply this file with the same full release version and the values.yaml from your installation. Retain any other values files, such as your monitoring settings:
1 | |
Check the public certificate and a permitted login: with the gateway flow above, open https://gateway.example.org/#gateway@Gateway and sign in using the client's SSH key, or use SSH over HTTPS. Also test rejection of access to the backend from unrelated Pods. tls: null explicitly disables backend TLS; the ingress-to-Pod traffic is unencrypted. Keep the HTTP Service private and NetworkPolicy enforced.
For a subpath, also set ingress.path and configuration.http.upstream.defaultPrefix to the same path, for example /bifroest. Configure prefix stripping and X-Forwarded-Prefix in your controller's middleware and reference it through ingress.annotations; the Ingress resource alone does not configure these behaviors. Update OIDC callback URLs to include the public path. Before adding replicas, plan routing across SSH and HTTPS.
Direct ACME
Use this alternative to HTTP Ingress when Bifröst terminates TLS itself. Point your DNS name at a TCP LoadBalancer that forwards public port 443 to the Pod's port 8443, including before readiness. Keep one replica and persistent ACME storage.
Add these values to your existing access-flow configuration:
| acme-values.yaml | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | |
Review the CA's terms before accepting them. Install with your existing values plus -f acme-values.yaml. The HTTP Service forwards TCP 443 for both HTTPS and ACME validation. Monitoring stays on its private probe port.
Check kubectl get endpointslices,pods and the startup logs: the CA must reach the challenge entrance while the Pod is unready; application handshakes remain blocked until certificates are ready. Test this behavior with your actual LoadBalancer/controller. publishNotReadyAddresses alone does not guarantee every cloud LB's health-check behavior. A conventional HTTP Ingress is not a TLS-ALPN proxy; use external certificate Secrets if your routing cannot support this bootstrap.
The default startup-probe budget allows about five minutes; increase it deliberately if certificate preparation needs longer. ACME needs outbound DNS/HTTPS, not DNS API credentials or additional Kubernetes permissions. Set configuration.http.enabled: acmeTlsAlpnOnly to serve only validation, without HTTP application endpoints. Keep service.http.enabled: true; the Kubernetes Service exposes the same TCP port in either mode.
For multiple Pods, mount externally renewed certificate Secrets as read-only directories without subPath and select file-based TLS. Use defaultMode: 0440 with the chart's UID/GID 10001; the read-only root filesystem and existing data PVC need no extra capabilities.
Deployment settings
Use helm show values oci://ghcr.io/engity-com/bifroest --version <version> for all settings. Common choices are:
| Helm value | Default | When to change it |
|---|---|---|
replicaCount |
1 |
After planning instance routing and separate state |
watch |
preserve |
Select live-reload behavior: off, preserve, reconnect or reuse; false, no and 0 mean off |
persistence.size |
10Gi per Pod |
Choose the initial capacity for sessions and configured evidence repositories; resize storage separately |
persistence.storageClass |
"" (cluster default) |
Select your provisioner; "-" requests no StorageClass |
persistence.accessModes |
[ReadWriteOnce] |
Use ReadWriteOncePod if supported by your storage |
image.tag |
"" (chart's application version) |
Select an edition tag from the same release |
image.digest |
"" |
Pin the image by digest; takes precedence over image.tag |
service.ssh.type |
ClusterIP |
Expose native SSH through your cluster's chosen service type |
service.http.enabled |
false |
Publish the TCP port for HTTP or ACME-only validation |
networkPolicy.sshPeers |
All IPv4/IPv6 sources | Restrict which sources can reach the SSH port |
networkPolicy.httpPeers, networkPolicy.monitoringPeers |
[] (deny) |
Explicitly admit the ingress controller or Prometheus |
resources |
{} |
Set CPU/memory requests and limits for your workload |
The Pod runs as UID/GID 10001, with RuntimeDefault seccomp, no added capabilities and no privilege escalation. Mounted credentials must be readable by that identity; the volume must support its writes. Review any flow that needs additional privileges rather than granting them to every deployment.
Next steps
- HTTP ingress enables browser access and SSH over HTTPS through an existing controller.
- Prometheus with Helm adds Pod discovery without exposing monitoring publicly.
- Helm releases and persistent state covers upgrades, replicas and removal.
- The Kubernetes session environment is a separate choice that requires its own credentials and permissions; installing this chart does not enable it.