UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Verified Commit ca71bdb6 authored by Micah Nagel's avatar Micah Nagel
Browse files

Add Istio Annotations to Monitoring

parent f29b1f84
No related branches found
No related tags found
2 merge requests!1386Master,!1207Add Istio Annotations to Monitoring
Pipeline #635443 passed
......@@ -58,12 +58,18 @@ alertmanager:
imagePullPolicy: {{ .Values.imagePullPolicy }}
- name: "config-reloader"
imagePullPolicy: {{ .Values.imagePullPolicy }}
{{- if .Values.monitoring.sso.enabled }}
{{- $alertmanagerAuthserviceKey := (dig "selector" "key" "protect" .Values.addons.authservice.values) }}
{{- $alertmanagerAuthserviceValue := (dig "selector" "value" "keycloak" .Values.addons.authservice.values) }}
{{- if or .Values.monitoring.sso.enabled .Values.istio.enabled }}
podMetadata:
{{- if .Values.monitoring.sso.enabled }}
{{- $alertmanagerAuthserviceKey := (dig "selector" "key" "protect" .Values.addons.authservice.values) }}
{{- $alertmanagerAuthserviceValue := (dig "selector" "value" "keycloak" .Values.addons.authservice.values) }}
labels:
{{ $alertmanagerAuthserviceKey }}: {{ $alertmanagerAuthserviceValue }}
{{- end }}
{{- if .Values.istio.enabled }}
annotations:
{{ include "istioAnnotation" . }}
{{- end }}
{{- end }}
prometheus:
prometheusSpec:
......@@ -74,12 +80,18 @@ prometheus:
imagePullPolicy: {{ .Values.imagePullPolicy }}
- name: "config-reloader"
imagePullPolicy: {{ .Values.imagePullPolicy }}
{{- if .Values.monitoring.sso.enabled }}
{{- $prometheusAuthserviceKey := (dig "selector" "key" "protect" .Values.addons.authservice.values) }}
{{- $prometheusAuthserviceValue := (dig "selector" "value" "keycloak" .Values.addons.authservice.values) }}
{{- if or .Values.monitoring.sso.enabled .Values.istio.enabled }}
podMetadata:
{{- if .Values.monitoring.sso.enabled }}
{{- $prometheusAuthserviceKey := (dig "selector" "key" "protect" .Values.addons.authservice.values) }}
{{- $prometheusAuthserviceValue := (dig "selector" "value" "keycloak" .Values.addons.authservice.values) }}
labels:
{{ $prometheusAuthserviceKey }}: {{ $prometheusAuthserviceValue }}
{{- end }}
{{- if .Values.istio.enabled }}
annotations:
{{ include "istioAnnotation" . }}
{{- end }}
{{- end }}
anchore:
......@@ -106,6 +118,11 @@ grafana:
sidecar:
imagePullPolicy: {{ .Values.imagePullPolicy }}
{{- if .Values.istio.enabled }}
podAnnotations:
{{ include "istioAnnotation" . }}
{{- end }}
{{- if .Values.loki.enabled }}
additionalDataSources:
- name: Loki
......@@ -153,6 +170,11 @@ prometheus-node-exporter:
imagePullSecrets:
- name: private-registry
{{- if .Values.istio.enabled }}
podAnnotations:
{{ include "istioAnnotation" . }}
{{- end }}
{{- if .Values.openshift }}
service:
targetPort: 9102
......@@ -165,6 +187,11 @@ kube-state-metrics:
imagePullSecrets:
- name: private-registry
{{- if .Values.istio.enabled }}
podAnnotations:
{{ include "istioAnnotation" . }}
{{- end }}
prometheusOperator:
image:
pullPolicy: {{ .Values.imagePullPolicy }}
......@@ -175,4 +202,9 @@ prometheusOperator:
patch:
image:
pullPolicy: {{ .Values.imagePullPolicy }}
{{- if .Values.istio.enabled }}
podAnnotations:
{{ include "istioAnnotation" . }}
{{- end }}
{{- end -}}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment