Permalink
7206cdd Oct 8, 2016
@resouer @feiskyer @Crazykev
53 lines (34 sloc) 1.26 KB

Deployment scripts for hypernetes

System requirements

The script is only tested on CentOS 7.2 with at least 4GB memory. It will install latest hypernetes with hyperd and OpenStack Mitaka.

Note: The script should be run as root.

Usage

  1. Setup environment variables:
export HOSTNAME=$(hostname)
export IF_NAME="eth0"
export IF_IP=""
export GOPATH="/gopath"

if you want use your own kebestack\hyperd\runv\hyperstart, you cloud set DEV_MODE to "y"(export DEV_MODE="y") to use your own repo in $GOPATH.

  1. Clone hypernetes to go path:
mkdir -p ${GOPATH}/src/k8s.io
# Run 'yum -y install git' if git is not installed.
git clone https://github.com/hyperhq/hypernetes.git ${GOPATH}/src/k8s.io/kubernetes
  1. Run the script to install hypernetes
cd ${GOPATH}/src/k8s.io/kubernetes
hack/local-up-hypernetes.sh

QA

Upgrade CentOS 7.0/7.1 to 7.2

Run following scripts and reboot the system:

yum clean all
yum -y update

Install failed due to slow network

For slow networks, the installation may fail with timeout. When this happens, just run the hack/local-up-hypernetes.sh script again to continue the installation.

Analytics