stackube/devstack
Kevin Zhao d49fd75750 Bump Kubernetes version from 1.7.3 to 1.7.4
Tweak setup document about set env

Implements: blueprint upgrade-kubernetes

Change-Id: Ib6c25c9affcf7020aaf127220dad7e07f9b518ff
Signed-off-by: Kevin Zhao <kevin.zhao@arm.com>
2017-08-23 14:24:42 +08:00
..
kubeadm.yaml Add deployments for stackube addons 2017-08-04 18:37:30 +08:00
local.conf.node.sample Add multiple container runtime support. 2017-08-01 12:02:02 +08:00
local.conf.sample Add multiple container runtime support. 2017-08-01 12:02:02 +08:00
plugin.sh Bump Kubernetes version from 1.7.3 to 1.7.4 2017-08-23 14:24:42 +08:00
README.md Update network TPR to CRD 2017-07-06 09:45:23 +08:00
settings Add deployments for stackube addons 2017-08-04 18:37:30 +08:00

devstack plugin

devstack plugin for stackube.

All-in-one

# create stack user
sudo useradd -s /bin/bash -d /opt/stack -m stack
echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack
sudo su - stack

git clone https://git.openstack.org/openstack-dev/devstack -b stable/ocata
cd devstack

Create local.conf from local.conf.sample and then run ./stack.sh to install.

./stack.sh

Wait a while for installation compelete, then setup kubernetes and OpenStack client:

# Kubernetes
export KUBECONFIG=/etc/kubernetes/admin.conf
kubectl cluster-info

# OpenStack
source openrc admin admin
openstack service list

Add a node

# create stack user
sudo useradd -s /bin/bash -d /opt/stack -m stack
echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack
sudo su - stack

git clone https://git.openstack.org/openstack-dev/devstack -b stable/ocata
cd devstack

Create local.conf from local.conf.node.sample, set HOST_IP to local host's IP, set SERVICE_HOST to master's IP and set KUBEADM_TOKEN to kubeadm token (could be got by kubeadm token list).

Then run ./stack.sh to install.