CMK version:
OS version: Ubuntu 20.4
Error message: Kubernetes monitoring: [special_kube] Agent exited with code 1: Failed to establish connection to xxx.xxx.xx.x:6443 at URL /version
I am new to checkmk and I am trying to monitor a kubernetes cluster within a VM running checkmk. Whenever I complete the documentation and get to the point of checking the connection it fails complaining it cannot establish a connection.
My assumption is that there is a network issue going on. Maybe I am using the incorrect IP addresses and ports for the setup of the kubernetes rule.
For the option requesting the “control plane IP”. I am using the cluster IP I see under the below command. And the port 6443 . I am able to hit this IP address.
kubectl get nodes -o wide
for the “service url IP” I am using the internal IP i see when I run the below command . And the port 30035 which was configured for nodeport in the yaml file . I am unable to hit this IP address
kubectl get service
I am banging my head against the wall on this one but I think I am close to a solution. any suggestions are greatly appreciated.