Browse Source
Add podLabels & podAnnotations to all pods (#4959)
The pods of all statefulsets/deployments can now have customizable
labels and annotations
pull/4972/head
Łukasz Maksymczuk
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with
33 additions and
0 deletions
-
k8s/charts/seaweedfs/templates/filer-statefulset.yaml
-
k8s/charts/seaweedfs/templates/master-statefulset.yaml
-
k8s/charts/seaweedfs/templates/s3-deployment.yaml
-
k8s/charts/seaweedfs/templates/volume-statefulset.yaml
-
k8s/charts/seaweedfs/values.yaml
|
@ -33,6 +33,13 @@ spec: |
|
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
|
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
|
|
app.kubernetes.io/instance: {{ .Release.Name }} |
|
|
app.kubernetes.io/instance: {{ .Release.Name }} |
|
|
app.kubernetes.io/component: filer |
|
|
app.kubernetes.io/component: filer |
|
|
|
|
|
{{ with .Values.podLabels }} |
|
|
|
|
|
{{- toYaml . | nindent 8 }} |
|
|
|
|
|
{{- end }} |
|
|
|
|
|
annotations: |
|
|
|
|
|
{{ with .Values.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 }} |
|
|
|
@ -32,6 +32,13 @@ spec: |
|
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
|
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
|
|
app.kubernetes.io/instance: {{ .Release.Name }} |
|
|
app.kubernetes.io/instance: {{ .Release.Name }} |
|
|
app.kubernetes.io/component: master |
|
|
app.kubernetes.io/component: master |
|
|
|
|
|
{{ with .Values.podLabels }} |
|
|
|
|
|
{{- toYaml . | nindent 8 }} |
|
|
|
|
|
{{- end }} |
|
|
|
|
|
annotations: |
|
|
|
|
|
{{ with .Values.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 }} |
|
|
|
@ -24,6 +24,13 @@ spec: |
|
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
|
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
|
|
app.kubernetes.io/instance: {{ .Release.Name }} |
|
|
app.kubernetes.io/instance: {{ .Release.Name }} |
|
|
app.kubernetes.io/component: s3 |
|
|
app.kubernetes.io/component: s3 |
|
|
|
|
|
{{ with .Values.podLabels }} |
|
|
|
|
|
{{- toYaml . | nindent 8 }} |
|
|
|
|
|
{{- end }} |
|
|
|
|
|
annotations: |
|
|
|
|
|
{{ with .Values.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 }} |
|
|
|
@ -26,6 +26,13 @@ spec: |
|
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
|
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
|
|
app.kubernetes.io/instance: {{ .Release.Name }} |
|
|
app.kubernetes.io/instance: {{ .Release.Name }} |
|
|
app.kubernetes.io/component: volume |
|
|
app.kubernetes.io/component: volume |
|
|
|
|
|
{{ with .Values.podLabels }} |
|
|
|
|
|
{{- toYaml . | nindent 8 }} |
|
|
|
|
|
{{- end }} |
|
|
|
|
|
annotations: |
|
|
|
|
|
{{ with .Values.podAnnotations }} |
|
|
|
|
|
{{- toYaml . | nindent 8 }} |
|
|
|
|
|
{{- end }} |
|
|
spec: |
|
|
spec: |
|
|
{{- if .Values.volume.affinity }} |
|
|
{{- if .Values.volume.affinity }} |
|
|
affinity: |
|
|
affinity: |
|
|
|
@ -654,3 +654,8 @@ certificates: |
|
|
# you will need to store your provided certificates in the secret read by the different services: |
|
|
# you will need to store your provided certificates in the secret read by the different services: |
|
|
# seaweedfs-master-cert, seaweedfs-filer-cert, etc. Can see any statefulset definition to see secret names |
|
|
# seaweedfs-master-cert, seaweedfs-filer-cert, etc. Can see any statefulset definition to see secret names |
|
|
enabled: false |
|
|
enabled: false |
|
|
|
|
|
|
|
|
|
|
|
# Labels to be added to all the created pods |
|
|
|
|
|
podLabels: {} |
|
|
|
|
|
# Annotations to be added to all the created pods |
|
|
|
|
|
podAnnotations: {} |