Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions hub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ etcJupyter:
# https://github.com/jupyter/jupyter/issues/174
# https://github.com/ipython/ipython/issues/9163
db_file: ":memory:"
NotebookApp:
authenticate_prometheus: false
ResourceUseDisplay:
disable_legacy_endpoint: true

nfsPVC:
enabled: true
Expand Down Expand Up @@ -114,6 +118,10 @@ jupyterhub:
SHELL: /bin/bash
startTimeout: 600 # 10 mins, because sometimes we have too many new nodes coming up together
defaultUrl: /tree
extraAnnotations:
prometheus.io/scrape: "true"
prometheus.io/path: "/user/{username}/metrics"
prometheus.io/port: "8888"
networkPolicy:
# In clusters with NetworkPolicy enabled, do not
# allow outbound internet access that's not DNS, FTP, HTTP or HTTPS
Expand All @@ -134,6 +142,20 @@ jupyterhub:
# Allow FTP access https://github.com/berkeley-dsep-infra/datahub/issues/1789
- port: 21
protocol: TCP
# Allow ingress from promethetheus scraper in support namespace
# This lets us get notebook metrics!
ingress:
- ports:
- port: 8888
protocol: TCP
from:
- namespaceSelector:
matchLabels:
name: support
podSelector:
matchLabels:
app: prometheus
component: server
auth:
google:
hostedDomain: [berkeley.edu]
Expand Down Expand Up @@ -161,6 +183,13 @@ jupyterhub:
- namespaceSelector:
matchLabels:
name: support
podSelector:
matchLabels:
app: prometheus
component: server
ports:
- port: http
protocol: TCP
livenessProbe:
enabled: true
initialDelaySeconds: 180
Expand Down