Skip to content

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 Degraded condition says which rules it couldn’t enforce.
  • HashiCorp Vault, only if you use AgentIdentity for credentials.

Helm

Terminal window
helm repo add simplyzee https://charts.simplyzee.dev
helm install leash simplyzee/leash \
-n leash-system --create-namespace

Or pull the chart straight from GitHub Container Registry:

Terminal window
helm install leash oci://ghcr.io/simplyzee/charts/leash \
-n leash-system --create-namespace

See Helm values for the settings you’re most likely to change.

Plain manifests

Terminal window
kubectl apply -f https://github.com/simplyzee/leash/releases/latest/download/install.yaml

Check it’s running

Terminal window
kubectl -n leash-system get pods

You 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.

Terminal window
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-credentials

Add the kubectl plugin

Terminal window
kubectl krew install leash

The Krew listing is in review. Until then, download kubectl-leash from the latest release. See kubectl leash.

Uninstall

Terminal window
helm uninstall leash -n leash-system

Helm leaves the CRDs installed, so your AgentPolicies and AgentIdentities are kept. Delete them with kubectl if you want them gone.