Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

ingress config (#7319)

Philipp Krausbf29963f75a7
diff --git a/k8s/charts/seaweedfs/templates/filer/filer-ingress.yaml b/k8s/charts/seaweedfs/templates/filer/filer-ingress.yaml
index 7a7c98860a..9ce15ae90e 100644
--- a/k8s/charts/seaweedfs/templates/filer/filer-ingress.yaml
+++ b/k8s/charts/seaweedfs/templates/filer/filer-ingress.yaml
@@ -28,8 +28,8 @@ spec:
rules:
- http:
paths:
- - path: /sw-filer/?(.*)
- pathType: ImplementationSpecific
+ - path: {{ .Values.filer.ingress.path | quote }}
+ pathType: {{ .Values.filer.ingress.pathType | quote }}
backend:
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
service:
diff --git a/k8s/charts/seaweedfs/templates/master/master-ingress.yaml b/k8s/charts/seaweedfs/templates/master/master-ingress.yaml
index 62d7f7a504..ac1cb33925 100644
--- a/k8s/charts/seaweedfs/templates/master/master-ingress.yaml
+++ b/k8s/charts/seaweedfs/templates/master/master-ingress.yaml
@@ -28,8 +28,8 @@ spec:
rules:
- http:
paths:
- - path: /sw-master/?(.*)
- pathType: ImplementationSpecific
+ - path: {{ .Values.master.ingress.path | quote }}
+ pathType: {{ .Values.master.ingress.pathType | quote }}
backend:
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
service:
diff --git a/k8s/charts/seaweedfs/templates/s3/s3-ingress.yaml b/k8s/charts/seaweedfs/templates/s3/s3-ingress.yaml
index f9c3620659..a856923e9a 100644
--- a/k8s/charts/seaweedfs/templates/s3/s3-ingress.yaml
+++ b/k8s/charts/seaweedfs/templates/s3/s3-ingress.yaml
@@ -27,8 +27,8 @@ spec:
rules:
- http:
paths:
- - path: /
- pathType: ImplementationSpecific
+ - path: {{ .Values.s3.ingress.path | quote }}
+ pathType: {{ .Values.s3.ingress.pathType | quote }}
backend:
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
service:
diff --git a/k8s/charts/seaweedfs/values.yaml b/k8s/charts/seaweedfs/values.yaml
index 72c5153ba1..f75794dae7 100644
--- a/k8s/charts/seaweedfs/values.yaml
+++ b/k8s/charts/seaweedfs/values.yaml
@@ -238,6 +238,8 @@ master:
className: "nginx"
# host: false for "*" hostname
host: "master.seaweedfs.local"
+ path: "/sw-master/?(.*)"
+ pathType: ImplementationSpecific
annotations:
nginx.ingress.kubernetes.io/auth-type: "basic"
nginx.ingress.kubernetes.io/auth-secret: "default/ingress-basic-auth-secret"
@@ -770,6 +772,8 @@ filer:
className: "nginx"
# host: false for "*" hostname
host: "seaweedfs.cluster.local"
+ path: "/sw-filer/?(.*)"
+ pathType: ImplementationSpecific
annotations:
nginx.ingress.kubernetes.io/backend-protocol: GRPC
nginx.ingress.kubernetes.io/auth-type: "basic"
@@ -1008,6 +1012,8 @@ s3:
className: "nginx"
# host: false for "*" hostname
host: "seaweedfs.cluster.local"
+ path: "/"
+ pathType: Prefix
# additional ingress annotations for the s3 endpoint
annotations: {}
tls: []