Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [sc-103754] Be able to detect search domain misconfiguration #1391 #1534

Merged
merged 4 commits into from
Apr 30, 2024

Conversation

nvanthao
Copy link
Member

@nvanthao nvanthao commented Apr 28, 2024

Close #1391

This PR automates some of the steps in Kubernetes document on troubleshooting DNS
https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/

I originally plan to use busybox as the test pod but nslookup does not run correctly in that image. Hence I used this image registry.k8s.io/e2e-test-images/jessie-dnsutils:1.3 from Kubernetes document.

@nvanthao nvanthao added the type::feature New feature or request label Apr 28, 2024
@nvanthao nvanthao self-assigned this Apr 28, 2024
@nvanthao nvanthao linked an issue Apr 29, 2024 that may be closed by this pull request
@nvanthao nvanthao force-pushed the gerard/sc-103754/f-dns-collector branch from e1f2ff0 to d0501b0 Compare April 29, 2024 03:43
@nvanthao nvanthao marked this pull request as ready for review April 29, 2024 03:43
@nvanthao nvanthao requested a review from a team as a code owner April 29, 2024 03:43
@danj-replicated
Copy link
Member

I really like this, but aren't we already collecting the coredns config as a configmap?

@nvanthao
Copy link
Member Author

Indeed we already collecting coredns config map in support bundle. This is just for convenience.

Currently we have to do few grep and jq filter to extract Corefile in cluster-resources/configmaps/kube-system.json

Other data such as endpoints is also in support bundle but not ready to be extracted from sbctl. E.g.

kubectl describe endpoints kube-dns -n kube-system
Error from server (InternalError): an error on the server ("") has prevented the request from succeeding (get endpoints kube-dns)

@nvanthao nvanthao force-pushed the gerard/sc-103754/f-dns-collector branch from 1a22548 to d1b96de Compare April 30, 2024 11:14
@danj-replicated
Copy link
Member

it looks like you're still tweaking a few things. lmk when this is ready for review and I'll give it a proper look over

@nvanthao
Copy link
Member Author

many thanks @danj-replicated! The code is ready for review, I've just rebased to main.

@nvanthao nvanthao merged commit 6b368f2 into main Apr 30, 2024
27 checks passed
@nvanthao nvanthao deleted the gerard/sc-103754/f-dns-collector branch April 30, 2024 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Be able to detect search domain misconfiguration
2 participants