Skip to main content

no-missing-scale-target

Rec
Enabled in recommended preset.
All
Disabled when components are given in CLI.

Disallow missing scale target references defined in auto scalers (e.g. HPA, VPA).

This rule ensures that all scale target references defined in auto scalers are present by checking if the corresponding manifests are present or not.

Currently this rule supports the following resources:

API GroupKind
autoscalingHorizontalPodAutoscaler
autoscaling.k8s.ioVerticalPodAutoscaler
autoscaling.gke.ioMultidimPodAutoscaler
keda.shScaledObject

Configuration

allow

Allow scale target references that match the patterns to be missing.

Examples

Allow a Deployment with a specific namespace and name.

allow = [{ apiVersion = "apps/v1", kind = "Deployment", namespace = "foo", name = "bar" }]