הגדרת Google Cloud CLI

לפני שמשתמשים ב-GKE ב-Azure, צריך להתקין את Google Cloud CLI ולהפעיל את ממשקי ה-API הנדרשים.

כדי להגדיר את Google Cloud CLI, מריצים את הפקודות הבאות:

  1. בודקים את ההתקנה של Google Cloud CLI באמצעות הפקודה הבאה:

    gcloud version
    
  2. אם Google Cloud CLI לא מותקן, או אם הגרסה שלו קודמת לגרסה 402.0.0, צריך להתקין את הגרסה האחרונה של Google Cloud CLI.

  3. מתקינים את kubectl הרכיב הנוסף.

  4. אם עדיין לא עשיתם זאת, צרו פרויקט Google Cloud . שומרים את שם הפרויקט, תצטרכו אותו בהמשך.

  5. מריצים את הפקודה הבאה כדי לאמת את הזהות באמצעות חשבון Google Cloud:

    gcloud auth login
    
  6. מפעילים את GKE Multi-Cloud API ואת התלות שלו בשירותים באמצעות הפקודות הבאות. הפקודות האלה יפעילו את ממשקי ה-API בפרויקט שהוגדר ב-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
    

המאמרים הבאים