Skip to content

Commit

Permalink
[manila] fix prom annotation for api pods
Browse files Browse the repository at this point in the history
  • Loading branch information
chuan137 committed Jul 3, 2024
1 parent dd6a1f4 commit c73c99c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openstack/manila/templates/api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ spec:
secrets-hash: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
kubectl.kubernetes.io/default-container: manila-api
{{- include "utils.linkerd.pod_and_service_annotation" . | indent 8 }}
{{- if .Values.proxysql.mode }}
prometheus.io/scrape: "true"
prometheus.io/targets: {{ required ".Values.alerts.prometheus.openstack missing" .Values.alerts.prometheus.openstack | quote }}
{{- end }}
spec:
{{- tuple . "manila" "api" | include "kubernetes_pod_anti_affinity" | nindent 6 }}
{{- tuple . (dict "name" (print .Release.Name "-api")) | include "utils.topology.constraints" | indent 6 }}
Expand Down

0 comments on commit c73c99c

Please sign in to comment.