Esta documentación es para la versión actual de GKE en AWS, publicada en noviembre de 2021. Consulta las notas de la versión para obtener más información.
Ejecuta el siguiente comando para autenticarte con tu cuenta de Google Cloud.
gcloud auth login
Habilita la API de GKE Multi-Cloud y sus dependencias de servicio con los siguientes comandos. Estos comandos habilitarán las API para el proyecto configurado en Google Cloud CLI.
[[["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: 2024-07-02 (UTC)"],[],[],null,["# Configure the Google Cloud CLI\n\nBefore using GKE on AWS, you must install the Google Cloud CLI and enable\nrequired APIs.\n\nTo configure Google Cloud CLI, run the following commands:\n\n1. Check your Google Cloud CLI installation with the following command:\n\n gcloud version\n\n2. If the Google Cloud CLI is not installed, or if its version is earlier than\n 412.0.0,\n [Install the latest version of the Google Cloud CLI](https://cloud.google.com/sdk/docs/install).\n\n3. Install the `kubectl`\n [additional component](https://cloud.google.com/sdk/docs/components#additional_components).\n\n4. If you haven't already done so,\n [create your Google Cloud project](/resource-manager/docs/creating-managing-projects#creating_a_project).\n Save your project's name, you'll use it later.\n\n5. Run the following command to authenticate with your Google Cloud\n account:\n\n gcloud auth login\n\n6. Enable the GKE Multi-Cloud API and its service dependencies with the\n following commands. These commands will enable the APIs for the project\n configured in your Google Cloud CLI.\n\n gcloud services enable gkemulticloud.googleapis.com\n gcloud services enable gkeconnect.googleapis.com\n gcloud services enable gkehub.googleapis.com\n gcloud services enable connectgateway.googleapis.com\n gcloud services enable cloudresourcemanager.googleapis.com\n gcloud services enable anthos.googleapis.com\n gcloud services enable logging.googleapis.com\n gcloud services enable monitoring.googleapis.com\n gcloud services enable opsconfigmonitoring.googleapis.com\n gcloud services enable kubernetesmetadata.googleapis.com\n\nWhat's next\n-----------\n\n- [Configure the AWS CLI](/kubernetes-engine/multi-cloud/docs/aws/how-to/configure-aws-cli)"]]