From e7e6c6686226f3ac0d6a0b6b3cac4598b69d9a15 Mon Sep 17 00:00:00 2001 From: Moritz Graf Date: Sat, 3 Oct 2020 18:54:57 +0200 Subject: [PATCH] Jupyter running including extended body size --- k8s/README.md | 12 ++++++++++++ k8s/datalab/jupyter-values.yaml | 29 ++++++++++++++++++++++++++++ k8s/ingress-nginx/ingress-nginx.yaml | 2 ++ 3 files changed, 43 insertions(+) create mode 100644 k8s/datalab/jupyter-values.yaml diff --git a/k8s/README.md b/k8s/README.md index 0a3c1ca..54d5b62 100644 --- a/k8s/README.md +++ b/k8s/README.md @@ -264,6 +264,18 @@ helm upgrade --install nextcloud-phpmyadmin bitnami/phpmyadmin -n nextcloud -f n ### backup & restore +#TODO + +## Jupyter + +Using the project [zero-to-jupyterhub](https://zero-to-jupyterhub.readthedocs.io/en/latest/setup-jupyterhub/setup-jupyterhub.html). Helm chart can be found [here](https://github.com/jupyterhub/zero-to-jupyterhub-k8s/tree/master/jupyterhub). + +```sh +helm repo add jupyterhub https://jupyterhub.github.io/helm-chart/ +helm upgrade --cleanup-on-fail --install jupyter jupyterhub/jupyterhub --namespace datalab --values datalab/jupyter-values.yaml + +``` + ## mailu Using the [mailu helm chart](https://github.com/Mailu/helm-charts/tree/master/mailu). diff --git a/k8s/datalab/jupyter-values.yaml b/k8s/datalab/jupyter-values.yaml new file mode 100644 index 0000000..ccf5778 --- /dev/null +++ b/k8s/datalab/jupyter-values.yaml @@ -0,0 +1,29 @@ +auth: + dummy: + password: ko3lei5EiW + whitelist: + users: + - fabi + - mop + +proxy: + service: + type: ClusterIP + secretToken: 1d82f77641d097ae362f9fa684ce1629956b3c036f01ac91dc9112aa718cdbe9 + +singleuser: + #defaultUrl: "/lab" + image: + name: "jupyter/tensorflow-notebook" + tag: latest + +ingress: + enabled: true + hosts: + - "jupyter.haumdaucher.de" + annotations: + cert-manager.io/cluster-issuer: letsencrypt-prod + tls: + - hosts: + - jupyter.haumdaucher.de + secretName: jupyter-haumdaucher-de diff --git a/k8s/ingress-nginx/ingress-nginx.yaml b/k8s/ingress-nginx/ingress-nginx.yaml index 70cffec..35a6716 100644 --- a/k8s/ingress-nginx/ingress-nginx.yaml +++ b/k8s/ingress-nginx/ingress-nginx.yaml @@ -7,3 +7,5 @@ controller: useHostPort: true dnsPolicy: ClusterFirstWithHostNet reportNodeInternalIp: true + configAnnotations: + nginx.ingress.kubernetes.io/proxy-body-size: 10m