From f9e328c3f9f990f5f4fdd5e23d43dce611f89425 Mon Sep 17 00:00:00 2001 From: ggerogery Date: Mon, 21 Nov 2022 20:55:18 +0400 Subject: [PATCH] An example of how to enable HPA with metrics An example of how to enable HPA with metrics --- charts/coredns/values.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/coredns/values.yaml b/charts/coredns/values.yaml index e7d21c2..4bd47f9 100644 --- a/charts/coredns/values.yaml +++ b/charts/coredns/values.yaml @@ -255,7 +255,13 @@ hpa: enabled: false minReplicas: 1 maxReplicas: 2 - metrics: [] + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 60 ## Configue a cluster-proportional-autoscaler for coredns # See https://github.com/kubernetes-incubator/cluster-proportional-autoscaler