Install Kubernetes on Mac with a roaming and virtual server

This is my first attempt to install and use Kubernetes. I am trying to install on a Mac environment to develop my own applications and deploy them for local testing with Kubernetes. I am familiar with using Vagrant, VirtualBox and Docker for the same purpose. When I saw this page https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/getting-started-guides/vagrant.md, I assumed that it would be trivial. I executed these lines:

export KUBERNETES_PROVIDER=vagrant
curl -sS https://get.k8s.io | bash

This created a virtual machine and minion workshop, but Kubernetes did not seem to be able to start the wizard. On master / var / log / salt / master is full of python trace errors, for example:

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 could be created

Vagrant is version 1.7.3. VirtualBox is version 4.3.30

?

+5
4

, , , :

  • OS X 10.10.3
  • Vagrant 1.7.4
  • VirtualBox 4.3.30
  • Kubernetes 1.0.1

( "" "" ), , IP- "eth1", , API , , IP-.

, :

[vagrant@kubernetes-master ~]$ dmesg | grep eth1
[    9.321496] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready

, IP- , eth1 , , Salt , .

sshing , "vagrant ssh" :

sudo /etc/init.d/network restart

.

"" eth1, IP-, , Docker, ..

, . , - Vagrant VirtualBox.

+1

Kubernetes, boot2docker, Docker. API Kubernetes Vagrant.

Vagrant , github.

+1

, , . 0.21.2 (, 0.21.3 ).

, pires . .

0

Kubernetes VirtualBox 4 :

Kubernetes inside VirtualBox Network Overview

  • VirtualBox HOST ONLY , Kubernetes Mac .
  • NAT Network .
  • Kubernetes PODs TUN
  • Kubernetes Cluster IP Network - IP-, Kubernetes IP-.
  • Vagrantfile IP- Ansible, Kubernetes KUBELET_EXTRA_ARGS IP- ( kubectl).

  • NodePort , Kubernetes, VirtualBox.

. Kubernetes Vagrant Ansible ( Minikube), Ubuntu, MAC.

0
source

Source: https://habr.com/ru/post/1598459/


All Articles