2017-01-27 03:23:42 +03:00
|
|
|
#!/usr/bin/env bash
|
2017-01-17 08:39:03 +03:00
|
|
|
set -x
|
|
|
|
|
|
|
|
if [[ -z ${NUM_CONTROLLERS} || -z ${NUM_WORKERS} || -z ${KUBERNETES_VERSION} ]]; then
|
2017-01-20 20:22:27 +03:00
|
|
|
echo "Must set NUM_CONTROLLERS, NUM_WORKERS and KUBERNETES_VERSION (e.g. 'vX.Y.Z') environment variables"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ ! ${KUBERNETES_VERSION} =~ ^v[0-9].[0-9].[0-9]$ ]]; then
|
|
|
|
echo "KUBERNETES_VERSION must be in form 'vX.Y.Z'"
|
2017-01-17 08:39:03 +03:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
./start-infra-gcp.sh
|
|
|
|
./setup-ca.sh
|
|
|
|
./bootstrap-etcd.sh
|
|
|
|
./bootstrap-controllers.sh
|
|
|
|
./bootstrap-workers.sh
|
|
|
|
./kubectl-remote-access.sh
|
|
|
|
./create-routes.sh
|
|
|
|
./deploy-dns.sh
|
|
|
|
./smoke-test.sh
|
|
|
|
#./cleanup.sh
|