I am getting the following error while setting up Kubernetes cluster using Vagrant on Virtual Box on Windows 10. I followed the steps that Mumshad described in his video and I have downloaded the Vagrant file from his git hub location. Seems Kubeadm documentation is different than the documentation was shown in the video. Website might have updated Kubernetes kubeadm documentation.
Anyhow I tried with “–pod-network-cidr 10.244.0.0/16” , it threw error saying could not parse subnet. Then I ran below command to get the subnet and use the subnet to run kubeadm init , got the same error. I am really stuck , appreciate if someone could guide me
kubeadm config print init-defaults
root@kubemaster:~# kubeadm init --pod-network-cidr 192.168.0.0/16–apiserver-advertise-address=192.168.56.2
podSubnet: Invalid value: “192.168.0.0/16–apiserver-advertise-address=192.168.56.2”: couldn’t parse subnet
To see the stack trace of this error execute with --v=5 or higher
root@kubemaster:~#
thanks
Amitav