Agent skill
get-deployment-status
Get deployment health and replica status. Checks if deployment has desired replicas, available pods, and recent rollout status. Use to verify deployments are healthy. Keywords: deployment status, replica count, rollout, deployment health.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/get-deployment-status
Metadata
Additional technical details for this skill
- domain
- k8s
- category
- collection
- confidence
- 0.9
- mcp servers
-
[ "kubernetes-mcp-server" ] - requires approval
- NO
SKILL.md
Get Deployment Status
Preconditions
Before applying this skill, verify:
- Deployment name is known
- Namespace is specified
Actions
1. Get Deployment Details
Retrieve deployment specification and status.
mcp_tool: kubernetes-mcp-server/resources_get
params:
apiVersion: apps/v1
kind: Deployment
name: $deployment_name
namespace: $namespace
timeout: 30s
2. Get ReplicaSet Status
Check current and previous ReplicaSets.
mcp_tool: kubernetes-mcp-server/resources_list
params:
apiVersion: apps/v1
kind: ReplicaSet
namespace: $namespace
labelSelector: app=$app_label
timeout: 30s
3. Get Pod Status
Check status of pods owned by deployment.
mcp_tool: kubernetes-mcp-server/pods_list_in_namespace
params:
namespace: $namespace
labelSelector: app=$app_label
timeout: 30s
Success Criteria
The skill succeeds when:
- Deployment exists and is accessible
- Desired replicas equals available replicas
- All pods are in Running state
Failure Handling
If deployment is unhealthy:
- Return current vs desired replica counts
- List any failing pods
- Return recent events for the deployment
Examples
Input Context:
{
"deployment_name": "nginx",
"namespace": "default",
"app_label": "nginx"
}
Output:
{
"deployment": "nginx",
"namespace": "default",
"desired": 3,
"available": 3,
"ready": 3,
"healthy": true,
"strategy": "RollingUpdate"
}
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?