limd
3 years ago
24 changed files with 182 additions and 105 deletions
-
21.github/workflows/binaries_dev.yml
-
8.github/workflows/binaries_release0.yml
-
8.github/workflows/binaries_release1.yml
-
8.github/workflows/binaries_release2.yml
-
8.github/workflows/binaries_release3.yml
-
1docker/Dockerfile
-
1docker/Dockerfile.gccgo_build
-
1docker/Dockerfile.go_build
-
1docker/Dockerfile.go_build_large
-
1docker/Dockerfile.local
-
2docker/Dockerfile.rocksdb_large
-
4k8s/helm_charts2/Chart.yaml
-
90k8s/helm_charts2/templates/ingress.yaml
-
4k8s/helm_charts2/templates/service-account.yaml
-
40k8s/helm_charts2/values.yaml
-
11weed/command/filer_remote_gateway_buckets.go
-
21weed/command/filer_remote_sync_dir.go
-
6weed/command/scaffold/filer.toml
-
4weed/filer/filechunk_manifest.go
-
4weed/s3api/s3api_bucket_handlers.go
-
2weed/server/volume_grpc_copy.go
-
24weed/shell/command_volume_configure_replication.go
-
2weed/util/constants.go
-
13weed/wdclient/vid_map.go
@ -1,5 +1,5 @@ |
|||
apiVersion: v1 |
|||
description: SeaweedFS |
|||
name: seaweedfs |
|||
appVersion: "2.77" |
|||
version: "2.77" |
|||
appVersion: "2.79" |
|||
version: "2.79" |
@ -1,61 +1,67 @@ |
|||
{{- if .Values.filer.ingress.enabled }} |
|||
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }} |
|||
apiVersion: networking.k8s.io/v1 |
|||
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion }} |
|||
apiVersion: networking.k8s.io/v1beta1 |
|||
{{- else }} |
|||
apiVersion: extensions/v1beta1 |
|||
{{- end }} |
|||
kind: Ingress |
|||
metadata: |
|||
name: ingress-{{ template "seaweedfs.name" . }}-filer |
|||
namespace: {{ .Release.Namespace }} |
|||
annotations: |
|||
kubernetes.io/ingress.class: "nginx" |
|||
nginx.ingress.kubernetes.io/auth-type: "basic" |
|||
nginx.ingress.kubernetes.io/auth-secret: "default/ingress-basic-auth-secret" |
|||
nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - SW-Filer' |
|||
nginx.ingress.kubernetes.io/service-upstream: "true" |
|||
nginx.ingress.kubernetes.io/rewrite-target: /$1 |
|||
nginx.ingress.kubernetes.io/use-regex: "true" |
|||
nginx.ingress.kubernetes.io/enable-rewrite-log: "true" |
|||
nginx.ingress.kubernetes.io/ssl-redirect: "false" |
|||
nginx.ingress.kubernetes.io/force-ssl-redirect: "false" |
|||
nginx.ingress.kubernetes.io/configuration-snippet: | |
|||
sub_filter '<head>' '<head> <base href="/sw-filer/">'; #add base url |
|||
sub_filter '="/' '="./'; #make absolute paths to relative |
|||
sub_filter '=/' '=./'; |
|||
sub_filter '/seaweedfsstatic' './seaweedfsstatic'; |
|||
sub_filter_once off; |
|||
name: ingress-{{ template "seaweedfs.name" . }}-filer |
|||
namespace: {{ .Release.Namespace }} |
|||
annotations: |
|||
{{ omit .Values.filer.ingress.annotations "kubernetes.io/ingress.class" | toYaml | nindent 4 }} |
|||
spec: |
|||
rules: |
|||
- http: |
|||
paths: |
|||
- path: /sw-filer/?(.*) |
|||
backend: |
|||
serviceName: {{ template "seaweedfs.name" . }}-filer |
|||
servicePort: {{ .Values.filer.port }} |
|||
ingressClassName: {{ .Values.filer.ingress.className | quote }} |
|||
rules: |
|||
- http: |
|||
paths: |
|||
- path: /sw-filer/?(.*) |
|||
pathType: ImplementationSpecific |
|||
backend: |
|||
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }} |
|||
service: |
|||
name: {{ template "seaweedfs.name" . }}-filer |
|||
port: |
|||
number: {{ .Values.filer.port }} |
|||
#name: |
|||
{{- else }} |
|||
serviceName: {{ template "seaweedfs.name" . }}-filer |
|||
servicePort: {{ .Values.filer.port }} |
|||
{{- end }} |
|||
{{- end }} |
|||
--- |
|||
{{- if .Values.master.ingress.enabled }} |
|||
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }} |
|||
apiVersion: networking.k8s.io/v1 |
|||
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion }} |
|||
apiVersion: networking.k8s.io/v1beta1 |
|||
{{- else }} |
|||
apiVersion: extensions/v1beta1 |
|||
{{- end }} |
|||
kind: Ingress |
|||
metadata: |
|||
name: ingress-{{ template "seaweedfs.name" . }}-master |
|||
namespace: {{ .Release.Namespace }} |
|||
annotations: |
|||
kubernetes.io/ingress.class: "nginx" |
|||
nginx.ingress.kubernetes.io/auth-type: "basic" |
|||
nginx.ingress.kubernetes.io/auth-secret: "default/ingress-basic-auth-secret" |
|||
nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - SW-Master' |
|||
nginx.ingress.kubernetes.io/service-upstream: "true" |
|||
nginx.ingress.kubernetes.io/rewrite-target: /$1 |
|||
nginx.ingress.kubernetes.io/use-regex: "true" |
|||
nginx.ingress.kubernetes.io/enable-rewrite-log: "true" |
|||
nginx.ingress.kubernetes.io/ssl-redirect: "false" |
|||
nginx.ingress.kubernetes.io/force-ssl-redirect: "false" |
|||
nginx.ingress.kubernetes.io/configuration-snippet: | |
|||
sub_filter '<head>' '<head> <base href="/sw-master/">'; #add base url |
|||
sub_filter '="/' '="./'; #make absolute paths to relative |
|||
sub_filter '=/' '=./'; |
|||
sub_filter '/seaweedfsstatic' './seaweedfsstatic'; |
|||
sub_filter_once off; |
|||
{{ omit .Values.master.ingress.annotations "kubernetes.io/ingress.class" | toYaml | nindent 4 }} |
|||
spec: |
|||
ingressClassName: {{ .Values.master.ingress.className | quote }} |
|||
rules: |
|||
- http: |
|||
paths: |
|||
- path: /sw-master/?(.*) |
|||
pathType: ImplementationSpecific |
|||
backend: |
|||
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }} |
|||
service: |
|||
name: {{ template "seaweedfs.name" . }}-master |
|||
port: |
|||
number: {{ .Values.master.port }} |
|||
#name: |
|||
{{- else }} |
|||
serviceName: {{ template "seaweedfs.name" . }}-master |
|||
servicePort: {{ .Values.master.port }} |
|||
{{- end }} |
|||
{{- end }} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue