The Helm chart in deploy/helm/saci installs Saci
into one existing namespace (or OpenShift project). It creates:
The chart creates nothing cluster-wide, no container needs privileges, and no container runtime socket is used. Workers run as Jobs (Kubernetes Jobs).
make image, then push it to a registry the cluster can
pull from). The same image runs the backend (saci-backend) and the
workers.ReadWriteOnce volume for SQLite: a default storage class, a named
one, or a claim you created. Use block-backed storage with working file
locks. Network file systems (NFS, SMB) are not supported for SQLite.
1 GiB holds many thousands of runs; see
operations for what is stored and how to back it up.kubectl -n saci create secret generic saci-llm --from-literal=api-key="$OPENROUTER_API_KEY"
helm install saci deploy/helm/saci --namespace saci \
--set image.repository=registry.example.com/saci/saci-worker --set image.tag=0.1.0 \
--set llm.baseUrl=https://openrouter.ai/api/v1 \
--set llm.model=your-tool-capable-model \
--set llm.apiKey.existingSecret=saci-llm \
-f my-environments.yaml
my-environments.yaml declares what the runs may test. Its content goes
into saci.yaml unchanged (configuration):
config:
environments:
same-namespace:
parameters:
SERVICE_URL: http://demo-service:8080
secrets:
SERVICE_TOKEN: { secret: demo-service, key: token }
worker:
cpu: 500m
memory: 512Mi
limits:
run_timeout_secs: 1800
policies:
keep-going: { on_failure: continue }
Secrets named in environments and llm.apiKey must exist in the same
namespace. Only the worker pods read them; the backend cannot.
OpenShift support has not been tested on a cluster yet; see what is verified.
The same command is meant to work with oc in place of kubectl. On OpenShift the
chart sets no runAsUser or fsGroup: the restricted-v2 SCC assigns
both, and the image is built to run under any UID in group 0. The chart detects
OpenShift from the security.openshift.io API. On other clusters it sets
fsGroup: 10001 so the volume is writable. Override either with
backend.podSecurityContext.
The Service is ClusterIP, and nothing is exposed by default:
kubectl -n saci port-forward svc/saci 8080:8080 &
export SACI_BACKEND_URL=http://127.0.0.1:8080
export SACI_TOKEN=$(kubectl -n saci get secret saci-auth -o jsonpath='{.data.token}' | base64 -d)
saci run plan.md --environment same-namespace --follow
The chart creates the token Secret saci-auth with a random token, keeps
it across upgrades, and leaves it in place on uninstall. To use your own,
create a Secret with key token and set auth.existingSecret. To expose
the backend, add your own Ingress or Route to the saci Service on port
8080; the API always requires the token.
| Value | Default | Meaning |
|---|---|---|
image.repository, .tag, .pullPolicy |
ghcr.io/orpiske/saci-worker, appVersion, IfNotPresent |
The Saci image, for the backend and (by default) the workers. |
imagePullSecrets |
[] |
Pull secrets of the backend pod. |
auth.existingSecret, .secretKey |
chart-created, token |
Client API token. |
llm.baseUrl, .model |
OpenRouter, placeholder | Model connection (LLM providers). |
llm.apiKey.existingSecret, .key |
none, api-key |
Secret with the provider key, read by worker pods only. |
worker.image |
image |
Worker image, for example a derived image with more utilities. |
worker.serviceAccount.create, .name |
true, <release>-worker |
The workers’ identity; it has no permissions unless you bind some. |
config.environments, .limits, .policies, .mcp_servers, .actions |
default: {} |
Passed to saci.yaml as written. Action servers are called from the backend pod (outcome actions). |
persistence.existingClaim |
none | Use this claim instead of creating one. |
persistence.storageClass, .size, .accessMode |
cluster default, 1Gi, ReadWriteOnce |
The created claim. |
backend.serviceAccount.name |
<release> |
The backend’s identity, bound to the launcher Role. |
backend.resources, .nodeSelector, .tolerations, .affinity |
small requests | Backend pod scheduling. |
backend.podSecurityContext |
see OpenShift | Backend pod security context. |
backend.extraEnv |
[] |
Extra backend variables, for example values that { env: VAR } secrets read. |
service.type, .port |
ClusterIP, 8080 |
The backend Service. |
SQLite allows one writer. The chart always runs one backend replica and
uses the Recreate strategy: on an upgrade or configuration change, the
old pod stops before the new one starts, so two backends never open the
database together. Expect a short gap during which the API does not
answer. Clients that are following a run reconnect by themselves
(CLI).
Runs survive the restart as supervision describes. Jobs still running are watched again, and their workers keep retrying their reports while the backend is down. Configuration changes apply to new runs only; each accepted run keeps its own specification.
helm uninstall leaves the claim and the token Secret in place
(helm.sh/resource-policy: keep), so a reinstall finds every run and
report again. Delete them yourself to remove the data:
kubectl -n saci delete pvc saci-data secret saci-auth.