Run agent-generated Python in GKE Agent Sandbox on Google Axion
Introduction
Prepare your local machine for Agent Sandbox on GKE
Create the GKE cluster and Axion node pool
Claim a sandbox and test its restrictions
Analyze a CSV file in the sandbox
Open a shell and inspect the sandbox
Connect Antigravity CLI and run code in the sandbox
Preserve results and delete cloud resources
Next Steps
Run agent-generated Python in GKE Agent Sandbox on Google Axion
Introduction
Prepare your local machine for Agent Sandbox on GKE
Create the GKE cluster and Axion node pool
Claim a sandbox and test its restrictions
Analyze a CSV file in the sandbox
Open a shell and inspect the sandbox
Connect Antigravity CLI and run code in the sandbox
Preserve results and delete cloud resources
Next Steps
Review frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
Use the Arm gVisor pool backed by
c4a-standard-2 machines. The provided sandbox.yaml selects that node pool for your Python sandbox workloads.Keep
LP_WORKDIR set and run cd "$LP_WORKDIR" before continuing. If you open a new terminal, source env.sh if you saved it. Otherwise, re-export variables such as LOCATION, REGION, CLUSTER_NAME, NODE_POOL_NAME, and MACHINE_TYPE.Run the Python test and check that it reports UID
1000. You should also see a denied write under /etc and a successful write to /workspace. Later, use kubectl exec to inspect the running sandbox interactively.Your first run with
analyze_sales_initial.py fails as expected. The runner replaces it with analyze_sales.py in the same sandbox workspace, runs six tests, and retrieves summary.json and report.html.In
agy, open /permissions and select Project. Allow mcp(gke-sandbox/*) and deny command(*), read_file(*), and write_file(*). Check that your session uses the gke-sandbox tools.