persistentvolumeclaim-ruler.yaml 653 B

123456789101112131415161718192021
  1. {{- if and (eq .Values.ruler.kind "Deployment") .Values.ruler.enabled .Values.ruler.persistence.enabled }}
  2. apiVersion: v1
  3. kind: PersistentVolumeClaim
  4. metadata:
  5. name: data-{{ include "loki.rulerFullname" . }}
  6. labels:
  7. {{- include "loki.rulerLabels" . | nindent 4 }}
  8. {{- with .Values.ruler.persistence.annotations }}
  9. annotations:
  10. {{- . | toYaml | nindent 4 }}
  11. {{- end }}
  12. spec:
  13. accessModes:
  14. - ReadWriteOnce
  15. {{- with .Values.ruler.persistence.storageClass }}
  16. storageClassName: {{ if (eq "-" .) }}""{{ else }}{{ . }}{{ end }}
  17. {{- end }}
  18. resources:
  19. requests:
  20. storage: "{{ .Values.ruler.persistence.size }}"
  21. {{- end }}