From 8340c7d6d757088d0eb28754578583692e908c3f Mon Sep 17 00:00:00 2001 From: adam Date: Wed, 4 Oct 2023 11:18:31 +0100 Subject: [PATCH] Update HPA configuration to work with v2 --- helm_deploy/wordpress/templates/hpa-wordpress.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/helm_deploy/wordpress/templates/hpa-wordpress.yaml b/helm_deploy/wordpress/templates/hpa-wordpress.yaml index 56fb0a47..186f95a3 100644 --- a/helm_deploy/wordpress/templates/hpa-wordpress.yaml +++ b/helm_deploy/wordpress/templates/hpa-wordpress.yaml @@ -22,5 +22,11 @@ spec: minReplicas: 1 maxReplicas: 1 {{- end }} - targetCPUUtilizationPercentage: 95 + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 95 {{- end }}