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