annotations (#610)

This commit is contained in:
Artem Nosulchyk 2025-05-13 19:35:44 -04:00 committed by GitHub
parent 57fa527b04
commit 8382906775
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 2 deletions

View File

@ -45,6 +45,9 @@ spec:
prometheus.io/scrape: "true" prometheus.io/scrape: "true"
prometheus.io/port: "{{ .Values.oxia.coordinator.ports.metrics }}" prometheus.io/port: "{{ .Values.oxia.coordinator.ports.metrics }}"
{{- end }} {{- end }}
{{- with .Values.oxia.coordinator.annotations }}
{{ toYaml . | indent 8 }}
{{- end }}
spec: spec:
{{- if .Values.oxia.server.nodeSelector }} {{- if .Values.oxia.server.nodeSelector }}
nodeSelector: nodeSelector:
@ -74,4 +77,4 @@ spec:
{{- include "oxia-cluster.probe" .Values.oxia.coordinator.ports.internal | nindent 12 }} {{- include "oxia-cluster.probe" .Values.oxia.coordinator.ports.internal | nindent 12 }}
readinessProbe: readinessProbe:
{{- include "oxia-cluster.probe" .Values.oxia.coordinator.ports.internal | nindent 12 }} {{- include "oxia-cluster.probe" .Values.oxia.coordinator.ports.internal | nindent 12 }}
{{- end }} {{- end }}

View File

@ -45,6 +45,9 @@ spec:
prometheus.io/scrape: "true" prometheus.io/scrape: "true"
prometheus.io/port: "{{ .Values.oxia.server.ports.metrics }}" prometheus.io/port: "{{ .Values.oxia.server.ports.metrics }}"
{{- end }} {{- end }}
{{- with .Values.oxia.server.annotations }}
{{ toYaml . | indent 8 }}
{{- end }}
spec: spec:
{{- if .Values.oxia.server.nodeSelector }} {{- if .Values.oxia.server.nodeSelector }}
nodeSelector: nodeSelector:
@ -147,4 +150,4 @@ spec:
resources: resources:
requests: requests:
storage: {{ .Values.oxia.server.storageSize }} storage: {{ .Values.oxia.server.storageSize }}
{{- end}} {{- end}}

View File

@ -503,6 +503,8 @@ oxia:
coordinator: coordinator:
# annotations for the app (statefulset/deployment) # annotations for the app (statefulset/deployment)
appAnnotations: {} appAnnotations: {}
# pods annotations
annotations: {}
# This is how Victoria Metrics or Prometheus discovers this component # This is how Victoria Metrics or Prometheus discovers this component
podMonitor: podMonitor:
enabled: true enabled: true
@ -527,6 +529,8 @@ oxia:
server: server:
# annotations for the app (statefulset/deployment) # annotations for the app (statefulset/deployment)
appAnnotations: {} appAnnotations: {}
# pods annotations
annotations: {}
# This is how Victoria Metrics or Prometheus discovers this component # This is how Victoria Metrics or Prometheus discovers this component
podMonitor: podMonitor:
enabled: true enabled: true