Closed hnz101 closed 10 months ago
Hi @hnz101, thank you for reporting the issue.
This issue in 1.28.3 was related to some regression in the Kubernetes code around dualstack handling, and IIRC should be resolved in 1.28.4 onwards.
Kubernetes 1.28.4 is not yet out to 1.28/stable
, can you test if the issue is resolved if you install microk8s from 1.28/candidate
?
You could do this with:
# install
$ sudo snap install microk8s --channel 1.28/candidate --classic
# or refresh, if already installed
$ sudo snap refresh microk8s --channel 1.28/candidate
For reference, this is the Kubernetes version at the moment:
$ sudo snap info microk8s | grep 1.28/
1.28/stable: v1.28.3 2023-11-12 (6089) 185MB classic
1.28/candidate: v1.28.4 2023-11-22 (6225) 185MB classic
1.28/beta: v1.28.4 2023-11-22 (6225) 185MB classic
1.28/edge: v1.28.4 2023-12-05 (6310) 185MB classic
Hi @neoaggelos and thanks for your reply, after some days of digging around I just found what caused my problem.
I used an iptables POSTROUTING / MASQUERADE rule to forward some local ports and this caused the weird behavior.
iptables -t nat -A POSTROUTING -j MASQUERADE
I replaced it with an more specific rule and now microk8s 1.28.3 and 1.28.4 comes up without problems.
iptables -t nat -A POSTROUTING -p tcp --dport 12345 -d 100.20.30.40 -j SNAT --to-source 192.168.123.123
Thank You!
Summary
Fresh snap install of latest stable or edge of microk8s doesn't run and the service won't come up.
For some reason kubelite just starts listening to ipv6, but wants to use the api via ipv4 which doesn't work.
Besides this timeout it can't connect to kine.sock, even tough it is present:
What Should Happen Instead?
The Service should come up.
Reproduction Steps
Fresh Install latest snap version of microk8s.
Introspection Report
microk8s inspect hangs at "Inspect kubernetes cluster" and doesn't produce an tarball.
Is there an option to force IPv4 only? I already tried setting --bind-address in /var/snap/microk8s/6089/args/kube-apiserver, but that didn't help.
What information can I deliver to help you?