Cloud Service Mesh dan Traffic Director kini bergabung menjadi Cloud Service Mesh. Untuk mengetahui informasi selengkapnya, lihat ringkasan Cloud Service Mesh.
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Menyiapkan penginstalan offline Cloud Service Mesh
Halaman ini menjelaskan cara menyiapkan penginstalan offline Cloud Service Mesh di platform yang didukung selain GKE di Google Cloud.
Saat menjalankan alat asmcli untuk
menginstal Cloud Service Mesh,
alat ini menggunakan direktori lokal untuk menyimpan konfigurasi dan artefak. Secara default, direktori sementara dibuat saat menjalankan alat. Namun, Anda dapat menentukan direktori menggunakan opsi --output_dir di command line. Jika direktori sudah ada dengan konfigurasi dan artefak yang diperlukan, direktori tersebut akan digunakan kembali, bukan mendownload ulang apa pun.
Untuk melakukan penginstalan offline Cloud Service Mesh, Anda dapat membuat
paket konfigurasi di mesin dengan akses Internet, lalu mendistribusikan
paket tersebut ke mesin lain tanpa akses internet. Kemudian, gunakan subperintah
asmcli build-offline-package untuk membuat paket konfigurasi.
Selama penginstalan, pastikan akses ke
Layanan dan API Google
mungkin, atau aktifkan dependensi yang diperlukan secara manual. Bahkan dalam mode
offline, asmcli menggunakan Google Cloud CLI untuk mengaktifkan beberapa dependensi jika
flag yang sesuai diteruskan selama penginstalan.
Penginstalan offline Cloud Service Mesh
Berikut ini adalah cara menyiapkan penginstalan offline Cloud Service Mesh:
Di komputer dengan akses Internet tempat Anda menginstal Cloud Service Mesh,
buat paket, lalu simpan ke folder
OFFLINE_PKG_DIR_PATH:
Salin direktori konfigurasi dan alat asmcli ke komputer offline.
Ikuti petunjuk normal untuk menginstal Cloud Service Mesh.
Di mana pun petunjuk menentukan untuk menjalankan asmcli install, pastikan Anda
juga meneruskan flag --offline dan menentukan direktori konfigurasi
yang dibuat pada langkah sebelumnya:
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-19 UTC."],[],[],null,["# Prepare an offline installation of Cloud Service Mesh\n=====================================================\n\nThis page explains how to prepare offline installations of Cloud Service Mesh on\n[supported platforms](/service-mesh/docs/supported-platforms) other than\nGKE on Google Cloud.\n| **Note:** This guide only supports Cloud Service Mesh with Istio APIs and does not support Google Cloud APIs. For more information see, [Cloud Service Mesh overview](/service-mesh/docs/overview).\n\nWhen running the `asmcli` tool to\n[install Cloud Service Mesh](/service-mesh/docs/onboarding/kubernetes-off-gcp/install/install-in-cluster-cloud-service-mesh),\nit uses a local directory to store configuration and artifacts. By default, a\ntemporary directory is created when executing the tool. However, you can specify\na directory using the `--output_dir` option on the command line. If the\ndirectory already exists with the necessary configuration and artifacts, they\nwill be reused instead of re-downloading anything.\n\nTo perform an offline installation of Cloud Service Mesh, you can generate a\nconfiguration package on a machine with Internet access, and then distribute\nthat package to other machines without internet access. Then, use the subcommand\n`asmcli build-offline-package` to generate configuration packages.\n\nBefore you begin\n----------------\n\nBefore you begin, make sure that you:\n\n- Review [the prerequisites](/service-mesh/docs/onboarding/kubernetes-off-gcp/install/cloud-service-mesh-prerequisites).\n- Review the information in [Plan the install](/service-mesh/docs/onboarding/kubernetes-off-gcp/install/plan-install).\n- [Install the required tools](/service-mesh/docs/onboarding/kubernetes-off-gcp/install/install-dependent-tools#install_required_tools).\n- [Download `asmcli`](/service-mesh/docs/onboarding/kubernetes-off-gcp/install/install-dependent-tools#download_asmcli).\n- During installation, ensure access to [Google APIs and Services](/vpc/docs/configure-private-google-access-hybrid) is possible, or manually enable the required dependencies. Even in offline mode, `asmcli` uses Google Cloud CLI to enable some dependencies if the corresponding flag is passed during installation.\n\nOffline installation of Cloud Service Mesh\n------------------------------------------\n\nThe following outlines how to prepare an offline installation of Cloud Service Mesh:\n\n1. On the machine with Internet access that you installed Cloud Service Mesh,\n create a package and then save it to the folder\n \u003cvar translate=\"no\"\u003eOFFLINE_PKG_DIR_PATH\u003c/var\u003e:\n\n ./asmcli build-offline-package \\\n --output_dir \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-nx\"\u003eOFFLINE_PKG_DIR_PATH\u003c/span\u003e\u003c/var\u003e\n\n | **Note:** The `offline-package` includes critical hidden files. You must copy all of the files to the offline machine. To avoid missing files, create an archive bundle of the entire `output_dir` and copy it to the offline machine.\n2. Copy the configuration directory and `asmcli` tool to the offline machine.\n\n3. Follow the normal instructions for\n [installing Cloud Service Mesh](/service-mesh/docs/onboarding/kubernetes-off-gcp/install/install-in-cluster-cloud-service-mesh).\n Wherever the instructions specify to run `asmcli install`, ensure that you\n also pass the `--offline` flag and specify the configuration directory\n created in the previous steps:\n\n ./asmcli install \\\n --output_dir \u003cvar translate=\"no\"\u003eOFFLINE_PKG_DIR_PATH\u003c/var\u003e \\\n --project_id \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e \\\n --cluster_location \u003cvar translate=\"no\"\u003eCLUSTER_LOCATION\u003c/var\u003e \\\n --cluster_name \u003cvar translate=\"no\"\u003eCLUSTER_NAME\u003c/var\u003e \\\n --offline\n\nWhat's next?\n------------\n\n- Learn about [setting up a multi-cluster mesh outside of Google Cloud](/service-mesh/docs/operate-and-maintain/off-gcp-multi-cluster-setup).\n\n- [Configure an external IP address on-premises](/service-mesh/docs/operate-and-maintain/external-ip-load-balance).\n\n- [Deploy the Online Boutique sample application](/service-mesh/docs/onlineboutique-install-kpt)."]]