gcloud container hub policycontroller deployment remove DEPLOYMENT PROPERTY [VALUE] [--effect=EFFECT] [--all-memberships | [--memberships=[MEMBERSHIPS,…] : --location=LOCATION]] [GCLOUD_WIDE_FLAG …]
gcloud container hub policycontroller deployment remove admission replica-countTo remove the replica count for a component across all fleet memberships:
gcloud container hub policycontroller deployment remove admission replica-count --all-membershipsTo remove a toleration with key 'my-key' on a component:
gcloud container hub policycontroller deployment remove admission toleration my-keyTo remove a toleration with key 'my-key' and 'my-value' on a component:
gcloud container hub policycontroller deployment remove admission toleration my-key=my-valueTo remove a toleration with key 'my-key' and 'my-value' on a component, along with the effect 'NoSchedule':
gcloud container hub policycontroller deployment remove admission toleration my-key=my-value --effect=NoScheduleTo remove a memory limit:
gcloud container hub policycontroller deployment remove audit memory-limitTo remove a memory request:
gcloud container hub policycontroller deployment remove mutation memory-requestTo remove a cpu limit:
gcloud container hub policycontroller deployment remove admission cpu-limitTo remove a cpu request:
gcloud container hub policycontroller deployment remove audit cpu-requestTo remove the anti-affinity configuration:
gcloud container hub policycontroller deployment remove admission pod-affinityDEPLOYMENTPROPERTYVALUE]--effect=EFFECTEFFECT must be
one of: NoSchedule, PreferNoSchedule,
NoExecute.
--all-membershipsproject attribute:
--memberships on the command line with a fully
specified name;
--project on the command line;
core/project.
--memberships=[MEMBERSHIPS,…]
To set the memberships attribute:
--memberships on the command line.
--location=LOCATIONlocation attribute:
--memberships on the command line with a fully
specified name;
--location on the command line;
gkehub/location.
--access-token-file,
--account, --billing-project,
--configuration,
--flags-file,
--flatten, --format, --help, --impersonate-service-account,
--log-http,
--project, --quiet, --trace-token, --user-output-enabled,
--verbosity.
Run $ gcloud help for details.
gcloud alpha container hub policycontroller deployment removegcloud beta container hub policycontroller deployment remove
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-05-27 UTC.