Agent skill
scale-deployment
Scale a deployment to a specified number of replicas. Used for both scaling up (to handle load) and scaling down. Keywords: scale, replicas, deployment, statefulset, horizontal scaling, pod count.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/scale-deployment
Metadata
Additional technical details for this skill
- domain
- k8s
- category
- remediation
- confidence
- 0.9
- mcp servers
-
[ "kubernetes-mcp-server" ] - requires approval
- YES
SKILL.md
Scale Deployment Replicas
Preconditions
Before applying this skill, verify:
- Resource is a Deployment or StatefulSet
- Target replica count is within configured limits (1-10)
- Current replica count differs from target
Actions
1. Scale the Deployment
Scale the deployment to the target number of replicas.
mcp_tool: kubernetes-mcp-server/resources_scale
params:
apiVersion: apps/v1
kind: $resource_kind
name: $deployment_name
namespace: $namespace
scale: $target_replicas
timeout: 60s
Success Criteria
The skill succeeds when:
- Deployment shows target replica count
- All replicas become Ready within 5 minutes
Failure Handling
If scaling fails:
- Check resource quotas in namespace
- Verify node capacity
- Check for PVC binding issues
- Escalate if pods cannot schedule
Examples
Input Context:
{
"deployment_name": "api-server",
"namespace": "production",
"resource_kind": "Deployment",
"current_replicas": 2,
"target_replicas": 5
}
Expected Outcome: Deployment scaled to 5 replicas, all pods Running within 5 minutes.
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?