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

Latest commit

 

History

History
56 lines (42 loc) · 1.37 KB

README.md

File metadata and controls

56 lines (42 loc) · 1.37 KB

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 --....