enable persistent storage for prometheus
This commit is contained in:
parent
03c3efbdbe
commit
508b714c82
|
@ -1,7 +1,5 @@
|
|||
resources:
|
||||
- helium-blockchain-exporter-deployment.yaml
|
||||
- helium-blockchain-exporter-servicemonitor.yaml
|
||||
- helium-blockchain-exporter-prometheusrule.yaml
|
||||
|
||||
configMapGenerator:
|
||||
- name: helium-blockchain-exporter-config
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
resources:
|
||||
- kube-state-metrics-servicemonitors.yaml
|
||||
- https://raw.githubusercontent.com/kubernetes/kube-state-metrics/v2.1.1/examples/standard/cluster-role-binding.yaml
|
||||
- https://raw.githubusercontent.com/kubernetes/kube-state-metrics/v2.1.1/examples/standard/cluster-role.yaml
|
||||
- https://raw.githubusercontent.com/kubernetes/kube-state-metrics/v2.1.1/examples/standard/deployment.yaml
|
||||
|
|
|
@ -16,7 +16,7 @@ spec:
|
|||
defaultReplicaCount: 2
|
||||
defaultDataLocality: best-effort
|
||||
replicaAutoBalance: best-effort
|
||||
taintToleration: kubernetes.io/arch:
|
||||
taintToleration: "kubernetes.io/arch:"
|
||||
longhornManager:
|
||||
tolerations:
|
||||
- key: kubernetes.io/arch
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
resources:
|
||||
- node-exporter-daemonset.yaml
|
||||
- node-exporter-servicemonitor.yaml
|
||||
|
|
|
@ -4,6 +4,8 @@ metadata:
|
|||
name: prometheus
|
||||
spec:
|
||||
serviceAccountName: prometheus
|
||||
retention: 28d
|
||||
retentionSize: 4.5GB
|
||||
ruleSelector:
|
||||
matchLabels:
|
||||
monitor: prometheus
|
||||
|
@ -16,6 +18,11 @@ spec:
|
|||
probeSelector:
|
||||
matchLabels:
|
||||
monitor: prometheus
|
||||
securityContext:
|
||||
runAsGroup: 65534
|
||||
runAsNonRoot: true
|
||||
runAsUser: 65534
|
||||
fsGroup: 65534
|
||||
resources:
|
||||
requests:
|
||||
cpu: 500m
|
||||
|
@ -23,3 +30,10 @@ spec:
|
|||
limits:
|
||||
cpu: 1000m
|
||||
memory: 2Gi
|
||||
storage:
|
||||
volumeClaimTemplate:
|
||||
spec:
|
||||
accessModes: ["ReadWriteOnce"]
|
||||
resources:
|
||||
requests:
|
||||
storage: 5Gi
|
|
@ -8,7 +8,11 @@ bases:
|
|||
- servicemonitors/kubelet.yaml
|
||||
- servicemonitors/longhorn.yaml
|
||||
- servicemonitors/prometheus.yaml
|
||||
- servicemonitors/kube-state-metrics.yaml
|
||||
- servicemonitors/helium-blockchain-exporter.yaml
|
||||
- servicemonitors/node-exporter.yaml
|
||||
- probes/blackbox-exporter.yaml
|
||||
- prometheusrules/helium-blockchain-exporter.yaml
|
||||
|
||||
resources:
|
||||
- namespace.yaml
|
||||
|
|
Loading…
Reference in New Issue