nextcloud: Set resource limits

This commit is contained in:
Lauri Võsandi 2024-08-24 23:31:22 +03:00
parent d1e8d8e356
commit 4b00d876ad

View File

@ -21,9 +21,21 @@ spec:
key: REDIS_PASSWORD key: REDIS_PASSWORD
name: dragonfly-auth name: dragonfly-auth
replicas: 3 replicas: 3
topologySpreadConstraints:
- maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
app: redis
app.kubernetes.io/part-of: dragonfly
resources: resources:
limits: limits:
memory: 5Gi cpu: 600m
memory: 500Mi
requests:
cpu: 100m
memory: 30Mi
--- ---
apiVersion: codemowers.cloud/v1beta1 apiVersion: codemowers.cloud/v1beta1
kind: OIDCClient kind: OIDCClient
@ -53,6 +65,7 @@ metadata:
labels: labels:
app.kubernetes.io/name: nextcloud app.kubernetes.io/name: nextcloud
spec: spec:
revisionHistoryLimit: 0
serviceName: nextcloud serviceName: nextcloud
replicas: 1 replicas: 1
selector: selector:
@ -75,6 +88,13 @@ spec:
containers: containers:
- name: nextcloud - name: nextcloud
image: nextcloud@sha256:072d9d3b8428d6b31fe7ed603737d4173f0ca85c0f1d0d8607fd4741fdfa49a9 image: nextcloud@sha256:072d9d3b8428d6b31fe7ed603737d4173f0ca85c0f1d0d8607fd4741fdfa49a9
resources:
limits:
cpu: 4000m
memory: 2Gi
requests:
cpu: 400m
memory: 500Mi
readinessProbe: readinessProbe:
exec: exec:
command: command: