From 3d106702bb8288dd77173779a9c7408f8ca34646 Mon Sep 17 00:00:00 2001 From: Haw-minn Lu Date: Tue, 27 Mar 2018 13:34:45 -0700 Subject: [PATCH 1/2] Add nodePorts to config options --- jupyterhub/templates/hub/service.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jupyterhub/templates/hub/service.yaml b/jupyterhub/templates/hub/service.yaml index 1e445b3705..8bdecd4802 100644 --- a/jupyterhub/templates/hub/service.yaml +++ b/jupyterhub/templates/hub/service.yaml @@ -13,3 +13,6 @@ spec: - protocol: TCP port: 8081 targetPort: 8081 + {{ if .Values.hub.service.ports.nodePort -}} + nodePort: {{ .Values.hub.service.ports.nodePort }} + {{- end }} From c9a2d47c1e70c2ee4c07e4cd84baea90beafee7a Mon Sep 17 00:00:00 2001 From: Haw-minn Lu Date: Tue, 27 Mar 2018 14:46:43 -0700 Subject: [PATCH 2/2] Add some default values for hub.service.ports.nodePort --- jupyterhub/values.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jupyterhub/values.yaml b/jupyterhub/values.yaml index 5ba40b9d78..dccef3e618 100644 --- a/jupyterhub/values.yaml +++ b/jupyterhub/values.yaml @@ -1,6 +1,8 @@ hub: service: type: ClusterIP + ports: + nodePort: baseUrl: / cookieSecret: publicURL: