osx - Installing Kubernetes on mac with vagrant and virtualbox -


this first attempt install , use kubernetes. trying install environment on mac developing own apps , deploying them test locally kubernetes. familiar using vagrant, virtualbox , docker same purpose. when saw page https://github.com/googlecloudplatform/kubernetes/blob/master/docs/getting-started-guides/vagrant.md assumed trivial. executed these lines:

export kubernetes_provider=vagrant curl -ss https://get.k8s.io | bash 

this created master vm , minion, kubernetes seems have failed start on master. on master /var/log/salt/master full of python traceback errors, this:

2015-07-17 22:14:42,629 [cherrypy.error   ][info    ][3252] [17/jul/2015:22:14:42] engine started monitor thread '_timeoutmonitor'. 2015-07-17 22:14:42,736 [cherrypy.error   ][error   ][3252] [17/jul/2015:22:14:42] engine error in http server: shutting down traceback (most recent call last):   file "/usr/lib/python2.7/site-packages/cherrypy/process/servers.py", line 187, in _start_http_thread self.httpserver.start()   file "/usr/lib/python2.7/site-packages/cherrypy/wsgiserver/wsgiserver2.py", line 1824, in start     raise socket.error(msg) error: no socket created 

vagrant version 1.7.3. virtualbox version 4.3.30

have made obvious stupid mistake?

i don't yet know fix know going wrong since happens me well:

  • os x 10.10.3
  • vagrant 1.7.4
  • virtualbox 4.3.30
  • kubernetes 1.0.1

when run default configuration of (which creates 1 "master" , 1 "minion" vm) see static ip address not being assigned "eth1" interface, , see salt api server sitting in appears infinite retry loop because trying listen on ip address.

also, following message happened during boot:

[vagrant@kubernetes-master ~]$ dmesg | grep eth1 [    9.321496] ipv6: addrconf(netdev_up): eth1: link not ready 

so basically, static ip address didn't assigned because eth1 wasn't ready when system first booted, , salt waiting assigned.

i fix after boot sshing box using "vagrant ssh" , running command:

sudo /etc/init.d/network restart 

on each host.

this "fixes" eth1 assigning static ip address, , after salt begins thing, installs docker, boots various containers, , on.

what don't know how make work every time without manual intervention. appears sort of race condition between vagrant , virtualbox.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -