Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

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

MyGitHub062d813b2193
diff --git a/helm/librechat/examples/hostaliases-values.yaml b/helm/librechat/examples/hostaliases-values.yaml
new file mode 100644
index 0000000000..9f789b38a5
--- /dev/null
+++ b/helm/librechat/examples/hostaliases-values.yaml
@@ -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"
\ No newline at end of file
diff --git a/helm/librechat/templates/deployment.yaml b/helm/librechat/templates/deployment.yaml
index a645575357..1d1deec3ac 100755
--- a/helm/librechat/templates/deployment.yaml
+++ b/helm/librechat/templates/deployment.yaml
@@ -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 }}
diff --git a/helm/librechat/values.yaml b/helm/librechat/values.yaml
index 5430eca0ac..bef2075308 100755
--- a/helm/librechat/values.yaml
+++ b/helm/librechat/values.yaml
@@ -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