Skip to content

Commit

Permalink
docs: 📚️ improve example on HPA
Browse files Browse the repository at this point in the history
  • Loading branch information
mloiseleur authored Mar 30, 2023
1 parent cdc37a8 commit d97b79b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d97b79b

Please sign in to comment.