mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-10-17 09:22:52 +03:00

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.
19 lines
416 B
Bash
Executable File
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
|