HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //snap/google-cloud-cli/396/help/man/man1/gcloud_alpha_container_attached_clusters_import.1
.TH "GCLOUD_ALPHA_CONTAINER_ATTACHED_CLUSTERS_IMPORT" 1



.SH "NAME"
.HP
gcloud alpha container attached clusters import \- import fleet membership for an Attached cluster



.SH "SYNOPSIS"
.HP
\f5gcloud alpha container attached clusters import\fR \fB\-\-distribution\fR=\fIDISTRIBUTION\fR \fB\-\-platform\-version\fR=\fIPLATFORM_VERSION\fR (\fB\-\-context\fR=\fICONTEXT\fR\ :\ \fB\-\-kubeconfig\fR=\fIKUBECONFIG\fR) (\fB\-\-fleet\-membership\fR=\fIFLEET_MEMBERSHIP\fR\ :\ \fB\-\-fleet\-membership\-location\fR=\fIFLEET_MEMBERSHIP_LOCATION\fR;\ default="global") [\fB\-\-async\fR] [\fB\-\-location\fR=\fILOCATION\fR] [\fB\-\-validate\-only\fR] [\fB\-\-proxy\-secret\-name\fR=\fIPROXY_SECRET_NAME\fR\ \fB\-\-proxy\-secret\-namespace\fR=\fIPROXY_SECRET_NAMESPACE\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]



.SH "DESCRIPTION"

\fB(ALPHA)\fR Import fleet membership for an Attached cluster.



.SH "EXAMPLES"

To import the fleet membership of an attached cluster in fleet
\f5\fIFLEET_MEMBERSHIP\fR\fR managed in location \f5\fIus\-west1\fR\fR, run:

.RS 2m
$ gcloud alpha container attached clusters import \e
    \-\-location=us\-west1 \-\-platform\-version=PLATFORM_VERSION \e
    \-\-fleet\-membership=FLEET_MEMBERSHIP \e
    \-\-distribution=DISTRIBUTION \-\-context=CLUSTER_CONTEXT \e
    \-\-kubeconfig=KUBECONFIG_PATH
.RE



.SH "REQUIRED FLAGS"

.RS 2m
.TP 2m
\fB\-\-distribution\fR=\fIDISTRIBUTION\fR

Set the base platform type of the cluster to attach.

Examples:

.RS 2m
$ gcloud alpha container attached clusters import \-\-distribution=aks
$ gcloud alpha container attached clusters import \-\-distribution=eks
$ gcloud alpha container attached clusters import \e
    \-\-distribution=generic
.RE

.TP 2m
\fB\-\-platform\-version\fR=\fIPLATFORM_VERSION\fR

Platform version to use for the cluster.

To retrieve a list of valid versions, run:

.RS 2m
$ gcloud alpha container attached get\-server\-config \e
    \-\-location=LOCATION
.RE

Replace \f5\fILOCATION\fR\fR with the target Google Cloud location for the
cluster.

.TP 2m

kubectl config

This must be specified.


.RS 2m
.TP 2m
\fB\-\-context\fR=\fICONTEXT\fR

Context to use in the kubeconfig.

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

.TP 2m
\fB\-\-kubeconfig\fR=\fIKUBECONFIG\fR

Path to the kubeconfig file.

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

.RE
.sp
.TP 2m

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 \f5project\fR attribute:
.RS 2m
.IP "\(em" 2m
provide the argument \f5\-\-fleet\-membership\fR on the command line with a
fully specified name;
.IP "\(em" 2m
provide the argument \f5\-\-project\fR on the command line;
.IP "\(em" 2m
set the property \f5core/project\fR.
.RE
.sp

This must be specified.


.RS 2m
.TP 2m
\fB\-\-fleet\-membership\fR=\fIFLEET_MEMBERSHIP\fR

ID of the fleet_membership or fully qualified identifier for the
fleet_membership.

To set the \f5fleet_membership\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5\-\-fleet\-membership\fR on the command line.
.RE
.sp

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

.TP 2m
\fB\-\-fleet\-membership\-location\fR=\fIFLEET_MEMBERSHIP_LOCATION\fR; default="global"

Google Cloud location for the fleet_membership.

To set the \f5location\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5\-\-fleet\-membership\fR on the command line with a
fully specified name;
.IP "\(bu" 2m
provide the argument \f5\-\-fleet\-membership\-location\fR on the command line;
.IP "\(bu" 2m
set the property \f5container_attached/location\fR.
.RE
.sp


.RE
.RE
.sp

.SH "OPTIONAL FLAGS"

.RS 2m
.TP 2m
\fB\-\-async\fR

Return immediately, without waiting for the operation in progress to complete.

.TP 2m

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 \f5project\fR attribute:
.RS 2m
.IP "\(em" 2m
provide the argument \f5\-\-location\fR on the command line with a fully
specified name;
.IP "\(em" 2m
set the property \f5container_attached/location\fR with a fully specified name;
.IP "\(em" 2m
provide the argument \f5\-\-project\fR on the command line;
.IP "\(em" 2m
set the property \f5core/project\fR.
.RE
.sp


.RS 2m
.TP 2m
\fB\-\-location\fR=\fILOCATION\fR

ID of the location or fully qualified identifier for the location.

To set the \f5location\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5\-\-location\fR on the command line;
.IP "\(bu" 2m
set the property \f5container_attached/location\fR.
.RE
.sp

.RE
.sp
.TP 2m
\fB\-\-validate\-only\fR

Validate the cluster to import, but don't actually perform it.

.TP 2m

Proxy config


.RS 2m
.TP 2m
\fB\-\-proxy\-secret\-name\fR=\fIPROXY_SECRET_NAME\fR

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.

.TP 2m
\fB\-\-proxy\-secret\-namespace\fR=\fIPROXY_SECRET_NAMESPACE\fR

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.


.RE
.RE
.sp

.SH "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 \fB$ gcloud help\fR for details.



.SH "NOTES"

This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct project,
you might be trying to access an API with an invitation\-only early access
allowlist. This variant is also available:

.RS 2m
$ gcloud container attached clusters import
.RE