In the interest of simplifying the development and deployment of Kubevirt, we decided to make sure it was possible to run with minishift. After downloading and running the minishift binary, I had a working minishift cluster. However, in order to deploy the api-server to the cluster, I needed an external IP; otherwise I’d get the error:
Error:
service "" is invalid spec.externalIPs: Forbidden: externalIPs have been disabled
Here is how I got around this error.
I had to ssh in to the minishift vm …
minishift ssh
and edit the config file.
sudo vi /mnt/sda1/var/lib/minishift/openshift.local.config/master/master-config.yaml |
The change I needed to make looks like this:
networkConfig: clusterNetworkCIDR: 10.128.0.0/14 - externalIPNetworkCIDRs: null + externalIPNetworkCIDRs: ["0.0.0.0/0"] hostSubnetLength: 9 ingressIPNetworkCIDR: 172.29.0.0/16 networkPluginName: "" serviceNetworkCIDR: 172.30.0.0/16 |
and then, from my workstation, stopping and restarting minishift:
minishift stop minishift start |
At this point I was able to deploye the manifests.
for MANIFEST in `ls ~/go/src/kubevirt.io/kubevirt/manifests/*yaml` ; do oc apply -f $MANIFEST; done |
There were other errors to follow, but this got beyond the external IP complaint.
Hi I am trying to edit /etc/systemconfig/docker from windows cmd shell, to add insecure registry but I am unable to edit it using vi SHIFT+: i is not allowing to edit can you pls let me know how can I do it
I’m sorry, but I’m not really up to speed on Windows stuff.
My laptop running centos 7.5 IP 10.10.15.161 and minishift installed on it.
minishift VM have two IP 192.168.122.2 and 192.169.42.83. openshift console IP https://192.168.42.83:8443/console. Can’t access on it console from my laptop. Please help me on it.
Too hard to debug this way. I would suggest that you check your firewall settings. I have not played with minishift back since I made this post, so my knowledge of it has somewhat decayed. It is a network issue, but what it might be, I cannot say.