From f98fc426965b5e7be302ea62527d22e4d1862a5c Mon Sep 17 00:00:00 2001 From: Andrey Kartashov Date: Mon, 18 Nov 2019 17:18:12 +0700 Subject: [PATCH] monitoring: add volume for prometheus --- apps/system/monitoring/prometheus.yaml | 11 +++++++++++ apps/system/monitoring/volume.yaml | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 apps/system/monitoring/volume.yaml diff --git a/apps/system/monitoring/prometheus.yaml b/apps/system/monitoring/prometheus.yaml index 8586a18..bc57627 100644 --- a/apps/system/monitoring/prometheus.yaml +++ b/apps/system/monitoring/prometheus.yaml @@ -3,4 +3,15 @@ kind: Prometheus metadata: name: prometheus spec: + version: v2.14.0 replicas: 1 + securityContext: + runAsUser: 1000 + walCompression: true + storage: + volumeClaimTemplate: + spec: + volumeName: prometheus + resources: + requests: + storage: 10Gi diff --git a/apps/system/monitoring/volume.yaml b/apps/system/monitoring/volume.yaml new file mode 100644 index 0000000..d6aa5c2 --- /dev/null +++ b/apps/system/monitoring/volume.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: PersistentVolume +metadata: + name: prometheus +spec: + capacity: + storage: 10Gi + accessModes: + - ReadWriteOnce + hostPath: + path: /data/prometheus