Commit 4390ef67 authored by David Yu Yuan's avatar David Yu Yuan
Browse files

Merge branch 'latest' into 'master'

Adding a note with an example for gsutil.

See merge request !168
parents 0c0b5289 07665fc9
......@@ -74,3 +74,4 @@ You can SSH from EBI cluster to any node on GCP (e.g. `gcloud compute ssh --zone
Notes:
#. You can use IAP with SCP in a similar fashion (e.g. `gcloud compute scp --zone $ZONE --tunnel-through-iap --project $PROJECT <normal_scp_parameters>`). It can be handy to push or pull files between EBI cluster and GCP nodes via SCP.
#. You can also use gsutil to upload files to or to download objects from the storage buckets (e.g. `gsutil ls gs://<bucket_name>`).
#!/usr/bin/env bash
# Starting Minikube as ubuntu
cmd_start='i=$(hostname -I | cut -d "." -f 4 | cut -d " " -f 1) && sudo minikube start --vm-driver=none && sudo chown -R $USER $HOME/.kube $HOME/.minikube && sudo kubectl get node && sudo minikube stop && sudo mv /home/ubuntu/.kube /home/ubuntu/.minikube /home/resops${i}'
#cmd_start='i=$(hostname -I | cut -d "." -f 4 | cut -d " " -f 1) && sudo minikube start --vm-driver=none && sudo chown -R $USER $HOME/.kube $HOME/.minikube && sudo kubectl get node && sudo minikube stop && sudo mv /home/ubuntu/.kube /home/ubuntu/.minikube /home/resops${i}'
cmd_start='i=$(hostname -I | cut -d "." -f 4 | cut -d " " -f 1) && minikube start --driver='docker' && minikube addons enable ingress && minikube addons enable metrics-server && sudo kubectl get node && minikube stop && sudo mv /home/ubuntu/.kube /home/ubuntu/.minikube /home/resops${i}'
# Set environment to connect to certain project with the openrc script generated by Horizon
source ~/Downloads/ResOps-openrc-V2.sh
date
......@@ -25,7 +25,8 @@ for worker in "${workers[@]}"; do
done
wait && date
cmd_check='i=$(hostname -I | cut -d "." -f 4 | cut -d " " -f 1) && id resops${i} && docker images list && sudo minikube start --vm-driver=none && sudo kubectl get node && sudo minikube stop'
#cmd_check='i=$(hostname -I | cut -d "." -f 4 | cut -d " " -f 1) && id resops${i} && docker images list && sudo minikube start --vm-driver=none && sudo kubectl get node && sudo minikube stop'
cmd_check='i=$(hostname -I | cut -d "." -f 4 | cut -d " " -f 1) && id resops${i} && docker images list && sudo chown -R $USER $HOME/.minikube $HOME/.kube && minikube start --driver='docker' && sudo kubectl get node && minikube stop'
i=$(echo "${worker}" | cut -d "." -f 4 | cut -d " " -f 1)
ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=No -o UserKnownHostsFile=/dev/null -o ProxyCommand="ssh -W %h:%p -i ~/.ssh/id_rsa ubuntu@${bastion}" -t resops"${i}"@"${worker}" "${cmd_check}"
IFS=${ORG_IFS}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment