mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Merge branch 'master' of https://github.com/seaweedfs/seaweedfs
This commit is contained in:
commit
a78c4141e5
46
k8s/charts/seaweedfs/templates/s3-ingress.yaml
Normal file
46
k8s/charts/seaweedfs/templates/s3-ingress.yaml
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
{{- if .Values.s3.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" . }}-s3
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
{{- if .Values.s3.ingress.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{ tpl .Values.s3.ingress.annotations . | nindent 4 | trim }}
|
||||||
|
{{- end }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/component: s3
|
||||||
|
spec:
|
||||||
|
ingressClassName: {{ .Values.s3.ingress.className | quote }}
|
||||||
|
tls:
|
||||||
|
{{ .Values.s3.ingress.tls | default list | toYaml | nindent 6}}
|
||||||
|
rules:
|
||||||
|
- http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
||||||
|
service:
|
||||||
|
name: {{ template "seaweedfs.name" . }}-s3
|
||||||
|
port:
|
||||||
|
number: {{ .Values.s3.port }}
|
||||||
|
#name:
|
||||||
|
{{- else }}
|
||||||
|
serviceName: {{ template "seaweedfs.name" . }}-s3
|
||||||
|
servicePort: {{ .Values.s3.port }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.s3.ingress.host }}
|
||||||
|
host: {{ .Values.s3.ingress.host }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
|
@ -621,6 +621,12 @@ s3:
|
||||||
failureThreshold: 100
|
failureThreshold: 100
|
||||||
timeoutSeconds: 10
|
timeoutSeconds: 10
|
||||||
|
|
||||||
|
ingress:
|
||||||
|
enabled: false
|
||||||
|
className: "nginx"
|
||||||
|
# host: false for "*" hostname
|
||||||
|
host: "seaweedfs.cluster.local"
|
||||||
|
|
||||||
certificates:
|
certificates:
|
||||||
commonName: "SeaweedFS CA"
|
commonName: "SeaweedFS CA"
|
||||||
ipAddresses: []
|
ipAddresses: []
|
||||||
|
|
Loading…
Reference in a new issue