forked from 2i2c-org/infrastructure
-
Notifications
You must be signed in to change notification settings - Fork 0
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 notes on which values.yaml is needed by binderhub #3
Draft
yuvipanda
wants to merge
1
commit into
cleanup-1
Choose a base branch
from
what-should
base: cleanup-1
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,7 +59,7 @@ jupyterhub: | |
enabled: false | ||
repo: "" | ||
branch: "" | ||
2i2c: | ||
2i2c: # Needed in binderhub as we have auth | ||
# Should 2i2c engineering staff user IDs be injected to the admin_users | ||
# configuration of the JupyterHub's authenticator by our custom | ||
# jupyterhub_config.py snippet as declared in hub.extraConfig? | ||
|
@@ -79,7 +79,7 @@ jupyterhub: | |
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
ingress: | ||
ingress: # Needed in binderhub as we have https | ||
enabled: true | ||
annotations: | ||
nginx.ingress.kubernetes.io/proxy-body-size: 256m | ||
|
@@ -111,10 +111,10 @@ jupyterhub: | |
hook: | ||
enabled: false | ||
proxy: | ||
service: | ||
service: # needed in binderhub as we use ingress | ||
type: ClusterIP | ||
chp: | ||
nodeSelector: | ||
nodeSelector: # needed in binderhub as we want to use different kinds of nodes | ||
hub.jupyter.org/node-purpose: core | ||
resources: | ||
requests: | ||
|
@@ -127,7 +127,7 @@ jupyterhub: | |
traefik: | ||
image: | ||
tag: v2.4.8 | ||
nodeSelector: | ||
nodeSelector: # needed in binderhub as we want to use different kinds of nodes | ||
hub.jupyter.org/node-purpose: core | ||
resources: | ||
requests: | ||
|
@@ -145,7 +145,7 @@ jupyterhub: | |
# By default, /bin/sh is used as shell for terminals, not /bin/bash | ||
# Most people do not expect this, so let's match expectation | ||
SHELL: /bin/bash | ||
extraFiles: | ||
extraFiles: # needed in binderhub as we use it to cull idle pods | ||
jupyter_notebook_config.json: | ||
mountPath: /usr/local/etc/jupyter/jupyter_notebook_config.json | ||
# if a user leaves a notebook with a running kernel, | ||
|
@@ -165,7 +165,7 @@ jupyterhub: | |
cull_connected: true | ||
startTimeout: 600 # 10 mins, because sometimes we have too many new nodes coming up together | ||
defaultUrl: /tree | ||
nodeSelector: | ||
nodeSelector: # needed in binderhub as we have different types of nodes | ||
hub.jupyter.org/node-purpose: user | ||
image: | ||
name: quay.io/2i2c/2i2c-hubs-image | ||
|
@@ -202,7 +202,7 @@ jupyterhub: | |
# node can fit 160 user pods, and since kubernetes already caps us at 100 pods a node, | ||
# this guarantee doesn't actually change our scheduling. | ||
guarantee: 0.05 | ||
networkPolicy: | ||
networkPolicy: # needed in binderhub as we want to enforce networkpolicy. Should be upstreamed for z2jh 2 | ||
# Allow unrestricted access to the internet but not local cluster network | ||
enabled: true | ||
egress: | ||
|
@@ -248,18 +248,18 @@ jupyterhub: | |
app.kubernetes.io/component: traefik | ||
hub: | ||
config: | ||
JupyterHub: | ||
JupyterHub: # needed in binderhub because we want prometheus | ||
# Allow unauthenticated prometheus requests | ||
# Otherwise our prometheus server can't get hub metrics | ||
authenticate_prometheus: false | ||
KubeSpawner: | ||
KubeSpawner: # needed in binderhub because we want $HOME to work and sudo to not | ||
# Make sure working directory is ${HOME} | ||
working_dir: /home/jovyan | ||
extra_container_config: | ||
securityContext: | ||
# Explicitly disallow setuid binaries from working inside the container | ||
allowPrivilegeEscalation: false | ||
Authenticator: | ||
Authenticator: # needed in binderhub, dependent on how we do health checks | ||
# Don't allow test username to login into the hub | ||
# The test service will still be able to create this hub username | ||
# and start their server. | ||
|
@@ -314,17 +314,17 @@ jupyterhub: | |
# tests against a hub, we read this token from the k8s Secret to acquire | ||
# the credentials needed to interacting with the JupyterHub API. | ||
# | ||
hub-health: | ||
hub-health: # needed in binderhub because we want health checks | ||
# FIXME: With JupyterHub 2 we can define a role for this service with | ||
# more tightly scoped permissions based on our needs. | ||
# | ||
admin: true | ||
image: | ||
name: quay.io/2i2c/pilot-hub | ||
tag: "0.0.1-n3027.h52c5e2a" | ||
nodeSelector: | ||
nodeSelector: # needed in binderhub because we have different types of nodes | ||
hub.jupyter.org/node-purpose: core | ||
networkPolicy: | ||
networkPolicy: # needed in binderhub because we want netpol | ||
enabled: true | ||
ingress: | ||
- from: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are using the dask-gateway chart directly in binderhub, and I don't think that depends on the z2jh helm chart. So how should we copy these values over?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably need to wrap everything in a block like