all repos — infra @ 8360f0cae06b5dbd755b3abe84a1994ce8182c8b

infrastructure manifests and setup notes

charts: add prometheus and grafana
Anirudh Oppiliappan x@icyphox.sh
Mon, 08 Jul 2024 00:46:10 +0300
commit

8360f0cae06b5dbd755b3abe84a1994ce8182c8b

parent

f752d418fb45cbdb1d3021468df2171bce4d2608

4 files changed, 35 insertions(+), 2 deletions(-)

jump to
M apps/coredns/coredns.yamlapps/coredns/coredns.yaml

@@ -2,13 +2,13 @@ apiVersion: v1

data: koti.lan.server: | koti.lan:53 { + log kubernetes koti.lan rewrite name dav.koti.lan radicale.default.svc.koti.lan rewrite name rss.koti.lan yarr.default.svc.koti.lan + rewrite name g.koti.lan grafana.monitoring.svc.koti.lan } - - import /etc/coredns/custom/*.server kind: ConfigMap metadata: name: coredns-custom
A charts/grafana.yaml

@@ -0,0 +1,16 @@

+apiVersion: helm.cattle.io/v1 +kind: HelmChart +metadata: + name: grafana + namespace: monitoring +spec: + repo: https://grafana.github.io/helm-charts + chart: grafana + targetNamespace: monitoring + valuesContent: |- + grafana.ini: + auth: + anonymous: + enabled: true + org_name: koti +
A charts/prometheus.yaml

@@ -0,0 +1,16 @@

+apiVersion: helm.cattle.io/v1 +kind: HelmChart +metadata: + name: prometheus + namespace: monitoring +spec: + repo: https://prometheus-community.github.io/helm-charts + chart: prometheus + targetNamespace: monitoring + valuesContent: |- + alertManager: + enabled: false + kube-state-metrics: + enabled: false + prometheus-pushgateway: + enabled: false
M readmereadme

@@ -21,6 +21,7 @@ • metallb: bare metal LoadBalancer provider

• coredns: DNS server • longhorn: distributed block storage • caddy: ingress controller +• prometheus/grafana: stats and visualisation APPLICATIONS