Skip to content

Commit 8c13be6

Browse files
anishasthanaharshad16
authored andcommitted
Add resource specs for all RHODS components (#105)
* Add limits and requests for all notebook image builds Signed-off-by: Anish Asthana <anishasthana1@gmail.com> * Add limits and requests for all Jupyterhub objects and builds Signed-off-by: Anish Asthana <anishasthana1@gmail.com> * Fix Jupyterhub-db build config name Signed-off-by: Anish Asthana <anishasthana1@gmail.com> * Add limits and requests to the anaconda-ce validator Signed-off-by: Anish Asthana <anishasthana1@gmail.com> * Increase Elyra buildconfig resources Co-authored-by: Harshad Reddy Nalla <harshadreddy16@gmail.com> Co-authored-by: Harshad Reddy Nalla <harshadreddy16@gmail.com>
1 parent 7bbab87 commit 8c13be6

16 files changed

Lines changed: 124 additions & 6 deletions

jupyterhub/jupyterhub/base/jupyterhub-db-dc.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ spec:
5050
'SELECT 1'
5151
resources:
5252
limits:
53+
cpu: "1"
54+
memory: 1Gi
55+
requests:
56+
cpu: "1"
5357
memory: 1Gi
5458
volumeMounts:
5559
- mountPath: /var/lib/pgsql/data

jupyterhub/jupyterhub/base/jupyterhub-dc.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ spec:
9393
protocol: TCP
9494
resources:
9595
limits:
96+
cpu: "1"
97+
memory: 1Gi
98+
requests:
99+
cpu: "1"
96100
memory: 1Gi
97101
volumeMounts:
98102
- mountPath: /opt/app-root/configs
@@ -112,6 +116,10 @@ spec:
112116
name: wait-for-database
113117
resources:
114118
limits:
119+
cpu: "1"
120+
memory: 1Gi
121+
requests:
122+
cpu: "1"
115123
memory: 1Gi
116124
serviceAccountName: jupyterhub-hub
117125
imagePullSecrets:

jupyterhub/jupyterhub/overlays/build/jupyterhub-buildconfig.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ spec:
1010
to:
1111
kind: ImageStreamTag
1212
name: jupyterhub:latest
13+
resources:
14+
limits:
15+
cpu: "2"
16+
memory: 4Gi
17+
requests:
18+
cpu: "1"
19+
memory: 2Gi
1320
source:
1421
git:
1522
ref: v3.5.1

jupyterhub/jupyterhub/overlays/build/jupyterhub-dh-buildconfig.yaml renamed to jupyterhub/jupyterhub/overlays/build/jupyterhub-db-buildconfig.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ spec:
99
to:
1010
kind: ImageStreamTag
1111
name: jupyterhub-img:latest
12+
resources:
13+
limits:
14+
cpu: "2"
15+
memory: 4Gi
16+
requests:
17+
cpu: "1"
18+
memory: 2Gi
1219
source:
1320
git:
1421
uri: https://github.com/opendatahub-io/jupyterhub-odh

jupyterhub/jupyterhub/overlays/build/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ bases:
55
resources:
66
- jupyterhub-imagestream.yaml
77
- jupyterhub-buildconfig.yaml
8-
- jupyterhub-dh-buildconfig.yaml
8+
- jupyterhub-db-buildconfig.yaml
99

1010
commonLabels:
1111
opendatahub.io/component: "true"

jupyterhub/notebook-images/overlays/build/elyra-notebook-buildconfig.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ spec:
99
to:
1010
kind: ImageStreamTag
1111
name: s2i-lab-elyra:v0.0.7
12+
resources:
13+
limits:
14+
cpu: "2"
15+
memory: 8Gi
16+
requests:
17+
cpu: "1"
18+
memory: 6Gi
1219
source:
1320
git:
1421
uri: https://github.com/opendatahub-io/s2i-lab-elyra

jupyterhub/notebook-images/overlays/build/generic-data-science-notebook-buildconfig.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ spec:
99
to:
1010
kind: ImageStreamTag
1111
name: s2i-generic-data-science-notebook:local-build
12+
resources:
13+
limits:
14+
cpu: "2"
15+
memory: 4Gi
16+
requests:
17+
cpu: "1"
18+
memory: 2Gi
1219
source:
1320
git:
1421
uri: https://github.com/thoth-station/s2i-generic-data-science-notebook

jupyterhub/notebook-images/overlays/build/minimal-notebook-buildconfig.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ spec:
99
to:
1010
kind: ImageStreamTag
1111
name: s2i-minimal-notebook:local-build
12+
resources:
13+
limits:
14+
cpu: "2"
15+
memory: 4Gi
16+
requests:
17+
cpu: "1"
18+
memory: 2Gi
1219
source:
1320
git:
1421
uri: https://github.com/thoth-station/s2i-minimal-notebook

jupyterhub/notebook-images/overlays/build/scipy-notebook-buildconfig.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ spec:
99
to:
1010
kind: ImageStreamTag
1111
name: s2i-scipy-notebook:local-build
12+
resources:
13+
limits:
14+
cpu: "2"
15+
memory: 4Gi
16+
requests:
17+
cpu: "1"
18+
memory: 2Gi
1219
source:
1320
git:
1421
uri: https://github.com/thoth-station/s2i-scipy-notebook

jupyterhub/notebook-images/overlays/build/spark-minimal-notebook-buildconfig.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ spec:
99
to:
1010
kind: ImageStreamTag
1111
name: s2i-spark-minimal-notebook:local-build
12+
resources:
13+
limits:
14+
cpu: "2"
15+
memory: 4Gi
16+
requests:
17+
cpu: "1"
18+
memory: 2Gi
1219
source:
1320
git:
1421
uri: https://github.com/thoth-station/s2i-minimal-notebook

0 commit comments

Comments
 (0)