X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=scripts%2Fsetup.sh;fp=scripts%2Fsetup.sh;h=9efe5477017cd1e8d25c18194c1c5afd9d765d3b;hb=39da575a6d1a8615ea904021b32642f7990a7296;hp=97bb875e45181a07d4c7364112c5c8f2ffe9a570;hpb=b9b83e766994a4802b9011ffcba092aa5681c527;p=eliot.git diff --git a/scripts/setup.sh b/scripts/setup.sh index 97bb875..9efe547 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -81,6 +81,23 @@ verify_k8s_status(){ source verifyk8s.sh | tee verifyk8s.log } +install_cadvisor_edge(){ + set -o xtrace + SETUP_CADVISOR_ATEDGE="cd AfterRelease1/eliot/scripts/ && source cadvisorsetup.sh" + while read line + do + nodeinfo="${line}" + nodeusr=$(echo ${nodeinfo} | cut -d"|" -f1) + nodeip=$(echo ${nodeinfo} | cut -d"|" -f2) + nodepaswd=$(echo ${nodeinfo} | cut -d"|" -f3) + sshpass -p ${nodepaswd} ssh ${nodeusr}@${nodeip} ${SETUP_CADVISOR_ATEDGE} < /dev/null + done < nodelist +} + +install_prometheus(){ +set -o xtrace +source prometheus.sh | tee install_prometheus.log +} # Start # @@ -95,3 +112,9 @@ fi setup_k8smaster sleep 20 verify_k8s_status + +install_cadvisor_edge +sleep 10 +install_prometheus +sleep 5 +sudo docker ps | grep prometheus