mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-05 21:07:43 +00:00
feat: add virtual host mode support for kubernetes installation (#1655)
This commit is contained in:
+1
-1
@@ -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,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:
|
||||
|
||||
@@ -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 -}}
|
||||
@@ -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 }}
|
||||
Reference in New Issue
Block a user