2022-04-11 06:57:04 +00:00
|
|
|
# see https://blog.ediri.io/kube-prometheus-stack-and-argocd-23-how-to-remove-a-workaround
|
2022-04-16 08:13:51 +00:00
|
|
|
local app = import "../../_templates/argocd_app.libsonnet";
|
2022-04-09 13:16:57 +00:00
|
|
|
|
|
|
|
local vars = {
|
2023-08-01 18:07:15 +00:00
|
|
|
"version": "48.2.3",
|
2022-04-09 13:16:57 +00:00
|
|
|
"namespace": "metrics"
|
|
|
|
};
|
2022-04-04 16:24:35 +00:00
|
|
|
|
|
|
|
[
|
2022-04-16 08:13:51 +00:00
|
|
|
app + {
|
2022-04-09 13:16:57 +00:00
|
|
|
name:: "prometheus-crds",
|
|
|
|
namespace:: vars.namespace,
|
2023-08-01 19:04:39 +00:00
|
|
|
path:: "charts/kube-prometheus-stack/charts/crds/crds",
|
2022-04-16 08:13:51 +00:00
|
|
|
repo:: "https://github.com/prometheus-community/helm-charts.git",
|
2022-04-09 13:16:57 +00:00
|
|
|
version:: "kube-prometheus-stack-" + vars.version,
|
2022-04-11 20:34:03 +00:00
|
|
|
syncOptions:: ["CreateNamespace=true", "Replace=true"],
|
|
|
|
sync_wave:: -1,
|
2022-04-09 13:16:57 +00:00
|
|
|
},
|
2022-04-16 08:13:51 +00:00
|
|
|
app + {
|
2022-04-04 16:24:35 +00:00
|
|
|
name:: "prometheus-grafana",
|
|
|
|
namespace: vars.namespace,
|
|
|
|
chart:: "kube-prometheus-stack",
|
2022-04-16 08:13:51 +00:00
|
|
|
repo:: "https://prometheus-community.github.io/helm-charts",
|
2022-04-04 16:24:35 +00:00
|
|
|
version:: vars.version,
|
|
|
|
skipCrds:: true,
|
|
|
|
values:: |||
|
2022-04-14 21:30:46 +00:00
|
|
|
fullnameOverride: prometheus-stack
|
2022-04-04 16:24:35 +00:00
|
|
|
kubeProxy:
|
|
|
|
enabled: false
|
|
|
|
kubeScheduler:
|
|
|
|
enabled: false
|
|
|
|
kubeControllerManager:
|
|
|
|
enabled: false
|
|
|
|
alertmanager:
|
2023-07-03 19:22:23 +00:00
|
|
|
enabled: false
|
2022-04-04 16:24:35 +00:00
|
|
|
prometheus:
|
|
|
|
prometheusSpec:
|
|
|
|
storageSpec:
|
|
|
|
volumeClaimTemplate:
|
|
|
|
spec:
|
|
|
|
accessModes: ["ReadWriteOnce"]
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
storage: 10Gi
|
|
|
|
|||
|
|
|
|
}
|
|
|
|
]
|