gcloud container fleet scopes namespaces get-credentials NAMESPACE [--membership=MEMBERSHIP] [--membership-location=MEMBERSHIP_LOCATION] [--set-namespace-in-config=SET_NAMESPACE_IN_CONFIG] [GCLOUD_WIDE_FLAG …]
MEMBERSHIP, using namespace NAMESPACE in the config:
gcloud container fleet scopes namespaces get-credentials NAMESPACE --membership=MEMBERSHIP --membership-location=global --set-namespace-in-config=true
Get the Connect Gateway kubeconfig for global membership
MEMBERSHIP:
gcloud container fleet scopes namespaces get-credentials NAMESPACE --membership=MEMBERSHIP --membership-location=globalNAMESPACE--membership=MEMBERSHIP--membership-location=MEMBERSHIP_LOCATIONus-central1. If not
specified, defaults to global.
--set-namespace-in-config=SET_NAMESPACE_IN_CONFIGgcloud
container fleet memberships get-credentials.
--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 fleet scopes namespaces get-credentialsgcloud beta container fleet scopes namespaces get-credentials
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.