Skip to content

Commit

Permalink
deploy custom DaskHub homepage (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-luna-valero authored Mar 11, 2024
1 parent 4f44334 commit 51d5715
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions providers/kubernetes/daskhub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,60 @@ rbac:

jupyterhub:
hub:
initContainers:
- name: git-clone-templates
image: alpine/git
args:
- clone
- --single-branch
- --branch=main
- --depth=1
- --
- https://github.com/pangeo-data/pangeo-eosc.git
- /etc/jupyterhub/custom
securityContext:
runAsUser: 1000
runAsGroup: 1000
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
volumeMounts:
- name: custom-templates
mountPath: /etc/jupyterhub/custom
- name: git-clone-static
image: alpine/git
args:
- clone
- --single-branch
- --branch=main
- --depth=1
- --
- https://github.com/pangeo-data/pangeo-eosc.git
- /usr/local/share/jupyterhub/static/custom
securityContext:
runAsUser: 1000
runAsGroup: 1000
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
volumeMounts:
- name: custom-static
mountPath: /usr/local/share/jupyterhub/static/custom
extraVolumes:
- name: custom-templates
emptyDir: {}
- name: custom-static
emptyDir: {}
extraVolumeMounts:
- name: custom-templates
mountPath: /etc/jupyterhub/custom
- name: custom-static
mountPath: /usr/local/share/jupyterhub/static/custom
extraConfig:
templates: |
c.JupyterHub.template_paths = ['/etc/jupyterhub/custom/templates']
# 01-add-message: |
# c.JupyterHub.template_vars = {'announcement_login': 'This DaskHub is currently under maintenance. ' +
# 'It means you cannot use it at the moment, sorry! ' +
Expand Down

0 comments on commit 51d5715

Please sign in to comment.