kubezero/charts/kubezero-metrics/charts/kube-prometheus-stack/templates/thanos-ruler/serviceaccount.yaml

21 lines
835 B
YAML
Raw Normal View History

2022-08-24 15:13:39 +00:00
{{- if and .Values.thanosRuler.enabled .Values.thanosRuler.serviceAccount.create }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ template "kube-prometheus-stack.thanosRuler.serviceAccountName" . }}
namespace: {{ template "kube-prometheus-stack.namespace" . }}
labels:
2023-04-14 10:44:57 +00:00
app: {{ template "kube-prometheus-stack.thanosRuler.name" . }}
app.kubernetes.io/name: {{ template "kube-prometheus-stack.thanosRuler.name" . }}
2022-08-24 15:13:39 +00:00
app.kubernetes.io/component: thanos-ruler
2023-04-14 10:44:57 +00:00
{{- include "kube-prometheus-stack.labels" . | indent 4 -}}
2022-08-24 15:13:39 +00:00
{{- if .Values.thanosRuler.serviceAccount.annotations }}
annotations:
{{ toYaml .Values.thanosRuler.serviceAccount.annotations | indent 4 }}
{{- end }}
{{- if .Values.global.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.global.imagePullSecrets | indent 2 }}
{{- end }}
{{- end }}