From 84c4ea8cfbbc17ebf81efaf24acfbdbc7efcaa80 Mon Sep 17 00:00:00 2001 From: Min RK Date: Wed, 4 Sep 2024 15:25:32 +0200 Subject: [PATCH] add extraPodLabels, hub access label by default ensures network access to the hub by default --- kbatch/templates/deployment.yaml | 5 +++++ kbatch/values.yaml | 1 + 2 files changed, 6 insertions(+) diff --git a/kbatch/templates/deployment.yaml b/kbatch/templates/deployment.yaml index 497531f..6b568cd 100644 --- a/kbatch/templates/deployment.yaml +++ b/kbatch/templates/deployment.yaml @@ -4,6 +4,11 @@ metadata: name: {{ include "kbatch-proxy.fullname" . }} labels: {{- include "kbatch-proxy.labels" . | nindent 4 }} + hub.jupyter.org/network-access-hub: "true" + {{- with .Values.extraPodLabels }} + {{- toYaml . | nindent 4 }} + {{- end }} + spec: {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.replicaCount }} diff --git a/kbatch/values.yaml b/kbatch/values.yaml index 5715792..25a7404 100644 --- a/kbatch/values.yaml +++ b/kbatch/values.yaml @@ -26,6 +26,7 @@ serviceAccount: name: "" podAnnotations: {} +extraPodLabels: {} podSecurityContext: {} # fsGroup: 2000