gke-workload-scaling

Automate Horizontal and Vertical Pod Autoscaler configuration for GKE workloads.

42|32|Updated May 7, 2026
One-click install
npx skills add https://github.com/gke-labs/kube-agents --skill gke-workload-scaling-gke-labs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gke-workload-scaling
Source: https://github.com/gke-labs/kube-agents/tree/main/agents/cluster/skills/gke-workload-scaling
Command: npx skills add https://github.com/gke-labs/kube-agents --skill gke-workload-scaling-gke-labs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) components.

What problem does it solve?

This skill addresses the operational complexity of manually managing cluster resources, preventing performance degradation during traffic spikes and reducing costs from over-provisioned infrastructure.

Core Features & Use Cases

  • Horizontal Pod Autoscaling (HPA): Automatically adjusts pod counts based on CPU or memory utilization to handle varying traffic loads.
  • Vertical Pod Autoscaling (VPA): Right-sizes container resource requests by analyzing actual usage patterns, ensuring efficient resource allocation.
  • Cluster Autoscaler Integration: Ensures the underlying node pool has sufficient capacity to accommodate scaled workloads.

Quick Start

Use the gke-workload-scaling skill to configure horizontal autoscaling for the deployment named web-server in the production namespace with a target cpu utilization of 60 percent.

Frequently Asked Questions about gke-workload-scaling

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

FAQPage Schema
How do I automate GKE autoscaling for production workloads?

Automate GKE autoscaling by configuring Horizontal Pod Autoscalers and Vertical Pod Autoscalers to dynamically adjust resources based on real-time metrics, ensuring high availability and cost optimization for production environments.

How does Vertical Pod Autoscaling right-size container resource requests in GKE?

Vertical Pod Autoscaling right-sizes container resource requests in GKE by analyzing actual usage patterns over time, automatically adjusting CPU and memory allocations to ensure efficient resource allocation and reduce over-provisioning costs.

What is the best way to handle traffic spikes in Kubernetes without over-provisioning infrastructure?

Handling traffic spikes without over-provisioning requires Horizontal Pod Autoscaling to automatically adjust pod counts based on CPU or memory utilization, preventing performance degradation during traffic spikes while reducing costs from over-provisioned infrastructure.

Can I use Horizontal Pod Autoscaling with a target CPU utilization of 60 percent for a deployment?

You can configure Horizontal Pod Autoscaling for a deployment like web-server by setting a target CPU utilization of 60 percent, automatically adjusting pod counts to handle varying traffic loads in the production namespace.

Does GKE workload scaling integrate with the Cluster Autoscaler to ensure node pool capacity?

GKE workload scaling integrates with the Cluster Autoscaler to ensure the underlying node pool has sufficient capacity to accommodate scaled workloads, dynamically adjusting nodes to support increased pod counts during scaling events.

Why do I need both HPA and VPA for automated infrastructure governance in GKE?

You need both HPA and VPA for automated infrastructure governance because HPA scales pod counts for traffic loads while VPA right-sizes container resources based on usage patterns, together ensuring high availability and cost optimization.