הורדת הכלי לפתרון בעיות

בדף הזה מוסבר איך להוריד את הכלי לפתרון בעיות ב-Cloud Service Mesh. כדי לנפות באגים ולבדוק את הפריסה של Cloud Service Mesh, צריך להתקין את רכיב istioctl עבור Google Cloud CLI.

הורדת istioctl

מישור בקרה מנוהל

  1. מעדכנים את Google Cloud CLI:

    gcloud components update
    
  2. מורידים את כלי פתרון הבעיות המוטמע של Cloud Service Mesh:

    gcloud components install istioctl
    

אם מופיעה הודעת השגיאה You cannot perform this action because the Google Cloud CLI component manager is disabled for this installation, סימן שהתקנתם בעבר את Google Cloud CLI דרך Debian/Ubuntu. במקום זאת, משתמשים בפקודות הבאות:

  1. עדכון Google Cloud CLI

    sudo apt-get update
    
  2. מורידים את כלי פתרון הבעיות המוטמע של Cloud Service Mesh:

    sudo apt-get install google-cloud-sdk-istioctl
    

מישור בקרה בתוך האשכול

Linux

  1. מורידים את קובץ ההתקנה של Cloud Service Mesh לספריית העבודה הנוכחית:

    curl -LO https://storage.googleapis.com/gke-release/asm/istio-1.28.2-asm.4-linux-amd64.tar.gz
  2. מורידים את קובץ החתימה ומשתמשים ב-openssl כדי לאמת את החתימה:

    curl -LO https://storage.googleapis.com/gke-release/asm/istio-1.28.2-asm.4-linux-amd64.tar.gz.1.sig
    openssl dgst -verify /dev/stdin -signature istio-1.28.2-asm.4-linux-amd64.tar.gz.1.sig istio-1.28.2-asm.4-linux-amd64.tar.gz <<'EOF'
    -----BEGIN PUBLIC KEY-----
    MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEWZrGCUaJJr1H8a36sG4UUoXvlXvZ
    wQfk16sxprI2gOJ2vFFggdq3ixF2h4qNBt0kI7ciDhgpwS8t+/960IsIgw==
    -----END PUBLIC KEY-----
    EOF

    הפלט הצפוי הוא: Verified OK.

  3. מחלצים את התוכן של הקובץ למיקום כלשהו במערכת הקבצים שלכם. לדוגמה, כדי לחלץ את התוכן לספריית העבודה הנוכחית:

    tar xzf istio-1.28.2-asm.4-linux-amd64.tar.gz

    הפקודה יוצרת ספריית התקנה בספריית העבודה הנוכחית בשם istio-1.28.2-asm.4, שמכילה:

    - Sample applications in the `samples` directory.
    - The `istioctl` command-line tool that you use to install Cloud Service Mesh is
    in the <code>bin</code> directory.
    - The Cloud Service Mesh configuration profiles are in the `manifests/profiles`
    directory.
    
  4. מוודאים שאתם נמצאים בספריית הבסיס של ההתקנה של Cloud Service Mesh.

    cd istio-1.28.2-asm.4

Mac OS

  1. מורידים את קובץ ההתקנה של Cloud Service Mesh לספריית העבודה הנוכחית:

    curl -LO https://storage.googleapis.com/gke-release/asm/istio-1.28.2-asm.4-osx.tar.gz
  2. מורידים את קובץ החתימה ומשתמשים ב-openssl כדי לאמת את החתימה:

    curl -LO https://storage.googleapis.com/gke-release/asm/istio-1.28.2-asm.4-osx.tar.gz.1.sig
    openssl dgst -sha256 -verify /dev/stdin -signature istio-1.28.2-asm.4-osx.tar.gz.1.sig istio-1.28.2-asm.4-osx.tar.gz <<'EOF'
    -----BEGIN PUBLIC KEY-----
    MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEWZrGCUaJJr1H8a36sG4UUoXvlXvZ
    wQfk16sxprI2gOJ2vFFggdq3ixF2h4qNBt0kI7ciDhgpwS8t+/960IsIgw==
    -----END PUBLIC KEY-----
    EOF

    הפלט הצפוי הוא: Verified OK.

  3. מחלצים את התוכן של הקובץ למיקום כלשהו במערכת הקבצים שלכם. לדוגמה, כדי לחלץ את התוכן לספריית העבודה הנוכחית:

    tar xzf istio-1.28.2-asm.4-osx.tar.gz

    הפקודה יוצרת ספריית התקנה בספריית העבודה הנוכחית בשם istio-1.28.2-asm.4, שמכילה:

    - Sample applications in the `samples` directory.
    - The `istioctl` command-line tool that you use to install Cloud Service Mesh is
    in the <code>bin</code> directory.
    - The Cloud Service Mesh configuration profiles are in the `manifests/profiles`
    directory.
    
  4. מוודאים שאתם נמצאים בספריית הבסיס של ההתקנה של Cloud Service Mesh.

    cd istio-1.28.2-asm.4

Windows

  1. מורידים את קובץ ההתקנה של Cloud Service Mesh לספריית העבודה הנוכחית:

    curl -LO https://storage.googleapis.com/gke-release/asm/istio-1.28.2-asm.4-win.zip
  2. מורידים את קובץ החתימה ומשתמשים ב-openssl כדי לאמת את החתימה:

    curl -LO https://storage.googleapis.com/gke-release/asm/istio-1.28.2-asm.4-win.zip.1.sig
    openssl dgst -verify - -signature istio-1.28.2-asm.4-win.zip.1.sig istio-1.28.2-asm.4-win.zip <<'EOF'
    -----BEGIN PUBLIC KEY-----
    MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEWZrGCUaJJr1H8a36sG4UUoXvlXvZ
    wQfk16sxprI2gOJ2vFFggdq3ixF2h4qNBt0kI7ciDhgpwS8t+/960IsIgw==
    -----END PUBLIC KEY-----
    EOF

    הפלט הצפוי הוא: Verified OK.

  3. מחלצים את התוכן של הקובץ למיקום כלשהו במערכת הקבצים שלכם. לדוגמה, כדי לחלץ את התוכן לספריית העבודה הנוכחית:

    tar xzf istio-1.28.2-asm.4-win.zip

    הפקודה יוצרת ספריית התקנה בספריית העבודה הנוכחית בשם istio-1.28.2-asm.4, שמכילה:

    - Sample applications in the `samples` directory.
    - The `istioctl` command-line tool that you use to install Cloud Service Mesh is
    in the <code>bin</code> directory.
    - The Cloud Service Mesh configuration profiles are in the `manifests/profiles`
    directory.
    
  4. מוודאים שאתם נמצאים בספריית הבסיס של ההתקנה של Cloud Service Mesh.

    cd istio-1.28.2-asm.4

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