Configure the Google Cloud CLI

Before using GKE on AWS, you must install the Google Cloud CLI and enable required APIs.

To configure Google Cloud CLI, run the following commands:

  1. Check your Google Cloud CLI installation with the following command:

     gcloud version 
    
  2. If the Google Cloud CLI is not installed, or if its version is earlier than 412.0.0, Install the latest version of the Google Cloud CLI .

  3. Install the kubectl additional component .

  4. If you haven't already done so, create your Google Cloud project . Save your project's name, you'll use it later.

  5. Run the following command to authenticate with your Google Cloud account:

     gcloud  
    auth  
    login 
    
  6. Enable the GKE Multi-Cloud API and its service dependencies with the following commands. These commands will enable the APIs for the project configured in your Google Cloud CLI.

     gcloud  
    services  
     enable 
      
    gkemulticloud.googleapis.com
    gcloud  
    services  
     enable 
      
    gkeconnect.googleapis.com
    gcloud  
    services  
     enable 
      
    gkehub.googleapis.com
    gcloud  
    services  
     enable 
      
    connectgateway.googleapis.com
    gcloud  
    services  
     enable 
      
    cloudresourcemanager.googleapis.com
    gcloud  
    services  
     enable 
      
    anthos.googleapis.com
    gcloud  
    services  
     enable 
      
    logging.googleapis.com
    gcloud  
    services  
     enable 
      
    monitoring.googleapis.com
    gcloud  
    services  
     enable 
      
    opsconfigmonitoring.googleapis.com
    gcloud  
    services  
     enable 
      
    kubernetesmetadata.googleapis.com 
    

What's next

Create a Mobile Website
View Site in Mobile | Classic
Share by: