I am trying to mount local directory to spawned jupyterlab with kubernetes, but spawner freezes on last
- I created cluster with with kind:
kind create cluster --config ./multinode-conf.yaml --name jupyter
- I have default storageclass output:
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
standard (default) rancher.io/local-path Delete WaitForFirstConsumer false 87s
- created namespace:
kubectl create namespace jupyter
- installed helm:
helm install jhub-datascience jupyterhub/jupyterhub -f scipy-jhub-values-kind.yaml -n jupyter --timeout 180s
- output of kubectl get pods
NAME READY STATUS RESTARTS AGE
continuous-image-puller-mflnt 1/1 Running 0 11s
continuous-image-puller-pzm56 1/1 Running 0 11s
hub-54cc8f7c5c-v4xch 0/1 ContainerCreating 0 11s
proxy-7699bccdcb-t6wfc 1/1 Running 0 11s
user-scheduler-5498fc849d-ggv8h 0/1 ContainerCreating 0 11s
user-scheduler-5498fc849d-ql9bm 1/1 Running 0 11s
user-scheduler-5498fc849d-ggv8h 0/1 Running 0 12s
user-scheduler-5498fc849d-ggv8h 1/1 Running 0 14s
hub-54cc8f7c5c-v4xch 0/1 Running 0 21s
- Event log freezed on
Event log
Server requested
2022-09-21T21:16:00.492361Z [Normal] Successfully assigned jupyter/jupyter-myname to jupyter-worker
2022-09-21T21:16:01Z [Normal] Container image "jupyterhub/k8s-network-tools:2.0.0" already present on machine
2022-09-21T21:16:01Z [Normal] Created container block-cloud-metadata
2022-09-21T21:16:01Z [Normal] Started container block-cloud-metadata
2022-09-21T21:16:02Z [Normal] Container image "miykael/nipype_tutorial:latest" already present on machine
2022-09-21T21:16:02Z [Normal] Created container notebook
2022-09-21T21:16:03Z [Normal] Started container notebook
2022-09-21T21:16:04Z [Warning] Back-off restarting failed container
How should be error on mount error?
scipy-jhub-values-kind.yaml:
# imagePullSecret is configuration to create a k8s Secret that Helm chart's pods
# can get credentials from to pull their images.
imagePullSecret:
create: true
automaticReferenceInjection: true
registry: docker-registry
username: ## <<Change to your User Name>>
email: ## <<Change to your Email>>
password: ## <<Change to your Pass>>
hub:
service:
type: ClusterIP
deploymentStrategy:
type: Recreate
db:
type: sqlite-pvc
upgrade:
pvc:
accessModes:
- ReadWriteOnce
storage: 3Gi
storageClassName: standard ## <Change to your Storage Class>
singleuser:
image:
name: miykael/nipype_tutorial
tag: latest
memory:
limit: 3G
guarantee: 2.5G
defaultUrl: "/lab"
storage:
type: dynamic
extraVolumes:
- name: local-mount
hostPath:
path: /home/myname/neuroml_course_data
extraVolumeMounts:
- name: local-mount
mountPath: /data # where each user can reach the shared data
readOnly: true
proxy:
service:
type: ClusterIP
secretToken: d292ed1a5f212fb2e31fca0a4a34257932d67c5384150f7d94d1538bfc42b1c8
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
networking:
apiServerAddress: "127.0.0.1"
apiServerPort: 6443
nodes:
- role: control-plane
- role: worker
extraMounts:
- hostPath: /home/myname/neuroml_course_data
containerPath: /data
- role: worker
extraMounts:
- hostPath: /home/myname/neuroml_course_data
containerPath: /data