JupyterHub

No outside network access for Jupyter Notebook container spawned by JupyterHub

。_饼干妹妹 提交于 2020-02-02 16:08:17
问题 So, here is what I am trying to achieve: A Jupyterhub server Which when accessed and you are not logged in, takes you to another web server (custom coded in Django) That web server uses OAuth to authenticate a user And a notebook container is spawned. This notebook container must be pre-populated with a token that is used by a custom library baked into the notebook Docker image to authenticate against a service. The notebook container needs to be able to communicate with the web server for

在JupyterHub for K8s使用GlusterFS存储

 ̄綄美尐妖づ 提交于 2020-01-06 21:42:35
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 在Kubernetes中使用GlusterFS( https://www.gluster.org/ )有endpoint(外置存储)和heketi(k8s内置GlusterFS服务)两种方式。这里主要介绍使用endpoint将GlusterFS存储设置到JupyterHub for K8s中使用。为了简化起见,使用缺省的JupyterHub helm进行安装。按照《 快速设置JupyterHub for K8s 》安装后,会在Jupyterhub的安装命名空间下出现一个hub-db-dir的pvc,我将使用GlusterFS的volume来提供这个pvc。 1、创建GlusterFS的volume的endpoint 保存下面内容到文件0a-glusterfs-gvzr00-endpoint-jupyter.yaml: apiVersion: v1 kind: Endpoints metadata: name: glusterfs-gvzr00 namespace: jupyter subsets: - addresses: - ip: 10.1.1.193 - ip: 10.1.1.205 - ip: 10.1.1.112 ports: - port: 10000 protocol: TCP

Installing Jupyterhub hub pod is failing with no available volume zone

ⅰ亾dé卋堺 提交于 2020-01-06 08:12:19
问题 When trying to install Jupyterhub on Kubernetes (EKS) I am getting below error in the Hub pod. This is output of describe pod. There was similar issue reported and i tried the solution but it didn't work. Warning FailedScheduling 52s (x2 over 52s) default-scheduler 0/3 nodes are available: 1 Insufficient cpu, 2 node(s) had no available volume zone. This is my pvc.yaml kind: StorageClass apiVersion: storage.k8s.io/v1 metadata: name: standard annotations: volume.alpha.kubernetes.io/storage

Redirect from http port (80) to https port(443) on Kubernetes

社会主义新天地 提交于 2019-12-25 01:33:38
问题 i'm new to this, How can I redirect from http port(80) to https port(443) on the same domain(service) in Kubernetes. I've tried putting nginx on same pod(container) and redirecting from http to https but it didn't work. I tried this way on same pod //nginx server { listen 80; server_name example.com; return 301 https://$server_name$request_uri; } Kubernetes example deployment file. //Jupyterhub is running on port 8000. spec: ports: - port: 443 name: https protocol: TCP targetPort: 8000 - port

jupyter python notebook showing kernel error

六月ゝ 毕业季﹏ 提交于 2019-12-24 12:21:28
问题 I am accessing jupyterhub notebook through browser as it is running on a remote server(using nginx so that jupyterhub is accessible to client machines).When I access the notebook a kernel error is shown at the top of the screen. Jupyterhub and jupyter notebook is running on a kubernetes cluster and the jupyter notebook is a custom built docker image suitable for python programming. I am very new into python/jupyter hub/notebook, please suggest how to resolve the kernel error. 回答1: Please

Calling a web server inside Jupyterhub without connection failed

痴心易碎 提交于 2019-12-23 04:27:08
问题 My question is : How this Shiny R code mini web server in JupyterHub could work outside this server (i.e. <> localhost) ? ui <- fluidPage( textInput("caption", "Caption", "Data Summary"), verbatimTextOutput("value") ) server <- function(input, output) { output$value <- renderText({ input$caption }) } shinyApp(ui, server) Listening on http://127.0.0.1:4844 It works on the local server (127.0.0.1:4844) , but I doesn't work on http://192.168.x.x:4844 For information. I've installed Jupyter and

How to download all files and folder hierarchy from Jupyter Notebook?

不问归期 提交于 2019-12-20 10:58:00
问题 If I want to download all of the files and folder hierarchy from Jupyter Notebook as shown in the picture, do you know if there is anyway to do that by simple click other than go to every single file in every folder to open the file and click download hundreds of times? Note: This Jupyter Notebook is created by the online course teacher, so it's not opened from my local Acaconda app but the online course webpage instead. Downloading is for future memory refreshing whenever needed. 回答1: import

tensorflow gpu can not be called from jupyterhub/jupyter notebook, why?

倖福魔咒の 提交于 2019-12-20 02:07:22
问题 Well I figure eight hours is enough time trying to fix this on my own, so I'll just ask folks: I am running tensorflow-gpu 1.1.0 just fine in my virtual environment named 'tensorflow' outside of jupyterhub and Jupyter notebook. That is, I can import tensorflow and run scripts with it using the gpu. When I'm inside my tensorflow virtualenv and using jupyterhub, Jupyter can not seem to 'see' tensorflow. I get the following error: ImportError: libcublas.so.8.0: cannot open shared object file: No

基于Docker+Jupyter+Python的科学计算环境

跟風遠走 提交于 2019-12-17 19:43:32
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 原文地址: https://github.com/jupyter/docker-stacks/tree/master/scipy-notebook Jupyter Notebook Scientific Python Stack 基于Docker+Jupyter+Python的科学计算环境 ,提供快速部署的一站式科学计算Docker容器环境,可以快速开始数据分析。 打包内容 Jupyter Notebook 4.2.x Conda Python 3.x and Python 2.7.x environments pandas, matplotlib, scipy, seaborn, scikit-learn, scikit-image, sympy, cython, patsy, statsmodel, cloudpickle, dill, numba, bokeh pre-installed Unprivileged user jovyan (uid=1000, configurable, see options) in group users (gid=100) with ownership over /home/jovyan and /opt/conda tini as the container

Unable to deduce why one imagePuller pod of JuPyterhub fails while the rest three are successfully created

放肆的年华 提交于 2019-12-13 05:44:07
问题 I am deploying jupyterhub on a kubernetes cluster. In the config.yaml file, I am specifying a registry and the image tag. While 3 pods are successfully created, one is not. I could not find much content pertaining to jupyter-hub. The helm chart can be found here(https://jupyterhub.github.io/helm-chart/jupyterhub-0.8.2.tgz). My config for values.yaml is: proxy: secretToken: "some token" singleuser: image: name: acc_id.dkr.ecr.ap-south-1.amazonaws.com/demo tag: 12c lifecycleHooks: postStart: