-
Notifications
You must be signed in to change notification settings - Fork 0
K8s HPA
udx-github edited this page Jul 3, 2026
·
3 revisions
Creates a Kubernetes HorizontalPodAutoscaler from a native manifest definition.
Use this module when a Rabbit service needs automatic pod scaling based on CPU, memory, or custom metrics.
- HPA creation from a standard Kubernetes manifest.
- Configurable min and max replicas.
- Resource-based metrics (CPU, memory) with target utilization.
- Scale target reference to Deployments or other workloads.
- A kubeconfig secret created by the
k8s-accessmodule. - The target namespace and Deployment must exist.
- The
horizontal_pod_autoscalingaddon must be enabled on the GKE cluster.
- The
configurationskey accepts a complete Kubernetes HPA manifest (withoutapiVersionandkind). -
scaleTargetRefmust reference an existing workload in the same namespace. -
minReplicasdefaults to1when not specified.
services:
- name: "k8s HPA"
module: "k8s-hpa"
id: "app-hpa"
deployment_order: 110
configurations:
metadata:
name: "www-example-com"
namespace: "www-example-com"
spec:
minReplicas: 1
maxReplicas: 5
scaleTargetRef:
apiVersion: "apps/v1"
kind: "Deployment"
name: "www-example-com"
metrics:
- type: "Resource"
resource:
name: "cpu"
target:
type: "Utilization"
averageUtilization: 70This module does not produce outputs.
The configurations key accepts a native Kubernetes HPA manifest body. See the Kubernetes HPA spec for the full schema.
configurations:
metadata:
name: ""
namespace: ""
labels: {}
annotations: {}
spec:
minReplicas: 1
maxReplicas: 5
scaleTargetRef:
apiVersion: "apps/v1"
kind: "Deployment"
name: ""
metrics:
- type: "Resource"
resource:
name: "cpu"
target:
type: "Utilization"
averageUtilization: 70- AWS ACM Certificate
- AWS CloudFormation Stack
- AWS CloudFront Distribution
- AWS CloudFront Response Headers Policy
- AWS Route53 DNS
- AWS WAF
- GCP GKE Cluster
- GCP GKE Node Pool
- GCP IAM
- GCP Monitoring
- GCP Networking
- GCP PostgreSQL Instance
- GCP Secret Manager
- GCP SQL Instance
- GCP Static IP
- GCP Storage
- Ghost Inspector Sync
- K8s Access
- K8s ConfigMap
- K8s Deployment
- K8s HPA
- K8s HTTP Gateway Route
- K8s HTTP Health Check Policy
- K8s Memcached
- K8s Namespace
- K8s PDB
- K8s Secret
- K8s Service
- K8s Shared HTTP Gateway
- NewRelic APM Browser
- NewRelic Synthetic Monitors