From d334afa51b3d4dd7406228af872bd6f5babc355a Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Tue, 16 Jan 2024 15:04:44 +0100 Subject: [PATCH] Moar config :P --- .../charts/jupyterhub/templates/hub/deployment.yaml | 2 ++ jupyter/base/values/values.yaml | 13 +++++++++++++ 2 files changed, 15 insertions(+) diff --git a/jupyter/base/charts/jupyterhub/templates/hub/deployment.yaml b/jupyter/base/charts/jupyterhub/templates/hub/deployment.yaml index d6e1c63..2110654 100644 --- a/jupyter/base/charts/jupyterhub/templates/hub/deployment.yaml +++ b/jupyter/base/charts/jupyterhub/templates/hub/deployment.yaml @@ -211,6 +211,8 @@ spec: ports: - name: http containerPort: 8081 + - name: refresh-token + containerPort: 8082 {{- if .Values.hub.livenessProbe.enabled }} {{- /* NOTE: We don't know how long hub database upgrades could take so having a diff --git a/jupyter/base/values/values.yaml b/jupyter/base/values/values.yaml index 79bd9c3..82df309 100644 --- a/jupyter/base/values/values.yaml +++ b/jupyter/base/values/values.yaml @@ -1,4 +1,17 @@ hub: + networkPolicy: + ingress: + - ports: + - port: 8082 + from: + - podSelector: + matchLabels: + hub.jupyter.org/network-access-hub: "true" + service: + extraPorts: + - port: 8082 + targetPort: 8082 + name: refresh-token config: Authenticator: auto_login: true