Skip to content

Commit

Permalink
set resources requests & limits for db init-container
Browse files Browse the repository at this point in the history
required for getting Guaranteed Qos
  • Loading branch information
dannyzaken committed Feb 10, 2020
1 parent 5f9c9e8 commit 2be1a60
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions deploy/internal/statefulset-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ spec:
command:
- /noobaa_init_files/noobaa_init.sh
- init_mongo
resources:
requests:
cpu: "500m"
memory: "500Mi"
limits:
cpu: "500m"
memory: "500Mi"
volumeMounts:
- name: db
mountPath: /mongo_data
Expand Down
9 changes: 8 additions & 1 deletion pkg/bundle/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -2220,7 +2220,7 @@ spec:
resource: limits.memory
`

const Sha256_deploy_internal_statefulset_db_yaml = "e0aac93d6d64905ac5c95d18efa671fa2e904e4da187ae5442787bfcf97a9fbb"
const Sha256_deploy_internal_statefulset_db_yaml = "5916e76021db87d379658147871643bfa6e0f016a53e63afefac36ea9cbe62e3"

const File_deploy_internal_statefulset_db_yaml = `apiVersion: apps/v1
kind: StatefulSet
Expand Down Expand Up @@ -2252,6 +2252,13 @@ spec:
command:
- /noobaa_init_files/noobaa_init.sh
- init_mongo
resources:
requests:
cpu: "500m"
memory: "500Mi"
limits:
cpu: "500m"
memory: "500Mi"
volumeMounts:
- name: db
mountPath: /mongo_data
Expand Down

0 comments on commit 2be1a60

Please sign in to comment.