Skip to content

Commit 4498cce

Browse files
J12934Weltraumschaf
authored andcommitted
Increase default cpu/memory limits for the operator
30Mi is really low and not sufficient for a lot of setups. 100Mi is still rather low, but the extra 70Mi should really be no problem for anybody, even with the current memory price hike This was also causing problems with local developments as docker seems to messure the resoruces of ressurected / restarted containers differently causing the operator to fail on kind cluster if the computer/docker engine was shut down / restarted Signed-off-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
1 parent 8349ebe commit 4498cce

2 files changed

Lines changed: 17 additions & 17 deletions

File tree

‎operator/tests/__snapshot__/operator_test.yaml.snap‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,11 @@ matches the snapshot:
102102
periodSeconds: 10
103103
resources:
104104
limits:
105-
cpu: 100m
106-
memory: 30Mi
105+
cpu: 250m
106+
memory: 100Mi
107107
requests:
108108
cpu: 100m
109-
memory: 20Mi
109+
memory: 50Mi
110110
securityContext:
111111
allowPrivilegeEscalation: false
112112
capabilities:
@@ -852,11 +852,11 @@ properly-renders-the-service-monitor-when-enabled:
852852
periodSeconds: 10
853853
resources:
854854
limits:
855-
cpu: 100m
856-
memory: 30Mi
855+
cpu: 250m
856+
memory: 100Mi
857857
requests:
858858
cpu: 100m
859-
memory: 20Mi
859+
memory: 50Mi
860860
securityContext:
861861
allowPrivilegeEscalation: false
862862
capabilities:

‎operator/values.yaml‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ customCACertificate:
3434
extraVolumes: [ ]
3535
# Example:
3636
# extraVolumes:
37-
# - name: ssl-certificates
37+
# - name: ssl-certificates
3838
# secret:
3939
# secretName: ssl-cert-secret
4040
# - name: config-volume
4141
# configMap:
4242
# name: operator-config
43-
# - name: cache-volume
43+
# - name: cache-volume
4444
# emptyDir: {}
4545

4646
# -- Additional volume mounts to be mounted to the operator deployment
@@ -50,7 +50,7 @@ extraVolumeMounts: [ ]
5050
# - name: ssl-certificates
5151
# mountPath: /etc/ssl/certs
5252
# readOnly: true
53-
# - name: config-volume
53+
# - name: config-volume
5454
# mountPath: /etc/config
5555
# - name: cache-volume
5656
# mountPath: /cache
@@ -94,7 +94,7 @@ probes:
9494
port: healthchecks
9595
initialDelaySeconds: 15
9696
periodSeconds: 20
97-
# -- Readiness probe configuration
97+
# -- Readiness probe configuration
9898
readiness:
9999
httpGet:
100100
path: /readyz
@@ -124,7 +124,7 @@ lurker:
124124
minio:
125125
# -- Enable this to use minio as storage backend instead of a cloud bucket provider like AWS S3, Google Cloud Storage, DigitalOcean Spaces etc.
126126
enabled: true
127-
127+
128128
# -- Minio image configuration
129129
image:
130130
repository: docker.io/minio/minio
@@ -160,13 +160,13 @@ minio:
160160
storageClass: ""
161161
# -- Size of the persistent volume
162162
size: "10Gi"
163-
163+
164164
# -- Pod security context for minio
165165
podSecurityContext:
166166
runAsUser: 1000
167167
runAsGroup: 1000
168168
fsGroup: 1000
169-
169+
170170
# -- Container security context for minio
171171
securityContext:
172172
runAsNonRoot: true
@@ -178,7 +178,7 @@ minio:
178178
- ALL
179179
seccompProfile:
180180
type: RuntimeDefault
181-
181+
182182
# -- TLS configuration (currently not implemented)
183183
tls:
184184
enabled: false
@@ -213,11 +213,11 @@ s3:
213213
# resources -- CPU/memory resource requests/limits (see: https://kubernetes.io/docs/tasks/configure-pod-container/assign-memory-resource/, https://kubernetes.io/docs/tasks/configure-pod-container/assign-cpu-resource/)
214214
resources:
215215
limits:
216-
cpu: 100m
217-
memory: 30Mi
216+
cpu: 250m
217+
memory: 100Mi
218218
requests:
219219
cpu: 100m
220-
memory: 20Mi
220+
memory: 50Mi
221221
# presignedUrlExpirationTimes -- Duration how long presigned urls are valid
222222
presignedUrlExpirationTimes:
223223
scanners: "12h"

0 commit comments

Comments
 (0)