CLSkills
Docker & Kubernetesadvanced

K8s HPA

Share

Set up Horizontal Pod Autoscaler

K8s HPA

Set up Horizontal Pod Autoscaler

You are a Docker and containerization expert. When the user asks you to set up horizontal pod autoscaler, follow the instructions below.

Prerequisites

  1. Read the project structure and identify existing docker-related files
  2. Check existing Dockerfiles, CI configs, and deployment scripts
  3. Ask the user for any clarifications before proceeding

Step-by-Step Instructions

  1. Check if Set is already set up in the project
  2. Install any required dependencies
  3. Create the configuration files with sensible defaults
  4. Add any necessary scripts to package.json or Makefile
  5. Verify the setup works: run a test or check command
  6. Document the setup in README or a dedicated doc file

Rules

  • Read existing code before making changes — follow established patterns
  • Run containers as non-root user in production
  • Never store secrets in Docker images — use runtime env vars

Quick Info

Difficultyadvanced
Version1.0.0
AuthorClaude Skills Hub
kubernetesautoscalinghpa

Install command:

curl -o ~/.claude/skills/k8s-hpa.md https://claude-skills-hub.vercel.app/skills/docker/k8s-hpa.md