JupyterHub with Kubernetes And kubespawner on my local cluster

Hi Team,

I am a beginner in JupyterHub, looking forward for your guidance to achieve the requirement.
Objective: On-Prem Cluster, JupyterHub with Kubernetes And kubespawner
ENV Details:
1 Master, 1 Worker Node
Ubuntu 18 Server
~# kubectl version --short
Client Version: v1.15.11
Server Version: v1.15.11

helm version --short

Client: v2.16.6+gdd2e569
Server: v2.16.6+gdd2e569

Followed the steps as per the “https://zero-to-jupyterhub.readthedocs.io/en/stable/setup-jupyterhub/index.html

But Unable to browse the URL.

kubectl get pods --all-namespaces

NAMESPACE NAME READY STATUS RESTARTS AGE
jhub hub-65f767b4d7-x89gv 1/1 Running 0 83s
jhub proxy-579bf98b78-zq27p 1/1 Running 0 37m
kube-system calico-kube-controllers-56cd854695-7nk6w 1/1 Running 3 2d20h
kube-system calico-node-pr5dk 1/1 Running 3 2d20h
kube-system calico-node-wvmdl 1/1 Running 2 2d20h
kube-system coredns-5d4dd4b4db-9t5nn 1/1 Running 3 2d20h
kube-system coredns-5d4dd4b4db-zscl6 1/1 Running 3 2d20h
kube-system etcd-server11.local 1/1 Running 5 2d20h
kube-system kube-apiserver-server11.local 1/1 Running 6 2d20h
kube-system kube-controller-manager-server11.local 1/1 Running 6 2d20h
kube-system kube-proxy-s75hv 1/1 Running 2 2d20h
kube-system kube-proxy-ttnkc 1/1 Running 5 2d20h
kube-system kube-scheduler-server11.local 1/1 Running 6 2d20h
kube-system tiller-deploy-b8dddfb9d-hqb8s 1/1 Running 3 2d20h
kubernetes-dashboard dashboard-metrics-scraper-76679bc5b9-jcvjj 1/1 Running 3 2d20h
kubernetes-dashboard kubernetes-dashboard-7f9fd5966c-cvqbk 1/1 Running 3 2d20h

kubectl get service --namespace jhub

NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
hub ClusterIP 10.104.56.173 8081/TCP 2d20h
proxy-api ClusterIP 10.105.198.33 8001/TCP 2d20h
proxy-public LoadBalancer 10.104.214.106 80:30209/TCP,443:31602/TCP 2d20h

cat config.yaml

proxy:
secretToken: “8e55f67784be2c2db8ee8ef84ff88ff17b7c93d0011f46a5fea04ed4bff65da5”
hub:
allowNamedServers: true
hub:
db:
type: sqlite-memory

singleuser:
storage:
type: sqlite-memory

service:
type: NodePort
nodePorts:
http: 30902
https: 30031

debug:
enabled: true

kubectl --namespace=jhub describe svc proxy-public

Name: proxy-public
Namespace: jhub
Labels: app=jupyterhub
chart=jupyterhub-0.8.2
component=proxy-public
heritage=Tiller
release=jhub
Annotations:
Selector: component=proxy,release=jhub
Type: LoadBalancer
IP: 10.104.214.106
Port: http 80/TCP
TargetPort: 8000/TCP
NodePort: http 30209/TCP
Endpoints: 192.168.203.81:8000
Port: https 443/TCP
TargetPort: 443/TCP
NodePort: https 31602/TCP
Endpoints: 192.168.203.81:443
Session Affinity: None
External Traffic Policy: Cluster
Events:

kubectl --namespace=jhub describe svc hub

Name: hub
Namespace: jhub
Labels: app=jupyterhub
chart=jupyterhub-0.8.2
component=hub
heritage=Tiller
release=jhub
Annotations: prometheus.io/path: /hub/metrics
prometheus.io/scrape: true
Selector: app=jupyterhub,component=hub,release=jhub
Type: ClusterIP
IP: 10.104.56.173
Port: 8081/TCP
TargetPort: 8081/TCP
Endpoints: 192.168.203.85:8081
Session Affinity: None
Events:

Looking forward to your response.
How We can access the JupyterHub outside

Thank You
Atul Yadav

Hi,

From the looks of it, you did not create an ingress to associate your URL with your JupyterHub service.