k8s/agent-access: a namespace-limited service account and kubeconfig for a coding agent

Read-only by default, optional deploy role; no Secrets, exec,
port-forward or RBAC. Tokens from kubectl create token, time-limited.
Not applied.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QLJfZQZeAKAwSqViTmLzki
This commit is contained in:
2026-10-19 09:49:20 +02:00
co-authored by Claude Opus 5.5
parent f0f4f57fee
commit 461f9d5578
8 changed files with 246 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
# The identity a coding agent uses on the cluster. It exists only in the mg4 namespace and is
# never mounted into a pod; its tokens are made by hand with `kubectl create token` (README.md).
apiVersion: v1
kind: ServiceAccount
metadata:
name: mg4-agent
namespace: mg4
labels:
app.kubernetes.io/part-of: mg4
app.kubernetes.io/component: agent-access
automountServiceAccountToken: false