Skip to content

Commit

Permalink
Improved default values for resource requests and limits
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianeicher committed Jul 21, 2021
1 parent cf41f49 commit 619edda
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions charts/generic-service/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ app:
| `readinessProbe` | | Probe that prevents the service from receiving traffic when failing |
| `labels` | `{}` | Additional labels to set on all generated resources |
| `annotations` | `{}` | Additional annotations to set on the `Pod`s |
| `resources.requests` | `{memory: 64M}` | The minimum resources requested/reserved for the service |
| `resources.limits` | `{memory: 128M}` | The maximum resources the service can use |
| `resources.requests.memory` | `64Mi` | The minimum amount of RAM requested/reserved for the service |
| `resources.requests.cpu` | `10m` | The minimum number of CPU cores requested/reserved for the service |
| `resources.limits.memory` | `96Mi` | The maximum amount of RAM the service can use |
| `resources.limits.cpu` | `2000m` | The maximum number of CPU cores the service can use |
| `replicas` | `1` | The number of instances of the service to run (set at least `2` for Pod Disruption Budget) |
| `autoscaling.enabled` | `false` | Enables automatic starting of additional instances based on CPU load |
| `autoscaling.maxReplicas` | `3` | The maximum number of instances to run (must be larger than `replicas`) |
Expand Down
8 changes: 4 additions & 4 deletions charts/generic-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ annotations: {}

resources:
requests:
memory: 64M
# cpu:
memory: 64Mi
cpu: 10m
limits:
memory: 128M
# cpu:
memory: 96Mi
cpu: 2000m

replicas: 1

Expand Down

0 comments on commit 619edda

Please sign in to comment.