configmap-ruler.yaml 345 B

12345678910111213
  1. {{- if .Values.ruler.enabled }}
  2. {{- range $dir, $files := .Values.ruler.directories }}
  3. ---
  4. apiVersion: v1
  5. kind: ConfigMap
  6. metadata:
  7. name: {{ include "loki.rulerFullname" $ }}-{{ include "loki.rulerRulesDirName" $dir }}
  8. labels:
  9. {{- include "loki.rulerLabels" $ | nindent 4 }}
  10. data:
  11. {{- toYaml $files | nindent 2}}
  12. {{- end }}
  13. {{- end }}