The purpose of HorizontalPodAutoscaler is to automatically update number of replicas of scalable resources (such as a Deployment or StatefulSet) to match the current demand. This validator detects a condition when a Deployment (or other scalable resource) used in the HorizontalPodAutoscaler is not found.
Affected Resources: HorizontalPodAutoscaler
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
spec:
minReplicas: 2
maxReplicas: 5
scaleTargetRef:
kind: Deployment
name: web-frontend # Missing Deployment
apiVersion: apps/v1
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend
Please let us know if there are other built-in validation rules you would like to see in Kubevious to detect misconfigurations and violations to best practices. Optionally, you can provide your details so we can reach out to you with follow-up questions.