# AlmaForge Cluster on Kubernetes

This guide builds a production high-availability deployment of AlmaForge on Kubernetes. Three replicas of one `almad` StatefulSet run Auth and Proxy in the same process behind one external `LoadBalancer` Service on TCP/443. cert-manager issues the public TLS leaf and trust-manager distributes the cluster CA. The first administrator signs in through your existing SSO provider.

Deploying target agents instead?

This guide builds the AlmaForge **cluster control plane** (`almaforge` chart). To connect workload Kubernetes clusters to an existing control plane, see the [Kubernetes Access Guide](https://almaforge.com/access/kubernetes.md) (`almaforge-agent` chart).

Looking for the 10-minute eval?

Try AlmaForge with the [Quick Start](https://almaforge.com/quickstart.md) demo.

## Topology[​](#topology "Direct link to Topology")

One `almad` StatefulSet with three replicas sits behind an external `LoadBalancer` Service on TCP/443. Each replica runs both Auth and Proxy in a single process with a `PodDisruptionBudget` (`maxUnavailable: 1`). Pod anti-affinity or `topologySpreadConstraints` can be enabled across availability zones. The `LoadBalancer` forwards TCP/443 directly to port `8443` without decrypting, terminating TLS end-to-end on the pod.

![Kubernetes HA topology with external storage](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA3NjAgNDYwIiBmb250LWZhbWlseT0idWktc2Fucy1zZXJpZiwgc3lzdGVtLXVpLCBzYW5zLXNlcmlmIiBmb250LXNpemU9IjEzIiBmaWxsPSIjMWYyOTM3Ij4KICA8ZGVmcz4KICAgIDxtYXJrZXIgaWQ9ImFycm93IiB2aWV3Qm94PSIwIDAgMTAgMTAiIHJlZlg9IjkiIHJlZlk9IjUiIG1hcmtlcldpZHRoPSI4IiBtYXJrZXJIZWlnaHQ9IjgiIG9yaWVudD0iYXV0by1zdGFydC1yZXZlcnNlIj4KICAgICAgPHBhdGggZD0iTTAsMCBMMTAsNSBMMCwxMCB6IiBmaWxsPSIjMWYyOTM3Ii8+CiAgICA8L21hcmtlcj4KICA8L2RlZnM+CgogIDxnIHN0cm9rZT0iIzFmMjkzNyIgc3Ryb2tlLXdpZ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zNSIgd2lkdGg9IjE4MCIgaGVpZ2h0PSI2NSIgcng9IjYiCiAgICAgICAgZmlsbD0iI2VjZmRmNSIgc3Ryb2tlPSIjMDQ3ODU3IiBzdHJva2Utd2lkdGg9IjEuMiIvPgogIDx0ZXh0IHg9IjU2NSIgeT0iMzYwIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBmb250LXdlaWdodD0iNjAwIj5FeHRlcm5hbCByZWNvcmRpbmcgc3RvcmFnZTwvdGV4dD4KICA8dGV4dCB4PSI1NjUiIHk9IjM4MCIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZmlsbD0iIzZiNzI4MCIgZm9udC1zaXplPSIxMSI+UzMgLyBHQ1MgLyBBenVyZSBCbG9iPC90ZXh0Pgo8L3N2Zz4K)

## Provision prerequisites[​](#provision-prerequisites "Direct link to Provision prerequisites")

Review [System Requirements](https://almaforge.com/requirements.md) first. Before installing AlmaForge, verify the cluster prerequisites below.

### Kubernetes cluster[​](#kubernetes-cluster "Direct link to Kubernetes cluster")

Run on Kubernetes **1.27+** (`amd64` or `arm64`) with `kubectl`, a default `StorageClass`, and a `LoadBalancer` controller that forwards TCP/443 without terminating TLS (built in on EKS, GKE, AKS, or [MetalLB](https://metallb.io/) on bare metal). Each `almad` pod needs roughly 1 vCPU and 1 GiB memory to start, scaling with concurrent sessions and registered targets (see [Scaling](https://almaforge.com/scaling.md)):

******Terminal

```bash
kubectl version --client
kubectl get storageclass
```

### Helm[​](#helm "Direct link to Helm")

Install Helm **3.12+** on your workstation:

******Terminal

```bash
helm version --short
```

### DNS[​](#dns "Direct link to DNS")

Ensure you can create DNS records for your cluster hostname (`[your-almaforge-host]`) and wildcard subdomain (`*.[your-almaforge-host]` for published web applications) in your DNS provider (e.g. AWS Route53, Cloudflare, Google Cloud DNS, or Azure DNS). Both client access and TLS certificate issuance depend on these records.

### cert-manager (optional, highly recommended)[​](#cert-manager-optional-highly-recommended "Direct link to cert-manager (optional, highly recommended)")

`cert-manager` is optional but highly recommended to automatically issue and renew public TLS certificates. Install `cert-manager` following the [cert-manager installation documentation](https://cert-manager.io/docs/installation/) or with Helm:

******Terminal

```bash
helm repo add jetstack https://charts.jetstack.io
helm repo update jetstack
helm upgrade --install cert-manager jetstack/cert-manager \
    --namespace cert-manager --create-namespace \
    --set crds.enabled=true
```

Configure a `ClusterIssuer` for Let's Encrypt using a [DNS-01 challenge solver](https://cert-manager.io/docs/configuration/acme/dns01/) with your DNS provider so it can issue wildcard certificates for `*.[your-almaforge-host]`, or configure an issuer with your custom enterprise CA.

Verify your issuer is ready:

******Terminal

```bash
kubectl get clusterissuer
NAME               READY   AGE
letsencrypt-prod   True    14d
```

Confirm your issuer reports `READY=True` (for example `letsencrypt-prod`), and use that exact name in `integrations.certManager.external.issuerName` below.

If you cannot install `cert-manager` (for example, if you do not have cluster permissions to install CRDs or prefer managing certificates manually), see [Enterprise TLS without cert-manager](#enterprise-tls-without-cert-manager) to supply your own TLS Secret.

### External storage (optional, required for production)[​](#external-storage-optional-required-for-production "Direct link to External storage (optional, required for production)")

The chart bundles in-cluster storage by default (a 3-member `etcd` StatefulSet for state and a local S3 service on a PersistentVolume for recordings). While suitable for evaluation and smaller environments, production deployments should use external managed storage backends:

* **External state storage.** Holds cluster state (roles, tokens, and target registrations). Production environments use AWS DynamoDB, GCP Cloud Firestore, Azure Database for PostgreSQL, or external `etcd`. The Helm chart includes a bundled 3-member `etcd` cluster so you can deploy immediately without external cloud storage.
* **External audit storage.** Stores structured security and audit logs. Supported production backends include S3, PostgreSQL, DynamoDB, Firestore, and Athena. By default, events stream as structured JSON to `stderr` for cluster log collectors, so you can start immediately and connect an external database later.
* **External recording storage.** Stores interactive session recordings for SSH, Kubernetes, database, and web access in object storage (AWS S3, Google Cloud Storage, or Azure Blob). The chart includes a bundled S3 shim (powered by Versity Gateway) on a `PersistentVolume` so you can evaluate immediately and migrate to cloud object storage later.

See the [Storage Guide](https://almaforge.com/storage.md) for cloud IAM setup, schema definitions, and backend selection.

## Install AlmaForge[​](#install-almaforge "Direct link to Install AlmaForge")

### Step 1. Install with Helm[​](#step-1-install-with-helm "Direct link to Step 1. Install with Helm")

Add the AlmaForge chart repository and install the cluster. Replace `[your-almaforge-host]` with your domain and `[cluster-issuer-name]` with the exact `NAME` from `kubectl get clusterissuer` above (add `--version [release-version]` to pin a release):

******Terminal

```bash
helm repo add almaforge https://get.almaforge.com/helm
helm repo update almaforge
helm upgrade --install almaforge almaforge/almaforge \
    --namespace almaforge --create-namespace \
    --set env.ALMA_ADVERTISE=[your-almaforge-host:443] \
    --set integrations.certManager.external.issuerName=[cluster-issuer-name] \
    --set integrations.etcd.enabled=true \
    --set integrations.s3shim.enabled=true \
    --wait --timeout 10m
```

Key configuration values:

* `env.ALMA_ADVERTISE`: Set to the public hostname and port AlmaForge will run on (for example `almaforge.example.com:443`). Requires a matching wildcard DNS record (`*.almaforge.example.com`), see [DNS](#dns).
* `integrations.certManager.external.issuerName=[cluster-issuer-name]`: Name of the `cert-manager` `ClusterIssuer` (or `Issuer`) used to create certificates for the domain set in `env.ALMA_ADVERTISE`. If supplying your own certificates instead of `cert-manager`, pass `--set tls.secretName=almaforge-tls` instead of `integrations.certManager.external.issuerName` (see [Enterprise TLS without cert-manager](#enterprise-tls-without-cert-manager)).
* `integrations.etcd.enabled=true`: Enables the bundled 3-member `etcd` StatefulSet for cluster state. To use your own cloud database instead (AWS DynamoDB, GCP Cloud Firestore, Azure Database for PostgreSQL, or external `etcd`), see [External storage backends](#external-storage-backends).
* `integrations.s3shim.enabled=true`: Enables the bundled in-cluster S3-compatible service backed by a `PersistentVolume` for session recordings. To stream recordings to AWS S3, Google Cloud Storage, or Azure Blob instead, see [External storage backends](#external-storage-backends).

See the [Helm values reference](https://almaforge.com/reference/helm.md) for all supported configuration options.

Verify that the AlmaForge server pods are `Running` and that the `LoadBalancer` Service has an `EXTERNAL-IP` (not `<pending>`):

******Terminal

```bash
kubectl -n almaforge get pods -l app.kubernetes.io/component=server
NAME          READY   STATUS    RESTARTS   AGE
almaforge-0   1/1     Running   0          1m
almaforge-1   1/1     Running   0          1m
almaforge-2   1/1     Running   0          1m
kubectl -n almaforge get service almaforge
NAME        TYPE           CLUSTER-IP     EXTERNAL-IP     PORT(S)         AGE
almaforge   LoadBalancer   10.96.81.3     203.0.113.10    443:30289/TCP   1m
```

### Step 2. Configure DNS[​](#step-2-configure-dns "Direct link to Step 2. Configure DNS")

Print the `LoadBalancer` address (or see [External DNS operator](#external-dns-operator) if your cluster runs `external-dns`):

******Terminal

```bash
kubectl -n almaforge get service almaforge -o jsonpath='{.status.loadBalancer.ingress[0].hostname}{.status.loadBalancer.ingress[0].ip}{"\n"}'
```

Point `[your-almaforge-host]` and `*.[your-almaforge-host]` to that address in your DNS provider, forwarding TCP/443 unchanged (`A`/`AAAA` if the command printed an IP, or `CNAME`/`ALIAS` if it printed a hostname). Wait until DNS resolves before continuing:

******Terminal

```bash
nslookup [your-almaforge-host]
```

### Step 3. Configure SSO[​](#step-3-configure-sso "Direct link to Step 3. Configure SSO")

Choose how to configure your SSO connector. For provider-specific instructions, see [SSO overview](https://almaforge.com/sso.md), [OIDC](https://almaforge.com/sso/oidc.md), [Okta](https://almaforge.com/sso/okta.md), [Google](https://almaforge.com/sso/google.md), [Microsoft](https://almaforge.com/sso/microsoft.md), [GitHub](https://almaforge.com/sso/github.md), and [Multi-SSO](https://almaforge.com/sso/multi-sso.md).

* Via Web UI
* Via Helm (IaC)

Generate a one-time break-glass link (see [break-glass access](https://almaforge.com/break-glass.md)):

******Terminal

```bash
kubectl -n almaforge exec -it pod/almaforge-0 -- alma login --breakglass
```

Open the printed URL in your browser (it opens a 5-minute `breakglass` admin session), then open **Access control**, then **SSO**, and add your connector. Typical OIDC parameters:

* **Callback URL** (register in your IdP app): `https://[your-almaforge-host]/api/v1/oidc/callback`
* **Issuer URL (`issuerURL`):** your IdP's OpenID Connect discovery URL (for example `https://example.okta.com`)
* **Client ID & Client Secret (`clientID`, `clientSecret`):** credentials from your IdP OIDC application
* **Scopes (`scope`):** `openid`, `profile`, `email`
* **Claim mapping (`claimsToRoles`):** maps an IdP claim (`groups` or `email`) to AlmaForge roles such as `admin` and `access`

The [OIDC guide](https://almaforge.com/sso/oidc.md) carries the connector's full field list and a worked example for each supported provider.

Manage the connector as IaC (resources in `configs` are file-managed and read-only in the Web UI. Update them through Helm).

Put the IdP credentials in a `Secret` first. Helm keeps a `--set` value in its release, where `helm get values` prints it in plaintext for anyone who can read the release, so the client secret does not go through Helm.

Read the secret from a file, because a literal value reaches the command's arguments and your shell history:

******Terminal

```bash
kubectl -n almaforge create secret generic almaforge-oidc \
    --from-literal=OIDC_CLIENT_ID=[your-client-id] \
    --from-file=OIDC_CLIENT_SECRET=[path-to-secret-file]
```

Whatever secret manager already holds the credential can write that file, and `--from-literal=OIDC_CLIENT_SECRET=...` works for a quick evaluation.

The connector reads them through `${env:...}` at startup, so the drop-in itself carries no secret (see the [OIDC guide](https://almaforge.com/sso/oidc.md)):

[`cluster-oidc.yaml`](https://almaforge.com/examples/kubernetes/cluster/cluster-oidc.yaml)

examples/kubernetes/cluster/cluster-oidc.yaml

```yaml
# OIDCConnector drop-in for the AlmaForge server Helm chart.

# Pass it with --set-file 'configs.oidc\.yaml'=oidc.yaml and keep the

# client credentials in a Secret loaded through envFrom, so ${env:...}

# resolves at startup and the secret stays out of Helm release history.

apiVersion: almaforge.com/v1

kind: OIDCConnector

metadata:

  name: okta

spec:

  display: Okta

  issuerURL: https://[your-idp-host]

  clientID: ${env:OIDC_CLIENT_ID}

  clientSecret: ${env:OIDC_CLIENT_SECRET}

  scope:

    - openid

    - profile

    - email

  claimsToRoles:

    - claim: groups

      value: platform-admins

      roles:

        - admin

        - access
```

******Terminal

```bash
helm upgrade almaforge almaforge/almaforge \
    --namespace almaforge --reuse-values \
    --set-file 'configs.oidc\.yaml'=oidc.yaml \
    --set 'envFrom[0].secretRef.name=almaforge-oidc' \
    --wait --timeout 10m
```

### Step 4. Sign in with the CLI[​](#sign-in "Direct link to Step 4. Sign in with the CLI")

Install `alma` on your workstation (see [CLI Setup](https://almaforge.com/cli.md)) and sign in (on headless workstations, pass `--no-browser` and open the printed URL on another device):

******Terminal

```bash
alma login --proxy=[your-almaforge-host]:443
alma get cluster
alma get oidcconnector
alma status
```

## Connect resources[​](#connect-resources "Direct link to Connect resources")

The cluster is now ready to host infrastructure access. Add agents for each kind of target:

* **SSH servers**: see [Server Access](https://almaforge.com/access/servers.md).
* **Kubernetes clusters**: see [Kubernetes Access](https://almaforge.com/access/kubernetes.md).
* **Applications**: see [Application Access](https://almaforge.com/access/applications.md).
* **Databases**: see [Database Access](https://almaforge.com/access/databases.md).

Each agent is another `almad` process with the same binary and different service flags. It joins the cluster using credentials from its own `Token` resource and exposes one or more targets through the cluster Proxy layer.

For agents running in the same Kubernetes cluster as this control plane, the in-cluster Kubernetes join method lets the agent prove its identity with its `ServiceAccount` JWT through TokenReview (see [Workload Identity](https://almaforge.com/workload-identity.md)). No shared secret or CA pin is required.

To define permissions, access requests, and policy as code after the control plane is running, see [RBAC](https://almaforge.com/rbac.md), [Just-in-Time Access](https://almaforge.com/just-in-time-access.md), and the [Terraform provider](https://almaforge.com/terraform.md).

## Advanced[​](#advanced "Direct link to Advanced")

### Managing configuration with values.yaml[​](#helm-values "Direct link to Managing configuration with values.yaml")

For production deployments and GitOps workflows (ArgoCD, Flux), maintain your chart configuration in a version-controlled `values.yaml` file rather than passing individual `--set` flags:

******Terminal

```bash
helm upgrade --install almaforge almaforge/almaforge \
    --namespace almaforge --create-namespace \
    -f values.yaml
```

* **Inspecting options**: Run `helm show values almaforge/almaforge` to inspect the full default values file, or consult the [Helm values reference](https://almaforge.com/reference/helm.md) for descriptions of every supported parameter.
* **Handling secrets**: Store sensitive credentials (such as IdP client secrets or database credentials) in Kubernetes `Secret` resources and reference them using `envFrom` with `${env:VARIABLE}` expansion so secrets stay out of Git and Helm release history (see [declarative configuration](https://almaforge.com/reference/configuration.md)).
* **Private registries**: For air-gapped or restricted clusters, configure `image.repository` and `imagePullSecrets` (see [Air-gapped Deployment](https://almaforge.com/deployment/airgapped.md)).

### Enterprise TLS without cert-manager[​](#enterprise-tls-without-cert-manager "Direct link to Enterprise TLS without cert-manager")

The best way to manage TLS on Kubernetes is `cert-manager` (the chart mounts the TLS `Secret` as a directory so renewals reach `almad` automatically). If you still do not want to run `cert-manager` and prefer to supply your own enterprise or internal CA certificates, create a `kubernetes.io/tls` Secret in the target namespace first:

******Terminal

```bash
kubectl create namespace almaforge
kubectl -n almaforge create secret tls almaforge-tls --cert=tls.crt --key=tls.key
```

Then install the chart with `tls.secretName=almaforge-tls` (or pass files directly with `--set-file tls.cert=tls.crt --set-file tls.key=tls.key`):

******Terminal

```bash
helm upgrade --install almaforge almaforge/almaforge \
    --namespace almaforge --create-namespace \
    --set env.ALMA_ADVERTISE=[your-almaforge-host:443] \
    --set tls.secretName=almaforge-tls \
    --wait --timeout 10m
```

### External DNS operator[​](#external-dns-operator "Direct link to External DNS operator")

If your cluster runs the `external-dns` operator (configured with `--source=service`), pass `--set integrations.externalDns=true` during Helm install or upgrade so the chart annotates the `LoadBalancer` Service with `external-dns.alpha.kubernetes.io/hostname`:

******Terminal

```bash
helm upgrade --install almaforge almaforge/almaforge \
    --namespace almaforge --create-namespace \
    --set env.ALMA_ADVERTISE=[your-almaforge-host:443] \
    --set integrations.certManager.external.issuerName=[cluster-issuer-name] \
    --set integrations.externalDns=true \
    --wait --timeout 10m
```

`external-dns` then creates and updates `[your-almaforge-host]` and `*.[your-almaforge-host]` automatically.

### OpenTelemetry export[​](#opentelemetry-export "Direct link to OpenTelemetry export")

By default, `almad` writes structured JSON logs (`ALMA_LOG_FORMAT=json`) to `stderr` for cluster log collectors. It also exports metrics, logs and traces over OTLP, configured by the standard OpenTelemetry variables, so naming a collector endpoint in `env` is all the chart needs to pass through:

******Terminal

```bash
helm upgrade --install almaforge almaforge/almaforge \
    --namespace almaforge \
    --set env.ALMA_ADVERTISE=[your-almaforge-host:443] \
    --set integrations.certManager.external.issuerName=[cluster-issuer-name] \
    --set env.OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector.monitoring:4317 \
    --set env.OTEL_EXPORTER_OTLP_PROTOCOL=grpc \
    --wait --timeout 10m
```

A signal turns on only when its endpoint is set, and the SDK reads headers, TLS, timeouts, batching and sampling itself. See the [environment reference](https://almaforge.com/reference/environment.md) for every `OTEL_*` variable, and [Monitoring](https://almaforge.com/monitoring.md) for what the signals carry.

### Prometheus operator[​](#prometheus-operator "Direct link to Prometheus operator")

If you run `prometheus-operator`, enable `integrations.prometheus.serviceMonitor` to expose `/metrics` on `:3081` via an internal `ClusterIP` Service and create a `ServiceMonitor` (keeping the public `LoadBalancer` on TCP/443 only):

******Terminal

```bash
helm upgrade --install almaforge almaforge/almaforge \
    --namespace almaforge \
    --set env.ALMA_ADVERTISE=[your-almaforge-host:443] \
    --set integrations.certManager.external.issuerName=[cluster-issuer-name] \
    --set integrations.prometheus.serviceMonitor.enabled=true \
    --wait --timeout 10m
```

### Storage backends[​](#bundled-storage-backends "Direct link to Storage backends")

AlmaForge requires persistent storage for **cluster state** (RBAC, dynamic configs, target registrations) and **session recordings** (recorded interactive sessions).

#### Default bundled storage[​](#default-bundled-storage "Direct link to Default bundled storage")

The installation command in [Step 1](#step-1-install-with-helm) deploys built-in storage workloads inside the cluster by default, so you can evaluate HA without provisioning external cloud databases:

| Switch                        | Runs                                                   | Holds              |
| ----------------------------- | ------------------------------------------------------ | ------------------ |
| `integrations.etcd.enabled`   | 3-member `etcd` StatefulSet                            | Cluster state      |
| `integrations.s3shim.enabled` | One pod serving one `PersistentVolume` over the S3 API | Session recordings |

Traffic between server pods and these bundled backends is restricted within the namespace by `NetworkPolicy`.

The S3 shim serves an S3-compatible API backed by a `PersistentVolume`. `almad` authenticates with standard S3 signatures. Size `integrations.s3shim.persistence.size` for your session recording retention: the volume does not grow automatically, and a full volume fails recording uploads.

#### Internal TLS[​](#internal-tls "Direct link to Internal TLS")

By default, traffic between `almad` and the bundled backends is isolated to server pods by `NetworkPolicy`. To additionally encrypt this traffic with mutual TLS inside the namespace, provide an internal `cert-manager` issuer or existing TLS secrets:

******Terminal

```bash
helm upgrade --install almaforge almaforge/almaforge \
    --namespace almaforge \
    --set env.ALMA_ADVERTISE=[your-almaforge-host:443] \
    --set integrations.certManager.external.issuerName=[cluster-issuer-name] \
    --set integrations.certManager.internal.issuerName=[internal-issuer-name] \
    --set integrations.certManager.internal.issuerKind=Issuer \
    --wait --timeout 10m
```

The external and internal issuers are separate because the external issuer signs the public hostname `[your-almaforge-host]`, while internal certificates cover cluster-internal `.svc` names. Alternatively, `integrations.etcd.tls.existingSecret` and `integrations.s3shim.tls.existingSecret` accept Secrets from your own PKI.

Bundled `etcd` fixes its peer communication protocol (`http` vs `https`) and initial membership when bootstrapped on its persistent volumes. If your environment requires cluster-internal mTLS or a specific replica count, set these values on initial install. Switching peer TLS modes on an existing `etcd` cluster requires snapshotting state, deleting the `etcd` PVCs, and reinstalling.

#### External storage backends[​](#external-storage-backends "Direct link to External storage backends")

For production cloud deployments, you can disable the bundled workloads and connect AlmaForge directly to managed cloud storage:

* **State**: AWS DynamoDB, GCP Cloud Firestore, Azure Database for PostgreSQL, or an external managed `etcd` cluster.
* **Session recordings**: AWS S3, Google Cloud Storage, or Azure Blob Storage.
* **Audit events**: Stream to S3, PostgreSQL, DynamoDB, Firestore, or Athena.

To use external backends:

1. Disable the bundled storage switches:

   ******Terminal

   ```bash
   --set integrations.etcd.enabled=false \
   --set integrations.s3shim.enabled=false
   ```

2. Pass your `StorageConfig` resource manifests under `configs`:

   ******Terminal

   ```bash
   --set-file 'configs.state\.yaml'=state.yaml \
   --set-file 'configs.recordings\.yaml'=recordings.yaml
   ```

3. On cloud Kubernetes (EKS, GKE, AKS), authenticate via IAM workload identity attached to the `almaforge` `ServiceAccount` (`serviceAccount.annotations` for AWS IRSA, GKE Workload Identity, or Azure Workload Identity) rather than static long-lived credentials.

See the [Storage Guide](https://almaforge.com/storage.md), [PostgreSQL](https://almaforge.com/storage/postgresql.md), [S3](https://almaforge.com/storage/s3.md), and [etcd](https://almaforge.com/storage/etcd.md).

### NetworkPolicy and firewalls[​](#networkpolicy-and-firewalls "Direct link to NetworkPolicy and firewalls")

The chart creates ingress `NetworkPolicy` objects for both `almad` and bundled `etcd` pods while leaving pod egress unrestricted so `almad` can reach external IdPs, storage backends, integrations, and the Kubernetes API. Only TCP/443 on the external `LoadBalancer` needs to be reachable by clients:

| Port                 | Description / purpose                                                                                                                                                                                   |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| TCP/443              | Client-reachable on the external `LoadBalancer` for users, agents, automation, and `alma` (forwards to each `almad` pod on port `8443`).                                                                |
| TCP/2379             | Private `etcd` client API used by Auth (`http://` by default, or mTLS when internal TLS is enabled). Restricted by `NetworkPolicy` to server pods.                                                      |
| TCP/2380             | Private `etcd` peer replication (`http://` by default, or mTLS when internal TLS is enabled). Restricted by `NetworkPolicy` to `etcd` peers.                                                            |
| TCP/7070             | Private S3 endpoint on the bundled shim (`http://` on port 80 by default, or over TLS on port 443 when internal TLS is enabled). Restricted by `NetworkPolicy` to server pods.                          |
| TCP/3000             | Private diagnostics endpoint for `/healthz` and `/readyz` (chart-managed).                                                                                                                              |
| TCP/3081             | Private Prometheus metrics endpoint when `integrations.prometheus.serviceMonitor.enabled` or `integrations.prometheus.podAnnotations` is set.                                                           |
| Outbound connections | Allow backend ports, image-registry HTTPS from nodes, OIDC discovery/token endpoints, and any `cert-manager` issuer API. See [egress requirements](https://almaforge.com/networking.md#egress-traffic). |

### Pod Security Standards[​](#pod-security-standards "Direct link to Pod Security Standards")

Every Pod the chart runs satisfies the `restricted` [Pod Security Standard](https://kubernetes.io/docs/concepts/security/pod-security-standards/): it runs as UID 65532 with `runAsNonRoot`, a read-only root filesystem, all capabilities dropped, no privilege escalation, and the `RuntimeDefault` seccomp profile.

Nothing in the chart turns enforcement on, because a chart cannot label its own namespace. A Helm release stores its metadata inside the release namespace, so that namespace already exists before any chart resource is applied, and Helm refuses to adopt an object it did not create. Enforcement is a cluster decision, taken in one of two places:

* **Per namespace**, applied by whoever creates it, whether that is an operator, a platform repository, or a GitOps application that runs ahead of the release:

******Terminal

```bash
kubectl label namespace almaforge \
    pod-security.kubernetes.io/enforce=restricted \
    pod-security.kubernetes.io/enforce-version=v1.31
```

* **Cluster-wide**, through a Pod Security [`AdmissionConfiguration`](https://kubernetes.io/docs/tasks/configure-pod-container/enforce-standards-admission-controller/) that makes `restricted` the default for every namespace. Nothing is then needed per release.

Pin `enforce-version` to a Kubernetes version rather than `latest` in production. `latest` adopts whatever checks a cluster upgrade introduces, which can reject a Pod that was admitted before the upgrade. Clusters that enforce through Kyverno or Gatekeeper instead need no labels at all.

## Operations[​](#operations "Direct link to Operations")

Review [Upgrades](https://almaforge.com/upgrades.md), [High Availability](https://almaforge.com/high-availability.md), [Backups](https://almaforge.com/backups.md), [CA Rotation](https://almaforge.com/ca-rotation.md), and [Hardening](https://almaforge.com/hardening.md) before changing versions or scaling the cluster.

### Upgrades[​](#upgrades "Direct link to Upgrades")

Back up your `etcd` state (or external state backend) and the server-managed `<pod-name>-state` Secrets first. Leave `image.tag` unset so the server version tracks the chart version, and pass your values file (or `--reuse-values` if you installed with `--set` flags):

******Terminal

```bash
helm repo update almaforge
helm upgrade almaforge almaforge/almaforge --version [new-version] \
    --namespace almaforge -f values.yaml --wait
```

If an upgrade misbehaves, roll back to the previous Helm revision:

******Terminal

```bash
helm -n almaforge rollback almaforge --wait
```

### Backups[​](#backups "Direct link to Backups")

Cluster state lives in bundled `etcd` (or your external `StorageConfig` `state` backend), session recordings live on the bundled S3 shim's `PersistentVolume` (or your `recordings` backend), and each replica's identity lives in its `<pod-name>-state` Secret. Back up all three before upgrades or node maintenance. See [Backups](https://almaforge.com/backups.md).

### Uninstallation[​](#uninstallation "Direct link to Uninstallation")

To uninstall AlmaForge from your Kubernetes cluster:

******Terminal

```bash
helm -n almaforge uninstall almaforge
```

By default, Kubernetes StatefulSets retain `PersistentVolumeClaims` to prevent accidental data loss. To permanently delete persisted cluster state (`etcd`), session recordings (`s3shim`), and replica identity Secrets when tearing down a test cluster:

******Terminal

```bash
kubectl -n almaforge delete pvc -l app.kubernetes.io/name=almaforge
kubectl -n almaforge delete secret almaforge-0-state almaforge-1-state almaforge-2-state
```

## Troubleshooting[​](#troubleshooting "Direct link to Troubleshooting")

### `LoadBalancer` Service stuck in `<pending>`[​](#loadbalancer-service-stuck-in-pending "Direct link to loadbalancer-service-stuck-in-pending")

******Terminal

```bash
kubectl -n almaforge get svc almaforge
NAME        TYPE           EXTERNAL-IP   PORT(S)
almaforge   LoadBalancer   <pending>     443:30000/TCP
```

The cluster has no `LoadBalancer` controller. On managed cloud Kubernetes (EKS, GKE, AKS), the controller is built in. On bare metal or kind/minikube, install [MetalLB](https://metallb.io/) or the equivalent first. On managed cloud where the controller exists but the LB stays pending, check `kubectl -n almaforge describe svc almaforge` for events (quota exhaustion, missing subnet tag, or restricted service account).

### `almad` fails to start with `cannot connect to <state-backend>`[​](#almad-fails-to-start-with-cannot-connect-to-state-backend "Direct link to almad-fails-to-start-with-cannot-connect-to-state-backend")

Inspect `etcd` pod readiness and server logs:

******Terminal

```bash
kubectl -n almaforge get pods -l app.kubernetes.io/component=etcd
kubectl -n almaforge logs almaforge-0
```

Common causes:

* Bundled `etcd` pods are still `Pending` (missing default `StorageClass` for `etcd` PVCs).
* For external `etcd`, the pod's client cert is not signed by the backend CA or a `NetworkPolicy` is blocking egress from server pods.

### Pods stuck at `0/N` ready or `ContainerCreating`[​](#pods-stuck-at-0n-ready-or-containercreating "Direct link to pods-stuck-at-0n-ready-or-containercreating")

Inspect pod events, ConfigMap drop-ins, and `cert-manager` status:

******Terminal

```bash
kubectl -n almaforge describe pod almaforge-0
kubectl -n almaforge describe certificate almaforge-tls
kubectl -n almaforge describe configmap almaforge-config
```

Common causes include omitting `env.ALMA_ADVERTISE` when using `integrations.certManager.external.issuerName`, a not-ready `ClusterIssuer`, or invalid YAML in `configs`.

### cert-manager `Certificate` stuck in `Issuing`[​](#cert-manager-certificate-stuck-in-issuing "Direct link to cert-manager-certificate-stuck-in-issuing")

* Confirm the `ClusterIssuer` is ready (`kubectl describe clusterissuer [cluster-issuer-name]`) and its backing Secret exists in the `cert-manager` namespace.
* Note that Let's Encrypt requires a **DNS-01** challenge solver for wildcard certificates (`*.[your-almaforge-host]`). HTTP-01 challenge solvers cannot validate wildcards. If your environment cannot use DNS-01, supply an existing wildcard certificate via `tls.secretName` (see [Enterprise TLS without cert-manager](#enterprise-tls-without-cert-manager)).
* For DNS-01 challenges, DNS propagation may still be in progress with your DNS provider. `cert-manager` retries automatically.

### `alma` fails with `certificate signed by unknown authority`[​](#alma-fails-with-certificate-signed-by-unknown-authority "Direct link to alma-fails-with-certificate-signed-by-unknown-authority")

The workstation does not trust the CA that signed the cluster's TLS certificate. Install the CA into the OS trust store:

******Terminal

```bash
sudo cp ca.crt /usr/local/share/ca-certificates/almaforge-ca.crt
sudo update-ca-certificates
```

Use `update-ca-trust` on Red Hat or `security add-trusted-cert` on macOS.

### Sign-in fails with `redirect_uri_mismatch`[​](#sign-in-fails-with-redirect_uri_mismatch "Direct link to sign-in-fails-with-redirect_uri_mismatch")

The IdP's registered redirect URI does not match `https://[your-almaforge-host]/api/v1/oidc/callback`. Exact host, port presence, and absence of a trailing slash must all match.

### Listing connectors when locked out[​](#listing-connectors-when-locked-out "Direct link to Listing connectors when locked out")

From a host with `kubectl` access, inspect connectors directly inside a pod:

******Terminal

```bash
kubectl -n almaforge exec -it pod/almaforge-0 -- alma get oidcconnector
```

For broader recovery when SSO is down, see [Break-glass](https://almaforge.com/break-glass.md).

### `alma get cluster` shows an unexpected cluster name[​](#alma-get-cluster-shows-an-unexpected-cluster-name "Direct link to alma-get-cluster-shows-an-unexpected-cluster-name")

`ClusterName` is immutable once initialized from `env.ALMA_ADVERTISE` (or a `ClusterName` resource in `configs`) on first startup. To change it, plan a new-cluster cutover with the target `env.ALMA_ADVERTISE` set before first startup.

### Login succeeds but `alma get role` returns `forbidden`[​](#login-succeeds-but-alma-get-role-returns-forbidden "Direct link to login-succeeds-but-alma-get-role-returns-forbidden")

Inspect the resolved roles on your current session:

******Terminal

```bash
alma status
```

Confirm your `OIDCConnector` `claimsToRoles` maps your IdP claim (`email` or `groups`) to the expected role, then sign in again.

### Plain YAML without Helm[​](#plain-yaml-without-helm "Direct link to Plain YAML without Helm")

To render plain Kubernetes manifests without running Helm at deploy time:

******Terminal

```bash
helm template almaforge almaforge/almaforge --version [release-version] \
    --namespace almaforge \
    --set env.ALMA_ADVERTISE=[your-almaforge-host:443] \
    --set integrations.certManager.external.issuerName=[cluster-issuer-name] > almaforge.yaml
```

By default, bundled `etcd` and `s3shim` run without internal TLS so `helm template` stays deterministic for GitOps (ArgoCD or Flux). To enable cluster-internal TLS (`etcd` mTLS and `s3shim` TLS), either set `integrations.certManager.internal.issuerName` to a `cert-manager` `Issuer` (or `ClusterIssuer`) in the release namespace, or pre-create TLS Secrets containing `ca.crt`, `tls.crt`, and `tls.key` (`kubectl create secret generic ... --type=kubernetes.io/tls --from-file=ca.crt=... --from-file=tls.crt=... --from-file=tls.key=...`, since `kubectl create secret tls` omits `ca.crt`) and set `integrations.etcd.tls.existingSecret` / `integrations.s3shim.tls.existingSecret`.

## References[​](#references "Direct link to References")

* [Declarative Configuration](https://almaforge.com/reference/configuration.md): full schema for `StorageConfig`, `OIDCConnector`, `Token`, `Role`, and target kinds.
* [Environment Configuration](https://almaforge.com/reference/environment.md): every supported `ALMA_*` variable.
* [CLI Reference](https://almaforge.com/reference/cli.md): `alma` and `almad` subcommands and flags.
* [Storage Guide](https://almaforge.com/storage.md): backend selection, `etcd` layout, PostgreSQL sizing, DynamoDB IAM, audit and recording retention.
* [Networking Guide](https://almaforge.com/networking.md): load balancer reference, advertise vs listen, and wildcard DNS.
* [High Availability](https://almaforge.com/high-availability.md): the architecture model this guide implements.
* [CLI Setup](https://almaforge.com/cli.md): installing `alma` on workstations and OS trust-store commands.
* [Backups](https://almaforge.com/backups.md): restore drills and capacity planning.
* [Break-glass](https://almaforge.com/break-glass.md): recovery procedures when SSO is broken.
* [Upgrades](https://almaforge.com/upgrades.md): rolling upgrade flow.
* [Monitoring](https://almaforge.com/monitoring.md): Prometheus scrape targets and alert recipes.
* [CA Rotation](https://almaforge.com/ca-rotation.md): cluster CA rotation procedure.
* [Hardening Guide](https://almaforge.com/hardening.md): production-grade filesystem modes, mTLS, secrets, session limits, and Web UI hardening.
* [Support plans](https://almaforge.com/pricing.md#support-plans): support plans, response times, severity levels, and professional services.
