הורדת הכלי לפתרון בעיות
בדף הזה מוסבר איך להוריד את הכלי לפתרון בעיות ב-Cloud Service Mesh. כדי לנפות באגים ולבדוק את הפריסה של Cloud Service Mesh, צריך להתקין את רכיב istioctl עבור Google Cloud CLI.
הורדת istioctl
מישור בקרה מנוהל
מעדכנים את Google Cloud CLI:
gcloud components updateמורידים את כלי פתרון הבעיות המוטמע של 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. במקום זאת, משתמשים בפקודות הבאות:
עדכון Google Cloud CLI
sudo apt-get updateמורידים את כלי פתרון הבעיות המוטמע של Cloud Service Mesh:
sudo apt-get install google-cloud-sdk-istioctl
מישור בקרה בתוך האשכול
Linux
מורידים את קובץ ההתקנה של Cloud Service Mesh לספריית העבודה הנוכחית:
curl -LO https://storage.googleapis.com/gke-release/asm/istio-1.28.2-asm.4-linux-amd64.tar.gz
מורידים את קובץ החתימה ומשתמשים ב-
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.מחלצים את התוכן של הקובץ למיקום כלשהו במערכת הקבצים שלכם. לדוגמה, כדי לחלץ את התוכן לספריית העבודה הנוכחית:
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.מוודאים שאתם נמצאים בספריית הבסיס של ההתקנה של Cloud Service Mesh.
cd istio-1.28.2-asm.4
Mac OS
מורידים את קובץ ההתקנה של Cloud Service Mesh לספריית העבודה הנוכחית:
curl -LO https://storage.googleapis.com/gke-release/asm/istio-1.28.2-asm.4-osx.tar.gz
מורידים את קובץ החתימה ומשתמשים ב-
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.מחלצים את התוכן של הקובץ למיקום כלשהו במערכת הקבצים שלכם. לדוגמה, כדי לחלץ את התוכן לספריית העבודה הנוכחית:
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.מוודאים שאתם נמצאים בספריית הבסיס של ההתקנה של Cloud Service Mesh.
cd istio-1.28.2-asm.4
Windows
מורידים את קובץ ההתקנה של Cloud Service Mesh לספריית העבודה הנוכחית:
curl -LO https://storage.googleapis.com/gke-release/asm/istio-1.28.2-asm.4-win.zip
מורידים את קובץ החתימה ומשתמשים ב-
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.מחלצים את התוכן של הקובץ למיקום כלשהו במערכת הקבצים שלכם. לדוגמה, כדי לחלץ את התוכן לספריית העבודה הנוכחית:
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.מוודאים שאתם נמצאים בספריית הבסיס של ההתקנה של Cloud Service Mesh.
cd istio-1.28.2-asm.4