Hi Nina, No, by default, the Prometheus Operator uses an emptyDir for the Prometheus storage, which gets lost when the pod is rescheduled.
This explains how to add persistent volumes: https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/user-guides/storage.md Regards, Julius On Thu, Jun 3, 2021 at 9:08 AM nina guo <[email protected]> wrote: > Hi, > > If using Prometheus Operator to install in k8s cluster, the data pv will > be created automatically or not? > > -- > You received this message because you are subscribed to the Google Groups > "Prometheus Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/prometheus-users/e7f3ea4f-b7ad-473d-9095-170529fd32f5n%40googlegroups.com > <https://groups.google.com/d/msgid/prometheus-users/e7f3ea4f-b7ad-473d-9095-170529fd32f5n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Julius Volz PromLabs - promlabs.com -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CAObpH5zqio7JNZQ6DpAB6-5mQ8oFr6qJA408fQ4y_modyEOq9A%40mail.gmail.com.

