I tried to setup K8s cluster using vagrant scripts for ubuntu from GitHub - kodekloudhub/certified-kubernetes-administrator-course: Certified Kubernetes Administrator - CKA Course
The kube-proxy and kube-flannel pods are always using my host ip - is this expected?. I understand it should use pod network ip
Issue:
- I have an web app and trying to access it via controlplane ip or other node02 ip it’s not accessible.
- I could only access the app via the node02 ip where the app pod is running.
I have not replicated it across the nodes.
Here is the IPs for each pod (I removed the app pod to check the setup)
I did the kubeadm reset and it never helped
vagrant@controlplane:~$ kubectl get pods -A -o wide
NAMESPACE NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
kube-flannel kube-flannel-ds-bh5bs 1/1 Running 0 2m7s 192.168.68.57 controlplane <none> <none>
kube-system coredns-674b8bbfcf-6jjt8 1/1 Running 0 6m47s 10.244.0.10 controlplane <none> <none>
kube-system coredns-674b8bbfcf-c5jfx 1/1 Running 0 6m47s 10.244.0.11 controlplane <none> <none>
kube-system etcd-controlplane 1/1 Running 1 (12m ago) 6m54s 192.168.68.57 controlplane <none> <none>
kube-system kube-apiserver-controlplane 1/1 Running 1 (7m19s ago) 6m54s 192.168.68.57 controlplane <none> <none>
kube-system kube-controller-manager-controlplane 1/1 Running 4 (12m ago) 6m54s 192.168.68.57 controlplane <none> <none>
kube-system kube-proxy-42gvn 1/1 Running 0 6m47s 192.168.68.57 controlplane <none> <none>
kube-system kube-scheduler-controlplane 1/1 Running 4 (12m ago) 6m54s 192.168.68.57 controlplane <none> <none>