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..189935a 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"