mirror of
https://github.com/amkartashov/gf-k8s.git
synced 2026-01-11 09:59:43 +00:00
monitoring: add volume for prometheus
This commit is contained in:
parent
c26f85252b
commit
f98fc42696
2 changed files with 22 additions and 0 deletions
|
|
@ -3,4 +3,15 @@ kind: Prometheus
|
||||||
metadata:
|
metadata:
|
||||||
name: prometheus
|
name: prometheus
|
||||||
spec:
|
spec:
|
||||||
|
version: v2.14.0
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 1000
|
||||||
|
walCompression: true
|
||||||
|
storage:
|
||||||
|
volumeClaimTemplate:
|
||||||
|
spec:
|
||||||
|
volumeName: prometheus
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 10Gi
|
||||||
|
|
|
||||||
11
apps/system/monitoring/volume.yaml
Normal file
11
apps/system/monitoring/volume.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolume
|
||||||
|
metadata:
|
||||||
|
name: prometheus
|
||||||
|
spec:
|
||||||
|
capacity:
|
||||||
|
storage: 10Gi
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
hostPath:
|
||||||
|
path: /data/prometheus
|
||||||
Loading…
Reference in a new issue