Installing jupyterhub via helm 3

I’m following the zero to JH on K8s and getting an error when trying to install Jupyterhub.
I can’t figure out the cause…

Command:
NAMESPACE=jhubs
RELEASE=jhubs
helm upgrade --cleanup-on-fail --install $RELEASE jupyterhub/jupyterhub --namespace $NAMESPACE --create-namespace --version=0.9.0 --values config.yaml --timeout=15m0s

Error: failed pre-install: timed out waiting for the condition

========================================================================
kubectl get pods -n jhubs
NAME READY STATUS RESTARTS AGE
hook-image-awaiter-fkvhk 0/1 Error 0 8m41s
hook-image-awaiter-gxnck 0/1 Error 0 25m
hook-image-awaiter-hdbfc 0/1 Error 0 11m
hook-image-awaiter-jnwx2 0/1 Error 0 14m
hook-image-awaiter-ldxgj 0/1 Error 0 22m
hook-image-awaiter-n4nn8 0/1 Error 0 17m
hook-image-awaiter-t2zv2 0/1 Error 0 20m
hook-image-puller-7gz47 1/1 Running 0 25m
hook-image-puller-bbkxr 1/1 Running 0 25m

========================================================================

kubectl logs hook-image-awaiter-fkvhk -n jhubs
2020/10/02 22:25:00 Get https://10.96.0.1:443/apis/apps/v1/namespaces/jhubs/daemonsets/hook-image-puller: dial tcp 10.96.0.1:443: getsockopt: connection timed out

========================================================================
K8s version
kubeadm version: &version.Info{Major:“1”, Minor:“19”, GitVersion:“v1.19.2”, GitCommit:“f5743093fd1c663cb0cbc89748f730662345d44d”, GitTreeState:“clean”, BuildDate:“2020-09-16T13:38:53Z”, GoVersion:“go1.15”, Compiler:“gc”, Platform:“linux/amd64”}

kubectl version:
Client Version: version.Info{Major:“1”, Minor:“19”, GitVersion:“v1.19.2”, GitCommit:“f5743093fd1c663cb0cbc89748f730662345d44d”, GitTreeState:“clean”, BuildDate:“2020-09-16T13:41:02Z”, GoVersion:“go1.15”, Compiler:“gc”, Platform:“linux/amd64”}
Server Version: version.Info{Major:“1”, Minor:“19”, GitVersion:“v1.19.2”, GitCommit:“f5743093fd1c663cb0cbc89748f730662345d44d”, GitTreeState:“clean”, BuildDate:“2020-09-16T13:32:58Z”, GoVersion:“go1.15”, Compiler:“gc”, Platform:“linux/amd64”}

Hello, If you are still interested, I had the same error recently and disable the prepulling of the image works for me.

https://zero-to-jupyterhub.readthedocs.io/en/latest/administrator/optimization.html#pulling-images-before-users-arrive

1 Like