Browse Source

shell.toml

enable running shell from each pod with default
filer & master config
pull/1742/head
LazyDBA247-Anyvision 4 years ago
parent
commit
cfc2033bf8
  1. 6
      k8s/seaweedfs/templates/filer-statefulset.yaml
  2. 6
      k8s/seaweedfs/templates/master-statefulset.yaml
  3. 6
      k8s/seaweedfs/templates/s3-deployment.yaml
  4. 6
      k8s/seaweedfs/templates/volume-statefulset.yaml
  5. 4
      k8s/seaweedfs/values.yaml

6
k8s/seaweedfs/templates/filer-statefulset.yaml

@ -87,6 +87,12 @@ spec:
value: {{ $value | quote }}
{{- end }}
{{- end }}
{{- if .Values.global.extraEnvironmentVars }}
{{- range $key, $value := .Values.global.extraEnvironmentVars }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
{{- end }}
command:
- "/bin/sh"
- "-ec"

6
k8s/seaweedfs/templates/master-statefulset.yaml

@ -76,6 +76,12 @@ spec:
value: {{ $value | quote }}
{{- end }}
{{- end }}
{{- if .Values.global.extraEnvironmentVars }}
{{- range $key, $value := .Values.global.extraEnvironmentVars }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
{{- end }}
command:
- "/bin/sh"
- "-ec"

6
k8s/seaweedfs/templates/s3-deployment.yaml

@ -59,6 +59,12 @@ spec:
fieldPath: metadata.namespace
- name: SEAWEEDFS_FULLNAME
value: "{{ template "seaweedfs.name" . }}"
{{- if .Values.global.extraEnvironmentVars }}
{{- range $key, $value := .Values.global.extraEnvironmentVars }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
{{- end }}
command:
- "/bin/sh"
- "-ec"

6
k8s/seaweedfs/templates/volume-statefulset.yaml

@ -64,6 +64,12 @@ spec:
fieldPath: status.hostIP
- name: SEAWEEDFS_FULLNAME
value: "{{ template "seaweedfs.name" . }}"
{{- if .Values.global.extraEnvironmentVars }}
{{- range $key, $value := .Values.global.extraEnvironmentVars }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
{{- end }}
command:
- "/bin/sh"
- "-ec"

4
k8s/seaweedfs/values.yaml

@ -21,6 +21,10 @@ global:
# Y number of replica in other racks in the same data center
# Z number of replica in other servers in the same rack
replicationPlacment: "001"
extraEnvironmentVars:
WEED_CLUSTER_DEFAULT: "sw"
WEED_CLUSTER_SW_MASTER: "seaweedfs-master:9333"
WEED_CLUSTER_SW_FILER: "seaweedfs-filer-client:8888"
image:
registry: ""

Loading…
Cancel
Save