-
Notifications
You must be signed in to change notification settings - Fork 403
Requesting for resources using kubectl throws an error #47
Comments
Any update on this? I'm facing exactly the same problem |
I haven't played with it since. I've got some new bare metal servers coming in next week, and I'm thinking I'll try running this on KVM, see if the issue still persists. |
+1 same issue. Both live booted and once installed. Occurs on KVM-based and bare metal. It seems containerd is crashing on startup as it's trying to listen on a very random IP which the host doesn't own. This comes from the log in
Confirmed this in both the live and installed versions of the 2.0 release. Still hunting down where the IP is coming from, i haven't found a containerd config file as such yet. containerd appears to be started via the
IP belongs to cloudflare, wondering if it's an "are we online" kinda check in the startup scripts which then gets wrongly used in a config template. I'll keep digging. |
OK, found it. TL;DR There's probably something up with your DNS settings, which you're probably getting via DHCP. Test this by changing Issue So containerd is trying to resolve this name into an IP, so that it knows what IP it needs to listen on for starting the service. The issue occurs if you have a search path configured in your DNS settings (or the ones delivered by your DHCP server), AND the domain in your search path also happens to respond with an IP, for example if the search path you have configured has a wildcard DNS record, so anything.search.path.domain.com will respond with an answer. This is what was happening to me, i get a cloudflare IP back because of a wildcard DNS entry i configured years ago, and so containerd then tries to use it as the IP to listen on, which obviously fails because my k3os machine doesn't have a local IP matching that. What should happen, is nothing should respond, the DNS query will fall through to the local hosts file, without a domain, where it will match localhost, resolve to Although why that couldn't just be hard-coded to |
Fixed via #170 |
I'm running the latest release of k3OS on VirtualBox 6.0.6 r130049. Running
kubectl get nodes
throws the following error:The connection to the server localhost:6443 was refused - did you specify the right host or port?
I tried other resources - I get the same result. At first I thought there may be an issue with the VM's networking - but on further reflection, I no longer think so. Probably a configuration issue of some sort.
Attaching a screenshot.
The text was updated successfully, but these errors were encountered: