mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-11-08 19:44:45 +08:00
ingress config (#7319)
* ingress config * fixing issues * prefix path type For the S3 ingress path /, using pathType: Prefix is more explicit and standard-compliant for matching all subpaths. While ImplementationSpecific might work similarly with your current Ingress controller (often defaulting to a prefix match when use-regex is not enabled), Prefix clearly states the intent and improves portability across different Ingress controllers. --------- Co-authored-by: Philipp Kraus <philipp.kraus@flashpixx.de> Co-authored-by: Chris Lu <chris.lu@gmail.com>
This commit is contained in:
@@ -28,8 +28,8 @@ spec:
|
|||||||
rules:
|
rules:
|
||||||
- http:
|
- http:
|
||||||
paths:
|
paths:
|
||||||
- path: /sw-filer/?(.*)
|
- path: {{ .Values.filer.ingress.path | quote }}
|
||||||
pathType: ImplementationSpecific
|
pathType: {{ .Values.filer.ingress.pathType | quote }}
|
||||||
backend:
|
backend:
|
||||||
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
||||||
service:
|
service:
|
||||||
|
|||||||
@@ -28,8 +28,8 @@ spec:
|
|||||||
rules:
|
rules:
|
||||||
- http:
|
- http:
|
||||||
paths:
|
paths:
|
||||||
- path: /sw-master/?(.*)
|
- path: {{ .Values.master.ingress.path | quote }}
|
||||||
pathType: ImplementationSpecific
|
pathType: {{ .Values.master.ingress.pathType | quote }}
|
||||||
backend:
|
backend:
|
||||||
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
||||||
service:
|
service:
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ spec:
|
|||||||
rules:
|
rules:
|
||||||
- http:
|
- http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: {{ .Values.s3.ingress.path | quote }}
|
||||||
pathType: ImplementationSpecific
|
pathType: {{ .Values.s3.ingress.pathType | quote }}
|
||||||
backend:
|
backend:
|
||||||
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
||||||
service:
|
service:
|
||||||
|
|||||||
@@ -238,6 +238,8 @@ master:
|
|||||||
className: "nginx"
|
className: "nginx"
|
||||||
# host: false for "*" hostname
|
# host: false for "*" hostname
|
||||||
host: "master.seaweedfs.local"
|
host: "master.seaweedfs.local"
|
||||||
|
path: "/sw-master/?(.*)"
|
||||||
|
pathType: ImplementationSpecific
|
||||||
annotations:
|
annotations:
|
||||||
nginx.ingress.kubernetes.io/auth-type: "basic"
|
nginx.ingress.kubernetes.io/auth-type: "basic"
|
||||||
nginx.ingress.kubernetes.io/auth-secret: "default/ingress-basic-auth-secret"
|
nginx.ingress.kubernetes.io/auth-secret: "default/ingress-basic-auth-secret"
|
||||||
@@ -770,6 +772,8 @@ filer:
|
|||||||
className: "nginx"
|
className: "nginx"
|
||||||
# host: false for "*" hostname
|
# host: false for "*" hostname
|
||||||
host: "seaweedfs.cluster.local"
|
host: "seaweedfs.cluster.local"
|
||||||
|
path: "/sw-filer/?(.*)"
|
||||||
|
pathType: ImplementationSpecific
|
||||||
annotations:
|
annotations:
|
||||||
nginx.ingress.kubernetes.io/backend-protocol: GRPC
|
nginx.ingress.kubernetes.io/backend-protocol: GRPC
|
||||||
nginx.ingress.kubernetes.io/auth-type: "basic"
|
nginx.ingress.kubernetes.io/auth-type: "basic"
|
||||||
@@ -1008,6 +1012,8 @@ s3:
|
|||||||
className: "nginx"
|
className: "nginx"
|
||||||
# host: false for "*" hostname
|
# host: false for "*" hostname
|
||||||
host: "seaweedfs.cluster.local"
|
host: "seaweedfs.cluster.local"
|
||||||
|
path: "/"
|
||||||
|
pathType: Prefix
|
||||||
# additional ingress annotations for the s3 endpoint
|
# additional ingress annotations for the s3 endpoint
|
||||||
annotations: {}
|
annotations: {}
|
||||||
tls: []
|
tls: []
|
||||||
|
|||||||
Reference in New Issue
Block a user