feat: add virtual host mode support for kubernetes installation (#1655)

This commit is contained in:
majinghe
2026-01-29 17:55:24 +08:00
committed by GitHub
parent ab84da24ef
commit 6b15e727f5
4 changed files with 19 additions and 4 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ COPY . .
# Generate static files
RUN ./rustfs/scripts/static.sh
RUN ./scripts/static.sh
# Cargo build configuration for lean release artifacts
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true \
+2 -2
View File
@@ -2,8 +2,8 @@ apiVersion: v2
name: rustfs
description: RustFS helm chart to deploy RustFS on kubernetes cluster.
type: application
version: 0.0.77
appVersion: "1.0.0-alpha.77"
version: 0.0.82
appVersion: "1.0.0-alpha.82"
home: https://rustfs.com
icon: https://media.sys.truenas.net/apps/rustfs/icons/icon.svg
maintainers:
+15
View File
@@ -111,3 +111,18 @@ Render RUSTFS_VOLUMES
{{- end }}
{{- end }}
{{/*
Render RUSTFS_SERVER_DOMAINS
*/}}
{{- define "rustfs.serverDomains" -}}
{{- $domains := list .Values.config.rustfs.domains -}}
{{- $fullname := include "rustfs.fullname" . -}}
{{- $replicaCount := int .Values.replicaCount -}}
{{- $servicePort := .Values.service.endpoint.port | default 9000 -}}
{{- range $i := until $replicaCount -}}
{{- $podDomain := printf "%s-%d.%s-headless:%d" $fullname $i $fullname (int $servicePort) -}}
{{- $domains = append $domains $podDomain -}}
{{- end -}}
{{- join "," $domains -}}
{{- end -}}
+1 -1
View File
@@ -20,5 +20,5 @@ data:
RUSTFS_VOLUMES: "/data"
{{- end }}
{{- if .Values.config.rustfs.domains }}
RUSTFS_SERVER_DOMAINS: {{ .Values.config.rustfs.domains | quote }}
RUSTFS_SERVER_DOMAINS: {{ include "rustfs.serverDomains" . | quote }}
{{- end }}