Skip to content
This repository was archived by the owner on Jan 31, 2024. It is now read-only.

Commit 513a56a

Browse files
Update JupyterHub deployment to version v0.3.7 (#585)
* Update JH Cluster Role * This commit updates cluster role for JupyterHub. This is required to access metrics from gpu-operator. These metrics are used to determine available GPUs for a user. * Use a custom image-pullers RoleBinding for JH to prevent overwriting/deleting the default `system:image-pullers` default Rolebinding Signed-off-by: Landon LaSmith <LLaSmith@redhat.com> * Update JupyterHub to v0.3.7 Signed-off-by: Landon LaSmith <LLaSmith@redhat.com> Co-authored-by: Vaishnavi Hire <vhire@redhat.com>
1 parent a1c7bfd commit 513a56a

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

jupyterhub/jupyterhub/base/jupyterhub-cluster-role.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,8 @@ rules:
2222
- ''
2323
resources:
2424
- nodes
25+
- pods
26+
- serviceaccounts
27+
- secrets
28+
- services
29+
- namespaces

jupyterhub/jupyterhub/base/jupyterhub-dc.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ spec:
154154
secretKeyRef:
155155
name: $(traefik_credentials_secret)
156156
key: TRAEFIK_API_PASSWORD
157-
image: quay.io/odh-jupyterhub/jupyterhub-img:v0.3.6
157+
image: quay.io/odh-jupyterhub/jupyterhub-img:v0.3.7
158158
imagePullPolicy: "Always"
159159
name: jupyterhub
160160
ports:
@@ -236,7 +236,7 @@ spec:
236236
key: POSTGRESQL_PASSWORD
237237
- name: JUPYTERHUB_DATABASE_HOST
238238
value: jupyterhub-db
239-
image: quay.io/odh-jupyterhub/jupyterhub-img:v0.3.6
239+
image: quay.io/odh-jupyterhub/jupyterhub-img:v0.3.7
240240
imagePullPolicy: "Always"
241241
name: wait-for-database
242242
resources:

jupyterhub/jupyterhub/base/jupyterhub-notebook-image-puller-rb.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
kind: RoleBinding
22
apiVersion: rbac.authorization.k8s.io/v1
33
metadata:
4-
name: 'system:image-pullers'
4+
name: 'jupyterhub-image-puller'
55
subjects:
6-
# This group is always created by default when a new project is created but we have to explicitly include it to
7-
# prevent image pull authorization denials when images are built from source in the JH server namespace
86
- kind: Group
97
apiGroup: rbac.authorization.k8s.io
108
name: 'system:serviceaccounts:$(namespace)'

0 commit comments

Comments
 (0)