deploy: add memory limits

This is the beginning of a change to add cpu/memory limits to our pods.
We are doing this because some consumers require this, and it is generally
a good practice.

The limits == requests for "Guaranteed" QoS.

Signed-off-by: Andrew Keesler <akeesler@vmware.com>
This commit is contained in:
Ryan Richard 2020-11-02 14:57:39 -05:00 committed by Andrew Keesler
parent 7639d5e161
commit 781f86d18c
No known key found for this signature in database
GPG Key ID: 27CE0444346F9413
2 changed files with 4 additions and 0 deletions

View File

@ -102,6 +102,8 @@ spec:
resources:
requests:
memory: "128Mi"
limits:
memory: "128Mi"
args:
- --config=/etc/config/pinniped.yaml
- --downward-api-path=/etc/podinfo

View File

@ -81,6 +81,8 @@ spec:
resources:
requests:
memory: "128Mi"
limits:
memory: "128Mi"
volumeMounts:
- name: config-volume
mountPath: /etc/config