Install
Leash installs into the leash-system namespace: the operator, and two gateway
replicas that agents send their model and MCP calls through.
Before you start
- A Kubernetes cluster whose network plugin enforces NetworkPolicy.
- Cilium, if you want egress rules by domain name. Without
it Leash uses standard NetworkPolicy, which can’t match domain names, and the
policy’s
Degradedcondition says which rules it couldn’t enforce. - HashiCorp Vault, only if you use
AgentIdentityfor credentials.
Helm
helm repo add simplyzee https://charts.simplyzee.devhelm install leash simplyzee/leash \ -n leash-system --create-namespaceOr pull the chart straight from GitHub Container Registry:
helm install leash oci://ghcr.io/simplyzee/charts/leash \ -n leash-system --create-namespaceSee Helm values for the settings you’re most likely to change.
Plain manifests
kubectl apply -f https://github.com/simplyzee/leash/releases/latest/download/install.yamlCheck it’s running
kubectl -n leash-system get podsYou should see the controller and two gateway replicas Running.
Give the gateway your provider keys
Agents never hold provider keys: the gateway adds them to each call.
kubectl -n leash-system create secret generic leash-gateway-credentials \ --from-literal=ANTHROPIC_API_KEY=sk-ant-...With the chart, point it at that Secret:
gateway: credentials: existingSecret: leash-gateway-credentialsAdd the kubectl plugin
kubectl krew install leashThe Krew listing is in review. Until then, download kubectl-leash from the
latest release. See
kubectl leash.
Uninstall
helm uninstall leash -n leash-systemHelm leaves the CRDs installed, so your AgentPolicies and AgentIdentities are kept. Delete them with kubectl if you want them gone.