Skip to content

Commit 4d4b928

Browse files
feat(helm): Support custom hostAliases (#57)
1 parent 5abfa32 commit 4d4b928

4 files changed

Lines changed: 19 additions & 0 deletions

File tree

helm-charts/medcat-service-helm/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ spec:
3333
securityContext:
3434
{{- toYaml . | nindent 8 }}
3535
{{- end }}
36+
{{- with .Values.hostAliases }}
37+
hostAliases:
38+
{{- toYaml . | nindent 8 }}
39+
{{- end }}
3640
containers:
3741
- name: {{ .Chart.Name }}
3842
{{- with .Values.securityContext }}

helm-charts/medcat-service-helm/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,11 @@ tolerations: []
218218

219219
affinity: {}
220220

221+
# Host aliases for the pod
222+
hostAliases: []
223+
# - ip: "127.0.0.1"
224+
# hostnames:
225+
# - "foo.local"
221226
networkPolicy:
222227
# Choose to create a default network policy blocking all ingress other than to the service port.
223228
enabled: true

helm-charts/medcat-trainer-helm/templates/medcat-trainer-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ spec:
3838
securityContext:
3939
{{- toYaml . | nindent 8 }}
4040
{{- end }}
41+
{{- with .Values.hostAliases }}
42+
hostAliases:
43+
{{- toYaml . | nindent 8 }}
44+
{{- end }}
4145
containers:
4246
- name: medcat-trainer
4347
{{- with .Values.securityContext }}

helm-charts/medcat-trainer-helm/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,3 +319,9 @@ affinity: {}
319319

320320
# Runtime class name for the pod (e.g., "nvidia" for GPU workloads)
321321
runtimeClassName: ""
322+
323+
# Host aliases for the pod
324+
hostAliases: []
325+
# - ip: "127.0.0.1"
326+
# hostnames:
327+
# - "foo.local"

0 commit comments

Comments
 (0)