Add a sample script for deploying K8s cluster

This is an example script that be an easy starting point
for users as an addition to documentation.

Change-Id: I6406fccf05887f1fc908d222a8cda797ff7c4c4d
This commit is contained in:
Marek Zawadzki 2016-10-07 10:52:56 +02:00
parent a7a105e2ef
commit 413e566cec
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
#!/bin/bash -ex
#
# Sample script to deploy K8s cluster with Kargo.
# Please adjust to your needs.
# Configuration:
export ENV_NAME="k8s-kargo-test-env"
export IMAGE_PATH="/home/ubuntu/packer-ubuntu-1604-server.qcow2" # path to VM image file (e.g. build with packer)
export DONT_DESTROY_ON_SUCCESS=1
#export VLAN_BRIDGE="vlan456" # full name e.g. "vlan450"
export DEPLOY_METHOD="kargo"
export SLAVES_COUNT=3
export SLAVE_NODE_MEMORY=6144
export SLAVE_NODE_CPU=2
export WORKSPACE="/home/ubuntu/workspace"
CCP_INSTALLER_DIR="." # path to root fuel-ccp-installer/ directory
export CUSTOM_YAML='hyperkube_image_repo: "quay.io/coreos/hyperkube"
hyperkube_image_tag: "v1.4.0_coreos.1"
kube_version: "v1.4.0"'
mkdir -p ${WORKSPACE}
echo "Running on ${NODE_NAME}: ${ENV_NAME}"
bash -x "${CCP_INSTALLER_DIR}/utils/jenkins/run_k8s_deploy_test.sh"