Kubernetes
Run Argyll on your own Kubernetes cluster behind a single address, with sign-in and a replicated engine.
What the Chart Runs
The Helm chart serves everything from one address, such as https://argyll.example.com:
- The web UI at
/ - The engine API at
/engine, on a three-node Raft cluster with durable storage - Chat at
/chat - Sign-in at
/auth, through a bundled Keycloak or your own OpenID Connect provider - The Agent workers you enable, with the Argyll MCP server they use
Writes go to the Raft leader, and reads spread across every node. A node that restarts rejoins the cluster with its data.
NetworkPolicies give each component a private path: engine nodes reach each other’s Raft port, and every other component accepts connections from the components that use it. People, Step services, and callbacks reach Argyll through the gateway, at publicUrl or the gateway service inside the cluster. Outbound calls from Steps go wherever your network allows. The policies take effect on clusters whose network plugin enforces NetworkPolicies.
Before You Install
The cluster needs Kubernetes 1.30 or later, an ingress controller, and a certificate for the address you serve. Most managed clusters already have both. On a new cluster, Traefik and cert-manager provide them:
helm repo add traefik https://traefik.github.io/charts
helm repo add jetstack https://charts.jetstack.io
helm install traefik traefik/traefik -n traefik --create-namespace
helm install cert-manager jetstack/cert-manager -n cert-manager --create-namespace --set crds.enabled=true
Point your address’s DNS record at the Traefik load balancer. Then create an issuer that gets certificates from Let’s Encrypt:
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt
spec:
acme:
server: https://acme-v02.api.letsencrypt.org/directory
email: you@example.com
privateKeySecretRef:
name: letsencrypt
solvers:
- http01:
ingress:
ingressClassName: traefik
Build the Argyll images and push them to a registry your cluster can pull from, as the chart’s deploy notes describe.
Install
Save your settings in values.yaml:
publicUrl: https://argyll.example.com
image:
registry: registry.example.com/argyll
tag: 0.1.0
ingress:
className: traefik
annotations:
cert-manager.io/cluster-issuer: letsencrypt
tlsSecretName: argyll-tls
agents:
anthropic:
enabled: true
existingSecret: argyll-anthropic
Store each enabled worker’s provider credentials in its secret, then install:
kubectl create namespace argyll
kubectl create secret generic argyll-anthropic -n argyll --from-literal=ANTHROPIC_API_KEY=...
helm install argyll ./deploy/helm/argyll -n argyll -f values.yaml --wait --timeout 10m
Run these from an Argyll checkout. The install waits for Keycloak to start, which can take a few minutes on a new cluster, then prints how to read the first administrator’s password.
Check the Install
helm test argyll -n argyll --logs
The tests confirm that the gateway serves the UI, the engine, chat, and sign-in, that the Raft leader accepts writes, and that the service accounts sign in. They also confirm that the engine reaches each enabled Agent worker, that chat reaches its worker, and that every component other than the gateway accepts connections only from the components that use it.
Sign In
Open your address and sign in as admin with the printed one-time password. Keycloak asks for a new password and your profile on first sign-in.
The Keycloak admin console stays inside the cluster. Reach it with the kubectl port-forward command the install prints, then add people and give them the reader, operator, or admin role.
Settings
| Setting | Description |
|---|---|
publicUrl | The address people use to reach Argyll. Required. Use HTTPS: browsers sign in over plain HTTP only on localhost |
keycloak.adminPort | The local port the install’s kubectl port-forward uses for the Keycloak admin console, 8180 by default |
image.registry, image.tag | Where the images come from, ghcr.io/kode4food and the chart’s version by default. Set both until Argyll publishes its images |
engine.replicas | Raft nodes, 3 by default. The cluster keeps the size it starts with |
engine.storage.size | Storage for each engine node |
agents.<provider>.enabled | Run the anthropic, bedrock, gemini, or openai worker |
agents.<provider>.existingSecret | Secret holding that worker’s provider credentials as environment variables |
agents.default | The worker that also serves providers without their own, openai by default |
agents.replicas | Pods for each enabled worker, 1 by default |
ingress.className, ingress.annotations, ingress.tlsSecretName | How the cluster’s ingress serves publicUrl |
clusterDomain | The cluster’s DNS domain, cluster.local by default |
networkPolicy.enabled | Give each component a private path, with the gateway as the entry point. true by default |
Keycloak and Its Database
The bundled Keycloak keeps its data in Postgres. By default the chart runs a single Postgres for trying Argyll out. For production, use a managed database:
keycloak:
postgres:
enabled: false
database:
host: keycloak-db.example.internal
name: keycloak
user: keycloak
existingSecret: keycloak-db
The keycloak-db secret holds the database password under password.
The chart generates Keycloak’s passwords and client secrets once and keeps them across upgrades. To supply your own, set keycloak.existingSecret to a secret with admin-password, argyll-admin-password, engine-client-secret, and agent-client-secret.
Keycloak reads publicUrl when it first creates the realm. To change the address afterward, update the argyll-web client’s redirect URI in the Keycloak admin console.
The install sets the master realm’s Frontend URL to http://localhost:<keycloak.adminPort>/auth, so the admin console works through the port-forward. To use another port afterward, upgrade with the new keycloak.adminPort and change the master realm’s Frontend URL to match in the admin console’s realm settings.
Your Own Sign-In Provider
Argyll signs people in with any OpenID Connect provider. Turn off the bundled Keycloak and describe yours:
keycloak:
enabled: false
auth:
clientId: argyll-web
external:
issuer: https://login.example.com/
jwksUrl: https://login.example.com/.well-known/jwks.json
tokenUrl: https://login.example.com/oauth/token
existingSecret: argyll-service-accounts
Register argyll-web as a public client that redirects to publicUrl. Create service accounts for the engine, with the admin role, and for the Agent workers, with the operator role. The argyll-service-accounts secret holds engine-client-id, engine-client-secret, agent-client-id, and agent-client-secret. See authentication for the roles claim and audience.