Open mikael-lindstrom opened 3 years ago
Hmm, when I use Multipass on my OS X - I didn't have an issue with resolving minnaker's ip address.
Thanks for adding the K3S_RESOLV_CONF line. The other option we currently provide is to explicitly specify the ip address with the -p
flag.
Tested with using the -P
flag and it initially worked. However when I stopped and restarted the multipass VM the problem came back and the spinnaker-operator
container fails with being unable to resolve localhost
properly. I suspect this is related to multipass/network on my computer since it works for you and not related to minnaker.
When using multipass on OSX
localhost
inside k3s containers returns the OSX hosts IP instead of127.0.0.1
. This is due to the multipass vm's/etc/resolve.conf
being used by CoreDNS and it containssearch localdomain
. Runningnslookup localhost
inside thespinnaker-operator
container returns the OSX host IP which means that communication between the operator container and the halyard container fails.As a workaround, before I ran
./scripts/install.sh -o
I copied/etc/resolv.conf
inside multipass to/home/ubuntu/resolv.conf
, removedsearch localdomain
and changednameserver
to8.8.8.8
, result looks like this:I then updated this line and added
K3S_RESOLV_CONF="/home/ubuntu/resolv.conf"
:After this I ran
./scripts/install.sh -o
and it successfully launches Spinnaker.