mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-09 06:39:25 +00:00
feat: Helm chart support extra volumes (#2982)
This commit is contained in:
@@ -127,12 +127,18 @@ spec:
|
||||
mountPath: /opt/tls/client_ca.crt
|
||||
subPath: client_ca.crt
|
||||
{{- end }}
|
||||
{{- with .Values.extraVolumeMounts }}
|
||||
{{- toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
- name: logs
|
||||
mountPath: {{ $logDir }}
|
||||
subPath: logs
|
||||
- name: data
|
||||
mountPath: /data
|
||||
volumes:
|
||||
{{- with .Values.extraVolumes }}
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.mtls.enabled }}
|
||||
- name: server-cert
|
||||
secret:
|
||||
|
||||
@@ -141,6 +141,9 @@ spec:
|
||||
mountPath: /opt/tls/ca.crt
|
||||
subPath: ca.crt
|
||||
{{- end }}
|
||||
{{- with .Values.extraVolumeMounts }}
|
||||
{{- toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
- name: logs
|
||||
mountPath: {{ $logDir }}
|
||||
subPath: logs
|
||||
@@ -153,8 +156,9 @@ spec:
|
||||
- name: data
|
||||
mountPath: /data
|
||||
{{- end }}
|
||||
{{- if .Values.mtls.enabled }}
|
||||
{{- if or .Values.mtls.enabled .Values.extraVolumes }}
|
||||
volumes:
|
||||
{{- if .Values.mtls.enabled }}
|
||||
- name: server-cert
|
||||
secret:
|
||||
secretName: rustfs-server-tls
|
||||
@@ -175,6 +179,10 @@ spec:
|
||||
path: client_key.pem
|
||||
- key: ca.crt
|
||||
path: client_ca.crt
|
||||
{{- end }}
|
||||
{{- with .Values.extraVolumes }}
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
|
||||
@@ -130,6 +130,9 @@ extraEnv: [] # This is for setting extra environment variables in the rustfs con
|
||||
# value: "EC:4"
|
||||
|
||||
|
||||
extraVolumes: []
|
||||
extraVolumeMounts: []
|
||||
|
||||
# This section builds out the service account more information can be found here: https://kubernetes.io/docs/concepts/security/service-accounts/
|
||||
serviceAccount:
|
||||
# Specifies whether a service account should be created
|
||||
|
||||
Reference in New Issue
Block a user