gke-workload-scaling

Automate GKE workload scaling with manual, HPA, and VPA workflows.

163|81|Updated Jun 19, 2025
One-click install
npx skills add https://github.com/GoogleCloudPlatform/gke-mcp --skill gke-workload-scaling
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gke-workload-scaling
Source: https://github.com/GoogleCloudPlatform/gke-mcp/tree/main/skills/gke-workload-scaling
Command: npx skills add https://github.com/GoogleCloudPlatform/gke-mcp --skill gke-workload-scaling

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) components.

What problem does it solve?

Specific workflows for scaling GKE workloads using manual scaling, Horizontal Pod Autoscaling (HPA), and Vertical Pod Autoscaling (VPA), along with best-practice guidelines for autoscaling configuration.

Core Features & Use Cases

  • Manual Scaling: quickly scale a deployment to a fixed number of replicas for immediate intervention or testing.
  • Horizontal Pod Autoscaling (HPA): auto-scale the number of pods based on observed CPU/memory or custom metrics, with a manifest-based approach using assets/hpa-example.yaml.
  • Vertical Pod Autoscaling (VPA): automatically adjust CPU and memory reservations, with templates in assets/vpa-example.yaml and recommended update modes.
  • Cluster Autoscaler considerations: ensure the node pool scales to support scaled workloads and optimize resource usage.

Quick Start

Follow the workflows to manually scale deployments, enable HPA with the provided manifest, and configure VPA using the included examples.

Frequently Asked Questions about gke-workload-scaling

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

FAQPage Schema
How do I configure Horizontal Pod Autoscaling for GKE deployments?

Configure Horizontal Pod Autoscaling (HPA) for GKE deployments by applying a manifest that auto-scales pod replicas based on observed CPU, memory, or custom metrics using the provided example manifest.

What are the prerequisites for enabling VPA on GKE workloads?

Prerequisites for enabling Vertical Pod Autoscaling (VPA) on GKE workloads include having resource requests defined and the metrics server available. Proper VPA and autoscaler configuration is required to ensure safe scaling activities.

When should I use manual scaling instead of HPA for my Kubernetes deployment?

Use manual scaling for your Kubernetes deployment when you need immediate intervention or fixed replica counts for testing. HPA is suited for automatic scaling based on observed metrics, while manual scaling provides direct, immediate control.

Does GKE Cluster Autoscaler work with HPA and VPA for capacity planning?

GKE Cluster Autoscaler works with HPA and VPA by ensuring the node pool scales to support scaled workloads. You must consider node pool scaling to support increased pod counts and optimize resource usage during capacity planning.

How does Vertical Pod Autoscaling adjust CPU and memory reservations?

Vertical Pod Autoscaling (VPA) automatically adjusts CPU and memory reservations for pods using recommended update modes. Templates are provided to configure VPA behavior for optimizing resource allocation in staging and production GKE environments.

Can I use custom metrics for HPA autoscaling in GKE production environments?

You can use custom metrics for HPA autoscaling in GKE production environments. The manifest-based approach supports auto-scaling pod counts based on observed CPU, memory, or custom metrics to manage workload capacity effectively.