diff --git a/jupyterhub/templates/proxy/service.yaml b/jupyterhub/templates/proxy/service.yaml index e96d0a05ee..350c155cb9 100644 --- a/jupyterhub/templates/proxy/service.yaml +++ b/jupyterhub/templates/proxy/service.yaml @@ -1,5 +1,6 @@ {{- $HTTPS := (and .Values.proxy.https.hosts .Values.proxy.https.enabled) }} {{- $autoHTTPS := (and $HTTPS (eq .Values.proxy.https.type "letsencrypt")) }} +{{- $offloadHTTPS := (and $HTTPS (eq .Values.proxy.https.type "offload")) }} {{- $manualHTTPS := (and $HTTPS (eq .Values.proxy.https.type "manual")) -}} apiVersion: v1 kind: Service @@ -58,6 +59,8 @@ spec: protocol: TCP {{- if $manualHTTPS }} targetPort: 8443 + {{- else if $offloadHTTPS }} + targetPort: 8000 {{- else }} targetPort: 443 {{- end }}