From c9709e1509ed34c92d3799d0ffd3cf479f295452 Mon Sep 17 00:00:00 2001 From: Rasmus Thorslund Date: Tue, 1 Apr 2025 15:25:52 +0200 Subject: [PATCH] first test adding microk8s checks for thruk --- global/overlay/etc/puppet/cosmos-rules.yaml | 1 + .../etc/puppet/modules/rut/manifests/controller_checks.pp | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 global/overlay/etc/puppet/modules/rut/manifests/controller_checks.pp diff --git a/global/overlay/etc/puppet/cosmos-rules.yaml b/global/overlay/etc/puppet/cosmos-rules.yaml index 86b54c9..6f78741 100644 --- a/global/overlay/etc/puppet/cosmos-rules.yaml +++ b/global/overlay/etc/puppet/cosmos-rules.yaml @@ -55,6 +55,7 @@ loki_tag: latest grafana_tag: latest receive_otel: true + rut::controller_checks: resolvers: - 89.46.20.75 - 89.46.21.29 diff --git a/global/overlay/etc/puppet/modules/rut/manifests/controller_checks.pp b/global/overlay/etc/puppet/modules/rut/manifests/controller_checks.pp new file mode 100644 index 0000000..f7e8d20 --- /dev/null +++ b/global/overlay/etc/puppet/modules/rut/manifests/controller_checks.pp @@ -0,0 +1,7 @@ +# Everything is awesome! +class rut::controller_checks { + nagioscfg::service {'check_rut_pods': + hostgroup_name => ['internal-sto4-prod-k8sc-0.rut.sunet.se'], + check_command => 'check_nrpe!check_rut_pods', + description => 'Microk8s cluster health', +}