Prometheus and nfs storage

9/25/2019

As per prometheus storage.md , the recommendation is not to use nfs storage as persistent volume for prometheus.

But solutions like prometheus operator and openshift shows examples which uses nfs as persistent volumes for prometheus.

So what am I missing here? If nfs is not recommended then why do these tools share examples to use nfs as the storage options for prometheus?

Does anyone know what could be the nfs alternative for NetApp/ Trident for prometheus?

-- swetad90
kubernetes
netapp
prometheus
trident

1 Answer

9/26/2019

The example in the prom-operator docs is just a hypothetical to show how to manually control the storage provisioning. NFS is generally an option of last resort in all cases :) Check out https://kubernetes.io/docs/concepts/storage/persistent-volumes/ for more general information on how to use each of the various PV plugins (or if none of those work, look up CSI stuffs), but for NetApp you would probably use the iSCSI interface.

-- coderanger
Source: StackOverflow