wardn agents
Install the agent runtime in a cluster, check it, and remove it.
Agents run in your clusters, never on Wardn's own infrastructure. See Runners for the guide.
wardn agents enable
wardn agents enable --cluster prod-eu --model-key-file ./model-keyMakes the cluster's runtime token in Wardn and installs the runtime and its sandboxes in the wardn-agents namespace of the cluster your kubeconfig points at, then waits for the runtime to connect.
| Flag | Meaning |
|---|---|
--cluster | The cluster, as Wardn names it. Required. |
--model-key-file, --model-key-env, --model-secret | Where the model key comes from: a file (- for standard input), an environment variable, or an existing Secret in wardn-agents. The key is kept in a Secret in the cluster. |
--gateway-url | Wardn's gateway. Defaults to the one the cluster's operator uses. |
--gateway-ca-file | The CA certificate of a gateway signed by Wardn's own CA. |
--runtime-image, --sandbox-image, --pull-policy | The images. Default ghcr.io/future-pirate-king/agent-runtime and agent-sandbox at this CLI's version; WARDN_IMAGE_NAMESPACE (such as ghcr.io/acme) changes the namespace. |
--sandboxes | How many jobs the cluster runs at once: one sandbox pod each. |
--runtime-class | A RuntimeClass for the sandboxes, such as gvisor. |
--allow-private-host, --extra-egress-cidr | When Wardn is on a private network. |
--selftest-advisory | Development only: report a failed sandbox self-test as a pass, for a network that does not enforce NetworkPolicy. |
--dry-run | Print the manifests; call nothing. |
--kubeconfig, --context | Which cluster to install into. |
The token is put in a Secret and never in an argument or environment variable.
wardn agents status
wardn agents status --cluster <name> lists the cluster's runtimes: whether each is connected, its self-test, isolation, jobs in flight and version.
wardn agents disable
wardn agents disable --cluster <name> revokes the cluster's runtimes (a job one is running ends as lost) and removes the runtime and sandboxes from the cluster.