From d97b79b55af0917c0c7e4b7a866bd38c3fbc2495 Mon Sep 17 00:00:00 2001 From: mloiseleur <97035654+mloiseleur@users.noreply.github.com> Date: Thu, 30 Mar 2023 14:02:05 +0200 Subject: [PATCH] =?UTF-8?q?docs:=20=F0=9F=93=9A=EF=B8=8F=20improve=20examp?= =?UTF-8?q?le=20on=20HPA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- EXAMPLES.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/EXAMPLES.md b/EXAMPLES.md index 5cd0422db..fe1d9cbdd 100644 --- a/EXAMPLES.md +++ b/EXAMPLES.md @@ -19,10 +19,18 @@ rbac: # Install with auto-scaling When enabling [HPA](https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/) -to adjust replicas count according to CPU Usage, it's recommended to nullify replicas. +to adjust replicas count according to CPU Usage, you'll need to set resources and nullify replicas. + ```yaml deployment: replicas: null +resources: + requests: + cpu: "100m" + memory: "50Mi" + limits: + cpu: "300m" + memory: "150Mi" autoscaling: enabled: true maxReplicas: 2