- gcloud alpha container memberships unregister - unregisters a cluster from Google Cloud Platform
(DEPRECATED)Unregisters a cluster from Google Cloud Platform.
This command group is deprecated. Please use
gcloud container hub membershipscommand group instead.
This command unregisters a cluster referenced from a kubeconfig file from Google Cloud Platform. It also removes the Connect agent installation from the Cluster.
- The context in the kubeconfig file that specifies the cluster.
- The kubeconfig file containing an entry for the cluster. Defaults to $KUBECONFIG if it is set in the environment, otherwise defaults to to $HOME/.kube/config.
- GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --billing-project, --configuration, --flags-file, --flatten, --format, --help, --impersonate-service-account,
--log-http, --project, --quiet, --trace-token, --user-output-enabled,
$ gcloud helpfor details.
Unregister a cluster referenced from the default kubeconfig file:
gcloud alpha container memberships unregister --context=my-cluster-context
Unregister a cluster referenced from a specific kubeconfig file:
gcloud alpha container memberships unregister --kubeconfig=/home/user/custom_kubeconfig --context=my-cluster-context
- This command is currently in ALPHA and may change without notice. If this command fails with API permission errors despite specifying the right project, you may be trying to access an API with an invitation-only early access allowlist. This variant is also available:
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 2020-08-04 UTC.