30 Claude Prompts for Kubernetes
Paste your manifest, Helm chart, or kubectl output into Claude and get a specific diagnosis or a working YAML file back, not generic advice about container orchestration.
In short: This page contains 30 copy-paste ready prompts, organized into 6 categories with a description and pro tip for each. The first 5 prompts are free instantly, no signup needed. Hand-curated and tested by the AI Academy team.
Writing and Reviewing Manifests
5 promptsDeployment Manifest From Scratch
1/30✨ What it does
Produces a Deployment and matching Service manifest that follows real production conventions, not tutorial defaults.
You are a senior platform engineer who writes production Kubernetes manifests for a living. <context> I need a Deployment manifest for a new service and I want it to follow the conventions my team already uses, not a generic tutorial example. </context> <inputs> - Service name: [SERVICE NAME] - Container image and tag: [IMAGE AND TAG] - Port the app listens on: [PORT NUMBER] - Replica count target: [REPLICA COUNT] - Environment variables needed: [ENV VAR LIST] - Namespace: [NAMESPACE] </inputs> <task> Write a complete Deployment manifest plus a matching Service manifest. Include readiness and liveness probes, resource requests and limits, and labels that would let this be selected cleanly by a Service and a NetworkPolicy. </task> <constraints> Use apiVersion apps/v1 for the Deployment. Do not invent environment variables beyond what I listed. Keep the probe paths generic if I have not told you the health check endpoint, and flag that assumption instead of guessing silently. </constraints> <format> Return two fenced yaml code blocks, one per manifest, each with a one-line comment above it naming the file it belongs in. </format>
Pro tip: Paste your existing Deployment for another service first so Claude can match its label and probe conventions exactly.
Manifest Review for Common Mistakes
2/30✨ What it does
Reviews a pasted manifest line by line and returns a table of concrete issues with fixes.
You are a Kubernetes reliability reviewer who has seen most of the ways a manifest quietly breaks in production. <context> I wrote a manifest and before I apply it I want a second pair of eyes checking for mistakes that would not show up until something goes wrong under load. </context> <inputs> - Full manifest YAML: [PASTE MANIFEST YAML] - Cluster type: [CLUSTER TYPE, e.g. EKS, GKE, on-prem] - Expected traffic pattern: [TRAFFIC PATTERN] - Team reviewing this before merge: [TEAM OR REVIEWER NAME] </inputs> <task> Review the manifest line by line for missing resource limits, missing probes, single replica risk, hardcoded secrets, image tags that are not pinned, and any selector or label mismatch between the Deployment and its Service. </task> <constraints> Only flag real issues you can point to in the YAML I gave you. Do not suggest a service mesh or an operator unless the manifest already implies one is in use. Keep each finding to two sentences. </constraints> <format> Return a table with columns: Line or Field, Issue, Fix. End with a short verdict of safe to apply or not yet. </format>
Pro tip: Include the actual traffic pattern, a review of a low-traffic internal tool and a public API should not get the same replica count advice.
ConfigMap and Secret Wiring Check
3/30✨ What it does
Cross-checks ConfigMap and Secret keys against every reference in the pod spec before deploy.
You are a Kubernetes configuration specialist who debugs mount and reference errors before they hit a rollout. <context> My app reads configuration from a ConfigMap and a Secret and I want to make sure the wiring between those objects and my pod spec is actually correct before I deploy. </context> <inputs> - ConfigMap manifest: [CONFIGMAP YAML] - Secret manifest, values redacted: [SECRET YAML STRUCTURE] - Pod spec section that references them: [POD SPEC SNIPPET] </inputs> <task> Check that every key referenced in the pod spec, whether as an env var or a volume mount, actually exists in the ConfigMap or Secret I gave you. Confirm the mount paths do not collide with anything the container image writes to at startup. </task> <constraints> Assume the redacted Secret values are correct, only check structure and key names. If something is ambiguous, ask a single clarifying question instead of guessing. </constraints> <format> Return a checklist, one line per reference, each marked OK or BROKEN with the reason. </format>
Pro tip: Redact real secret values before pasting, only the key names and structure matter for this check.
Multi-Container Pod Spec Design
4/30✨ What it does
Designs a multi-container pod spec and explains the correct startup sequencing mechanism to use.
You are a Kubernetes architect who designs sidecar and init container patterns for complex workloads. <context> I need a pod that runs a main application container alongside a sidecar, and I am not sure how to sequence startup so the sidecar is ready before the main container needs it. </context> <inputs> - Main container purpose: [MAIN CONTAINER PURPOSE] - Sidecar purpose: [SIDECAR PURPOSE, e.g. log shipper, proxy] - Shared volume needed: [SHARED VOLUME DETAILS] - Startup dependency: [WHAT MUST BE READY FIRST] </inputs> <task> Design the pod spec showing both containers, the shared volume, and whether an init container or a startup probe is the right tool to enforce the ordering I described. </task> <constraints> Explain the tradeoff between an init container and a native sidecar container if the cluster version supports it. Do not add a service mesh sidecar unless I asked for a proxy. </constraints> <format> Return the pod spec YAML followed by three sentences explaining the startup sequencing decision. </format>
Pro tip: Say which Kubernetes version you are on, native sidecar containers only work from 1.29 onward.
Ingress Rule Draft for a New Service
5/30✨ What it does
Writes a controller-specific Ingress manifest with TLS wiring and lists cluster prerequisites.
You are a networking engineer who writes Kubernetes Ingress rules for public and internal services. <context> I am exposing a new service through our existing Ingress controller and need the routing rule written correctly, including TLS. </context> <inputs> - Ingress controller in use: [INGRESS CONTROLLER, e.g. nginx, traefik] - Hostname to route: [HOSTNAME] - Path prefix: [PATH PREFIX] - Backend service name and port: [SERVICE NAME AND PORT] - TLS certificate source: [TLS SOURCE, e.g. cert-manager, manual secret] </inputs> <task> Write the Ingress manifest with the correct annotations for the controller I named, the path routing rule, and the TLS block wired to the certificate source I specified. </task> <constraints> Use the annotation conventions specific to the controller I named, do not mix nginx and traefik annotation syntax. Note if a ClusterIssuer needs to exist first for cert-manager to work. </constraints> <format> Return one fenced yaml block, then a short list of prerequisites that must already exist in the cluster. </format>
Pro tip: Name the exact ingress controller, nginx and traefik annotations look similar but silently do nothing if mismatched.
Helm Chart Development
5 promptsHelm Chart Scaffolding Plan
6/30✨ What it does
Lays out a maintainable Helm chart directory structure and a starter Chart.yaml before any templates are written.
You are a Helm chart author who structures charts so other engineers can actually maintain them later. <context> I am packaging an application into a Helm chart for the first time and want a sensible directory and template structure before I start writing YAML. </context> <inputs> - Application type: [APP TYPE, e.g. stateless API, worker, database] - Kubernetes objects needed: [OBJECT LIST, e.g. Deployment, Service, HPA] - Number of environments to support: [ENVIRONMENT COUNT] - Chart name: [CHART NAME] - Chart repository this will be published to: [CHART REPOSITORY] </inputs> <task> Lay out the chart directory structure, list which values belong in values.yaml versus which should stay hardcoded in templates, and show the skeleton of the Chart.yaml file. </task> <constraints> Follow the standard Helm chart layout, do not invent nonstandard directories. Keep values.yaml keys flat where possible and only nest where the object genuinely needs a sub-structure. </constraints> <format> Return a file tree in a code block, then a fenced yaml block for Chart.yaml, then a short list of values.yaml keys with one line each on purpose. </format>
Pro tip: Tell it the number of environments up front, that single detail changes how much should live in values.yaml versus per-environment overrides.
Values.yaml Refactor for Environments
7/30✨ What it does
Splits a tangled values.yaml into a base file plus minimal per-environment overrides with the exact helm command to apply them.
You are a Helm maintainer who cleans up values files that have grown messy across environments. <context> My values.yaml has grown into a tangle of environment-specific overrides and I want it restructured so staging and production stay clearly separated without duplicating the whole file. </context> <inputs> - Current values.yaml: [PASTE VALUES YAML] - Environments in use: [ENVIRONMENT LIST] - Fields that differ by environment: [DIFFERING FIELDS] </inputs> <task> Refactor this into a base values.yaml plus per-environment override files, showing exactly which keys move where and how the helm upgrade command should be invoked to layer them. </task> <constraints> Do not change any value, only reorganize where each key lives. Keep the override files as small as possible, only the fields that actually differ. </constraints> <format> Return the base values.yaml, then each override file, then the exact helm upgrade command for one environment as an example. </format>
Pro tip: Paste the real file, a values.yaml refactor only works if Claude can see which keys are actually duplicated across environments.
Helm Template Debugging Pass
8/30✨ What it does
Pinpoints the exact broken line in a failing Helm template and returns a corrected snippet.
You are a Helm template debugging specialist who reads Go template syntax fluently. <context> Helm template or helm install is failing on my chart and the error message is not pointing clearly at the broken line. </context> <inputs> - Error output: [PASTE ERROR OUTPUT] - Template file causing the issue: [PASTE TEMPLATE FILE] - Relevant values.yaml section: [PASTE VALUES SECTION] </inputs> <task> Find the exact line and syntax problem causing the failure, explain why the Go template engine is rejecting it, and give me the corrected template. </task> <constraints> Do not rewrite parts of the template that are not related to the error. If the error is actually a missing value rather than a syntax problem, say so explicitly. </constraints> <format> Return the diagnosis in two sentences, then a fenced code block with only the corrected lines and enough surrounding context to locate them. </format>
Pro tip: Run helm template with --debug first, the raw error alone often lacks the line number this prompt needs.
Chart Dependency Audit
9/30✨ What it does
Audits Helm subchart dependency pins and override values for version drift risk.
You are a Helm chart maintainer who audits subchart dependencies for version and configuration risk. <context> My chart pulls in subchart dependencies and I want to know if any of them are pinned to risky versions or configured in a way that will surprise me on the next upgrade. </context> <inputs> - Chart.yaml dependencies block: [PASTE DEPENDENCIES BLOCK] - Overrides set for each dependency: [PASTE OVERRIDE VALUES] - Helm version in use: [HELM VERSION] </inputs> <task> Review each dependency's version constraint, flag any that use a floating range instead of a pinned version, and check whether the override values I set actually match keys the subchart exposes. </task> <constraints> Only comment on the dependencies I listed, do not speculate about charts not shown. If you cannot verify a subchart's exposed keys without its source, say so rather than guessing. </constraints> <format> Return a table with columns: Dependency, Version Constraint, Risk, Recommendation. </format>
Pro tip: List the exact helm version, dependency management behavior changed between Helm 2 and Helm 3 and still trips people up.
Helm Upgrade Rollback Plan
10/30✨ What it does
Produces the exact upgrade command, post-deploy checks, and rollback command for a specific Helm release.
You are a release engineer who plans safe Helm upgrades with a clear rollback path. <context> I am about to run a Helm upgrade on a production release and want a rollback plan written down before I execute it, not improvised after something breaks. </context> <inputs> - Release name: [RELEASE NAME] - Namespace: [NAMESPACE] - Change being made: [CHANGE DESCRIPTION] - Current chart version and target version: [CURRENT AND TARGET VERSION] </inputs> <task> Write out the exact helm upgrade command with the correct flags, the health checks to run immediately after, and the exact helm rollback command to use if those checks fail. </task> <constraints> Include the --atomic and timeout flags where appropriate and explain what they do. Do not assume a specific monitoring tool, describe checks in terms of kubectl output anyone can run. </constraints> <format> Return three labeled sections: Upgrade Command, Post-Upgrade Checks, Rollback Command. </format>
Pro tip: Always test the rollback command against the current release before you need it under pressure, some charts fail to roll back cleanly if a CRD changed.
Debugging and Troubleshooting
5 promptsCrashLoopBackOff Root Cause Walkthrough
11/30✨ What it does
Ranks the most likely root cause of a CrashLoopBackOff from actual describe and log output, not a generic checklist.
You are an on-call Kubernetes engineer who diagnoses crashing pods under time pressure. <context> A pod is stuck in CrashLoopBackOff and I need to find the actual root cause fast, not a generic list of possible reasons. </context> <inputs> - kubectl describe pod output: [PASTE DESCRIBE OUTPUT] - kubectl logs output, previous container: [PASTE LOGS --PREVIOUS] - Recent change made before this started: [RECENT CHANGE] </inputs> <task> Walk through the describe output and the previous logs together to identify the most likely root cause, ranked by probability given the exit code and events shown. </task> <constraints> Do not list every theoretical cause of CrashLoopBackOff, only the ones supported by evidence in what I pasted. Reference the specific exit code or event line for each theory. </constraints> <format> Return a ranked list, most likely cause first, each with the supporting evidence quoted and a suggested next command to confirm it. </format>
Pro tip: Always include kubectl logs with --previous, the current container's logs are often empty right after a crash.
Pending Pod Scheduling Diagnosis
12/30✨ What it does
Diagnoses the exact scheduling constraint blocking a Pending pod from the FailedScheduling event text.
You are a Kubernetes scheduler specialist who explains why pods will not place onto nodes. <context> A pod has been stuck in Pending state and I need to know exactly which scheduling constraint is blocking it. </context> <inputs> - kubectl describe pod events section: [PASTE EVENTS SECTION] - Pod's resource requests: [RESOURCE REQUESTS] - Node affinity or taint rules in play: [AFFINITY OR TAINT RULES] - Cluster autoscaler status: [AUTOSCALER STATUS, e.g. enabled, disabled, unknown] </inputs> <task> Identify whether this is a resource shortage, a taint or toleration mismatch, an affinity rule with no matching node, or a PodDisruptionBudget conflict, based only on the events I pasted. </task> <constraints> Quote the specific FailedScheduling message text you are reasoning from. If the autoscaler status is unknown, say what to check instead of assuming it will add capacity. </constraints> <format> Return the diagnosis in one paragraph, then a numbered list of commands to run to confirm and resolve it. </format>
Pro tip: Paste the full events section, not a summary, the exact wording of FailedScheduling tells you which constraint is at fault.
Service Connectivity Troubleshooting
13/30✨ What it does
Gives the exact sequence of commands to isolate whether a service-to-service failure is DNS, Service, policy, or pod level.
You are a Kubernetes networking troubleshooter who traces traffic failures between services. <context> One service cannot reach another inside the cluster and I need to isolate whether this is DNS, the Service object, a NetworkPolicy, or the target pod itself. </context> <inputs> - Source and target service names: [SOURCE AND TARGET SERVICE] - Error seen from the source pod: [ERROR MESSAGE] - Relevant NetworkPolicy manifests, if any: [NETWORK POLICY YAML OR NONE] - CNI plugin in use: [CNI PLUGIN] </inputs> <task> Lay out the exact sequence of checks to isolate the failure point, starting with DNS resolution, then Service endpoint population, then NetworkPolicy rules, then the target pod's own listener. </task> <constraints> Give the exact kubectl or debug pod commands for each step, not just descriptions. Note that CNI plugins enforce NetworkPolicy differently, so name what changes if the CNI does not support policies at all. </constraints> <format> Return a numbered sequence of steps, each with the command and what result would mean. </format>
Pro tip: Name your CNI plugin, some like Flannel in its default mode do not enforce NetworkPolicy at all, which changes the whole diagnosis.
Node Pressure Investigation
14/30✨ What it does
Identifies which node pressure condition is active and ranks which pods are the largest contributors.
You are a cluster operations engineer who investigates node-level pressure conditions. <context> One of my nodes is reporting a pressure condition and pods are being evicted, and I need to understand what is actually running out on that node. </context> <inputs> - kubectl describe node output, conditions section: [PASTE CONDITIONS SECTION] - Node's total capacity and allocatable: [CAPACITY AND ALLOCATABLE] - Pods running on the node and their resource requests: [POD LIST WITH REQUESTS] </inputs> <task> Determine whether this is MemoryPressure, DiskPressure, or PIDPressure, identify the top contributors among the pods listed, and recommend whether to evict, resize requests, or add node capacity. </task> <constraints> Base the contributor ranking only on the requests and limits I gave you, not assumptions about typical workloads. State clearly if the data I gave you is not enough to rank contributors precisely. </constraints> <format> Return the pressure type identified, a ranked list of contributing pods, and one recommended action with reasoning. </format>
Pro tip: Include the allocatable numbers, not just capacity, the gap between the two is often where the real ceiling is.
Log and Event Correlation Report
15/30✨ What it does
Merges pod logs and cluster events from an incident window into one timeline and flags the likely trigger event.
You are an incident responder who correlates logs and cluster events into a single timeline. <context> Something went wrong across several pods around the same time and I have logs and events from different sources that I need pulled into one coherent timeline. </context> <inputs> - Pod logs from affected services, with timestamps: [PASTE LOGS WITH TIMESTAMPS] - kubectl get events output for the namespace: [PASTE EVENTS OUTPUT] - Approximate incident window: [TIME WINDOW] </inputs> <task> Build a single chronological timeline merging the log lines and the cluster events, and point out the first event that looks like the trigger versus the ones that look like downstream effects. </task> <constraints> Keep every entry tied to its original timestamp, do not reorder for narrative convenience. If two sources disagree on time due to clock skew, flag it rather than silently merging. </constraints> <format> Return a single timeline table with columns: Time, Source, Event, and a one-line verdict at the bottom naming the likely trigger. </format>
Pro tip: Keep timestamps in one consistent timezone before pasting, mixed local and UTC times are the most common way this analysis goes wrong.
These prompts give you the what. Tutorials give you the why.
Learn when to use extended thinking, how to build Claude Projects, and workflows that compound. 300+ tutorials and growing.
Resource Tuning and Capacity Planning
5 promptsCPU and Memory Request Sizing
16/30✨ What it does
Recommends resized CPU and memory requests and limits from actual observed usage data with headroom reasoning.
You are a capacity planning engineer who sets resource requests and limits from real usage data. <context> My pods have requests and limits set from guesswork months ago and I want them resized based on actual observed usage. </context> <inputs> - Current requests and limits: [CURRENT REQUESTS AND LIMITS] - Observed usage over the last period, CPU and memory: [OBSERVED USAGE DATA] - Workload type: [WORKLOAD TYPE, e.g. bursty API, steady batch job] - Namespace this workload runs in: [NAMESPACE NAME] </inputs> <task> Recommend new CPU and memory requests and limits based on the observed usage, with headroom appropriate to the workload type, and explain the reasoning for each number. </task> <constraints> Do not simply set requests equal to peak usage, explain the percentile or headroom logic used. Flag if the current limit is set so low it risks throttling or OOMKilled events. </constraints> <format> Return a table with columns: Resource, Current, Recommended, Reasoning. </format>
Pro tip: Give it a real usage window, not a single snapshot, one busy hour will push the recommendation too high for a mostly idle service.
HPA Configuration Review
17/30✨ What it does
Reviews an HPA manifest against real scaling behavior and returns a corrected version with the reasoning explained.
You are a Kubernetes autoscaling specialist who tunes HorizontalPodAutoscaler behavior. <context> My HorizontalPodAutoscaler is either scaling too aggressively or not reacting fast enough, and I want the configuration reviewed against how the workload actually behaves. </context> <inputs> - Current HPA manifest: [PASTE HPA YAML] - Observed scaling behavior, what is wrong: [DESCRIBE THE PROBLEM] - Traffic pattern, e.g. spiky or gradual: [TRAFFIC PATTERN] </inputs> <task> Review the target metric, threshold, min and max replicas, and scaling behavior policies, then recommend specific changes to fix the problem I described. </task> <constraints> Explain what the stabilization window and scaling policies actually do before changing them, do not just hand back new numbers with no reasoning. Keep min replicas above zero unless I explicitly say this workload can scale to zero. </constraints> <format> Return the current problem restated in one sentence, then the corrected HPA yaml block, then a short explanation of what changed and why. </format>
Pro tip: Describe the actual symptom, thrashing between replica counts and slow reaction to spikes need opposite fixes to the stabilization window.
Namespace Resource Quota Plan
18/30✨ What it does
Designs a ResourceQuota and LimitRange for a shared namespace sized so rolling updates do not hit the ceiling.
You are a platform team lead who sets ResourceQuota and LimitRange policy for shared namespaces. <context> Multiple teams share a namespace and I need a ResourceQuota and LimitRange that stops one team from starving the others without being so tight it blocks normal deploys. </context> <inputs> - Namespace name: [NAMESPACE NAME] - Number of teams or workloads sharing it: [TEAM OR WORKLOAD COUNT] - Total node capacity allocated to this namespace: [TOTAL CAPACITY] - Largest single workload's typical footprint: [LARGEST WORKLOAD FOOTPRINT] </inputs> <task> Design a ResourceQuota covering CPU, memory, and object counts, plus a LimitRange with sensible per-container defaults, sized so the largest known workload still fits comfortably. </task> <constraints> Leave enough headroom that a rolling update of the largest workload does not hit the quota mid-rollout. State the assumption behind each number so it can be adjusted later. </constraints> <format> Return two fenced yaml blocks, ResourceQuota then LimitRange, followed by three bullet points on the sizing assumptions made. </format>
Pro tip: Account for rolling update overhead explicitly, a quota sized exactly to steady state will block deploys that briefly run old and new pods together.
Node Pool Rightsizing Analysis
19/30✨ What it does
Analyzes node pool instance type and count against real bin-packing patterns and recommends a rightsized alternative.
You are an infrastructure cost engineer who rightsizes Kubernetes node pools. <context> I think my node pool is oversized or undersized for the workloads running on it and want an analysis before I change the instance type or count. </context> <inputs> - Node instance type and count: [INSTANCE TYPE AND COUNT] - Average and peak cluster CPU and memory utilization: [UTILIZATION DATA] - Pod bin-packing pattern, e.g. many small pods or few large: [BIN-PACKING PATTERN] - Budget constraint if any: [BUDGET CONSTRAINT] </inputs> <task> Analyze whether the current instance type is well matched to the pod sizes running on it, whether a different instance type would pack more efficiently, and what count change would follow. </task> <constraints> Account for the fact that some CPU and memory on every node is reserved for the kubelet and system daemons, do not treat total capacity as fully allocatable. Give a specific alternative instance type only if the pattern clearly calls for one. </constraints> <format> Return a short analysis paragraph, then a recommendation line stating instance type, count, and expected utilization after the change. </format>
Pro tip: Mention your cloud provider, reserved system overhead per node varies enough between EKS, GKE, and AKS to change the math.
Cost and Utilization Report
20/30✨ What it does
Turns Kubernetes request versus usage data into a plain-language cost report for a non-technical stakeholder.
You are a FinOps analyst who translates Kubernetes resource usage into a cost report for non-infrastructure stakeholders. <context> I need to explain to a non-technical stakeholder where our Kubernetes spend is going and which workloads are the most wasteful, without burying them in cluster jargon. </context> <inputs> - Namespace or workload level resource requests versus actual usage: [REQUESTS VS USAGE DATA] - Monthly infrastructure spend for the cluster: [MONTHLY SPEND] - Top three most expensive workloads by node share: [TOP WORKLOADS] </inputs> <task> Write a short report translating the utilization gap into approximate wasted spend per workload, and recommend which one or two changes would recover the most cost with the least risk. </task> <constraints> Keep the language free of Kubernetes internals, this is for a stakeholder who does not know what a pod is. Round numbers rather than presenting false precision. </constraints> <format> Return a short narrative summary, then a simple table of Workload, Estimated Waste, Recommended Action. </format>
Pro tip: Ask for this after the resource sizing prompt above, feeding it real recommended-versus-current numbers makes the waste estimate far more credible.
Security and RBAC Hardening
5 promptsRBAC Role Least Privilege Review
21/30✨ What it does
Audits an RBAC role rule by rule against what its workload actually does and returns a tightened version.
You are a Kubernetes security engineer who audits RBAC roles for excess permissions. <context> A Role or ClusterRole in my cluster has grown broad over time and I want it cut down to what the ServiceAccount actually needs. </context> <inputs> - Current Role or ClusterRole manifest: [PASTE ROLE YAML] - ServiceAccount it is bound to: [SERVICE ACCOUNT NAME] - What this ServiceAccount's workload actually does: [WORKLOAD PURPOSE] </inputs> <task> Go through each rule in the manifest and decide whether the workload's stated purpose justifies it, then write a tightened version that removes anything unjustified. </task> <constraints> Do not remove a permission if the workload purpose plausibly needs it, only cut clearly excessive grants like wildcard resources or verbs. Flag any use of cluster-admin or wildcard verbs explicitly. </constraints> <format> Return a table of Rule, Justified or Excessive, Reasoning, followed by the tightened yaml block. </format>
Pro tip: Describe the workload's purpose precisely, a vague description like handles requests will make Claude too conservative about cutting permissions.
Pod Security Standard Migration
22/30✨ What it does
Checks existing pod specs against a target Pod Security Standard level and lists exactly what would break.
You are a Kubernetes security engineer who migrates namespaces from PodSecurityPolicy or unrestricted defaults to Pod Security Standards. <context> I need to move a namespace onto the baseline or restricted Pod Security Standard and want to know what in my existing workloads will break before I flip the label. </context> <inputs> - Namespace name: [NAMESPACE NAME] - Target level: [BASELINE OR RESTRICTED] - Pod specs currently running in the namespace: [PASTE POD SPECS OR KEY FIELDS] </inputs> <task> Check each pod spec against the requirements of the target Pod Security Standard level, list which ones would be blocked or warned on, and show the exact spec changes needed to comply. </task> <constraints> Be specific about which field is non-compliant, for example running as root or a missing seccompProfile, rather than a general statement that a pod fails. Do not recommend privileged mode as a workaround. </constraints> <format> Return a table of Pod or Container, Violation, Required Change, then the corrected snippet for the worst offender. </format>
Pro tip: Run this in warn mode first with kubectl label --dry-run, then feed the actual admission warnings back in for a second pass.
Network Policy Design
23/30✨ What it does
Designs a default-deny NetworkPolicy set plus specific allow rules for a stated service communication map.
You are a Kubernetes network security engineer who designs NetworkPolicy objects for zero-trust segmentation. <context> My namespace currently has no NetworkPolicy at all, meaning any pod can talk to any other pod, and I want to lock this down to only the traffic that is actually needed. </context> <inputs> - Namespace name: [NAMESPACE NAME] - Services and their required communication paths: [SERVICE COMMUNICATION MAP] - Traffic that must be allowed from outside the namespace: [EXTERNAL TRAFFIC NEEDS] </inputs> <task> Design a default-deny NetworkPolicy for the namespace plus specific allow policies for each communication path I listed, including any needed ingress from outside the namespace. </task> <constraints> Start from default deny for both ingress and egress, then add only the specific exceptions I described. Do not forget DNS egress, workloads will fail silently without it. </constraints> <format> Return one fenced yaml block per policy, each with a comment naming which communication path it covers. </format>
Pro tip: List every communication path explicitly, including DNS to kube-system, a forgotten path is the most common self-inflicted outage from this change.
Secret Management Audit
24/30✨ What it does
Audits manifests and Helm values for sensitive data stored outside a real secrets backend.
You are a Kubernetes secrets management auditor who checks how sensitive values move through a cluster. <context> I want an audit of how secrets are currently handled across my manifests, since some may have been set up before we had a real secrets strategy. </context> <inputs> - Manifests or Helm values referencing secrets: [PASTE RELEVANT SECTIONS] - Secrets backend in use, if any: [SECRETS BACKEND, e.g. plain Secret objects, external-secrets, Vault] - Whether Secret objects are encrypted at rest in etcd: [ENCRYPTION AT REST STATUS] - Namespace being audited: [NAMESPACE NAME] </inputs> <task> Identify any place where a sensitive value is stored in plain text in a ConfigMap, an environment variable in a manifest, or committed configuration, versus properly handled through the secrets backend. </task> <constraints> Flag every plain-text sensitive value you find, do not assume any value is non-sensitive just because it lacks an obvious name like password. If encryption at rest status is unknown, say why that matters rather than skipping it. </constraints> <format> Return a table of Location, Value Type, Current Handling, Recommended Handling. </format>
Pro tip: Include values.yaml files in the audit, not just Secret objects, hardcoded credentials most often leak through a chart's default values.
Image and Supply Chain Hardening Check
25/30✨ What it does
Assesses image and admission control gaps and returns a prioritized, concrete policy fix rather than a generic checklist.
You are a supply chain security engineer who reviews container image and admission policy for a cluster. <context> I want to know how exposed my cluster is to a bad or tampered image getting deployed, based on what admission controls and image policies I currently have. </context> <inputs> - Image tag policy currently used: [IMAGE TAG POLICY, e.g. latest, pinned digest] - Image source registries allowed: [ALLOWED REGISTRIES] - Admission controllers or policies in place, if any: [ADMISSION CONTROLS OR NONE] - Cluster this policy would apply to: [CLUSTER NAME] </inputs> <task> Assess the gaps in the current setup, specifically around mutable tags, unrestricted registries, and missing image signature or vulnerability scanning enforcement, then propose a concrete set of admission policy rules to close the biggest gaps first. </task> <constraints> Prioritize the two or three changes that reduce the most risk, do not hand back an exhaustive list with no ordering. Name a specific admission controller or policy engine only if it fits what is already in place. </constraints> <format> Return a ranked list of gaps with severity, then the top recommended policy rule written out concretely. </format>
Pro tip: State whether you already run an admission controller like Kyverno or Gatekeeper, the recommended rule syntax differs between them.
Most people use 10% of Claude. Tutorials unlock the rest.
AI Academy: 300+ hands-on tutorials on Claude, ChatGPT, Midjourney, and 50+ AI tools. New tutorials added every week.
CI/CD and GitOps Workflows
5 promptsArgoCD Application Manifest Draft
26/30✨ What it does
Writes a correctly configured ArgoCD Application manifest with an explicit sync, prune, and self-heal policy.
You are a GitOps engineer who sets up ArgoCD Application resources for new services. <context> I am onboarding a new service onto our existing ArgoCD instance and need the Application manifest written correctly against our repo structure. </context> <inputs> - Git repo URL and path to the manifests or chart: [REPO URL AND PATH] - Target cluster and namespace: [TARGET CLUSTER AND NAMESPACE] - Sync policy wanted: [SYNC POLICY, e.g. automated with self-heal, manual] - ArgoCD project this Application should belong to: [ARGOCD PROJECT NAME] </inputs> <task> Write the ArgoCD Application manifest pointing at the repo and path I gave you, with the sync policy configured as described, including a sensible retry and prune setting. </task> <constraints> If automated sync is requested, include selfHeal and prune settings explicitly rather than leaving them to defaults. Do not add a Project reference unless I tell you one exists. </constraints> <format> Return one fenced yaml block for the Application manifest, followed by a one-line note on what selfHeal will do in practice. </format>
Pro tip: Say explicitly whether self-heal should be on, it silently reverts any manual kubectl edit made directly against the cluster.
CI Pipeline for Image Build and Deploy
27/30✨ What it does
Writes a full CI pipeline that builds, tags by commit SHA, and updates the deployment reference for GitOps pickup.
You are a CI/CD engineer who wires container build pipelines into Kubernetes deployment. <context> I need a CI pipeline that builds a container image on every merge, tags it properly, and updates the deployment manifest or Helm values so a GitOps tool can pick up the change. </context> <inputs> - CI platform: [CI PLATFORM, e.g. GitHub Actions, GitLab CI] - Image registry: [IMAGE REGISTRY] - Deployment method: [DEPLOYMENT METHOD, e.g. GitOps repo update, direct helm upgrade] - Branch or tag trigger: [TRIGGER CONDITION] - Target namespace for the deploy: [TARGET NAMESPACE] </inputs> <task> Write the pipeline configuration that builds the image, tags it with the commit SHA, pushes it to the registry, and updates the deployment reference using the deployment method I specified. </task> <constraints> Tag images with the commit SHA, not latest, so rollbacks are traceable. Use the exact syntax for the CI platform I named, do not mix GitHub Actions and GitLab CI syntax. </constraints> <format> Return one fenced code block with the full pipeline configuration file, with comments marking each stage. </format>
Pro tip: Specify commit SHA tagging explicitly even if you do not mention it, pipelines built on latest tags make rollback nearly impossible to reason about.
Progressive Delivery Rollout Plan
28/30✨ What it does
Designs a concrete canary rollout schedule with traffic steps and an automatic rollback condition tied to a real metric.
You are a release engineer who designs canary and progressive delivery rollouts for Kubernetes. <context> I want to roll out a risky change gradually instead of all at once, and need a concrete plan for how the traffic shift and rollback triggers should work. </context> <inputs> - Progressive delivery tool available: [DELIVERY TOOL OR NONE YET] - Metric to watch for rollback: [ROLLBACK METRIC] - Total rollout duration wanted: [ROLLOUT DURATION] - Traffic step sizes acceptable: [TRAFFIC STEP SIZE] - Application this rollout applies to: [APPLICATION NAME] </inputs> <task> Design the canary rollout stages, the traffic percentage at each step, the wait time between steps, and the automatic rollback condition tied to the metric I named. </task> <constraints> If no progressive delivery tool is installed yet, note the minimum setup needed before this plan can run, do not assume it exists. Keep the automatic rollback threshold conservative given this is described as risky. </constraints> <format> Return a table with columns: Step, Traffic Percent, Wait Time, Rollback Condition. </format>
Pro tip: Name the actual tool installed, the manifest syntax for a canary step differs completely between Argo Rollouts and Flagger.
GitOps Repository Structure Design
29/30✨ What it does
Designs a base-plus-overlay GitOps repository layout matched to the specific tool in use, with a clear promotion flow.
You are a GitOps architect who designs repository layouts for multi-cluster, multi-environment deployments. <context> We are moving to a GitOps workflow and I need the repository structure designed so environment promotion is clear and does not require duplicating every manifest. </context> <inputs> - Number of clusters: [CLUSTER COUNT] - Environments per cluster: [ENVIRONMENTS PER CLUSTER] - GitOps tool in use: [GITOPS TOOL, e.g. ArgoCD, Flux] - Number of applications to manage: [APPLICATION COUNT] </inputs> <task> Design the repository directory structure, showing where base manifests live, where overlays or environment-specific values live, and how promotion from one environment to the next would work in this structure. </task> <constraints> Use a base plus overlay pattern rather than fully duplicated manifests per environment. Match the structure to conventions the named GitOps tool expects, Kustomize overlays and Helm value layering are not interchangeable. </constraints> <format> Return a file tree in a code block, then three sentences describing the promotion flow from staging to production. </format>
Pro tip: State the GitOps tool up front, a structure built for Kustomize overlays will not map cleanly onto a Helm-based Flux setup.
Incident Postmortem for a Bad Rollout
30/30✨ What it does
Writes a structured, blameless postmortem for a bad rollout with trackable action items, not vague intentions.
You are a site reliability engineer who writes clear, blameless postmortems for failed deployments. <context> A recent rollout caused an outage and I need a postmortem written up that captures what happened without turning into a blame document. </context> <inputs> - Timeline of what happened: [TIMELINE OF EVENTS] - What was deployed and by what method: [DEPLOYMENT DETAILS] - Detection method and time to detect: [DETECTION METHOD AND TIME] - Resolution steps taken: [RESOLUTION STEPS] </inputs> <task> Write a postmortem covering summary, timeline, root cause, impact, and specific follow-up action items with owners left as placeholders, following a standard blameless postmortem structure. </task> <constraints> Keep the tone factual and blameless, describe what the system and process allowed rather than who made the mistake. Every action item must be specific enough to be tracked as a ticket, not a vague intention. </constraints> <format> Return the postmortem in labeled sections: Summary, Timeline, Root Cause, Impact, Action Items. </format>
Pro tip: Feed it the raw timeline from your incident channel, editing it down first tends to accidentally remove the detail that explains the root cause.
Free tool
Prompt Optimizer
Turn a rough idea into a structured, professional AI prompt.
Frequently Asked Questions
Prompts are the starting line. Tutorials are the finish.
A growing library of 300+ hands-on tutorials on ChatGPT, Claude, Midjourney, and 50+ AI tools. New tutorials added every week.
7-day free trial. Cancel anytime.