mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-04-05 20:52:50 +08:00
Allow defining labels and annotations per component (#5657)
This commit is contained in:
parent
dc6b750424
commit
3fd038fcfe
@ -35,10 +35,16 @@ spec:
|
|||||||
{{ with .Values.podLabels }}
|
{{ with .Values.podLabels }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with .Values.filer.podLabels }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
annotations:
|
annotations:
|
||||||
{{ with .Values.podAnnotations }}
|
{{ with .Values.podAnnotations }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with .Values.filer.podAnnotations }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: {{ default .Values.global.restartPolicy .Values.filer.restartPolicy }}
|
restartPolicy: {{ default .Values.global.restartPolicy .Values.filer.restartPolicy }}
|
||||||
{{- if .Values.filer.affinity }}
|
{{- if .Values.filer.affinity }}
|
||||||
|
@ -34,10 +34,16 @@ spec:
|
|||||||
{{ with .Values.podLabels }}
|
{{ with .Values.podLabels }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with .Values.master.podLabels }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
annotations:
|
annotations:
|
||||||
{{ with .Values.podAnnotations }}
|
{{ with .Values.podAnnotations }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with .Values.master.podAnnotations }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: {{ default .Values.global.restartPolicy .Values.master.restartPolicy }}
|
restartPolicy: {{ default .Values.global.restartPolicy .Values.master.restartPolicy }}
|
||||||
{{- if .Values.master.affinity }}
|
{{- if .Values.master.affinity }}
|
||||||
|
@ -27,10 +27,16 @@ spec:
|
|||||||
{{ with .Values.podLabels }}
|
{{ with .Values.podLabels }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with .Values.s3.podLabels }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
annotations:
|
annotations:
|
||||||
{{ with .Values.podAnnotations }}
|
{{ with .Values.podAnnotations }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with .Values.s3.podAnnotations }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: {{ default .Values.global.restartPolicy .Values.s3.restartPolicy }}
|
restartPolicy: {{ default .Values.global.restartPolicy .Values.s3.restartPolicy }}
|
||||||
{{- if .Values.s3.tolerations }}
|
{{- if .Values.s3.tolerations }}
|
||||||
|
@ -28,10 +28,16 @@ spec:
|
|||||||
{{ with .Values.podLabels }}
|
{{ with .Values.podLabels }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with .Values.volume.podLabels }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
annotations:
|
annotations:
|
||||||
{{ with .Values.podAnnotations }}
|
{{ with .Values.podAnnotations }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with .Values.volume.podAnnotations }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
{{- if .Values.volume.affinity }}
|
{{- if .Values.volume.affinity }}
|
||||||
affinity:
|
affinity:
|
||||||
|
@ -127,6 +127,12 @@ master:
|
|||||||
extraVolumes: ""
|
extraVolumes: ""
|
||||||
extraVolumeMounts: ""
|
extraVolumeMounts: ""
|
||||||
|
|
||||||
|
# Labels to be added to the master pods
|
||||||
|
podLabels: {}
|
||||||
|
|
||||||
|
# Annotations to be added to the master pods
|
||||||
|
podAnnotations: {}
|
||||||
|
|
||||||
## Set podManagementPolicy
|
## Set podManagementPolicy
|
||||||
podManagementPolicy: Parallel
|
podManagementPolicy: Parallel
|
||||||
|
|
||||||
@ -369,6 +375,12 @@ volume:
|
|||||||
extraVolumes: ""
|
extraVolumes: ""
|
||||||
extraVolumeMounts: ""
|
extraVolumeMounts: ""
|
||||||
|
|
||||||
|
# Labels to be added to the volume pods
|
||||||
|
podLabels: {}
|
||||||
|
|
||||||
|
# Annotations to be added to the volume pods
|
||||||
|
podAnnotations: {}
|
||||||
|
|
||||||
## Set podManagementPolicy
|
## Set podManagementPolicy
|
||||||
podManagementPolicy: Parallel
|
podManagementPolicy: Parallel
|
||||||
|
|
||||||
@ -551,6 +563,12 @@ filer:
|
|||||||
extraVolumes: ""
|
extraVolumes: ""
|
||||||
extraVolumeMounts: ""
|
extraVolumeMounts: ""
|
||||||
|
|
||||||
|
# Labels to be added to the filer pods
|
||||||
|
podLabels: {}
|
||||||
|
|
||||||
|
# Annotations to be added to the filer pods
|
||||||
|
podAnnotations: {}
|
||||||
|
|
||||||
## Set podManagementPolicy
|
## Set podManagementPolicy
|
||||||
podManagementPolicy: Parallel
|
podManagementPolicy: Parallel
|
||||||
|
|
||||||
@ -761,6 +779,12 @@ s3:
|
|||||||
extraVolumes: ""
|
extraVolumes: ""
|
||||||
extraVolumeMounts: ""
|
extraVolumeMounts: ""
|
||||||
|
|
||||||
|
# Labels to be added to the s3 pods
|
||||||
|
podLabels: {}
|
||||||
|
|
||||||
|
# Annotations to be added to the s3 pods
|
||||||
|
podAnnotations: {}
|
||||||
|
|
||||||
# Resource requests, limits, etc. for the server cluster placement. This
|
# Resource requests, limits, etc. for the server cluster placement. This
|
||||||
# should map directly to the value of the resources field for a PodSpec,
|
# should map directly to the value of the resources field for a PodSpec,
|
||||||
# formatted as a multi-line string. By default no direct resource request
|
# formatted as a multi-line string. By default no direct resource request
|
||||||
|
Loading…
Reference in New Issue
Block a user