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

[BUG] Unable to resolve host address #1466

Closed
YAOHAO9 opened this issue Jul 9, 2024 · 1 comment
Closed

[BUG] Unable to resolve host address #1466

YAOHAO9 opened this issue Jul 9, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@YAOHAO9
Copy link

YAOHAO9 commented Jul 9, 2024

What did you do

  • How was the cluster created?

    • autok3s create --provider k3d --master 1 --name K3D --worker 2 --api-port 0.0.0.0:0 --image docker.io/rancher/k3s:latest --ports '81:80' --ports '6443:6443'
  • What did you do afterwards?

Here are the steps to reproduce it

  • docker exec -it k3d-K3D-server-0 sh Enter one of the k3s nodes.
  • crictl ps List the containers of the node that you enter
  • crictl exec -it container_id sh Enter a pod which is on the node you have entered.
  • wget google.com you will get this error: "wget: unable to resolve host address 'google.com'",
  • If one of the pods cannot resolve the DNS issue, It means all of pods in the node cannot resolve DNS issue. But it is strange that there is no problem with the DNS issue of the node where this pod is located
image
@YAOHAO9 YAOHAO9 added the bug Something isn't working label Jul 9, 2024
@iwilltry42
Copy link
Member

iwilltry42 commented Jul 9, 2024

Assuming this is on v5.7.0, this was fixed in v5.7.1 - please reopen, if it wasn't fixed with the new release for you.
Please see #1462

EDIT: adding to your observations: the error is in CoreDNS, which is not used from the pods but not from the node

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants