kubernetes installation and kube-dns: open /run/flannel/subnet.env: no such file or directory
It looks like you have configured flannel before running kubeadm init
. You can try to fix this by removing flannel (it may be sufficient to remove config file rm -f /etc/cni/net.d/*flannel*
), but it's best to start fresh.