I'm running kubernetes with the supposed pod network cidr of 10.244.0.0/16
. Everything seems to agree with that:
# history | grep kubeadm
kubeadm init --control-plane-endpoint "guide:6443" --upload-certs --pod-network-cidr=10.244.0.0/16
$ kubectl get nodes -o kubectl get nodes -o jsonpath='{.items[*].spec.podCIDR}'
10.244.0.0/24 10.244.1.0/24 10.244.2.0/24 10.244.3.0/24 10.244.4.0/24 10.244.5.0/24
# cat /run/flannel/subnet.env
FLANNEL_NETWORK=10.244.0.0/16
FLANNEL_SUBNET=10.244.0.1/24
FLANNEL_MTU=1450
FLANNEL_IPMASQ=true
However all the pods I create get IPs in the 172.17.0.0/16 range.
$ kubectl get pods -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
busybox1 1/1 Running 1 13m 172.17.0.11 k8s-node-1 <none> <none>
debain-shell-547f8fc54b-v8p99 0/1 ImagePullBackOff 0 27m 172.17.0.3 k8s-node-1 <none> <none>
nginx-deployment-ex-54f57cf6bf-k55nn 1/1 Running 1 27m 172.17.0.5 k8s-node-1 <none> <none>
nginx-deployment-ex-54f57cf6bf-q2khx 1/1 Running 1 27m 172.17.0.9 k8s-node-1 <none> <none>
nginx-deployment-ex-54f57cf6bf-r8b7v 1/1 Running 1 27m 172.17.0.7 k8s-node-1 <none> <none>
I can't talk to coredns (which is how I found this condition) and I can't seem to use my ingress service anymore (though I've restarted enough things by now I may have just temporarily broken that).
What is causing this, or alternatively, where should I look for more info?