Skip to content

Commit

Permalink
quay-operator: add resource requests and limits (PROJQUAY-2011)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Messer <dmesser@redhat.com>
  • Loading branch information
dmesser committed Jul 14, 2021
1 parent 8fe8456 commit b596f12
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 0 deletions.
7 changes: 7 additions & 0 deletions kustomize/components/clair/clair.deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ spec:
httpGet:
port: clair-intro
path: /healthz
resources:
requests:
cpu: 2000m
memory: 2Gi
limits:
cpu: 4000m
memory: 16Gi
restartPolicy: Always
volumes:
- name: config
Expand Down
4 changes: 4 additions & 0 deletions kustomize/components/clair/postgres.deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,7 @@ spec:
volumeMounts:
- name: postgres-data
mountPath: /var/lib/pgsql/data
resources:
requests:
cpu: 500m
memory: 2Gi
7 changes: 7 additions & 0 deletions kustomize/components/mirror/mirror.deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,10 @@ spec:
- name: extra-ca-certs
readOnly: true
mountPath: /conf/stack/extra_ca_certs
resources:
requests:
cpu: 500m
memory: 512Mi
limits:
cpu: 1000m
memory: 2Gi
4 changes: 4 additions & 0 deletions kustomize/components/postgres/postgres.deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,7 @@ spec:
volumeMounts:
- name: postgres-data
mountPath: /var/lib/pgsql/data
resources:
requests:
cpu: 500m
memory: 2Gi
7 changes: 7 additions & 0 deletions kustomize/components/redis/redis.deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,10 @@ spec:
ports:
- containerPort: 6379
protocol: TCP
resources:
requests:
cpu: 500m
memory: 1Gi
limits:
cpu: 4000m
memory: 16Gi

0 comments on commit b596f12

Please sign in to comment.