Examples & Use Cases
Real-world scenarios demonstrating the Kubernetes Agent's Architect (Generation), Operator (Management), and ArgoCD Onboarding workflows.
đī¸ Scenario 1: Generating a New Serviceâ
Objective: Create a production-ready Helm chart for a Python backend service.
The Requestâ
User: "Create a helm chart for my payment-service. It's a Python FastAPI app using
payment:v2image. It needs a Redis connection and should be exposed on port 8000."
1. Planning (Gap Detection)â
The Planner Agent analyzes the request and notices a missing detail (Redis connection info), triggering a clarifying question.
Agent: "I can certainly help with that. To ensure the Redis connection is configured correctly, how should the application connect to Redis?
- Should I include a Redis sub-chart (deploy a new Redis)?
- Or will it connect to an external Redis URL provided via environment variables?"
User: "It connects to an external Redis at
redis.infrastructure.svc."
2. Architecture Designâ
The agent generates a plan:
- Workload:
Deployment(Stateless generic app) - Config:
ConfigMapforREDIS_HOSTenvironment variable. - Networking:
Serviceon port 8000 +Ingressrules. - Health: Standard HTTP liveness probes on
/health.
3. Generation & Validationâ
The Generator Agent writes the files and runs validation:
Issue Detected:
Event: helm_lint_validator
Status: FAILED
Error: templates/deployment.yaml:23:21: invalid indentation in 'env' block.
Self-Healing Action: The agent automatically reads line 23, fixes the whitespace, saves the file, and re-runs validation. Passed.
Final Outputâ
The agent delivers the chart to /tmp/helm-charts/payment-service.
đšī¸ Scenario 2: Safe Installation (Helm Mgmt)â
Objective: Install a complex third-party application (ArgoCD) with safety checks.
The Requestâ
User: "Install ArgoCD from the official repo into the argocd namespace."
1. Discovery & Contextâ
The Helm Management Agent checks the cluster:
- Namespace exists? No -> Plans creation.
- Repo added? No -> Adds
argo https://argoproj.github.io/argo-helm. - Release exists? No -> Mode: INSTALL.
2. Values Confirmation (HITL Gate)â
Before generating a full plan, the agent asks for configuration confirmation.
Agent: "I found the chart
argo/argo-cdversion5.51.0.Required Configuration: No mandatory values found, but I recommend enabling
server.ingress.enabledif you want external access.Do you want to proceed with default values or customize anything?"
User: "Enable ingress with host
argocd.example.com."
3. Plan Approval (The "Nuclear Button")â
The agent generates the installation plan with the custom values and presents it for final sign-off.
Agent: "Here is the execution plan:
- Create namespace
argocd.- Install release
argo-cdwithserver.ingress.hosts[0]=argocd.example.com.Safety Check: Cluster connectivity is green.
[APPROVE / REJECT]"
User: "APPROVE"
4. Executionâ
The agent executes helm install, waits for pods to become ready, and reports success.
đ Scenario 3: Troubleshooting & Recoveryâ
Objective: Diagnose a crashing pod and fix it.
The Requestâ
User: "Why is the
payment-servicecrashing?"
1. Investigation (Query Path)â
The agent executes a read-only sequence:
kubectl get pods-> Findspayment-service-5f8c...inCrashLoopBackOff.kubectl logs --previous-> Reads the crash log.
Log Finding:
panic: FATAL: env var 'STRIPE_API_KEY' not set
2. Remediation Proposalâ
Agent: "The pod is crashing because the
STRIPE_API_KEYenvironment variable is missing.I can check the Deployment definition. Shall I verify if this variable is defined in the
envsection?"
đ§ Scenario 4: ArgoCD App Onboardingâ
Objective: Onboard an application via ArgoCD with plan preview and approvals.
The Requestâ
User: "Onboard
checkout-apifrom repogithub.com/acme/platformat path/apps/checkoutinto projectpayments."
1. Prerequisite Checksâ
The ArgoCD Orchestrator verifies:
- Project
paymentsexists. - Repo is registered and allowed by the project.
- Application name is available (or requires update).
2. Plan Preview (HITL Gate)â
Agent: "Here is the plan:
- Confirm repo access for
github.com/acme/platform.- Create ArgoCD app
checkout-apiin projectpayments.- Set destination namespace
paymentsand sync policymanual.[APPROVE / REJECT]"
User: "APPROVE"
3. Execute + Tool-Level Approvalâ
The agent runs the MCP calls and requests a final confirmation before the create action.
đ Scenario 5: Rollbackâ
Objective: Revert a failed upgrade quickly.
The Requestâ
User: "The last upgrade broke the site! Roll it back immediately."
Actionâ
- The agent lists history:
helm history my-app.- Rev 5:
DEPLOYED(Current, Broken) - Rev 4:
SUPERSEDED(Last Good)
- Rev 5:
- Executes:
helm rollback my-app 4. - Verifies: Checks that pods from Rev 4 are running and healthy.
Agent: "Successfully rolled back
my-appto revision 4. Pods are stable."