From 0cc1cbc00ebe74d0f2c6c05caf5432a7e2dd8d36 Mon Sep 17 00:00:00 2001 From: alhendrickson <159636032+alhendrickson@users.noreply.github.com.> Date: Tue, 17 Mar 2026 16:52:57 +0000 Subject: [PATCH 1/2] feat(helm): Support custom hostAliases --- helm-charts/medcat-service-helm/templates/deployment.yaml | 4 ++++ helm-charts/medcat-service-helm/values.yaml | 5 +++++ .../templates/medcat-trainer-deployment.yaml | 4 ++++ helm-charts/medcat-trainer-helm/values.yaml | 6 ++++++ 4 files changed, 19 insertions(+) diff --git a/helm-charts/medcat-service-helm/templates/deployment.yaml b/helm-charts/medcat-service-helm/templates/deployment.yaml index 1852686..bb9b248 100644 --- a/helm-charts/medcat-service-helm/templates/deployment.yaml +++ b/helm-charts/medcat-service-helm/templates/deployment.yaml @@ -33,6 +33,10 @@ spec: securityContext: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.hostAliases }} + hostAliases: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: {{ .Chart.Name }} {{- with .Values.securityContext }} diff --git a/helm-charts/medcat-service-helm/values.yaml b/helm-charts/medcat-service-helm/values.yaml index 2fd12f1..ffa29d5 100644 --- a/helm-charts/medcat-service-helm/values.yaml +++ b/helm-charts/medcat-service-helm/values.yaml @@ -218,6 +218,11 @@ tolerations: [] affinity: {} +# Host aliases for the pod +hostAliases: [] + # - ip: "127.0.0.1" + # hostnames: + # - "foo.local" networkPolicy: # Choose to create a default network policy blocking all ingress other than to the service port. enabled: true diff --git a/helm-charts/medcat-trainer-helm/templates/medcat-trainer-deployment.yaml b/helm-charts/medcat-trainer-helm/templates/medcat-trainer-deployment.yaml index 7de9501..76aa68c 100644 --- a/helm-charts/medcat-trainer-helm/templates/medcat-trainer-deployment.yaml +++ b/helm-charts/medcat-trainer-helm/templates/medcat-trainer-deployment.yaml @@ -38,6 +38,10 @@ spec: securityContext: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.hostAliases }} + hostAliases: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: medcat-trainer {{- with .Values.securityContext }} diff --git a/helm-charts/medcat-trainer-helm/values.yaml b/helm-charts/medcat-trainer-helm/values.yaml index dcf7324..2dbcd82 100644 --- a/helm-charts/medcat-trainer-helm/values.yaml +++ b/helm-charts/medcat-trainer-helm/values.yaml @@ -319,3 +319,9 @@ affinity: {} # Runtime class name for the pod (e.g., "nvidia" for GPU workloads) runtimeClassName: "" + +# Host aliases for the pod +hostAliases: [] + # - ip: "127.0.0.1" + # hostnames: + # - "foo.local" \ No newline at end of file From d3d7d4afa1cc8f11636b3bab9f5b181c5bb75270 Mon Sep 17 00:00:00 2001 From: alhendrickson <159636032+alhendrickson@users.noreply.github.com.> Date: Tue, 17 Mar 2026 16:53:33 +0000 Subject: [PATCH 2/2] feat(helm): Support custom hostAliases --- helm-charts/medcat-trainer-helm/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm-charts/medcat-trainer-helm/values.yaml b/helm-charts/medcat-trainer-helm/values.yaml index 2dbcd82..189935a 100644 --- a/helm-charts/medcat-trainer-helm/values.yaml +++ b/helm-charts/medcat-trainer-helm/values.yaml @@ -324,4 +324,4 @@ runtimeClassName: "" hostAliases: [] # - ip: "127.0.0.1" # hostnames: - # - "foo.local" \ No newline at end of file + # - "foo.local"