Browse Source
Fix all in one deployment (#7031)
* make maxVolumes configurable for allInOne deployment
Signed-off-by: Mohamed Sekour <mohamed.sekour@exfo.com>
* Update all-in-one-deployment.yaml
fix typo
* add robustness
---------
Signed-off-by: Mohamed Sekour <mohamed.sekour@exfo.com>
pull/7034/head
Mohamed Sekour
2 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
1 deletions
-
k8s/charts/seaweedfs/templates/all-in-one-deployment.yaml
|
@ -51,7 +51,7 @@ spec: |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
{{- if .Values.allInOne.topologySpreadConstraints }} |
|
|
{{- if .Values.allInOne.topologySpreadConstraints }} |
|
|
topologySpreadConstraints: |
|
|
topologySpreadConstraints: |
|
|
{{ tpl .Values.allInOne.topologySpreadConstraint . | nindent 8 | trim }} |
|
|
|
|
|
|
|
|
{{ tpl .Values.allInOne.topologySpreadConstraints . | nindent 8 | trim }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
{{- if .Values.allInOne.tolerations }} |
|
|
{{- if .Values.allInOne.tolerations }} |
|
|
tolerations: |
|
|
tolerations: |
|
@ -142,6 +142,9 @@ spec: |
|
|
{{- if .Values.allInOne.disableHttp }} |
|
|
{{- if .Values.allInOne.disableHttp }} |
|
|
-disableHttp={{ .Values.allInOne.disableHttp }} \ |
|
|
-disableHttp={{ .Values.allInOne.disableHttp }} \ |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
|
|
|
{{- if and (.Values.volume.dataDirs) (index .Values.volume.dataDirs 0 "maxVolumes") }} |
|
|
|
|
|
-volume.max={{ index .Values.volume.dataDirs 0 "maxVolumes" }} \ |
|
|
|
|
|
{{- end }} |
|
|
-master.port={{ .Values.master.port }} \ |
|
|
-master.port={{ .Values.master.port }} \ |
|
|
{{- if .Values.global.enableReplication }} |
|
|
{{- if .Values.global.enableReplication }} |
|
|
-master.defaultReplication={{ .Values.global.replicationPlacement }} \ |
|
|
-master.defaultReplication={{ .Values.global.replicationPlacement }} \ |
|
|