Free AI web copilot to create summaries, insights and extended knowledge, download it at here
2321
Abstract
ssauravjs/e4055ce3352cc62b1cd45bab0bd51d41.js" allowfullscreen="" frameborder="0" height="undefined" width="undefined">
</div>
</div>
</figure></iframe></div></div></figure><p id="215b"><i>saurssaurav/fusesingleuser:latest</i> is image derived from <i>jupyterhub/singleuse</i>r. You can use <i>jupyterhub/singleuser:latest</i> instead.</p><ol><li>Use Below command to create configmap named <b>jupyterhub-config </b>of jupyterhub_config.py</li></ol><div id="deac"><pre>kubectl <span class="hljs-built_in">create</span> configmap jupyterhub-<span class="hljs-built_in">config</span> <span class="hljs-comment">--from-file=./jupyterhub_config.py</span></pre></div><p id="0c81">To check if configmap exits</p><div id="d759"><pre>kubectl <span class="hljs-built_in">get</span> configmap -o yaml</pre></div><p id="6fe0">2. Now time to deploy deployment.yaml.</p><div id="eb02"><pre>kubectl <span class="hljs-built_in">apply</span> -f deployment.yaml</pre></div><figure id="0429"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*A_J3DcLOPVTjBlmRJJ_Ihw.jpeg"><figcaption></figcaption></figure><p id="eacb">3. Get a External-IP of the jupyterhub service</p><div id="0999"><pre>kubectl <span class="hljs-built_in">get</span> service</pre></div><figure id="0a60"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*yV_hfD6LxGHq5aFAoffv9g.jpeg"><figcaption></figcaption></figure><p id="e3a0">It may take sometime for external IP to generate.</p><h1 id="405c">Part Three : Set a callback-URL and redeploy</h1><p id="67da">1. Open deployment.yaml and add the external ip of cluster into <b>OAUTH_CALLBACK_URL’s </b>key as show below.</p><div id="6b35"><pre><span class="hljs-symbol"> name:</span> OAUTH_CALLBACK_URL
<span class="hljs-symbol"> value:</span> <span class="hljs-string">"http://<external-ip>:8000/hub/oauth_callback"</span></pre></div><p id="c757">2. Add <a href="http://35.192.13.208:8000/hub/oauth_callback"><b>http://<external-ip>:8000/hub/oauth_callback</external-ip></b></a><b> </b>in auth0 Allowed Callback URLs</p><figure id="97b7"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*twfzLzzN1diKr4E5DnZVlg.jpeg"><figcaption></figcaption></figure><p id="0fad">3. Re-deploy a deployment.yaml file</p><div
Options
id="7683"><pre>kubectl <span class="hljs-keyword">delete</span> deployment jupyterhub</pre></div><div id="de19"><pre>kubectl apply -f deployment<span class="hljs-selector-class">.yaml</span>
<span class="hljs-comment">// you must be in deployment.yaml file destination</span></pre></div><figure id="369f"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*RfBlY08TAoQQPnXMgR6_UA.jpeg"><figcaption></figcaption></figure><p id="77c1">4. Browse a <b>http://<external-ip>:8000</b> into Browser. Jupyterhub should be up and running.</p><figure id="a0fe"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*JjOjtDi331qBKUGNmitB4A.jpeg"><figcaption></figcaption></figure><h1 id="780f">Conclusion</h1><p id="60a0">If you have any queries, mail me in <b>[email protected].</b></p><div id="e95d" class="link-block">
<a href="https://readmedium.com/jupyterhub-with-nginx-ingress-on-google-kubernetes-engine-b4017aefa7e4">
<div>
<div>
<h2>JupyterHub with Nginx Ingress on Google Kubernetes Engine.</h2>
<div><h3>After going through many blogs, documents and videos, I still had a hard time for setting up Nginx Ingress on Google…</h3></div>
<div><p>medium.com</p></div>
</div>
<div>
<div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*U_lhp_O8a5hWcM6-PHTNbw.jpeg)"></div>
</div>
</div>
</a>
</div><h1 id="bf5e">Setup a Jupyterhub in GCP with OAuth and HTTPS using Helm.</h1><div id="71b3" class="link-block">
<a href="https://readmedium.com/jupyterhub-in-googles-cloud-platform-with-github-oauth-and-https-using-helm-part-i-749b2f093d4a">
<div>
<div>
<h2>JupyterHub in Google’s Cloud Platform with Github OAuth and HTTPS using Helm. Part I</h2>
<div><h3>Simple guide to setup a JupyterHub using Helm.</h3></div>
<div><p>medium.com</p></div>
</div>
<div>
<div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*v_lw4i5gkuYTe0u4YQ5KRA.jpeg)"></div>
</div>
</div>
</a>
</div></article></body>