Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate kind into local deployment to no longer require minikube for development #1171

Merged
merged 15 commits into from Aug 9, 2022

Conversation

costrouc
Copy link
Member

@costrouc costrouc commented Mar 18, 2022

This PR aims to significantly simplify development of qhub for local deployment using kind. Kind will also allow us to test multinode setups locally.

This PR is a work in progress and to me uses the actual meaning of provider: local implying that a local kubernetes cluster will be spun up. I suggest we change the prior provider: local -> provider: existing.

The load balancer is automatically configured in the qhub deploy stage 02-infrastructure/local meaning that the script/metallb ... is no longer required. Also make the only assumption for a local deployment that there is docker.

@costrouc costrouc added this to the Future Release v0.4.x milestone Mar 18, 2022
@costrouc
Copy link
Member Author

This PR will not work until we move the images to a separate repo and have them pre built

@viniciusdc viniciusdc added the status: in progress 🏗 This task is currently being worked on label Mar 21, 2022
@viniciusdc viniciusdc added the status: blocked ⛔️ This item is on hold due to another task label May 26, 2022
@viniciusdc
Copy link
Contributor

@iameskild how is the work with the docker images? is this unblocked now?

@iameskild
Copy link
Member

@viniciusdc the PR to transfer images has been submitted, reviewed and is awaiting final approval :)

@viniciusdc
Copy link
Contributor

As the docker images are now transferred over, we can work on this again. I've prioritized integrating this as part of nebari-dev/nebari-docker-images#2. This will help split up the dependencies for a full integrated Kubernetes tests from a Jupyterlab/Jupyterhub one (anything that only requires a simple ecosystem built)

@viniciusdc viniciusdc removed the status: blocked ⛔️ This item is on hold due to another task label Aug 4, 2022
As the original docker build pipeline was moved to a separate repo,
those changes need to be reflected in the workflow as well:

- Update docker image labels and registry (hardcoded to main)
- Remove docker build stage, added docker pull in place

use bash loop for docker pull

fix looping bash syntax
there is no kind config yet

switch image tags to test kind load

Run test

Run test

fix formating issue

fix formating issue
@viniciusdc viniciusdc added needs: review 👀 This PR is complete and ready for reviewing and removed status: in progress 🏗 This task is currently being worked on labels Aug 5, 2022
@viniciusdc
Copy link
Contributor

@costrouc could you have a look? I will change add the existing name change in a separate PR later.

minikube version
kubectl version
- name: Use minikube docker daemon
images=${{ env.image_names }}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is double work. We should remove all the docker pull and kind load since kubernetes will pull as needed

@viniciusdc
Copy link
Contributor

Hi @costrouc, I added a new deployment mode to qhub deploy that copies over the previous behavior of local. I've tested the new existing with Minikube and all succeed (deploy and destroy).

Copy link
Member Author

@costrouc costrouc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@viniciusdc thanks for pushing this PR through the finish line. This looks good to me. My concern is that we will need to mention the breakage of local -> existing but we will do this in the docs and I do not believe that many groups are depending on this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: review 👀 This PR is complete and ready for reviewing
Projects
Status: Done 💪🏾
Development

Successfully merging this pull request may close these issues.

None yet

5 participants