mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30: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 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- with .Values.hostAliases }}
|
||||
hostAliases:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.dnsPolicy }}
|
||||
dnsPolicy: {{ .Values.dnsPolicy }}
|
||||
{{- end }}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue