Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Préparer une installation hors connexion de Cloud Service Mesh
Cette page explique comment préparer les installations hors connexion de Cloud Service Mesh sur des plates-formes compatibles autres que GKE sur Google Cloud.
Lorsque vous exécutez l'outil asmcli pour installer Cloud Service Mesh, il utilise un répertoire local pour stocker la configuration et les artefacts. Par défaut, un répertoire temporaire est créé lors de l'exécution de l'outil. Cependant, vous pouvez spécifier un répertoire à l'aide de l'option --output_dir sur la ligne de commande. Si le répertoire existe déjà avec la configuration et les artefacts nécessaires, ils seront réutilisés au lieu de télécharger à nouveau quoi que ce soit.
Pour effectuer une installation hors connexion de Cloud Service Mesh, vous pouvez générer un package de configuration sur une machine disposant d'un accès à Internet, puis le distribuer à d'autres machines sans accès à Internet. Exécutez ensuite la sous-commande asmcli build-offline-package pour générer des packages de configuration.
Avant de commencer
Avant de commencer, veillez à suivre les étapes ci-dessous :
Lors de l'installation, assurez-vous que l'accès aux API et services Google est possible ou activez manuellement les dépendances requises. Même en mode hors connexion, asmcli utilise Google Cloud CLI pour activer certaines dépendances si l'option correspondante est transmise lors de l'installation.
Installation hors connexion de Cloud Service Mesh
Vous trouverez ci-dessous les étapes à suivre pour préparer une installation hors connexion de Cloud Service Mesh:
Sur la machine avec l'accès Internet sur laquelle vous avez installé Cloud Service Mesh, créez un package pour OFFLINE_PKG_DIR_PATH. Ensuite, enregistrez-le dans le dossier OFFLINE_PKG_DIR_PATH:
Copiez le répertoire de configuration et l'outil asmcli sur la machine hors connexion.
Suivez les instructions normales pour installer Cloud Service Mesh.
Chaque fois que les instructions spécifient d'exécuter asmcli install, veillez à également transmettre l'option --offline et spécifier le répertoire de configuration créé lors des étapes précédentes :
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/04 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 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)."]]