Configurar o Cloud Deploy

Nesta página, descrevemos as etapas para configurar o Cloud Deploy. Para informações sobre cobranças no Cloud Deploy, consulte Preços.

  1. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  2. Verify that billing is enabled for your Google Cloud project.

  3. Enable the Cloud Deploy API.

    Roles required to enable APIs

    To enable APIs, you need the Service Usage Admin IAM role (roles/serviceusage.serviceUsageAdmin), which contains the serviceusage.services.enable permission. Learn how to grant roles.

    Enable the API

    Talvez seja necessário ativar outras APIs para usar os recursos do Cloud Deploy, incluindo as APIs Google Kubernetes Engine, Cloud Storage e Cloud Build. Para ativá-las, navegue até a biblioteca de APIs no consoleGoogle Cloud e pesquise essas APIs.
  4. Instale a CLI do Google Cloud. Após a instalação, inicialize a CLI do Google Cloud executando o seguinte comando:

    gcloud init

    Ao usar um provedor de identidade (IdP) externo, primeiro faça login na gcloud CLI com sua identidade federada.

  5. Se você já instalou CLI gcloud, verifique se tem a versão mais recente disponível:

     gcloud components update
    

A seguir