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] kruise-daemon should use ClusterFirstWithHostNet for the DNS Policy #1447

Closed
chasain opened this issue Nov 6, 2023 · 5 comments · Fixed by openkruise/charts#109
Closed
Labels
kind/good-first-issue Good for newcomers kind/good-idea Good Idea
Milestone

Comments

@chasain
Copy link

chasain commented Nov 6, 2023

What happened: kruise-daemon isn't able to resolve internal DNS entries, i.e. a locally host docker proxy

What you expected to happen: kruise-daemon should be able to resolve service.namespace.svc.cluster.local entries

How to reproduce it (as minimally and precisely as possible): host a docker proxy in a cluster and use an ImagePull job to try to pull images through it, DNS lookup will fail

Anything else we need to know?: This is caused by not defining a dnsPolicy and the default ClusterFirst getting assigned, but since it's created with hostNetwork: true this has the effect of setting DNS to the node's DNS. It has to be changed manually to use the Cluster DNS, more info at https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy

Environment:

  • Kruise version: 1.5.0
  • Kubernetes version (use kubectl version): 1.23.17+k3s1
  • Install details (e.g. helm install args):
  manager:
    replicas: 1
  installation:
    createNamespace: false
  daemon:
    socketLocation: /var/run/k3s
  • Others:
@chasain chasain added the kind/bug Something isn't working label Nov 6, 2023
@zmberg
Copy link
Member

zmberg commented Nov 16, 2023

@chasain Can you submit pr for this issue in repo https://github.com/openkruise/charts/tree/master/versions/kruise/1.5.1 ?

@zmberg zmberg added kind/good-first-issue Good for newcomers kind/good-idea Good Idea and removed kind/bug Something isn't working labels Nov 16, 2023
@amghazanfari
Copy link

can i work on this issue? @zmberg

@zmberg
Copy link
Member

zmberg commented Nov 23, 2023

/assign @amghazanfari

@opencmit2
Copy link
Contributor

Hi @zmberg
Let me try it

Copy link

stale bot commented Jul 9, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Jul 9, 2024
@stale stale bot closed this as completed Jul 20, 2024
@furykerry furykerry removed the wontfix This will not be worked on label Jul 22, 2024
@furykerry furykerry reopened this Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/good-first-issue Good for newcomers kind/good-idea Good Idea
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants