Skip to content

Commit

Permalink
Add resource limits and requests for the interceptor pod component (#421
Browse files Browse the repository at this point in the history
)

* Add resource limits and requests for the interceptor pod component

Signed-off-by: Chris Johnson <[email protected]>

* chore: pr feedback

Signed-off-by: Chris Johnson <[email protected]>

---------

Signed-off-by: Chris Johnson <[email protected]>
  • Loading branch information
chrisjohnson00 authored Mar 30, 2023
1 parent 200268a commit b335465
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion http-add-on/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ description: Event-based autoscaler for HTTP workloads on Kubernetes
kubeVersion: ">=v1.23.0-0"

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# to the chart and its templates, including the app version. This is incremented at chart release time and does not need
# to be included in any PRs to main.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.4.1

Expand Down
4 changes: 4 additions & 0 deletions http-add-on/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ their default values.
| `interceptor.nodeSelector` | Node selector for pod scheduling ([docs](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/)) | `{}` |
| `interceptor.tolerations` | Tolerations for pod scheduling ([docs](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/)) | `{}` |
| `interceptor.affinity` | Affinity for pod scheduling ([docs](https://kubernetes.io/docs/tasks/configure-pod-container/assign-pods-nodes-using-node-affinity/)) | `{}` |
| `interceptor.resources.limits.cpu` | The CPU resource limit for the operator component | `0.5` |
| `interceptor.resources.limits.memory` | The memory resource limit for the operator component | `64Mi` |
| `interceptor.resources.requests.cpu` | The CPU resource request for the operator component | `250m` |
| `interceptor.resources.requests.memory` | The memory resource request for the operator component | `20Mi` |

Specify each parameter using the `--set key=value[,key=value]` argument to
`helm install`. For example:
Expand Down
8 changes: 8 additions & 0 deletions http-add-on/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,14 @@ interceptor:
nodeSelector: {}
tolerations: []
affinity: {}
# interceptor pod resource limits
resources:
limits:
cpu: 0.5
memory: 64Mi
requests:
cpu: 250m
memory: 20Mi

# configuration for the images to use for each component
images:
Expand Down

0 comments on commit b335465

Please sign in to comment.