PaaS/모니터링·로깅

DataDog 오류 : Unable to detect the kubelet URL automatically: impossible to reach Kubelet with host

armyost 2023. 11. 13. 23:06
728x90

 

2023-11-13 13:46:50 UTC | CORE | ERROR | (pkg/collector/python/kubeutil.go:41 in getConnections) | connection to kubelet failed: temporary failure in kubeutil, will retry later: impossible to reach Kubelet with host: 192.168.122.191. Please check if your setup requires kubelet_tls_verify = false. Activate debug logs to see all attempts made
2023-11-13 13:46:50 UTC | CORE | ERROR | (pkg/collector/worker/check_logger.go:69 in Error) | check:kubelet | Error running check: [{"message": "Unable to detect the kubelet URL automatically: impossible to reach Kubelet with host: 192.168.122.191. Please check if your setup requires kubelet_tls_verify = false. Activate debug logs to see all attempts made", "traceback": "Traceback (most recent call last):\n  File \"/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/base/checks/base.py\", line 1116, in run\n    self.check(instance)\n  File \"/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/kubelet/kubelet.py\", line 311, in check\n    raise CheckException(\"Unable to detect the kubelet URL automatically: \" + kubelet_conn_info.get('err', ''))\ndatadog_checks.base.errors.CheckException: Unable to detect the kubelet URL automatically: impossible to reach Kubelet with host: 192.168.122.191. Please check if your setup requires kubelet_tls_verify = false. Activate debug logs to see all attempts made\n"}]
2023-11-13 13:46:50 UTC | CORE | INFO | (pkg/collector/worker/check_logger.go:57 in CheckFinished) | check:kubelet | Done running check, next runs will be logged every 500 runs

 

 

위와 같이 kubelet이 자동으로 discovery를 할 수 없다고 한다. tls.. 어쩌고..

이때는 datadog Daemon Set을 수정해야 한다.

 

$ kubectl edit ds datadog-agent

DD_KUBELET_TLS_VERIFY 의 값을 "false"로 바꾸자