Wednesday, December 27, 2017

install kubectl and gcloud on CentOS

curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl

python -V

curl -LO https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-183.0.0-linux-x86_64.tar.gz
kubectl
ls -ltra
mkdir gcloud
mv google-cloud-sdk-183.0.0-linux-x86_64.tar.gz gcloud/
cd gcloud
tar xvzf google-cloud-sdk-183.0.0-linux-x86_64.tar.gz
./google-cloud-sdk/install.sh
sudo reboot now


gcloud


see https://kubernetes.io/docs/tasks/tools/install-kubectl/
see https://cloud.google.com/sdk/docs/quickstart-linux



No comments: