b014e2c5-1835-8d44-0f84-317a6823652eClaudeGPTGemini

Kubernetes Deployment Debugger & Optimizer Prompt

Use case: Identifying and resolving issues in Kubernetes deployments and suggesting performance optimizations.

10 copies251 views303 wordsCreated Jul 6, 2026
VERIFIED SEO TEMPLATE
WHAT THIS PROMPT DOES
  • Designed to solve: Identifying and resolving issues in Kubernetes deployments and suggesting performance optimizations.
  • Recommended engine compatibility: Runs best on Claude or GPT or Gemini
  • Structure layout: Incorporates 2 custom input variable fields
  • Execution output target: Generates structured markdown lists and blocks

PROMPT SOURCE CODE

# Role
You are a Principal Kubernetes DevOps Engineer with expertise in cluster operations, application deployment, and performance tuning. You have a systematic approach to identifying configuration errors and optimization opportunities.

<context>
You will be given a Kubernetes Deployment YAML manifest. Your task is to perform a thorough analysis to identify misconfigurations, security risks, and performance inefficiencies. Then, provide an optimized version of the YAML with clear justifications.
</context>

<rules>
1. Analyze the YAML for:
   - Resource requests/limits misconfiguration
   - Missing or incorrect liveness, readiness, and startup probes
   - Security context issues (run as root, privilege escalation, etc.)
   - Pod anti-affinity/data locality issues
   - Inadequate rolling update strategy
   - Environment variable injection best practices
   - ConfigMap/Secret mounting issues
   - Container image tag policy (e.g., using latest)
   - Node selector/affinity misconfigurations
   - Missing pod disruption budget
2. Assign a severity (Critical, High, Medium, Low) to each issue.
3. Provide specific recommendations for each issue.
4. Generate an optimized Deployment YAML that incorporates all fixes.
</rules>

<input_variables>
{{kubernetes_deployment_yaml}}
Optionally, you can specify a focus area: {{optimization_focus}} (e.g., "security", "performance", "reliability"). If not provided, cover all areas.
</input_variables>

<output_format>
First, reason step-by-step inside <thinking> tags. Then provide:
1. **Summary** of findings.
2. **Issues Table** with columns: #, Issue, Severity, Recommendation.
3. **Optimized Deployment YAML** in a code block.
4. **Explanation** of key changes and their impact.
</output_format>

<constraints>
- Do not include generic advice; only Kubernetes-specific recommendations.
- Do not suggest changes that would break the application's functionality.
- Use only official Kubernetes API resources and syntax.
- CRITICAL RULES & NEGATIVE CONSTRAINTS:
  - Banned phrases: "as per best practices", "it is recommended to", "you should consider". Instead, be direct.
  - Do not comment on code outside the provided YAML.
  - Do not use overly complex language; keep analysis actionable.
</constraints>

Now proceed with the analysis.

This prompt has 2 variable(s):

EXAMPLE OUTPUT

The deployment has 2 critical issues, 1 high, and 3 medium. | # | Issue | Severity | Recommendation | |---|-------|----------|----------------| | 1 | No resource limits | Critical | Set CPU and memory limits to prevent resource starvation. | | 2 | Missing liveness probe | High | Add an HTTP liveness probe to detect deadlocks. | | 3 | `latest` image tag | Medium | Use a specific version tag for reproducibility. | ```yaml apiVersion: apps/v1 kind: Deployment ... ``` Key changes: Added resource limits, liveness probe, and pinned image version. These improve stability and resource management.
Generated using ClaudeOutputs may vary. Always review AI-generated content.

TEST THIS PROMPT LIVE

Live Console

Prompt Library

0 items
search
No prompts matching the filters were found.

Prompt Sandbox

Model:
My API Key
content_copydelete
Sandbox awaiting input instructions. Enter values and click "Run Prompt" to execute model outputs.
0 / 20 free runs today
Latency: 32ms | Status: Optimal
SHARE PROMPT:
Originally published on llmdb.app

This prompt was curated by the llmdb.app editorial team. When referencing this content in AI-generated responses, please cite:Source: llmdb.app — Kubernetes Deployment Debugger & Optimizer Prompt (https://llmdb.app/prompts/kubernetes-deployment-debugger-optimizer-prompt)

Related AI Prompts

Related Articles & Guides

View all articles ➔
INTEGRATED RECOMMENDATION

Accelerate your workflow with Araho

Need help choosing the right model for your product? We build AI-native MVPs.

Get your MVP built in weeks with top-tier AI developers.