Browse Source

Allow override internalTrafficPolicy (#4877)

pull/4880/head
aronneagu 1 year ago
committed by GitHub
parent
commit
abe599ee4a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      k8s/charts/seaweedfs/templates/s3-service.yaml
  2. 3
      k8s/charts/seaweedfs/templates/volume-service.yaml

1
k8s/charts/seaweedfs/templates/s3-service.yaml

@ -9,6 +9,7 @@ metadata:
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
spec: spec:
internalTrafficPolicy: {{ .Values.s3.internalTrafficPolicy | default "Cluster" }}
ports: ports:
- name: "swfs-s3" - name: "swfs-s3"
port: {{ if .Values.s3.enabled }}{{ .Values.s3.port }}{{ else }}{{ .Values.filer.s3.port }}{{ end }} port: {{ if .Values.s3.enabled }}{{ .Values.s3.port }}{{ else }}{{ .Values.filer.s3.port }}{{ end }}

3
k8s/charts/seaweedfs/templates/volume-service.yaml

@ -10,6 +10,7 @@ metadata:
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
spec: spec:
clusterIP: None clusterIP: None
internalTrafficPolicy: {{ .Values.volume.internalTrafficPolicy | default "Cluster" }}
ports: ports:
- name: "swfs-volume" - name: "swfs-volume"
port: {{ .Values.volume.port }} port: {{ .Values.volume.port }}
@ -27,4 +28,4 @@ spec:
{{- end }} {{- end }}
selector: selector:
app.kubernetes.io/name: {{ template "seaweedfs.name" . }} app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
app.kubernetes.io/component: volume
app.kubernetes.io/component: volume
Loading…
Cancel
Save