wuestkamp / cka-example-environments

109 stars 94 forks source link

"INITIALISING K8S RESOURCES" not working on mac #1

Closed iptizer closed 4 years ago

iptizer commented 4 years ago

I had problems with executing ./up.sh in the stage INITIALISING K8S RESOURCES.

One solution may be to use the following instead of the ssh-keygen...:

vagrant ssh cluster1-master1 -c "sudo su - root -c 'kubectl apply -f /vagrant/k8s/init.yaml'"

Do you think this makes sense? Would a PR be accepted?

wuestkamp commented 4 years ago

I'm using Mac as well and had no issues. What was the error? Feel free to create a PR as your solution looks fine to me and it might be better to just rely on vagrant. Thanks

iptizer commented 4 years ago

MIght also be related to VirtualBox 6 or Vagrant, but somehow the 192.168 network is not connected. Did not dig deeper as the vagrant solution worked. PR on the way.