From 8c16f7aa301fafbe1b6a623bbb7944802b2f1eb8 Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Thu, 18 Jan 2024 15:04:28 +0100 Subject: [PATCH] Add hostAliases to values --- .../base/charts/jupyterhub/templates/hub/deployment.yaml | 7 +++---- jupyter/base/values/values.yaml | 4 ++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/jupyter/base/charts/jupyterhub/templates/hub/deployment.yaml b/jupyter/base/charts/jupyterhub/templates/hub/deployment.yaml index 359e981..3ab373b 100644 --- a/jupyter/base/charts/jupyterhub/templates/hub/deployment.yaml +++ b/jupyter/base/charts/jupyterhub/templates/hub/deployment.yaml @@ -33,10 +33,9 @@ spec: {{- . | toYaml | nindent 8 }} {{- end }} spec: - hostAliases: - - ip: "127.0.0.1" - hostnames: - - "hub" + {{- with .Values.hub.hostAliases }} + {{- . | toYaml | nindent 6 }} + {{- end }} {{- if .Values.scheduling.podPriority.enabled }} priorityClassName: {{ include "jupyterhub.priority.fullname" . }} {{- end }} diff --git a/jupyter/base/values/values.yaml b/jupyter/base/values/values.yaml index d46ab13..7cd7776 100644 --- a/jupyter/base/values/values.yaml +++ b/jupyter/base/values/values.yaml @@ -258,6 +258,10 @@ hub: if __name__ == '__main__': main() + hostAliases: + - ip: "127.0.0.1" + hostnames: + - "hub" networkPolicy: ingress: - ports: