Install Google Cloud components error from gcloud command

前端 未结 4 1804
遥遥无期
遥遥无期 2020-12-25 10:05

I am trying to install several GCP components from the gcloud command-line tool and always get the same error:

$ gcloud components list

Your current Cloud S         


        
4条回答
  •  佛祖请我去吃肉
    2020-12-25 10:55

    To add some more context to this answer for the Ubuntu OS, these are the steps that I took when I had already installed google-cloud-sdk using the apt-get package manager

    1. Remove the existing installation using

      sudo apt-get remove google-cloud-sdk

    2. Navigate to https://cloud.google.com/sdk/docs/quickstart-linux and follow the steps to download the correct tar.gz package for your system

    3. Navigate to the download directory and unzip the archive using

      tar -zxf google-cloud-sdk-*

    4. Install the SDK using

      ./google-cloud-sdk/install.sh

    5. Make the gcloud command available by either:

      • Running source ~/.bashrc or
      • Closing your current terminal session and opening a new one

    Using this installation I was then able to update and install kubectl with the following commands

    gcloud components update
    gcloud components install kubectl
    

提交回复
热议问题