From 3e5591aa0c16ccf33e9c430bcd2390a3712c653b Mon Sep 17 00:00:00 2001 From: Andrey Kartashov Date: Fri, 18 Feb 2022 22:05:05 +0700 Subject: [PATCH] monitoring(fix): pvc out of sync --- .../monitoring/templates/prometheus-volume.yaml | 11 ----------- .../templates/servicemonitor-nginx-ingress.yaml | 15 --------------- apps/system/monitoring/values.yaml | 1 + 3 files changed, 1 insertion(+), 26 deletions(-) delete mode 100644 apps/system/monitoring/templates/prometheus-volume.yaml delete mode 100644 apps/system/monitoring/templates/servicemonitor-nginx-ingress.yaml diff --git a/apps/system/monitoring/templates/prometheus-volume.yaml b/apps/system/monitoring/templates/prometheus-volume.yaml deleted file mode 100644 index d6aa5c2..0000000 --- a/apps/system/monitoring/templates/prometheus-volume.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: v1 -kind: PersistentVolume -metadata: - name: prometheus -spec: - capacity: - storage: 10Gi - accessModes: - - ReadWriteOnce - hostPath: - path: /data/prometheus diff --git a/apps/system/monitoring/templates/servicemonitor-nginx-ingress.yaml b/apps/system/monitoring/templates/servicemonitor-nginx-ingress.yaml deleted file mode 100644 index 0f26f09..0000000 --- a/apps/system/monitoring/templates/servicemonitor-nginx-ingress.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: monitoring.coreos.com/v1 -kind: ServiceMonitor -metadata: - name: nginx-ingress -spec: - namespaceSelector: - matchNames: - - nginx-ingress - selector: - matchLabels: - app: nginx-ingress - component: controller - endpoints: - - port: metrics - interval: 30s diff --git a/apps/system/monitoring/values.yaml b/apps/system/monitoring/values.yaml index ab3eab2..2ac31c1 100644 --- a/apps/system/monitoring/values.yaml +++ b/apps/system/monitoring/values.yaml @@ -5,6 +5,7 @@ victoria-metrics-k8s-stack: vmsingle: spec: + removePvcAfterDelete: true storage: storageClassName: local-path