text:  TESTVAR=$(echo -n $TESTVAR) 
   echo "Pod status is $TESTVAR" 
   ssh -M -S mongoconnect -fNT -L 
  27017:a1765d068fc8911e9b07106df2fba1c0-125393943.us-east-2.elb.amazonaws.com:27017 
  localhost 
   echo "Tunneled to MongoDB running on AWS" 
   fi 
  fi 
  sleep 30 
  done 
  
  Every 30 seconds, the script looks for the pod that is running in the public cloud or 
  on-premises cloud. The script returns the status of the pod if the need exists to tunnel to 
  another location, or the tunnel is correctly mapped to the location where the pod is running. 
  The tunnel is opened to the localhost IP 127.0.0.1. Then, an alias is added on the local hosts 
  file as yournetworksolution, which points to the localhost IP to make it transparent to the 
  client. 