# Host localhost webbapp from jupyterpod in kubernetes

**URL:** <https://discourse.jupyter.org/t/host-localhost-webbapp-from-jupyterpod-in-kubernetes/25184>\
**Category:** JupyterHub\
**Created:** [April 15, 2024, 8:33am UTC](https://discourse.jupyter.org/t/host-localhost-webbapp-from-jupyterpod-in-kubernetes/25184 "2024-04-15T08:33:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Enzawdo](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/enzawdo/32/13097_2.png) [@Enzawdo](https://discourse.jupyter.org/u/Enzawdo)\
**Post date:** [April 15, 2024, 8:33am UTC](https://discourse.jupyter.org/t/host-localhost-webbapp-from-jupyterpod-in-kubernetes/25184/1 "2024-04-15T08:33:56Z")

</div>

Hi!  
I’m trying to make it so that users that has spawned a jupyterpod can host webapplications.  
I have two ideas:

1. Edit so that each pod spawns with a service.
2. Edit so the pod spawns with two URL’s, one that consits with the jupyter application and one that is empty so the user can host webapp on it.

---

<div class="post-metadata">

**Author:** ![consideRatio](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/consideratio/32/1033_2.png) [@consideRatio](https://discourse.jupyter.org/u/consideRatio)\
**Post date:** [April 15, 2024, 8:40am UTC](https://discourse.jupyter.org/t/host-localhost-webbapp-from-jupyterpod-in-kubernetes/25184/2 "2024-04-15T08:40:56Z")

</div>

Related tech: [GitHub - jupyterhub/jupyter-server-proxy: Jupyter notebook server extension to proxy web services.](https://github.com/jupyterhub/jupyter-server-proxy)

---

<div class="post-metadata">

**Author:** ![Enzawdo](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/enzawdo/32/13097_2.png) [@Enzawdo](https://discourse.jupyter.org/u/Enzawdo)\
**Post date:** [April 15, 2024, 2:00pm UTC](https://discourse.jupyter.org/t/host-localhost-webbapp-from-jupyterpod-in-kubernetes/25184/4 "2024-04-15T14:00:32Z")

</div>

Thank you! I have built jupyter-server-proxt:4.1.2 into an image based on this image “jupyter/datascience-notebook:hub-4.0.2” but the extension doesn’t seem to work… I tried to host a basic flask app on 127.0.0.1:4567 but i couldnt connect to it. And i can’t seem to find the Rstudio and Shiny extension 😕

I have checked the pip versions off notebook and jupyter lab and they are  
notebook 7.1.2  
jupyterlab 4.1.5

---

<div class="post-metadata">

**Author:** ![Enzawdo](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/enzawdo/32/13097_2.png) [@Enzawdo](https://discourse.jupyter.org/u/Enzawdo)\
**Post date:** [April 15, 2024, 3:03pm UTC](https://discourse.jupyter.org/t/host-localhost-webbapp-from-jupyterpod-in-kubernetes/25184/5 "2024-04-15T15:03:33Z")

</div>

Basically i have the same issue as this post  
[Use jupyter-server-proxy with hub in kubernetes - JupyterHub / Zero to JupyterHub on Kubernetes - Jupyter Community Forum](https://discourse.jupyter.org/t/use-jupyter-server-proxy-with-hub-in-kubernetes/19262/4)

---

<div class="post-metadata">

**Author:** ![consideRatio](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/consideratio/32/1033_2.png) [@consideRatio](https://discourse.jupyter.org/u/consideRatio)\
**Post date:** [April 15, 2024, 3:47pm UTC](https://discourse.jupyter.org/t/host-localhost-webbapp-from-jupyterpod-in-kubernetes/25184/6 "2024-04-15T15:47:36Z")

</div>

/user/name-here/proxy/8888

With jupyter-server-proxy installed and enabled as a jupyter server extension, that takes you to a localhost webserver if listening to port 8888.

---

<div class="post-metadata">

**Author:** ![Enzawdo](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/enzawdo/32/13097_2.png) [@Enzawdo](https://discourse.jupyter.org/u/Enzawdo)\
**Post date:** [April 16, 2024, 9:00am UTC](https://discourse.jupyter.org/t/host-localhost-webbapp-from-jupyterpod-in-kubernetes/25184/7 "2024-04-16T09:00:07Z")

</div>

Thank you so much! I noticed that my webapp was wrong so thats why it didnt work 🙂
