Alexandre Viau
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
26 additions and
0 deletions
-
k8s/charts/seaweedfs/templates/master-configmap.yaml
-
k8s/charts/seaweedfs/templates/master-statefulset.yaml
-
k8s/charts/seaweedfs/values.yaml
|
@ -0,0 +1,15 @@ |
|
|
|
|
|
{{- if .Values.master.enabled }} |
|
|
|
|
|
apiVersion: v1 |
|
|
|
|
|
kind: ConfigMap |
|
|
|
|
|
metadata: |
|
|
|
|
|
name: {{ template "seaweedfs.name" . }}-master-config |
|
|
|
|
|
namespace: {{ .Release.Namespace }} |
|
|
|
|
|
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 }} |
|
|
|
|
|
data: |
|
|
|
|
|
master.toml: |- |
|
|
|
|
|
{{ .Values.master.config | nindent 4 }} |
|
|
|
|
|
{{- end }} |
|
@ -142,6 +142,10 @@ spec: |
|
|
- name: seaweedfs-master-log-volume |
|
|
- name: seaweedfs-master-log-volume |
|
|
mountPath: "/logs/" |
|
|
mountPath: "/logs/" |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
|
|
|
- name: master-config |
|
|
|
|
|
readOnly: true |
|
|
|
|
|
mountPath: /etc/seaweedfs/master.toml |
|
|
|
|
|
subPath: master.toml |
|
|
{{- if .Values.global.enableSecurity }} |
|
|
{{- if .Values.global.enableSecurity }} |
|
|
- name: security-config |
|
|
- name: security-config |
|
|
readOnly: true |
|
|
readOnly: true |
|
@ -212,6 +216,9 @@ spec: |
|
|
path: {{ .Values.master.data.hostPathPrefix }}/seaweed-master/ |
|
|
path: {{ .Values.master.data.hostPathPrefix }}/seaweed-master/ |
|
|
type: DirectoryOrCreate |
|
|
type: DirectoryOrCreate |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
|
|
|
- name: master-config |
|
|
|
|
|
configMap: |
|
|
|
|
|
name: {{ template "seaweedfs.name" . }}-master-config |
|
|
{{- if .Values.global.enableSecurity }} |
|
|
{{- if .Values.global.enableSecurity }} |
|
|
- name: security-config |
|
|
- name: security-config |
|
|
configMap: |
|
|
configMap: |
|
|
|
@ -62,6 +62,10 @@ master: |
|
|
# Disable http request, only gRpc operations are allowed |
|
|
# Disable http request, only gRpc operations are allowed |
|
|
disableHttp: false |
|
|
disableHttp: false |
|
|
|
|
|
|
|
|
|
|
|
config: |- |
|
|
|
|
|
# Enter any extra configuration for master.toml here. |
|
|
|
|
|
# It may be be a multi-line string. |
|
|
|
|
|
|
|
|
# can use ANY storage-class , example with local-path-provisioner |
|
|
# can use ANY storage-class , example with local-path-provisioner |
|
|
# data: |
|
|
# data: |
|
|
# type: "persistentVolumeClaim" |
|
|
# type: "persistentVolumeClaim" |
|
|