Closed orboan closed 2 years ago
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:
The unreleased version has switched to kubernetes_asyncio
client from kubernetes
client. You may have your code function by simply replacing kubernetes
with kubernetes_asyncio
in the import.
IMPORTANT: If you are using the helm chart version 1.2.0, you should use the docker image for version 1.2.0 as a base, not building from the main branch's Dockerfile. If you are using the latest dev release of the Helm chart, you should use its configured docker image as a base image etc! Make sure you don't try use a hub image that doesn't match the helm chart's version.
Bug description
After docker image is built using:
./zero-to-jupyterhub-k8s/images/hub/Dockerfile
from the latest commit in the main branch.
And after deploying it using next config.yaml:
Jupyterhub is loading with no problem (I needed to add
pip install kubernetes
to the Dockerfile, as it is a missing required library), but when spawning the jupyterlab image, I get:Spawn failed: Expected object of type 'dict' (or 'V1Container') but got 'V1Container'.
The command used for deployment is:
Expected behaviour
The jupyterlab image spawns properly.
Do not know what could be the cause. This has started to happen after I built a new docker image of jupyterhub from the latest Dockerfile found in the main branch of the repo. And after upgrading from version 1.1.3 to 1.2.0 of the helm chart.
Actual behaviour
Does not spawn the jupyterlab image. It shows the error:
Spawn failed: Expected object of type 'dict' (or 'V1Container') but got 'V1Container'.
The hub pod logs are next:
How to reproduce
Follow my explanation above.
Your personal set up
This is a deployment of jupyterhub in a on-premises kubernetes cluster, built using kubeadm.
Full environment
``` # paste output of `pip freeze` or `conda list` here ```Configuration
```python # jupyterhub_config.py ```Logs
``` # paste relevant logs here, if any ```