AgentsKubernetes

Kubernetes AI Agent Directives

Drift, RBAC, quotas, autoscaling and manifest hygiene for clusters.

8 directivesDifficulty: beginner → advanced

Kubernetes is where most infrastructure risk actually lives, because the cluster is the layer that runs everything and yet audits itself least. These Kubernetes directives give AI coding agents a precise, read-only job on a live cluster: detect drift between Git and live state, audit RBAC and network policies, tune autoscaling, diagnose crash loops, and lint manifests before they ship. Each cursor rules kubernetes directive is written to be pasted straight into your rules or instructions file and executed with the real kubectl tools an agent already has. The value is consistency: a platform engineer can hand the same kubernetes audit to an agent in Cursor, Windsurf, or Claude Code and get the same structured report every time. The directives favor narrow, safe operations, so they are suitable for teams that want automation without giving an agent destructive power over a cluster. For anyone searching for cursor rules kubernetes, windsurf rules kubernetes, or ai agent devops directives, this category is the practical starting point: concrete prompts, real commands, and outputs you can review before they influence anything. These are the prompts to keep in one place when the ask is a defensible, repeatable cluster audit. Run them on a cadence and a cluster becomes something an agent can audit on demand, with output a reviewer can trust and a history it can point back to whenever the drift reappears.

intermediate5 mindrift

Kubernetes Drift Detection

Detect configuration drift between Git (ArgoCD/Flux) and live cluster state using an AI agent.

cursorwindsurfclaude-codecopilotcline
View directive
intermediate10 minrbac

Kubernetes RBAC Audit

Audit all RBAC bindings in a cluster and identify over-privileged service accounts and users.

claude-codecursorwindsurfcopilot
View directive
beginner5 minresources

Kubernetes Resource Quota Check

Analyze resource quotas and usage across namespaces to find over-provisioned or constrained workloads.

windsurfcursorclaude-code
View directive
advanced15 minhpa

Kubernetes HPA Tuning

Review and tune Horizontal Pod Autoscaler thresholds based on historical metrics and traffic patterns.

opencodecursorwindsurfclaude-codecopilot
View directive
intermediate10 mincrashloopbackoff

Kubernetes Pod Crash Loop Diagnosis

Diagnose CrashLoopBackOff and OOMKilled pods by analyzing logs, events, and resource limits.

copilotcursorwindsurfclaude-codecline
View directive
intermediate10 minnetwork-policy

Kubernetes Network Policy Review

Audit NetworkPolicy resources to identify overly permissive or missing ingress/egress rules.

clinecursorwindsurfclaude-code
View directive
intermediate10 miningress

Kubernetes Ingress Controller Hardening

Review Ingress and IngressClass resources for TLS, rate-limiting, and security header misconfigurations.

cursorwindsurfclaude-code
View directive
beginner5 minlinting

Kubernetes Manifest Linter

Lint Kubernetes manifests for best practices: labels, probes, security contexts, and resource limits.

claude-codecursorwindsurfcopilotcline
View directive
THE NEXT STEP

Stop pasting. Start automating.

Every one of these Kubernetes directives is something Devopsify can run continuously against your estate, with policy gates, approvals, and a retained audit trail instead of a manual run.