This README provides the steps required for your colleagues to configure and run the project using the repositories TP25-26 and GrupoTP-32.
You must have both repositories:
- TP25-26
- GrupoTP-32
Both repos should exist in the same parent directory:
parent-folder/
├── TP25-26/
└── GrupoTP-32/
GrupoTP-32/
├── airtrail-deploy.yml
├── airtrail-undeploy.yml
├── checkpoints/
├── credentials/
├── docs/
├── gke-cluster-create.yml
├── gke-cluster-destroy.yml
├── inventory/
├── README.md
├── results/
├── roles/
└── test-all.yml
Assuming both repos are in the same folder:
cd TP25-26cd checkpoint
vagrant upscp -r ../../GrupoTP-32 vagrant@192.168.56.50:After this, inside the VM, you will have the full working directory.
Inside GrupoTP-32/credentials/, each team member must place their cred.json file.
⚠️ These files are ignored by Git, so each user must manually place their own credentials.
ssh vagrant@192.168.56.50Download kubectl:
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"Install kubectl:
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectlIf you do not have root privileges:
chmod +x kubectl
mkdir -p ~/.local/bin
mv ./kubectl ~/.local/bin/kubectlAdd to PATH:
echo 'export PATH=$PATH:~/.local/bin' >> ~/.bashrc
source ~/.bashrcVerify installation:
kubectl version --clientOfficial installation guide: https://cloud.google.com/sdk/docs/install
sudo apt-get updatesudo apt-get install apt-transport-https ca-certificates gnupg curl sudocurl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpgecho "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.listsudo apt-get update && sudo apt-get install google-cloud-cli -ysudo apt-get install kubectl
sudo apt-get install google-cloud-sdk-gke-gcloud-auth-plugin -ygcloud initpip install requests google-auth kubernetesInside GrupoTP-32:
ansible-playbook gke-cluster-create.yml -i inventory/gcp.ymlgcloud container clusters get-credentials ascn-cluster --project=ascn-grupo-tp-32 --zone=us-central1-aFrom the main VM directory:
./checkpoint.sh -i GrupoTP-32/ -o GrupoTP-32/results/ -c 2Your environment should now be fully operational.
If anything fails, verify:
- Credentials exist in
GrupoTP-32/credentials/ - gcloud is authenticated
- kubectl is correctly installed
- The cluster has credentials configured