Comments (8)
After two days of troubleshooting, I found a solution by disabling DNS and re-enabling it with my routers IP address as DNS:
microk8s disable dns
microk8s enable dns:192.168.178.1
I found the IP in /run/systemd/resolve/resolv.conf
which, according to the Kubernetes docs, should be the correct resolve file when the host machine is using systemd-resolved
.
What did not help was to set a different DNS (I've tried Cloudflare 1.1.1.1). Also, dig
worked the whole time, so I really do not understand what is going on.
from microk8s.
Hi @McToel
Which microk8s version are you using? Starting from MicroK8s 1.26, MicroK8s will attempt to pick the upstream nameservers from /run/systemd/resolve/resolv.conf
by default.
-
How do you (and did you) enable dns?
-
What's the output of
snap run --shell microk8s -c '$SNAP/scripts/find-resolv-conf.py'
? -
What's in your
/run/systemd/resolve/resolv.conf
?
from microk8s.
I'm running MicroK8s v1.29.2 revision 6641.
It could be, that as I first enabled DNS I was running a version prior to 1.26. But while investigating the problem, I have disabled and enabled dns a few times. I enabled dns with microk8s enable dns
in the beginning.
Here is the output for 2. and 3.:
➜ ~ snap run --shell microk8s -c '$SNAP/scripts/find-resolv-conf.py'
/run/systemd/resolve/resolv.conf
➜ ~ cat /run/systemd/resolve/resolv.conf
# This is /run/systemd/resolve/resolv.conf managed by man:systemd-resolved(8).
# Do not edit.
#
# This file might be symlinked as /etc/resolv.conf. If you're looking at
# /etc/resolv.conf and seeing this text, you have followed the symlink.
#
# This is a dynamic resolv.conf file for connecting local clients directly to
# all known uplink DNS servers. This file lists all configured search domains.
#
# Third party programs should typically not access this file directly, but only
# through the symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a
# different way, replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.
nameserver 192.168.178.1
search fritz.box
from microk8s.
I have exactly the same problem... I can't resolve it by pointing it to my pi hole either. It works for a second and then the problems start again.
from microk8s.
I had a similar issue and fixed it with conditional forwarding on my pi hole
Maybe someone with more network knowledge can explain why this only happens to pods but not on other devices in my network.
Hoping this can help you out
from microk8s.
I recreated the dns service with the following settings, which worked for me.
First remove it:
microk8s disable dns
Then after I've recreated it:
microk8s enable dns:<pi-hole address>
from microk8s.
root@dnsutils:/# nslookup deb.debian.org Server: 10.152.183.10 Address: 10.152.183.10#53 Non-authoritative answer: Name: deb.debian.org.fritz.box Address: 45.76.93.104
It looks that you are suffering DNS hijacking, please check this https://crapts.org/2024/04/21/all-fritz-box-modems-have-been-hijacked/
from microk8s.
Hi ,
Applied below steps, pods started to communicate each-other.
- microk8s disable dns
- microk8s enable dns:<ip address from /run/systemd/resolve/resolv.conf>
But after 1 hour , pod suddenly stopped communicating with each other.
Please help me to resolve this issue.
from microk8s.
Related Issues (20)
- v1.29/stable not working on hetzner HOT 5
- Remote access to Microk8s Cluster running on a MacOS HOT 2
- how to update metaalb address range HOT 1
- The Microk8s Addon's GPU is not working. HOT 1
- traefik-dashboard pod not created after `microk8s enable traefik` HOT 1
- Expose port on host machine problem HOT 1
- microk8s Off-line installation fails on RHEL 9.3 HOT 7
- launch failed: Cannot open image file for computing hash HOT 2
- [MinIO addon] console pod goes into ImagePullBackOff HOT 9
- Microk8s clustering, Connection Filed, Invalid Token (500) error only when joining cluster with --worker flag in 1.30/stable HOT 1
- Status --wait-ready never ends HOT 1
- Installation of 1.30/stable on debian-12-genericcloud-amd64.qcow2 fails HOT 12
- Question: why microk8s.ctr shows additional container images tagged by hash HOT 1
- Join microk8s nodes in multipass VMs from two different physical machines on the same local network
- Missing 1.30 images build script? HOT 1
- Registry service stuck in pending state
- Windows node invalid certificate (Certificate does not include any IP SANs) HOT 3
- Cluster down kine.sock connection refused HOT 1
- `microk8s join ... --worker` works, `microk8s join ... ` does not HOT 2
- microk8s wont install with MacOs M1 macmini, Homebrew HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microk8s.