#SETUP_WORKER_COMMON="cd eliot/scripts/ && source common.sh"
SETUP_WORKER="cd eliot/scripts/ && source k8sworker.sh"
- KUBEADM_JOIN=$(grep "kubeadm join" ./kubeadm.log)
- KUBEADM_JOIN="sudo ${KUBEADM_JOIN}"
+ KUBEADM_TOKEN=$(kubeadm token create --print-join-command)
+ KUBEADM_JOIN="sudo ${KUBEADM_TOKEN}"
# Read all the Worker Node details from nodelist file.
while read line
source verifyk8s.sh | tee verifyk8s.log
}
+
+install_edgex(){
+ set -o xtrace
+ cd edgex && source edgexonk8s.sh
+}
+
install_cadvisor_edge(){
set -o xtrace
SETUP_CADVISOR_ATEDGE="cd eliot/scripts/ && source cadvisorsetup.sh"
install_prometheus
sleep 5
sudo docker ps | grep prometheus
+
+install_edgex
+sleep 20
+
+# Removing the taint from master node
+kubectl taint nodes --all node-role.kubernetes.io/master- || true
+
+echo "ELIOT Setup execution is Completed..."
+