mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-02-14 18:09:57 +00:00
Update config/plugin/dns_problem.sh
Co-authored-by: Dan Winship <danwinship@redhat.com>
This commit is contained in:
@@ -14,7 +14,7 @@ if ! command -v getent >/dev/null; then
|
||||
exit $UNKNOWN
|
||||
fi
|
||||
|
||||
# Return success if a DNS lookup to the Kubernetes host is successful
|
||||
# Return success if a DNS lookup of the kubernetes service is successful
|
||||
if getent hosts "${KUBERNETES_SERVICE}" >/dev/null; then
|
||||
echo "DNS lookup to ${KUBERNETES_SERVICE} is working"
|
||||
exit $OK
|
||||
|
||||
Reference in New Issue
Block a user