How to start Host DNS? #9434
-
ContextTalos 1.8.0 running on bare metal From the base install, this is the only patch I've applied: machine:
kubelet:
extraArgs:
rotate-server-certificates: true
extraMounts:
- destination: /var/openebs/local
type: bind
source: /var/openebs/local
options:
- rbind
- rshared
- rw
features:
hostDNS:
enabled: true
forwardKubeDNSToHost: true
cluster:
allowSchedulingOnControlPlanes: true Expected BehaviorAfter a few moments, I would expect to see an instance of the Actual BehaviorThe In a desperate attempt, I have also tried manually modifying the Corefile in the What am I missing to be able to start the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
You don't need to do anything, everything just works out of the box. Host DNS runs as part of |
Beta Was this translation helpful? Give feedback.
-
@smira I appreciate your reply. The problem I'm trying to solve is that I have deployed a local container registry service at I am likely misunderstanding something, but I'd appreciate a second look at resolving this. Thanks! |
Beta Was this translation helpful? Give feedback.
Host DNS is not supposed to resolve Kubernetes addresses, and Kubelet runs on the host, so it is using host DNS.
In order to resolve this issue, you have couple of options, but they all require to pick a fixed IP for the
Service
registry
in Kubernetes (instead of letting Kubernetes allocate one), and then:registry
to the service IP via https://www.talos.dev/v1.8/reference/configuration/v1alpha1/config/#Config.machine.network.extraHostEntries.registry/
to that IP: https://www.talos.dev/v1.8/reference/configuration/v1alpha1/config/#Config.machine.registries.mirrors.-