Skip to content

Built-in Tool: Kubernetes

Document ID: TRT-106
File Path: docs/07-tool-runtime/kubernetes.md
Version: 1.0.0
Status: Draft
Owner: AI Platform Team
Last Updated: 2026-06-27


The k8s.* built-in tools let operations agents inspect and (when explicitly granted) manage Kubernetes resources — for diagnostics, deployments, and remediation. High-privilege; read-only by default.


ToolDescription
k8s.getGet resources (pods, deployments, …)
k8s.logsFetch pod logs
k8s.describeDescribe a resource
k8s.applyApply a manifest (guarded)
k8s.scaleScale a workload (guarded)
k8s.rolloutRestart/status a rollout (guarded)

// input
{ "context": "secret://acme/kubeconfig-staging", "kind": "pods", "namespace": "wovyr" }
// output
{ "items": [ { "name": "api-gateway-...", "status": "Running" } ] }

context is a secret reference to a scoped kubeconfig.


secret:read:<kubeconfig-ref> net:egress:<cluster-api>
k8s:read (get/logs/describe)
k8s:write (apply/scale/rollout)

Write operations require k8s:write plus a scoped kubeconfig with limited RBAC on the target cluster — least privilege on both the platform and cluster side.


  • Egress restricted to the granted cluster API endpoint.
  • The kubeconfig’s own RBAC bounds what the tool can do (defense in depth).
  • Mutating ops are typically gated behind a workflow approval.
  • Disabled by default; enable per project.

Read ops may be cached briefly; mutating ops never cached.


Terminal window
wovyr tools invoke k8s.get --input '{"context":"secret://acme/kubeconfig-staging","kind":"deployments","namespace":"wovyr"}'


VersionDateDescription
1.0.02026-06-27Initial Kubernetes tool spec