Deployment Documentation ===================================== This page describes how to setup a working development environment that can be used in developing stackube on Ubuntu or CentOS. These instructions assume you're already installed git, golang and python on your host. ========= Build ========= Build binary: :: make The binary will be placed at: :: _output/kubestack _output/stackube-controller _output/stackube-proxy Build docker images: :: make docker Three docker images will be built: :: stackube/stackube-proxy:v0.1 stackube/stackube-controller:v0.1 stackube/kubestack:v0.1 ========= Start ========= The following parts suppose you have already deployed an environment of OpenStack and Kubernetes on same baremetal host. If the cluster is not deployed via devstack, don't forget to setup `--experimental-keystone-url` for kube-apiserver, e.g. :: kube-apiserver --experimental-keystone-url=https://192.168.128.66:5000/v2.0 ... Remove kube-dns deployment and kube-proxy daemonset if you have already running them. :: kubectl -n kube-system delete deployment kube-dns kubectl -n kube-system delete daemonset kube-proxy If you have also configured a CNI network plugin, you should also remove it togather with CNI network config. :: # Remove CNI network components, e.g. deployments or daemonsets first. # Then remove CNI network config. rm -f /etc/cni/net.d/* Then create external network in Neutron if there is no one. :: # Create an external network if there is no one. # Please replace 10.123.0.x with your own external network # and remember the id of your created external network neutron net-create br-ex --router:external=True --shared neutron subnet-create --ip_version 4 --gateway 10.123.0.1 br-ex 10.123.0.0/16 --allocation-pool start=10.123.0.2,end=10.123.0.200 --name public-subnet Now, we are ready to deploy stackube components. First create configure file for Stackube. :: # Remember to replace them with your own ones. cat >stackube-configmap.yaml < Welcome to nginx!

Welcome to nginx!

If you see this page, the nginx web server is successfully installed and working. Further configuration is required.

For online documentation and support please refer to nginx.org.
Commercial support is available at nginx.com.

Thank you for using nginx.

- 100% |*********************************************************************| 612 0:00:00 ETA / # 6. Finally, remove the tenant. :: $ kubectl delete tenant test tenant "test" deleted 7. Check Network in Neutron is also deleted by Stackube controller :: $ neutron net-list +--------------------------------------+---------+----------------------------------+----------------------------------------------------------+ | id | name | tenant_id | subnets | +--------------------------------------+---------+----------------------------------+----------------------------------------------------------+