Files
kubernetes-the-hard-way/scripts/kube-up.sh
Ivan Font e8f056a2ba Added scripts to automate setting up cluster
Scripts support custom number of controllers and workers as well as a
specific version of Kubernetes by exporting NUM_CONTROLLERS,
NUM_WORKERS, and KUBERNETES_VERSION respectively. This has only been
tested using 3 controllers and workers >= 3 using Kubernetes version
1.5.1.
2017-01-20 10:33:05 -08:00

19 lines
416 B
Bash
Executable File

#!/usr/bin/bash
set -x
if [[ -z ${NUM_CONTROLLERS} || -z ${NUM_WORKERS} || -z ${KUBERNETES_VERSION} ]]; then
echo "Must set NUM_CONTROLLERS, NUM_WORKERS and KUBERNETES_VERSION environment variables"
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