monitoring(fix): pvc out of sync

This commit is contained in:
Andrey Kartashov 2022-02-18 22:05:05 +07:00
parent ca942e35f5
commit 3e5591aa0c
3 changed files with 1 additions and 26 deletions

View file

@ -1,11 +0,0 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: prometheus
spec:
capacity:
storage: 10Gi
accessModes:
- ReadWriteOnce
hostPath:
path: /data/prometheus

View file

@ -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

View file

@ -5,6 +5,7 @@ victoria-metrics-k8s-stack:
vmsingle:
spec:
removePvcAfterDelete: true
storage:
storageClassName: local-path