From aa6d5cdfbf31f9ac94df970e5f40de6281612ffa Mon Sep 17 00:00:00 2001 From: Callum Forrester Date: Tue, 31 Oct 2023 09:17:19 +0000 Subject: [PATCH] Add option to helm chart to run on host network --- helm/blueapi/templates/deployment.yaml | 1 + helm/blueapi/values.yaml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/helm/blueapi/templates/deployment.yaml b/helm/blueapi/templates/deployment.yaml index 997118886..fe60cc41a 100644 --- a/helm/blueapi/templates/deployment.yaml +++ b/helm/blueapi/templates/deployment.yaml @@ -18,6 +18,7 @@ spec: labels: {{- include "blueapi.selectorLabels" . | nindent 8 }} spec: + hostNetwork: {{ .Values.hostNetwork }} {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} diff --git a/helm/blueapi/values.yaml b/helm/blueapi/values.yaml index 01fcfa070..a449e3c3f 100644 --- a/helm/blueapi/values.yaml +++ b/helm/blueapi/values.yaml @@ -68,6 +68,8 @@ affinity: {} #existingSecret: see templates/secret.yaml +hostNetwork: false # May be needed for talking to arcane protocols such as EPICS + scratch: hostPath: "" # example: /usr/local/blueapi-software-scratch containerPath: /blueapi-plugins/scratch