diff options
Diffstat (limited to 'tools/kubernetes')
-rw-r--r-- | tools/kubernetes/demo_deploy.sh | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/tools/kubernetes/demo_deploy.sh b/tools/kubernetes/demo_deploy.sh index b7935de..19feb91 100644 --- a/tools/kubernetes/demo_deploy.sh +++ b/tools/kubernetes/demo_deploy.sh @@ -51,20 +51,26 @@ ssh-add $key if [[ "x$extras" != "x" ]]; then source $extras; fi scp -o StrictHostKeyChecking=no $key ubuntu@$admin_ip:/home/ubuntu/$key echo "Setting up kubernetes..." +scp -o StrictHostKeyChecking=no ~/models/tools/kubernetes/k8s-cluster.sh \ + ubuntu@$admin_ip:/home/ubuntu/. ssh -x -o StrictHostKeyChecking=no ubuntu@$admin_ip <<EOF exec ssh-agent bash ssh-add $key -git clone https://gerrit.opnfv.org/gerrit/models -bash models/tools/kubernetes/k8s-cluster.sh all "$agent_ips" $priv_net $pub_net +bash k8s-cluster.sh all "$agent_ips" $priv_net $pub_net EOF # TODO: Figure this out... Have to break the setup into two steps as something # causes the ssh session to end before the prometheus setup, if both scripts -# (k8s-cluster and prometheus-tools) are in the same ssh session -echo "Setting up prometheus..." +# are in the same ssh session +echo "Setting up Prometheus..." +ssh -x -o StrictHostKeyChecking=no ubuntu@$admin_ip mkdir -p \ + /home/ubuntu/models/tools/prometheus +scp -r -o StrictHostKeyChecking=no ~/models/tools/prometheus/* \ + ubuntu@$admin_ip:/home/ubuntu/models/tools/prometheus ssh -x -o StrictHostKeyChecking=no ubuntu@$admin_ip <<EOF exec ssh-agent bash ssh-add $key -bash models/tools/prometheus/prometheus-tools.sh all "$agent_ips" +cd models/tools/prometheus +bash prometheus-tools.sh all "$agent_ips" EOF echo "Setting up cloudify..." scp -o StrictHostKeyChecking=no ~/models/tools/cloudify/k8s-cloudify.sh \ |