You need to have a Kubernetes cluster You need to have a GlusterFS cluster Link : https://github.com/meisammaleki/persistent-volume-with-GlusterFS
- kubectl apply -f clusterRole.yaml
- kubectl apply -f serviceAccount.yaml
- kubectl apply -f clusterRoleBinding.yaml
cp prometheus.yml /"volume directory on main gluser server"/
- kubectl create -f prometheus-endpoint.yaml
- kubectl apply -f prometheus-pv-volume.yaml
- kubectl apply -f prometheus-pv-claim.yaml
- kubectl apply -f prometheus-deployment.yaml
- kubectl apply -f prometheus-service.yaml