improve thanos/prometheus retention
This commit is contained in:
@@ -4,7 +4,7 @@ metadata:
|
||||
name: prometheus
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
knd: ClusterRole
|
||||
metadata:
|
||||
name: prometheus
|
||||
rules:
|
||||
@@ -51,6 +51,8 @@ spec:
|
||||
resources:
|
||||
requests:
|
||||
memory: 400Mi
|
||||
retention: 730d
|
||||
retentionSize: 50Gi
|
||||
serviceAccountName: prometheus
|
||||
enableAdminAPI: false
|
||||
serviceMonitorNamespaceSelector: {}
|
||||
@@ -61,7 +63,15 @@ spec:
|
||||
# loads the config from a secret named thanos-objstore-config in the same namespace
|
||||
key: thanos.yaml
|
||||
name: thanos-objstore-config
|
||||
|
||||
volumeClaimTemplate:
|
||||
metadata:
|
||||
name: prometheus-data
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 50Gi
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
Reference in New Issue
Block a user