Enabling the service

This page explains how to enable Binary Authorization in your environment. This step is part of setting up Binary Authorization.

Create a project

If you don't already have a Google Cloud project, create one now.

Enable billing

If billing for your project is not enabled:


  1. Go to the Google Cloud Console.
  2. From the projects list, select your project.
  3. Open the console left side menu and select Billing.
  4. Click Link a billing account.
  5. Select a billing account and click Set account.

Enable required APIs

Enable the APIs for Google Kubernetes Engine (GKE), Container Analysis and Binary Authorization:


  1. Set the default project:

    gcloud config set project PROJECT_ID

    where PROJECT_ID is the ID of your project.

  2. Enable the required APIs:

    gcloud services enable \
        container.googleapis.com \
        containeranalysis.googleapis.com \


Enable the required APIs:

  • Enable the Container Registry, Container Analysis and Binary Authorization APIs.

    Enable the APIs

  • It can take a few minutes for this operation to complete.

    What's next