kubernetes changedmanaged-agents/self-hosted/kubernetes
Nearest release: v2.1.330, published 3 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+17added
Lines−7removed
From line
19
where the diff opens
First seen
12 Nov 2026
this site's first read of the page
Recorded edits4to this page, all time
## Set up the add-on on GKE
The whole hunk
from line 19, old and new numbered
/
from line 19
1919
2020* **A cluster:** Kubernetes 1.30 or later, with:
2121
22 * The Agent Sandbox controller (on GKE, the [Agent Sandbox add-on](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/how-install-agent-sandbox))
22 * The Agent Sandbox controller (on GKE, the Agent Sandbox add-on; release 0.16.0 needs GKE 1.35, as [Set up the add-on on GKE](https://platform.claude.com/docs/en/managed-agents/self-hosted/kubernetes#set-up-the-add-on-on-gke) says)
2323 * Nodes that run gVisor (on GKE, a [GKE Sandbox node pool](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/sandbox-pods))
2424 * A network plugin that enforces NetworkPolicy (on GKE, Dataplane V2 or Calico)
2525
from line 236
236236| `publicInternet` | Your servers, the dispatcher, a DNS server, and the public internet |
237237| `gateway` | Your servers, the dispatcher, and, through the egress gateway, the hosts that you list. See [Turn on the gateway on Kubernetes](https://platform.claude.com/docs/en/managed-agents/self-hosted/agent-identity#turn-on-the-gateway-on-kubernetes). |
238238
239## Set up the add-on on GKE
240
241Release 0.16.0 needs a cluster on GKE 1.35 and the Agent Sandbox add-on’s `v1alpha1` API. GKE can’t move a cluster back to an earlier minor version. If yours is on 1.36 or later, create a new cluster. A new cluster doesn’t have the `/workspace` volumes of your existing sessions, so copy out any files you need before you delete the old cluster.
242
243Starting in GKE 1.36.3-gke.1767000, the add-on moves to `v1beta1`, and [existing `v1alpha1` workloads can fail](https://docs.cloud.google.com/kubernetes-engine/docs/troubleshooting/known-issues#agentsandbox-v1alpha1-workload-failures) when a cluster upgrades to that version or later.
244
2451. Turn on the add-on with `gcloud beta container clusters update <cluster> --enable-agent-sandbox`.
2462. Check that `kubectl api-versions | grep agents.x-k8s.io` lists `agents.x-k8s.io/v1alpha1`. Later GKE versions can list it too, so also confirm that the cluster is on 1.35.
2473. Add a [maintenance exclusion](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/maintenance-windows-and-exclusions#configuring_a_maintenance_exclusion) with the `no_minor_upgrades` scope, because GKE upgrades clusters automatically.
248
239249## Other clusters
240250
241251Set `platform` in `cma-values.yaml` to `eks` for Amazon EKS, to `aks` for Azure Kubernetes Service (AKS), or to `generic` for any other cluster. All three need the upstream Agent Sandbox controller with its extensions, and a network plugin that enforces NetworkPolicy. They also need:
from line 267
257267
258268The commands in this section are for GKE. On another cluster, use `sandboxclaims` in place of `sandboxes`.
259269
260Deleting a session doesn’t free its volume. Archive the session first. Delete it only after `kubectl -n cma get sandboxes -l anthropic.com/session-id=<session-id>` lists nothing.
270Deleting a session might not free its volume, so archive the session first. Delete it only after `kubectl -n cma get sandboxes -l anthropic.com/session-id=<session-id>` lists nothing. An upgrade can delete the volumes of deleted sessions, as [Kubernetes: the volumes of deleted sessions](https://platform.claude.com/docs/en/managed-agents/self-hosted/upgrade#deleted-sessions-volumes) says.
261271
262If you deleted a session without archiving it, free its volume yourself:
272If you deleted a session without archiving it and its volume stays, free the volume yourself:
263273
2641. Find the session’s ID in the dispatcher’s log. This command prints a line for each session that appears to be deleted and still has a volume, with the ID after `session_id`:
2741. Find the session’s ID in the dispatcher’s log. This command can print a line for each session that appears to be deleted and still has a volume, with the ID after `session_id`:
265275
266276 ```bash
267277 kubectl -n cma logs deployment/cma-dispatcher --since=6m \
from line 278
268278 | grep "could not check the claim's session" | grep "403 Forbidden"
269279 ```
270280
271 The dispatcher writes these lines every 5 minutes. If the session isn’t listed, wait 5 minutes and run the command again.
281 The dispatcher writes these lines every 5 minutes. If the session isn’t listed, wait 5 minutes and run the command again. If it still isn’t listed, run `kubectl -n cma get sandboxes -l anthropic.com/session-id=<session-id>`. If that lists nothing, the volume is gone. If it lists a sandbox, go on to step 2 with that ID.
272282
2732832. Confirm that the session is deleted. With the port forwarded and `ANTHROPIC_API_KEY` set as in [Run a session](https://platform.claude.com/docs/en/managed-agents/self-hosted/kubernetes#run-a-session), run `ant --base-url http://127.0.0.1:8400 beta:sessions retrieve --session-id <session-id>`. Go on only if the answer is `404 Not Found` with `Session not found`. If the command prints a session, stop: that session isn’t deleted.
274284
No line in this hunk matches that.