k3s air-gapped env resolve dns fails for statefulset #11343
Replies: 3 comments 4 replies
-
Perhaps https://docs.k3s.io/installation/airgap#default-network-route |
Beta Was this translation helpful? Give feedback.
-
You disabled traefik, what are you using as its replacement? |
Beta Was this translation helpful? Give feedback.
-
kubectl get nodes -o wide
Also I tried other setups, like no external-ip, but same result masterip route show
ip -br a
workerip route show
ip -br a
You can see Docker routers here , since I installed and tested Docker Swarm to test if the issue is by the Machines or not. Docker Swarm DNS resolution works fine |
Beta Was this translation helpful? Give feedback.
-
An air-gapped env has been configured with one master and a worker.
k3s
os
master
worker
sample pod
Two pods have been created and set on a single node
issue
On this air-gapped env web-0 and web-1 cannot see (
ping
) each other. On web-0 pod, it canping
itself but not web-1 and vice versa , on web-1 it canping
itself but not web-0 even if we use subdomaintests
Out of the air-gapped env, (public access to Internet) with the exact same k3s version and nginx config it works fine.
question
Is this issue because of air-gapped env ?
Or perhaps any extra or special configs are needed ?
screenshots
air-gapped
public
more info
Nothing has been blocked on machines, all ports and protos are allowed . Using
nc
tested that udp 53 are passed.kubectl get svc
kubectl get ep
kubectl get ep -n kube-system
kubectl get pods -n kube-system
NAME READY STATUS RESTARTS AGE
crictl image ls
both web-0 and web-1 can
ping
directly using their IPs, but using name, no, so the issue is DNSDoes anyone have any idea ?
Regards
Beta Was this translation helpful? Give feedback.
All reactions