Add hostnmae to chart

This commit is contained in:
Micke Nordin 2024-01-18 09:54:54 +01:00
parent 3dc9ed0c74
commit 9e06575a5d
Signed by untrusted user: Micke
GPG key ID: F53C4CC83EDAB3BE
2 changed files with 4 additions and 5 deletions

View file

@ -33,6 +33,10 @@ spec:
{{- . | toYaml | nindent 8 }} {{- . | toYaml | nindent 8 }}
{{- end }} {{- end }}
spec: spec:
hostAliases:
- ip: "127.0.0.1"
hostnames:
- "hub"
{{- if .Values.scheduling.podPriority.enabled }} {{- if .Values.scheduling.podPriority.enabled }}
priorityClassName: {{ include "jupyterhub.priority.fullname" . }} priorityClassName: {{ include "jupyterhub.priority.fullname" . }}
{{- end }} {{- end }}

View file

@ -155,11 +155,6 @@ hub:
c.JupyterHub.api_tokens = { c.JupyterHub.api_tokens = {
os.environ['JUPYTERHUB_API_KEY']: "refresh-token", os.environ['JUPYTERHUB_API_KEY']: "refresh-token",
} }
c.JupyterHub.extra_host_config.update({
"extra_hosts": {
"hub":"127.0.0.1"
}
})
extraFiles: extraFiles:
refresh-token.py: refresh-token.py:
mountPath: /usr/local/etc/jupyterhub/refresh-token.py mountPath: /usr/local/etc/jupyterhub/refresh-token.py