Skip to content

Commit 0103b5a

Browse files
authored
[kube-prometheus-stack] Show tmpfs option for Prometheus storageSpec (#363)
* Show tmpfs option for Prometheus storageSpec Did some digging for how to configure the default emptyDir for the `/prometheus` mount and I found https://github.com/prometheus-community/helm-charts/blob/3ab7f9b04e1ab5abd6c0b35268368422436ae3a6/charts/kube-prometheus-stack/crds/crd-prometheuses.yaml#L4502 Adding comment to storageSpec in case future folks want to use a tmpfs mount for metrics (useful for short-term/ephemeral things, fast queries, or for not ruining a RaspberryPi microSD card) Signed-off-by: Adrian Chifor <me@adrianchifor.com> * Bump chart version Signed-off-by: Adrian Chifor <me@adrianchifor.com> * Remove trailing space Signed-off-by: Adrian Chifor <me@adrianchifor.com>
1 parent 72a59c7 commit 0103b5a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

charts/kube-prometheus-stack/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ name: kube-prometheus-stack
1717
sources:
1818
- https://github.com/prometheus-community/helm-charts
1919
- https://github.com/prometheus-operator/kube-prometheus
20-
version: 11.1.4
20+
version: 11.1.5
2121
appVersion: 0.43.2
2222
tillerVersion: ">=2.12.0"
2323
kubeVersion: ">=1.16.0-0"

charts/kube-prometheus-stack/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1940,6 +1940,8 @@ prometheus:
19401940
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/user-guides/storage.md
19411941
##
19421942
storageSpec: {}
1943+
## Using PersistentVolumeClaim
1944+
##
19431945
# volumeClaimTemplate:
19441946
# spec:
19451947
# storageClassName: gluster
@@ -1949,6 +1951,11 @@ prometheus:
19491951
# storage: 50Gi
19501952
# selector: {}
19511953

1954+
## Using tmpfs volume
1955+
##
1956+
# emptyDir:
1957+
# medium: Memory
1958+
19521959
# Additional volumes on the output StatefulSet definition.
19531960
volumes: []
19541961
# Additional VolumeMounts on the output StatefulSet definition.

0 commit comments

Comments
 (0)