From 1e0bdf05595d63f9ae5c516de729dc9edeec5807 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Sat, 23 Sep 2023 11:55:56 +0300 Subject: [PATCH] monitoring: Switch Prometheus to local path provisioner --- monitoring/prometheus.yaml | 2 +- storage-class.yaml | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/monitoring/prometheus.yaml b/monitoring/prometheus.yaml index e6246fa..5eb3fd4 100644 --- a/monitoring/prometheus.yaml +++ b/monitoring/prometheus.yaml @@ -53,7 +53,7 @@ spec: resources: requests: storage: 10Gi - storageClassName: local-path + storageClassName: prometheus --- apiVersion: v1 kind: ServiceAccount diff --git a/storage-class.yaml b/storage-class.yaml index ac61ed5..3329d43 100644 --- a/storage-class.yaml +++ b/storage-class.yaml @@ -14,12 +14,10 @@ apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: prometheus -provisioner: rawfile.csi.openebs.io +provisioner: rancher.io/local-path reclaimPolicy: Retain volumeBindingMode: WaitForFirstConsumer allowVolumeExpansion: true -parameters: - fsType: "xfs" --- apiVersion: storage.k8s.io/v1 kind: StorageClass