[ Web Proxy ]
URL:
Viewing: https://docs.cloud.google.com/binary-authorization/docs/enable-cluster [Back]  [Original]

Enable enforcement on an existing cluster  |  Binary Authorization  |  Google Cloud Documentation Skip to main content
Google Cloud Documentation [Google Cloud Documentation]
Send feedback

Enable enforcement on an existing cluster Stay organized with collections Save and categorize content based on your preferences.

This guide shows you how to enable Binary Authorization enforcement on an existing Google Kubernetes Engine (GKE) cluster.

Before you begin

Before you use this guide do the following:

  1. Create a standard GKE cluster. To learn more about creating standard clusters, see Create a zonal cluster or Create a regional cluster.
  2. Enable the Binary Authorization API.

Enable enforcement

To enable enforcement, perform the following steps:

Console

  1. In the Google Cloud console, go to the GKE page:

    Go to GKE.

  2. In the Kubernetes clusters list, click the name of your cluster.

  3. Under Security, in the row for Binary authorization, click the edit icon ().

  4. In the Edit Binary Authorization dialog, select the Enable Binary Authorization checkbox and click Save changes.

gcloud

For a zonal cluster, enter the following command:

gcloud container clusters update NAME \
    --zone ZONE \
    --binauthz-evaluation-mode=PROJECT_SINGLETON_POLICY_ENFORCE

Replace the following:

Clusters can have both Binary Authorization enforcement and CV monitoring enabled. To change CV monitoring and enforcement settings, set --binauthz-evaluation-mode to one of the following values:

For more information on CV policy and cluster management, see Manage CV platform policies.

Alternatively, for a regional cluster, enter the following command:

gcloud container clusters update NAME \
    --region REGION \
    --binauthz-evaluation-mode=PROJECT_SINGLETON_POLICY_ENFORCE

Replace the following:

Clusters can have both Binary Authorization enforcement and CV monitoring enabled. To change CV monitoring and enforcement settings, set --binauthz-evaluation-mode to one of the following values:

For more information on CV policy and cluster management, see Manage CV platform policies.

Note: It can take a few minutes for the policy to take effect.

What's next

Send feedback

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-08-11 UTC.

Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-11 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page