mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 02:10:15 +01:00
☸️ 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:
parent
4b5b46604c
commit
062d813b21
3 changed files with 18 additions and 0 deletions
6
helm/librechat/examples/hostaliases-values.yaml
Normal file
6
helm/librechat/examples/hostaliases-values.yaml
Normal 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"
|
||||||
|
|
@ -26,6 +26,10 @@ spec:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
|
{{- with .Values.hostAliases }}
|
||||||
|
hostAliases:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.dnsPolicy }}
|
{{- if .Values.dnsPolicy }}
|
||||||
dnsPolicy: {{ .Values.dnsPolicy }}
|
dnsPolicy: {{ .Values.dnsPolicy }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
||||||
|
|
@ -220,6 +220,14 @@ tolerations: []
|
||||||
|
|
||||||
affinity: {}
|
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
|
# DNS Configuration
|
||||||
# Customize DNS resolution for redirecting traffic to proxy servers
|
# Customize DNS resolution for redirecting traffic to proxy servers
|
||||||
dnsPolicy: "" # Options: ClusterFirst, Default, None, ClusterFirstWithHostNet
|
dnsPolicy: "" # Options: ClusterFirst, Default, None, ClusterFirstWithHostNet
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue