feat: add resource annotations (#6134)

This commit is contained in:
oldgiova
2024-10-16 16:34:24 +02:00
committed by GitHub
parent 9dc47f6b97
commit 5bd5a76d25
18 changed files with 79 additions and 0 deletions

View File

@@ -10,6 +10,10 @@ metadata:
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: filer app.kubernetes.io/component: filer
{{- if .Values.filer.annotations }}
annotations:
{{- toYaml .Values.filer.annotations | nindent 4 }}
{{- end }}
spec: spec:
secretName: {{ template "seaweedfs.name" . }}-filer-cert secretName: {{ template "seaweedfs.name" . }}-filer-cert
issuerRef: issuerRef:

View File

@@ -13,6 +13,10 @@ metadata:
{{- if .Values.filer.metricsPort }} {{- if .Values.filer.metricsPort }}
monitoring: "true" monitoring: "true"
{{- end }} {{- end }}
{{- if .Values.filer.annotations }}
annotations:
{{- toYaml .Values.filer.annotations | nindent 4 }}
{{- end }}
spec: spec:
clusterIP: None clusterIP: None
ports: ports:

View File

@@ -12,6 +12,10 @@ metadata:
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: filer app.kubernetes.io/component: filer
{{- if .Values.filer.annotations }}
annotations:
{{- toYaml .Values.filer.annotations | nindent 4 }}
{{- end }}
spec: spec:
clusterIP: None clusterIP: None
publishNotReadyAddresses: true publishNotReadyAddresses: true

View File

@@ -15,6 +15,10 @@ metadata:
{{- with .Values.global.monitoring.additionalLabels }} {{- with .Values.global.monitoring.additionalLabels }}
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
{{- end }} {{- end }}
{{- if .Values.filer.annotations }}
annotations:
{{- toYaml .Values.filer.annotations | nindent 4 }}
{{- end }}
spec: spec:
endpoints: endpoints:
- interval: 30s - interval: 30s

View File

@@ -10,6 +10,10 @@ metadata:
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: filer app.kubernetes.io/component: filer
{{- if .Values.filer.annotations }}
annotations:
{{- toYaml .Values.filer.annotations | nindent 4 }}
{{- end }}
spec: spec:
serviceName: {{ template "seaweedfs.name" . }}-filer serviceName: {{ template "seaweedfs.name" . }}-filer
podManagementPolicy: {{ .Values.filer.podManagementPolicy }} podManagementPolicy: {{ .Values.filer.podManagementPolicy }}

View File

@@ -10,6 +10,10 @@ metadata:
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: master app.kubernetes.io/component: master
{{- if .Values.master.annotations }}
annotations:
{{- toYaml .Values.master.annotations | nindent 4 }}
{{- end }}
spec: spec:
secretName: {{ template "seaweedfs.name" . }}-master-cert secretName: {{ template "seaweedfs.name" . }}-master-cert
issuerRef: issuerRef:

View File

@@ -9,6 +9,10 @@ metadata:
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
{{- if .Values.master.annotations }}
annotations:
{{- toYaml .Values.master.annotations | nindent 4 }}
{{- end }}
data: data:
master.toml: |- master.toml: |-
{{ .Values.master.config | nindent 4 }} {{ .Values.master.config | nindent 4 }}

View File

@@ -11,6 +11,9 @@ metadata:
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
annotations: annotations:
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true" service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
{{- if .Values.master.annotations }}
{{- toYaml .Values.master.annotations | nindent 4 }}
{{- end }}
spec: spec:
clusterIP: None clusterIP: None
publishNotReadyAddresses: true publishNotReadyAddresses: true

View File

@@ -15,6 +15,10 @@ metadata:
{{- with .Values.global.monitoring.additionalLabels }} {{- with .Values.global.monitoring.additionalLabels }}
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
{{- end }} {{- end }}
{{- if .Values.master.annotations }}
annotations:
{{- toYaml .Values.master.annotations | nindent 4 }}
{{- end }}
spec: spec:
endpoints: endpoints:
- interval: 30s - interval: 30s

View File

@@ -9,6 +9,10 @@ metadata:
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
{{- if .Values.master.annotations }}
annotations:
{{- toYaml .Values.master.annotations | nindent 4 }}
{{- end }}
spec: spec:
serviceName: {{ template "seaweedfs.name" . }}-master serviceName: {{ template "seaweedfs.name" . }}-master
podManagementPolicy: {{ .Values.master.podManagementPolicy }} podManagementPolicy: {{ .Values.master.podManagementPolicy }}

View File

@@ -9,6 +9,10 @@ metadata:
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
{{- if .Values.s3.annotations }}
annotations:
{{- toYaml .Values.s3.annotations | nindent 4 }}
{{- end }}
spec: spec:
replicas: {{ .Values.s3.replicas }} replicas: {{ .Values.s3.replicas }}
selector: selector:

View File

@@ -9,6 +9,10 @@ metadata:
app.kubernetes.io/component: s3 app.kubernetes.io/component: s3
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.s3.annotations }}
annotations:
{{- toYaml .Values.s3.annotations | nindent 4 }}
{{- end }}
spec: spec:
internalTrafficPolicy: {{ .Values.s3.internalTrafficPolicy | default "Cluster" }} internalTrafficPolicy: {{ .Values.s3.internalTrafficPolicy | default "Cluster" }}
ports: ports:

View File

@@ -15,6 +15,10 @@ metadata:
{{- with .Values.global.monitoring.additionalLabels }} {{- with .Values.global.monitoring.additionalLabels }}
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
{{- end }} {{- end }}
{{- if .Values.s3.annotations }}
annotations:
{{- toYaml .Values.s3.annotations | nindent 4 }}
{{- end }}
spec: spec:
endpoints: endpoints:
- interval: 30s - interval: 30s

View File

@@ -10,6 +10,10 @@ metadata:
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: volume app.kubernetes.io/component: volume
{{- if .Values.volume.annotations }}
annotations:
{{- toYaml .Values.volume.annotations | nindent 4 }}
{{- end }}
spec: spec:
secretName: {{ template "seaweedfs.name" . }}-volume-cert secretName: {{ template "seaweedfs.name" . }}-volume-cert
issuerRef: issuerRef:

View File

@@ -9,6 +9,10 @@ metadata:
app.kubernetes.io/component: volume app.kubernetes.io/component: volume
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.volume.annotations }}
annotations:
{{- toYaml .Values.volume.annotations | nindent 4 }}
{{- end }}
spec: spec:
clusterIP: None clusterIP: None
internalTrafficPolicy: {{ .Values.volume.internalTrafficPolicy | default "Cluster" }} internalTrafficPolicy: {{ .Values.volume.internalTrafficPolicy | default "Cluster" }}

View File

@@ -15,6 +15,10 @@ metadata:
{{- with .Values.global.monitoring.additionalLabels }} {{- with .Values.global.monitoring.additionalLabels }}
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
{{- end }} {{- end }}
{{- if .Values.volume.annotations }}
annotations:
{{- toYaml .Values.volume.annotations | nindent 4 }}
{{- end }}
spec: spec:
endpoints: endpoints:
- interval: 30s - interval: 30s

View File

@@ -9,6 +9,10 @@ metadata:
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
{{- if .Values.volume.annotations }}
annotations:
{{- toYaml .Values.volume.annotations | nindent 4 }}
{{- end }}
spec: spec:
serviceName: {{ template "seaweedfs.name" . }}-volume serviceName: {{ template "seaweedfs.name" . }}-volume
replicas: {{ .Values.volume.replicas }} replicas: {{ .Values.volume.replicas }}

View File

@@ -140,6 +140,9 @@ master:
# Annotations to be added to the master pods # Annotations to be added to the master pods
podAnnotations: {} podAnnotations: {}
# Annotations to be added to the master resources
annotations: {}
## Set podManagementPolicy ## Set podManagementPolicy
podManagementPolicy: Parallel podManagementPolicy: Parallel
@@ -410,6 +413,9 @@ volume:
# Annotations to be added to the volume pods # Annotations to be added to the volume pods
podAnnotations: {} podAnnotations: {}
# Annotations to be added to the volume resources
annotations: {}
## Set podManagementPolicy ## Set podManagementPolicy
podManagementPolicy: Parallel podManagementPolicy: Parallel
@@ -609,6 +615,9 @@ filer:
# Annotations to be added to the filer pods # Annotations to be added to the filer pods
podAnnotations: {} podAnnotations: {}
# Annotations to be added to the filer resource
annotations: {}
## Set podManagementPolicy ## Set podManagementPolicy
podManagementPolicy: Parallel podManagementPolicy: Parallel
@@ -828,6 +837,9 @@ s3:
# Annotations to be added to the s3 pods # Annotations to be added to the s3 pods
podAnnotations: {} podAnnotations: {}
# Annotations to be added to the s3 resources
annotations: {}
# 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