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

[occm] doesn't rely on coredns configuration to do dns resolution #2592

Closed
xinity opened this issue May 12, 2024 · 1 comment · Fixed by #2594
Closed

[occm] doesn't rely on coredns configuration to do dns resolution #2592

xinity opened this issue May 12, 2024 · 1 comment · Fixed by #2594
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@xinity
Copy link
Contributor

xinity commented May 12, 2024

/kind bug

What happened:
using occm daemonset on a cluster where coredns has a specific domain resolution for internal services (openstack core services).
the dns resolution made by occm seem to not rely on coredns configuration.

What you expected to happen:
the dns resolution done by occm should use the coredns configuration and resolve internal services rather than trying to resolv on the public internet.

How to reproduce it:
add into coredns configmap a specific domain resolution configuration:

[MYDOMAIN]:53 {
   log
   errors
   ready
   cache 10
   forward . [DNS1] [DNS2]
}

reload coredns configuration
test the resolution with the occm pod

Anything else we need to know?:
i've use the documentation https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/
to debug dns resolution. the conclusion is everything is configured correctly.

Environment:

  • openstack-cloud-controller-manager version: 1.30.0
  • OpenStack version: Ussuri
  • Others:
@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label May 12, 2024
@dulek
Copy link
Contributor

dulek commented May 13, 2024

This seems to be similar to #2574, OCCM doesn't specify dnsPolicy, so it defaults to ClusterFirst, but because OCCM runs with hostNetworking: true we end up with Default which means using DNS of the node. We should allow overriding this and default to ClusterFirstWithHostNet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants