gcloud container attached clusters import

NAME
gcloud container attached clusters import - import fleet membership for an Attached cluster
SYNOPSIS
gcloud container attached clusters import --distribution=DISTRIBUTION --platform-version=PLATFORM_VERSION (--context=CONTEXT : --kubeconfig=KUBECONFIG) (--fleet-membership=FLEET_MEMBERSHIP : --fleet-membership-location=FLEET_MEMBERSHIP_LOCATION; default="global") [--async] [--location=LOCATION] [--validate-only] [--proxy-secret-name=PROXY_SECRET_NAME --proxy-secret-namespace=PROXY_SECRET_NAMESPACE] [GCLOUD_WIDE_FLAG]
DESCRIPTION
Import fleet membership for an Attached cluster.
EXAMPLES
To import the fleet membership of an attached cluster in fleet FLEET_MEMBERSHIP managed in location us-west1, run:
gcloud container attached clusters import --location=us-west1 --platform-version=PLATFORM_VERSION --fleet-membership=FLEET_MEMBERSHIP --distribution=DISTRIBUTION --context=CLUSTER_CONTEXT --kubeconfig=KUBECONFIG_PATH
REQUIRED FLAGS
--distribution=DISTRIBUTION
Set the base platform type of the cluster to attach.

Examples:

gcloud container attached clusters import --distribution=aks
gcloud container attached clusters import --distribution=eks
gcloud container attached clusters import --distribution=generic
--platform-version=PLATFORM_VERSION
Platform version to use for the cluster.

To retrieve a list of valid versions, run:

gcloud alpha container attached get-server-config --location=LOCATION

Replace LOCATION with the target Google Cloud location for the cluster.

kubectl config

This must be specified.

--context=CONTEXT
Context to use in the kubeconfig.

This flag argument must be specified if any of the other arguments in this group are specified.

--kubeconfig=KUBECONFIG
Path to the kubeconfig file.

If not provided, the default at ~/.kube/config will be used.

Fleet membership resource - Membership of the registered cluster. Membership can be the membership ID or the full resource name. The arguments in this group can be used to specify the attributes of this resource. (NOTE) Some attributes are not given arguments in this group but can be set in other ways.

To set the project attribute:

  • provide the argument --fleet-membership on the command line with a fully specified name;
  • provide the argument --project on the command line;
  • set the property core/project.

This must be specified.

--fleet-membership=FLEET_MEMBERSHIP
ID of the fleet_membership or fully qualified identifier for the fleet_membership.

To set the fleet_membership attribute:

  • provide the argument --fleet-membership on the command line.

This flag argument must be specified if any of the other arguments in this group are specified.

--fleet-membership-location=FLEET_MEMBERSHIP_LOCATION; default="global"
Google Cloud location for the fleet_membership.

To set the location attribute:

  • provide the argument --fleet-membership on the command line with a fully specified name;
  • provide the argument --fleet-membership-location on the command line;
  • set the property container_attached/location.
OPTIONAL FLAGS
--async
Return immediately, without waiting for the operation in progress to complete.
Location resource - Google Cloud location to import attached cluster.. This represents a Cloud resource. (NOTE) Some attributes are not given arguments in this group but can be set in other ways.

To set the project attribute:

  • provide the argument --location on the command line with a fully specified name;
  • set the property container_attached/location with a fully specified name;
  • provide the argument --project on the command line;
  • set the property core/project.
--location=LOCATION
ID of the location or fully qualified identifier for the location.

To set the location attribute:

  • provide the argument --location on the command line;
  • set the property container_attached/location.
--validate-only
Validate the cluster to import, but don't actually perform it.
Proxy config
--proxy-secret-name=PROXY_SECRET_NAME
Name of the Kubernetes secret that contains the HTTP/HTTPS proxy configuration.

This flag argument must be specified if any of the other arguments in this group are specified.

--proxy-secret-namespace=PROXY_SECRET_NAMESPACE
Namespace of the Kubernetes secret that contains the HTTP/HTTPS proxy configuration.

This flag argument must be specified if any of the other arguments in this group are specified.

GCLOUD WIDE FLAGS
These flags are available to all commands: --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.

NOTES
This variant is also available:
gcloud alpha container attached clusters import