1
0
Fork 0

enable persistent storage for prometheus

This commit is contained in:
Massaki Archambault 2021-12-26 22:49:51 -05:00
parent 03c3efbdbe
commit 508b714c82
10 changed files with 20 additions and 6 deletions

View File

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

View File

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

View File

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

View File

@ -1,3 +1,2 @@
resources:
- node-exporter-daemonset.yaml
- node-exporter-servicemonitor.yaml

View File

@ -4,6 +4,8 @@ metadata:
name: prometheus
spec:
serviceAccountName: prometheus
retention: 28d
retentionSize: 4.5GB
ruleSelector:
matchLabels:
monitor: prometheus
@ -16,10 +18,22 @@ spec:
probeSelector:
matchLabels:
monitor: prometheus
securityContext:
runAsGroup: 65534
runAsNonRoot: true
runAsUser: 65534
fsGroup: 65534
resources:
requests:
cpu: 500m
memory: 1Gi
limits:
cpu: 1000m
memory: 2Gi
memory: 2Gi
storage:
volumeClaimTemplate:
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 5Gi

View File

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