Skip to content

Commit

Permalink
Merge pull request kubecost#620 from kubecost/bolt/compact-pvc
Browse files Browse the repository at this point in the history
Thanos PVC Template + Values
  • Loading branch information
AjayTripathy authored Sep 29, 2020
2 parents c5ec9fb + 0328b6b commit 5bc6e13
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
25 changes: 25 additions & 0 deletions cost-analyzer/charts/thanos/templates/compact-pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{{- if .Values.compact.enabled }}
{{- if .Values.compact.dataVolume -}}
{{- if .Values.compact.dataVolume.persistentVolumeClaim -}}
{{- if .Values.compact.dataVolume.persistentVolumeClaim.claimName -}}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ .Values.compact.dataVolume.persistentVolumeClaim.claimName }}
spec:
accessModes:
- ReadWriteOnce
{{- if .Values.compact.dataVolume.persistentVolumeClaim.storageClass }}
storageClassName: {{ .Values.compact.dataVolume.persistentVolumeClaim.storageClass }}
{{ end }}
resources:
requests:
{{- if .Values.compact.dataVolume.persistentVolumeClaim.storage }}
storage: {{ .Values.compact.dataVolume.persistentVolumeClaim.storage }}
{{- else }}
storage: 100Gi
{{ end }}
{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}}
1 change: 1 addition & 0 deletions cost-analyzer/charts/thanos/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ compact:
backend: {}
# persistentVolumeClaim:
# claimName: compact-data-volume
# storage: 100Gi
# Extra labels for compact pod template
labels: {}
# cluster: example
Expand Down
4 changes: 4 additions & 0 deletions cost-analyzer/values-thanos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ thanos:
enabled: true
compact:
enabled: true
dataVolume:
persistentVolumeClaim:
claimName: compact-data-volume
storage: 100Gi
# This secret name should match the sidecar configured secret name volume
# in the prometheus.server.extraVolumes entry
storeSecretName: kubecost-thanos

0 comments on commit 5bc6e13

Please sign in to comment.