c12s-kubespray/deploy-k8s.kargo.sh

20 lines
631 B
Bash
Raw Normal View History

#!/bin/bash
INVENTORY="nodes_to_inv.py"
2016-07-08 16:49:41 +00:00
echo "Installing requirements on nodes..."
ansible-playbook -i $INVENTORY playbooks/bootstrap-nodes.yaml
2016-06-16 10:19:27 +00:00
echo "Running deployment..."
2016-06-30 13:35:00 +00:00
ansible-playbook -i $INVENTORY /root/kargo/cluster.yml -e @custom.yaml
deploy_res=$?
if [ "$deploy_res" -eq "0" ]; then
echo "Setting up kubedns..."
ansible-playbook -i $INVENTORY playbooks/kubedns.yaml
2016-06-27 15:57:29 +00:00
echo "Setting up kubedashboard..."
ansible-playbook -i $INVENTORY playbooks/kubedashboard.yaml
echo "Setting up ip route work-around for DNS clusterIP availability..."
ansible-playbook -i $INVENTORY playbooks/ipro_for_cluster_ips.yaml
fi