mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-12-17 02:08:58 +03:00
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.
This commit is contained in:
18
scripts/kube-up.sh
Executable file
18
scripts/kube-up.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user