Skip to content

Commit

Permalink
Add support for PV selector in Loki statefulset (grafana#2554)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-allard authored Sep 10, 2020
1 parent eb34b9e commit 78df4a5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion production/helm/loki-stack/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: "v1"
name: loki-stack
version: 0.40.0
version: 0.40.1
appVersion: v1.6.0
kubeVersion: "^1.10.0-0"
description: "Loki: like Prometheus, but for logs."
Expand Down
2 changes: 1 addition & 1 deletion production/helm/loki/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: "v1"
name: loki
version: 0.31.0
version: 0.31.1
appVersion: v1.6.0
kubeVersion: "^1.10.0-0"
description: "Loki: like Prometheus, but for logs."
Expand Down
5 changes: 4 additions & 1 deletion production/helm/loki/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,8 @@ spec:
requests:
storage: {{ .Values.persistence.size | quote }}
storageClassName: {{ .Values.persistence.storageClassName }}
{{- if .Values.persistence.selector }}
selector:
{{- toYaml .Values.persistence.selector | nindent 8 }}
{{- end }}
{{- end }}

3 changes: 3 additions & 0 deletions production/helm/loki/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ persistence:
- ReadWriteOnce
size: 10Gi
annotations: {}
# selector:
# matchLabels:
# app.kubernetes.io/name: loki
# subPath: ""
# existingClaim:

Expand Down

0 comments on commit 78df4a5

Please sign in to comment.