Add appAnnotations for all statefulsets (#604)

This commit is contained in:
Haim Kortovich 2025-05-07 01:05:19 -05:00 committed by GitHub
parent cd701ecedd
commit 77ec4cedfb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 27 additions and 0 deletions

View File

@ -23,6 +23,7 @@ kind: StatefulSet
metadata:
name: "{{ template "pulsar.fullname" . }}-{{ .Values.autorecovery.component }}"
namespace: {{ template "pulsar.namespace" . }}
annotations: {{ .Values.autorecovery.appAnnotations | toYaml | nindent 4 }}
labels:
{{- include "pulsar.standardLabels" . | nindent 4 }}
component: {{ .Values.autorecovery.component }}

View File

@ -23,6 +23,7 @@ kind: StatefulSet
metadata:
name: "{{ template "pulsar.fullname" . }}-{{ .Values.bookkeeper.component }}"
namespace: {{ template "pulsar.namespace" . }}
annotations: {{ .Values.bookkeeper.appAnnotations | toYaml | nindent 4 }}
labels:
{{- include "pulsar.standardLabels" . | nindent 4 }}
component: {{ .Values.bookkeeper.component }}

View File

@ -25,6 +25,7 @@ metadata:
name: {{ $stsName | quote }}
{{- $namespace := include "pulsar.namespace" . }}
namespace: {{ $namespace | quote }}
annotations: {{ .Values.broker.appAnnotations | toYaml | nindent 4 }}
labels:
{{- include "pulsar.standardLabels" . | nindent 4 }}
component: {{ .Values.broker.component }}

View File

@ -26,6 +26,7 @@ metadata:
labels:
{{- include "pulsar.standardLabels" . | nindent 4 }}
component: {{ .Values.oxia.component }}-coordinator
annotations: {{ .Values.oxia.coordinator.appAnnotations | toYaml | nindent 4 }}
spec:
replicas: 1
selector:

View File

@ -26,6 +26,7 @@ metadata:
labels:
{{- include "pulsar.standardLabels" . | nindent 4 }}
component: {{ .Values.oxia.component }}-server
annotations: {{ .Values.oxia.server.appAnnotations | toYaml | nindent 4 }}
spec:
replicas: {{ .Values.oxia.server.replicas }}
selector:

View File

@ -23,6 +23,7 @@ kind: StatefulSet
metadata:
name: "{{ template "pulsar.fullname" . }}-{{ .Values.proxy.component }}"
namespace: {{ template "pulsar.namespace" . }}
annotations: {{ .Values.proxy.appAnnotations | toYaml | nindent 4 }}
labels:
{{- include "pulsar.standardLabels" . | nindent 4 }}
component: {{ .Values.proxy.component }}

View File

@ -23,6 +23,7 @@ kind: StatefulSet
metadata:
name: "{{ template "pulsar.fullname" . }}-{{ .Values.pulsar_manager.component }}"
namespace: {{ template "pulsar.namespace" . }}
annotations: {{ .Values.pulsar_manager.appAnnotations | toYaml | nindent 4 }}
labels:
{{- include "pulsar.standardLabels" . | nindent 4 }}
component: {{ .Values.pulsar_manager.component }}

View File

@ -23,6 +23,7 @@ kind: StatefulSet
metadata:
name: "{{ template "pulsar.fullname" . }}-{{ .Values.toolset.component }}"
namespace: {{ template "pulsar.namespace" . }}
annotations: {{ .Values.toolset.appAnnotations | toYaml | nindent 4 }}
labels:
{{- include "pulsar.standardLabels" . | nindent 4 }}
component: {{ .Values.toolset.component }}

View File

@ -24,6 +24,7 @@ kind: StatefulSet
metadata:
name: "{{ template "pulsar.fullname" . }}-{{ .Values.zookeeper.component }}"
namespace: {{ template "pulsar.namespace" . }}
annotations: {{ .Values.zookeeper.appAnnotations | toYaml | nindent 4 }}
labels:
{{- include "pulsar.standardLabels" . | nindent 4 }}
component: {{ .Values.zookeeper.component }}

View File

@ -385,6 +385,8 @@ zookeeper:
type: requiredDuringSchedulingIgnoredDuringExecution
# set topologySpreadConstraint to deploy pods across different zones
topologySpreadConstraints: []
# annotations for the app (statefulset/deployment)
appAnnotations: {}
annotations: {}
tolerations: []
gracePeriod: 30
@ -499,6 +501,8 @@ oxia:
replicationFactor: 3
## templates/coordinator-deployment.yaml
coordinator:
# annotations for the app (statefulset/deployment)
appAnnotations: {}
# This is how Victoria Metrics or Prometheus discovers this component
podMonitor:
enabled: true
@ -521,6 +525,8 @@ oxia:
# cloud.google.com/gke-nodepool: default-pool
## templates/server-statefulset.yaml
server:
# annotations for the app (statefulset/deployment)
appAnnotations: {}
# This is how Victoria Metrics or Prometheus discovers this component
podMonitor:
enabled: true
@ -638,6 +644,8 @@ bookkeeper:
type: requiredDuringSchedulingIgnoredDuringExecution
# set topologySpreadConstraint to deploy pods across different zones
topologySpreadConstraints: []
# annotations for the app (statefulset/deployment)
appAnnotations: {}
annotations: {}
tolerations: []
gracePeriod: 30
@ -828,6 +836,8 @@ autorecovery:
type: requiredDuringSchedulingIgnoredDuringExecution
# set topologySpreadConstraint to deploy pods across different zones
topologySpreadConstraints: []
# annotations for the app (statefulset/deployment)
appAnnotations: {}
annotations: {}
# tolerations: []
gracePeriod: 30
@ -1027,6 +1037,8 @@ broker:
type: preferredDuringSchedulingIgnoredDuringExecution
# set topologySpreadConstraint to deploy pods across different zones
topologySpreadConstraints: []
# annotations for the app (statefulset/deployment)
appAnnotations: {}
annotations: {}
tolerations: []
gracePeriod: 30
@ -1279,6 +1291,8 @@ proxy:
type: requiredDuringSchedulingIgnoredDuringExecution
# set topologySpreadConstraint to deploy pods across different zones
topologySpreadConstraints: []
# annotations for the app (statefulset/deployment)
appAnnotations: {}
annotations: {}
tolerations: []
gracePeriod: 30
@ -1447,6 +1461,8 @@ toolset:
# cloud.google.com/gke-nodepool: default-pool
# set topologySpreadConstraint to deploy pods across different zones
topologySpreadConstraints: []
# annotations for the app (statefulset/deployment)
appAnnotations: {}
annotations: {}
tolerations: []
gracePeriod: 30
@ -1730,6 +1746,8 @@ pulsar_manager:
# cloud.google.com/gke-nodepool: default-pool
# set topologySpreadConstraint to deploy pods across different zones
topologySpreadConstraints: []
# annotations for the app (statefulset/deployment)
appAnnotations: {}
annotations: {}
tolerations: []
extraVolumes: []