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: resources:
- helium-blockchain-exporter-deployment.yaml - helium-blockchain-exporter-deployment.yaml
- helium-blockchain-exporter-servicemonitor.yaml
- helium-blockchain-exporter-prometheusrule.yaml
configMapGenerator: configMapGenerator:
- name: helium-blockchain-exporter-config - name: helium-blockchain-exporter-config

View File

@ -1,5 +1,4 @@
resources: 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-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/cluster-role.yaml
- https://raw.githubusercontent.com/kubernetes/kube-state-metrics/v2.1.1/examples/standard/deployment.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 defaultReplicaCount: 2
defaultDataLocality: best-effort defaultDataLocality: best-effort
replicaAutoBalance: best-effort replicaAutoBalance: best-effort
taintToleration: kubernetes.io/arch: taintToleration: "kubernetes.io/arch:"
longhornManager: longhornManager:
tolerations: tolerations:
- key: kubernetes.io/arch - key: kubernetes.io/arch

View File

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

View File

@ -4,6 +4,8 @@ metadata:
name: prometheus name: prometheus
spec: spec:
serviceAccountName: prometheus serviceAccountName: prometheus
retention: 28d
retentionSize: 4.5GB
ruleSelector: ruleSelector:
matchLabels: matchLabels:
monitor: prometheus monitor: prometheus
@ -16,6 +18,11 @@ spec:
probeSelector: probeSelector:
matchLabels: matchLabels:
monitor: prometheus monitor: prometheus
securityContext:
runAsGroup: 65534
runAsNonRoot: true
runAsUser: 65534
fsGroup: 65534
resources: resources:
requests: requests:
cpu: 500m cpu: 500m
@ -23,3 +30,10 @@ spec:
limits: limits:
cpu: 1000m 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/kubelet.yaml
- servicemonitors/longhorn.yaml - servicemonitors/longhorn.yaml
- servicemonitors/prometheus.yaml - servicemonitors/prometheus.yaml
- servicemonitors/kube-state-metrics.yaml
- servicemonitors/helium-blockchain-exporter.yaml
- servicemonitors/node-exporter.yaml
- probes/blackbox-exporter.yaml - probes/blackbox-exporter.yaml
- prometheusrules/helium-blockchain-exporter.yaml
resources: resources:
- namespace.yaml - namespace.yaml