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
.
- 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.
- 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
- Run the script to install hypernetes
cd ${GOPATH}/src/k8s.io/kubernetes
hack/local-up-hypernetes.sh
Run following scripts and reboot the system:
yum clean all
yum -y update
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.