k8s-autoscaling

Guide Kubernetes autoscaling with HPA, VPA, KEDA, and Knative.

1|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/iceflower/opencode-agents-and-skills --skill k8s-autoscaling-iceflower
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: k8s-autoscaling
Source: https://github.com/iceflower/opencode-agents-and-skills/tree/main/skills/k8s-autoscaling
Command: npx skills add https://github.com/iceflower/opencode-agents-and-skills --skill k8s-autoscaling-iceflower

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide to implementing and managing autoscaling for Kubernetes workloads, ensuring optimal resource utilization and application performance.

Core Features & Use Cases

  • Tool Comparison: Understand the differences and use cases for Horizontal Pod Autoscaler (HPA), Vertical Pod Autoscaler (VPA), KEDA, and Knative.
  • KEDA Deep Dive: Learn to install KEDA and configure ScaledObject and ScaledJob for event-driven autoscaling with various triggers (Kafka, RabbitMQ, SQS, Prometheus, Cron, etc.).
  • Knative Deep Dive: Master Knative Serving for serverless deployments with scale-to-zero and traffic management, and Knative Eventing for event-driven architectures.
  • Best Practices: Implement effective strategies for scale-to-zero, resource limits, scaling thresholds, cooldown periods, monitoring, and testing.

Quick Start

Use the k8s-autoscaling skill to compare HPA, VPA, KEDA, and Knative for a queue-based scaling scenario.

Frequently Asked Questions about k8s-autoscaling

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is the best Kubernetes autoscaling tool for event-driven workloads?▼

KEDA is the best Kubernetes autoscaling tool for event-driven workloads, allowing you to configure ScaledObjects and ScaledJobs with triggers like Kafka, RabbitMQ, SQS, and Prometheus.

How do I configure Knative Serving for scale-to-zero and traffic management?▼

To configure Knative Serving for scale-to-zero and traffic management, you deploy serverless workloads using Knative Services, which automatically handle pod scaling based on incoming HTTP requests.

When should I use HPA vs VPA vs KEDA in Kubernetes?▼

Use HPA for horizontal scaling based on metrics, VPA for vertical resource adjustments, and KEDA when you need event-driven autoscaling based on message queues or external systems.

How to set up KEDA with Kafka and RabbitMQ triggers in Kubernetes?▼

Set up KEDA with Kafka and RabbitMQ by installing KEDA in your cluster and configuring ScaledObjects with the respective trigger authentication and metadata for event-driven scaling.

Why is my KEDA ScaledObject not triggering autoscaling in Kubernetes?▼

KEDA ScaledObject autoscaling issues often stem from incorrect trigger configurations, missing authentication secrets, or thresholds being set improperly, requiring troubleshooting of the event source connection.