Custom kernel pod created from docker-stacks images terminates with 'Succeeded' so cannot connect #1274
-
What works:
shows up in the list of kernels, runs without terminating, and executes a user command such as
What doesn't work: deploying a custom python kernel based on docker-stacks.
I've tried variations such as scipy-notebook, different versions thereof, installing pycryptodome with both root and jovyan, using the fix-permissions script, etc. What happens: A pod is spawned, but after the image finishes pulling, the pod terminates with status "Succeeded", then gets cleaned up. Instead, we want it to continue running so that Jupyter Server can connect to it. Other Notes:
Thanks! It's been really exciting to learn more about Jupyter Enterprise Gateway and its architecture! I'm rather new to k8s so better practices (how to get logs from these successful terminated pods) in relation to Gateway would be welcome too! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @citronella3alain. It's strange that you're having issues with basing your custom kernel images off docker-stacks images since that's precisely what we've done in EG. What tag are you using on your docker-stacks FYI, I contributed a new base image to docker-stacks for the sole purpose of deriving kernel images from that. The image is Also, you might find it easier to build kernel images using the tooling in gateway provisioners and these should be compatible as EG kernel images. |
Beta Was this translation helpful? Give feedback.
Hi @citronella3alain. It's strange that you're having issues with basing your custom kernel images off docker-stacks images since that's precisely what we've done in EG. What tag are you using on your docker-stacks
FROM
image? I ask because shortly after2022-01-24
, docker-stacks included health-check logic - which makes perfect sense for "notebook server" images (like those in docker-stacks), but not so much for kernels. As a result, we updated our Dockerfiles to disable the health check and I wonder if you didn't do that AND are using more recent base images if that's what is causing your issues.FYI, I contributed a new base image to docker-stacks for the sole purpose of deriving kerne…