Kubectl Installation and with gcloud - timowang1991/kubernetes-docs GitHub Wiki

Installation

Linux

curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
kubectl version --client



Set up kubectl for accessing gcp cluster

Prerequisite

./google-cloud-sdk/install.sh
./google-cloud-sdk/bin/gcloud init

Configure cluster access for kubectl

gcloud container clusters get-credentials <cluster_name>
⚠️ **GitHub.com Fallback** ⚠️