I am using the prometheus-operator
helm chart. I want the data in prometheus server to persist. But open restart of the prometheus
StatefulSet
, the data disappears. When inspecting the yaml
definitions of the associated StatefulSet
and Pod
objects, there is no PersistVolumeClaim
.
I tried the following change to values.yaml
, per the docs in https://github.com/helm/charts/tree/master/stable/prometheus:
prometheus:
server:
persistentVolume:
enabled: true
but this has no effect on the end result (even after reinstalling the chart and reinstalling the StatefulSet
).
I expect the StatefulSet
backing the prometheus server to have persistent volume claims, so that data is persisted upon restart.
stable/prometheus-operator
helm chart, as I never install it independently. I cannot follow thestable/prometheus-operator
chart source code well enough to understand exactly where this happens. – Jack Reilly