persistentvolumeclaim-compactor.yaml 682 B

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