CapabilitiesKubernetes Operations

Kubernetes Operations

Skyflo exposes 22 typed Kubernetes tools via MCP. All read operations auto-execute. All mutating operations require explicit approval before execution.

Workflow: Discovery

List namespaces, resources, nodes, and events. Context-aware filtering by namespace, label selector, and field selector.

OperationPurpose
List namespacesEnumerate namespaces with optional label/field filters
List resourcesList pods, deployments, services, configmaps, secrets by type
List nodesCluster nodes with status and capacity
List eventsNamespace or cluster-wide events for troubleshooting

Use discovery to scope the agent's view. "What pods are failing in production?" starts with listing pods in the production namespace, filtered by status.

Workflow: Inspection

Get and describe resources, view pod logs, exec into containers. No approval required.

OperationPurpose
Get resourceFetch a specific resource by name
Describe resourceFull describe output for debugging
Pod logsStream or tail logs from a pod
ExecRun a command inside a container (treated as read-only by default, depends on command executed)

Inspection answers "what is wrong?" before proposing changes. The agent can read logs, describe a failing pod, and exec to run diagnostics before suggesting a fix.

Workflow: Mutations (Approval-Gated)

Apply manifests, scale deployments, restart rollouts, cordon/uncordon nodes, drain nodes, delete resources. Every mutation pauses for explicit approval.

OperationPurpose
ApplyApply manifests with dry-run render + manifest comparison before execution.
ScaleScale deployments, statefulsets, replicasets
Restart rolloutRestart deployments (rolling restart)
Cordon/uncordonMark nodes unschedulable or schedulable
DrainEvict pods from a node before maintenance
DeleteRemove resources (destructive, flagged)

The agent runs a dry-run, renders the manifest comparison, and waits for approval before applying.

Workflow: Rollback

View rollout history and rollback to previous revisions. Approval-gated.

OperationPurpose
Rollout historyList revisions for a deployment
RollbackRevert to a previous revision

"Rollback the frontend to the previous version" triggers a rollout history lookup, then a rollback proposal. You approve or deny.

Example Workflows

"What pods are failing in production?"

  1. Agent lists pods in production namespace with status filter.
  2. Identifies CrashLoopBackOff or Error pods.
  3. Describes pods and fetches logs.
  4. Summarizes root cause. No approval needed (read-only).

"Scale the payment service to 5 replicas"

  1. Agent finds the deployment.
  2. Proposes scale operation with before/after replica count.
  3. Pauses for approval.
  4. Executes on approval. Verifies replica count matches intent.

"Rollback the frontend to the previous version"

  1. Agent fetches rollout history.
  2. Proposes rollback to previous revision.
  3. Pauses for approval.
  4. Executes on approval. Verifies rollout status.

Safety Summary

TypeApprovalNotes
Discovery (list)AutoRead-only
Inspection (get, describe, logs)AutoRead-only
ExecAutoTreated as read-only by default; depends on command executed
Apply, scale, restart, cordon, uncordonRequiredDry-run render + manifest comparison before apply
Drain, deleteRequiredDestructive, flagged for extra caution