Skip to content
This repository has been archived by the owner on Feb 8, 2021. It is now read-only.

hyperhq/kubestack

Repository files navigation

Build Status

OpenStack Network Provider for Kubernetes

KubeStack is an OpenStack network provider for kubernetes. KubeStack is devided into two functions:

  • kubestack running on the same host with kube-controller-manager, which provides network management by openstack
  • kubestack running on each minion host, which setups container's network interfaces

How to run it

Notes: You need a working OpenStack and Kubernetes before deploying kubestack.

mkdir -p $GOPATH/src/github.com/hyperhq/
cd $GOPATH/src/github.com/hyperhq/
git clone https://github.com/hyperhq/kubestack.git
cd kubestack
make && make install

Configure openstack authorization properties in /etc/kubestack.conf:

[Global]
auth-url = http://192.168.33.33:5000/v2.0
username = admin
password = admin
tenant-name = admin
region = RegionOne
ext-net-id = <Your-external-network-id>

[LoadBalancer]
create-monitor = yes
monitor-delay = 1m
monitor-timeout = 30s
monitor-max-retries = 3

[Plugin]
plugin-name = ovs

Start:

# Start kubestack on each machine
kubestack -logtostderr=true -v=4 -port=:4237

Configure kubernetes controller-manager and kubelet using openstack network provider:

kube-controller-manager --network-provider=127.0.0.1:4237 --...
kubelet --network-provider=127.0.0.1:4237 --....