-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add support for Tolerations and Affinity in Notebooks #5237
Add support for Tolerations and Affinity in Notebooks #5237
Conversation
Hi @thesuperzapper. Thanks for your PR. I'm waiting for a kubeflow member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I have a significant cleanup of the notebook UI which I will create PR for after this gets merged. |
or perhaps @kimwnasptd |
@thesuperzapper I'll take a stab at this shortly. One first quick comment is that from now on, I think, it would make sense to see how we could refactor the UI and not have the form grow indefinitely in height. |
With a first look at the code it looks good, nice work @thesuperzapper! I'll also be deploying the web app locally to make further testing and will report back |
/ok-to-test |
@kimwnasptd can we get this merged, I have a massive re-write of the UI which depends on these commits. |
Tested the code and it works as expected. Thanks for the PR @thesuperzapper, this is a functionality that a lot of user will use.
We will have to coordinate on this, since I'm also planning on sending PRs for a rewrite I've done on the entire app in order to utilize the common code #5164 #5252 between the other web apps, for Tensorboards #3578 and a future Volumes web app #4758. I'll also be submitting a PR for creating a Notebooks WG so we can discuss this in this new work group's calls. If you'd like to start this discussion sooner then lets create an issue for the rewrite of the app and discuss there. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kimwnasptd The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Also @thesuperzapper could you create another PR in the manifests to update the config.yaml there as well? |
I'm just deploying v1.2 using the istio manifest and using the Dex manifest, but I do not see this UI change.. Should I expect to see a UI similar to the one depicted here or has that been punted to v1.3 given all the other related UI rewrites? |
@supertetelman It seems to be intended as there is a line in the official blog post telling that The artifacts for the updated Notebooks web app will be available in 1.2.1 or later You can still make use of this feature by bumping jupyter-web-app image version to |
@supertetelman @fakeburst you are correct that you need to use However, that image was intended for Kubeflow 1.2 (so I will try and get that fixed). For now, you can edit the apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- XXXXX
# ----------------
# ↓ our changes ↓
# ----------------
images:
- name: gcr.io/kubeflow-images-public/jupyter-web-app
newName: gcr.io/kubeflow-images-public/jupyter-web-app
newTag: vmaster-ge4456300 |
Hi @thesuperzapper, The new image has been pulled (it says already exist because I have redeployed that pod a few times to see if it makes any difference - it didn't): |
Please ignore, I needed to clean the browser cache to see the changed UI. |
* add tolerationGroup configs to notebook form * add affinity configs to notebook form
* add tolerationGroup configs to notebook form * add affinity configs to notebook form
This PR adds support for toleration and affinity configs in the Notebook Spawner UI.
Resolves: #4433
Options presented to the user are specified inside
spawner_ui_config.yaml
. This example config allows users to ask for exclusive access to a node within node-pool callednotebook-n1-standard-2
:Here is a picture: