Kubernets SetUp for GCP


1. Add the Cloud SDK distribution URI as a package source:

echo "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.list


2. Make sure you have apt-transport-https installed:

apt-get install apt-transport-https ca-certificates


3. Import the Google Cloud public key:

curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -


4. Update and install the Cloud SDK:

sudo apt-get update && sudo apt-get install google-cloud-sdk

5. Install Additional Packages:

sudo apt-get install google-cloud-sdk-app-engine-pythonsudo apt-get install google-cloud-sdk-app-engine-python-extrassudo apt-get install google-cloud-sdk-app-engine-javasudo apt-get install google-cloud-sdk-app-engine-gosudo apt-get install google-cloud-sdk-datalabsudo apt-get install google-cloud-sdk-datastore-emulatorsudo apt-get install google-cloud-sdk-pubsub-emulatorsudo apt-get install google-cloud-sdk-cbtsudo apt-get install google-cloud-sdk-cloud-build-localsudo apt-get install google-cloud-sdk-bigtable-emulatorsudo apt-get install kubectl


6. Initialize GCloud CLI:

gcloud init


7. Set Google Project to Work On:

gcloud config set project test-1512061290775


8. List All the Installed Components

gcloud components list


9. Set Deployment/Compute Engine Zone:

gcloud config set compute/zone asia-south1-c


10. Enable Few APIs on Your Project

Compute Engine API
Kubernetes Engine API
Google Container Registry API