mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-08-19 04:06:24 +00:00
Update config/plugin/dns_problem.sh
Co-authored-by: Dan Winship <danwinship@redhat.com>
This commit is contained in:
co-authored by
Dan Winship
parent
3f139c4165
commit
bc3150aa62
@@ -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