Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Prepara una instalación sin conexión de Cloud Service Mesh
En esta página, se explica cómo preparar las instalaciones sin conexión de Cloud Service Mesh en plataformas compatibles que no sean GKE en Google Cloud.
Cuando se ejecuta la herramienta asmcli para instalar Cloud Service Mesh, se usa un directorio local para almacenar la configuración y los artefactos. De forma predeterminada, se crea un directorio temporal cuando se ejecuta la herramienta. Sin embargo, puedes especificar un directorio con la opción --output_dir en la línea de comandos. Si el directorio ya existe con la configuración y los artefactos necesarios, se reutilizarán en lugar de volver a descargar cualquier elemento.
Para realizar una instalación sin conexión de Cloud Service Mesh, puedes generar un paquete de configuración en una máquina con acceso a Internet y, luego, distribuirlo a otras máquinas sin acceso a Internet. Luego, usa el subcomando asmcli build-offline-package para generar paquetes de configuración.
Durante la instalación, asegúrate de que sea posible acceder a los servicios y las APIs de Google, o habilita de forma manual las dependencias necesarias. Incluso en modo sin conexión, asmcli usa Google Cloud CLI para habilitar algunas dependencias si se pasa la marca correspondiente durante la instalación.
Instalación sin conexión de Cloud Service Mesh
A continuación, se describe cómo preparar una instalación sin conexión de Cloud Service Mesh:
En la máquina con acceso a Internet en la que instalaste Cloud Service Mesh, crea un paquete y, luego, guárdalo en la carpeta OFFLINE_PKG_DIR_PATH:
Copia el directorio de configuración y la herramienta de asmcli en la máquina sin conexión.
Sigue las instrucciones normales para instalar Cloud Service Mesh.
Siempre que las instrucciones especifiquen que se ejecute asmcli install, asegúrate de pasar también la marca --offline y especificar el directorio de configuración creado en los pasos anteriores:
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-04 (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/v1.24/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/v1.24/docs/overview).\n\nWhen running the `asmcli` tool to\n[install Cloud Service Mesh](/service-mesh/v1.24/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/v1.24/docs/onboarding/kubernetes-off-gcp/install/cloud-service-mesh-prerequisites).\n- Review the information in [Plan the install](/service-mesh/v1.24/docs/onboarding/kubernetes-off-gcp/install/plan-install).\n- [Install the required tools](/service-mesh/v1.24/docs/onboarding/kubernetes-off-gcp/install/install-dependent-tools#install_required_tools).\n- [Download `asmcli`](/service-mesh/v1.24/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/v1.24/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/v1.24/docs/operate-and-maintain/off-gcp-multi-cluster-setup).\n\n- [Configure an external IP address on-premises](/service-mesh/v1.24/docs/operate-and-maintain/external-ip-load-balance).\n\n- [Deploy the Online Boutique sample application](/service-mesh/v1.24/docs/onlineboutique-install-kpt)."]]