Branch: refs/heads/2.0.0
Home:
https://github.com/tribe29/checkmk
Commit: 2db360d7fd389f3cfb35a710cb5998f76a1a2651
https://github.com/tribe29/checkmk/commit/2db360d7fd389f3cfb35a710cb5998f76…
Author: Benedikt Seidl <benedikt.seidl(a)tribe29.com>
Date: 2021-04-30 (Fri, 30 Apr 2021)
Changed paths:
A .werks/12782
M cmk/base/plugins/agent_based/inventory_k8s_endpoint_info.py
M cmk/base/plugins/agent_based/k8s_daemon_pods.py
A cmk/base/plugins/agent_based/k8s_endpoint_info.py
M cmk/base/plugins/agent_based/k8s_ingress_infos.py
M cmk/base/plugins/agent_based/k8s_job_info.py
M cmk/base/plugins/agent_based/k8s_nodes.py
M cmk/base/plugins/agent_based/k8s_pod_container.py
M cmk/base/plugins/agent_based/k8s_replicas.py
M cmk/base/plugins/agent_based/k8s_service_port.py
M cmk/base/plugins/agent_based/k8s_stateful_set_replicas.py
M cmk/base/plugins/agent_based/utils/k8s.py
M cmk/gui/watolib/__init__.py
M tests/unit/cmk/base/plugins/agent_based/test_inv_k8s_endpoint_info.py
Log Message:
-----------
12782 FIX Activate inventory for kubernetes objects
A host is created for each kubernetes endpoint. On a checkmk site with
disabled inventory (the default) the endpoint host does not have any
services.
As Hosts without services are invalid, checkmk automatically adds a ping
service which fails, because the endpoint host is created from piggyback
data and ist not reachable. The error message looks like: "check_icmp:
No hosts to check"
This commit adds the label "cmk/kubernetes:yes" to kubernetes related
hosts, so the issue can now be fixed by creating an inventory rule that
activates the inventory on kubernetes endpoint hosts:
Go to "Setup" -> "HW/SW inventory rules" -> "Do
hardware/software
inventory" -> "Create rule in folder":
* "Status data inventory" -> "Do status data inventory"
* "Host labels" -> "has" -> "cmk/kubernetes:yes"
-> Save
This commit alters the default configuration. Sites created with checkmk
2.0.0p4 or later automatically enable the inventory for kubernetes
objects.
SUP-5771
Change-Id: I02f5687a85056cb3974cdf0d31bab1f51e151302