Replies: 4 comments
-
I don't believe this should be marked as a bug per se. I have no idea how to remove that label though; perhaps I don't have the rights to do so. |
Beta Was this translation helpful? Give feedback.
-
@DuncanvR I imagine that you would need an |
Beta Was this translation helpful? Give feedback.
-
A more sophisticated solution might be scan your cluster's coredns for SRV records and export those to an network-local resolver combined with ingress to forward requests to the services in your cluster. |
Beta Was this translation helpful? Give feedback.
-
Thanks @dweomer. I had already tried adding the cluster's DNS server to In the end I'd love to find a solution that's a little more robust, i.e. not dependent on me entering IP addresses. I guess the only place where those pod addresses (either coredns, or in my case the image registry) are known, is inside Kubernetes. A job could do something with them, but probably doesn't have rights to change anything on the node(s). The control plane might be a better place for that. But I'm starting to feel a little out of my depth here. Do you have any pointers? |
Beta Was this translation helpful? Give feedback.
-
Version (k3OS / kernel)
k3os version v0.11.1
5.4.0-48-generic #52 SMP Sat Sep 26 08:27:15 UTC 2020
Architecture
x86_64
Describe the bug
I originally reported this issue in the k3s repo (k3s-io/k3s#1581), but it seems to fit better here. In short, I want to deploy images that come from a registry running on the same cluster. I can get it to work using the IP address of the registry, but not using an internal domain name (
*.svc.cluster.local
).To Reproduce
The linked issue lists the steps I took in detail; I'll summarise here:
Expected behavior
The pod comes online after pulling the image from the registry.
Actual behavior
The pod goes into
ErrImagePull
state, as k3s cannot resolve the domain name of the registry, with a warning message like:Additional context
In the linked issue I've also described my attempts to make k3OS use kube-dns for resolving domain names. This has been partially successful, i.e. working with many warnings. My main question is how to get that to work.
Beta Was this translation helpful? Give feedback.
All reactions