Skip to content

Commit

Permalink
Merge pull request RedHatInsights#1141 from petracihalova/init-contai…
Browse files Browse the repository at this point in the history
…ner-resources

set cpu and memory resources for the worker init container
  • Loading branch information
petracihalova authored Jul 17, 2024
2 parents d922dd9 + af0ffe8 commit 27fea9b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions deploy/rbac-clowdapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ objects:
command:
- sh
- /opt/rbac/deploy/init-container-setup.sh
resources:
limits:
cpu: ${INIT_WORKER_CPU_LIMIT}
memory: ${INIT_WORKER_MEMORY_LIMIT}
requests:
cpu: ${INIT_WORKER_CPU_REQUEST}
memory: ${INIT_WORKER_MEMORY_REQUEST}
command:
- /bin/bash
- '-c'
Expand Down Expand Up @@ -765,6 +772,22 @@ parameters:
displayName: Memory Limit
name: CELERY_WORKER_MEMORY_LIMIT
value: 512Mi
- description: Initial amount of CPU the init worker container will request.
displayName: RBAC worker init container CPU Resource Request
name: INIT_WORKER_CPU_REQUEST
value: 500m
- description: Maximum amount of CPU the init worker container can use.
displayName: RBAC worker init container CPU Resource Limit
name: INIT_WORKER_CPU_LIMIT
value: 2000m
- description: Initial amount of memory the init worker container will request.
displayName: RBAC worker init container Memory Resource Request
name: INIT_WORKER_MEMORY_REQUEST
value: 512Mi
- description: Maximum amount of memory the init worker container can use.
displayName: RBAC worker init container Memory Resource Limit
name: INIT_WORKER_MEMORY_LIMIT
value: 3Gi
- displayName: Django Debug
name: DJANGO_DEBUG
value: 'False'
Expand Down

0 comments on commit 27fea9b

Please sign in to comment.