Skip to content

Commit 7fb9bf9

Browse files
Add resource requests and limits (#287)
Signed-off-by: Alexandr Demicev <[email protected]>
1 parent 53e6c61 commit 7fb9bf9

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

config/manager/manager.yaml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ spec:
3333
- name: helm-kubeconfig
3434
readOnly: true
3535
mountPath: /var/run/secrets/kubernetes.io/serviceaccount
36+
resources:
37+
limits:
38+
cpu: 100m
39+
memory: 150Mi
40+
requests:
41+
cpu: 100m
42+
memory: 100Mi
3643
- image: controller:latest
3744
imagePullPolicy: Always
3845
name: manager
@@ -46,15 +53,13 @@ spec:
4653
port: http
4754
initialDelaySeconds: 5
4855
periodSeconds: 5
49-
# TODO(user): Configure the resources accordingly based on the project requirements.
50-
# More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
51-
# resources:
52-
# limits:
53-
# cpu: 500m
54-
# memory: 128Mi
55-
# requests:
56-
# cpu: 10m
57-
# memory: 64Mi
56+
resources:
57+
limits:
58+
cpu: 100m
59+
memory: 150Mi
60+
requests:
61+
cpu: 100m
62+
memory: 100Mi
5863
serviceAccountName: controller-manager
5964
terminationGracePeriodSeconds: 10
6065
volumes:

0 commit comments

Comments
 (0)