☸️ feat: Helm hostAliases Support For Custom DNS Mappings (#9857)

Add ability to configure hostAliases in Helm chart to redirect traffic to proxy servers or custom endpoints via /etc/hosts entries.

Co-authored-by: Feng Lu <feng.lu@kindredgroup.com>
This commit is contained in:
MyGitHub 2025-09-27 16:49:36 +02:00 committed by GitHub
parent 4b5b46604c
commit 062d813b21
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,6 @@
# Example: Redirect AWS Bedrock EU traffic to proxy server
hostAliases:
- ip: "10.1.2.3" # Your proxy server IP
hostnames:
- "bedrock-runtime.eu-central-1.amazonaws.com"
- "bedrock.eu-central-1.amazonaws.com"

View file

@ -26,6 +26,10 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.hostAliases }}
hostAliases:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.dnsPolicy }}
dnsPolicy: {{ .Values.dnsPolicy }}
{{- end }}

View file

@ -220,6 +220,14 @@ tolerations: []
affinity: {}
# Host aliases for custom domain-to-IP mappings (adds entries to /etc/hosts)
hostAliases: []
# Example - Redirect AWS Bedrock to proxy:
# hostAliases:
# - ip: "10.1.2.3"
# hostnames:
# - "bedrock-runtime.eu-central-1.amazonaws.com"
# DNS Configuration
# Customize DNS resolution for redirecting traffic to proxy servers
dnsPolicy: "" # Options: ClusterFirst, Default, None, ClusterFirstWithHostNet