Command-line flags
The chart sets these for you. They matter if you run the binaries yourself or
pass extraArgs.
Operator (/manager)
| Flag | Default | |
|---|---|---|
--network-backend |
auto |
auto (Cilium if its API exists, else Kubernetes), cilium or kubernetes |
--cluster-domain |
cluster.local |
Used to allow lookups of in-cluster services |
--gateway-namespace |
leash-system |
Policies with models or mcp get egress to it. Empty disables |
--gateway-label |
app.kubernetes.io/name=leash-gateway |
Selects the gateway pods |
--gateway-port |
8080 |
|
--vault-addr |
"" |
Turns on AgentIdentity. Also read from VAULT_ADDR |
--vault-auth-mount |
kubernetes |
The mount the operator logs in with |
--vault-role |
leash |
Ignored when VAULT_TOKEN is set |
--vault-token-path |
the ServiceAccount token | |
--agentrun-retention |
168h |
How long a Completed AgentRun is kept |
--audit-log |
true |
Kill-switch changes as JSON lines on stdout |
--leader-elect |
false |
|
--metrics-bind-address |
:8080 |
0 disables |
--health-probe-bind-address |
:8081 |
TLS and namespace settings for Vault come from the standard VAULT_*
environment variables.
Gateway (/gateway)
| Flag | Default | |
|---|---|---|
--listen-address |
:8080 |
The agents’ port |
--config |
/etc/leash/gateway.yaml |
Provider and MCP server registry |
--usage-flush-interval |
15s |
How often token usage is written to AgentPolicy status |
--approval-poll-interval |
2s |
How often a held call checks its ToolApproval |
--slack-listen-address |
:8082 |
Slack’s button clicks. Needs SLACK_SIGNING_SECRET |
--slack-approvers |
"" |
Comma-separated Slack user IDs. Empty: anyone in the channel |
--audit-log |
true |
Every decision as a JSON line on stdout |
--metrics-bind-address |
:9090 |
0 disables |
--health-probe-bind-address |
:8081 |
Both binaries also take the standard zap logging flags, such as
--zap-log-level.