- NAME
-
- gcloud alpha game servers clusters create - create a Game Server Cluster
- SYNOPSIS
-
-
gcloud alpha game servers clusters create
(CLUSTER
:--location
=LOCATION
--realm
=REALM
)--dry-run
--namespace
=NAMESPACE
(--gke-cluster
=GKE_CLUSTER
|--hub-membership
=HUB_MEMBERSHIP
) [--allocation-priority
=ALLOCATION_PRIORITY
] [--description
=DESCRIPTION
] [--labels
=[KEY
=VALUE
,…]] [--preview-time
=PREVIEW_TIME
] [GCLOUD_WIDE_FLAG …
]
-
- DESCRIPTION
-
(ALPHA)
Create a Cloud Game Server Cluster. - EXAMPLES
-
To create Game Server Cluster 'my-cluster' in project 'my-project', realm
'my-realm', and location in 'my-location' run:
gcloud alpha game servers clusters create my-cluster --project=my-project --realm=my-realm --location=my-location --gke-cluster=projects/my-project/locations/my-location/clusters/my-gke-cluster --namespace=default --labels=a=x,b=y --no-dry-run
To preview Game Server Cluster creation for 'my-cluster' in project 'my-project', realm 'my-realm', and location in 'my-location' run:
gcloud alpha game servers clusters create my-cluster --project=my-project --realm=my-realm --location=my-location --gke-cluster=projects/my-project/locations/my-location/clusters/my-gke-cluster --namespace=default --labels=a=x,b=y --dry-run
- POSITIONAL ARGUMENTS
-
-
Game server cluster resource - Cloud Game Server Cluster to create. 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 [cluster] on
the command line with a fully specified name; set the property [core/project];
provide the argument [--project] on the command line. This must be specified.
CLUSTER
- ID of the game server cluster or fully qualified identifier for the game server cluster. To set the [cluster] attribute: provide the argument [cluster] on the command line. This positional must be specified if any of the other arguments in this group are specified.
--location
=LOCATION
- Google Cloud location. To set the [location] attribute: provide the argument [cluster] on the command line with a fully specified name; provide the argument [--location] on the command line; set the property [game_services/location].
--realm
=REALM
- Cloud Game Servers Realm. To set the [realm] attribute: provide the argument [cluster] on the command line with a fully specified name; provide the argument [--realm] on the command line.
-
Game server cluster resource - Cloud Game Server Cluster to create. 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 [cluster] on
the command line with a fully specified name; set the property [core/project];
provide the argument [--project] on the command line. This must be specified.
- REQUIRED FLAGS
-
--dry-run
- Validate the creation, but do not execute it.
--namespace
=NAMESPACE
- Namespace for Kubernetes API server endpoint.
-
Exactly one of these must be specified:
--gke-cluster
=GKE_CLUSTER
-
Full or partial name of a cluster in Google Kubernetes Engine (GKE) where the
game server cluster is installed, using the format:
'projects/*/locations/*/clusters/
'. Note, the location of the GKE cluster can be either a region or a zone. Example: 'projects/my-project/locations/us-central1/clusters/test'. If project and location are not specified, the project and location of the Game Server Cluster resource are used to generate the full name of the GKE cluster.
- --hub-membership
=
HUB_MEMBERSHIP
- Full or partial name of a GKE Hub membership where the game server cluster is registered, using the format: 'projects/{project_id}/locations/global/memberships/{membership_id}' or {membership_id}. If project is not specified, the project of the Game Server Cluster resource is used to generate the full name of the GKE Hub membership.
- OPTIONAL FLAGS
-
--allocation-priority
=ALLOCATION_PRIORITY
-
Allocation priority assigned to the game server cluster. Game server clusters
receive new game server allocations based on the relative allocation priorities
set for each cluster within a realm where multicluster allocation is configured.
Ordering is based on the priority; 'p1' has the highest priority and
'priority-unspecified' has the lowest priority.
ALLOCATION_PRIORITY
must be one of:p1
,p2
,p3
,p4
,priority-unspecified
. --description
=DESCRIPTION
- Game server cluster description.
--labels
=[KEY
=VALUE
,…]-
List of label KEY=VALUE pairs to add.
Keys must start with a lowercase character and contain only hyphens (
-
), underscores (_
), lowercase characters, and numbers. Values must contain only hyphens (-
), underscores (_
), lowercase characters, and numbers. --preview-time
=PREVIEW_TIME
- This attribute is only relevant for preview (--dry-run). It is used to validate the state for a future time.
- 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
,--verbosity
.Run
$ gcloud help
for details. - API REFERENCE
-
This command uses the
gameservices/v1alpha
API. The full documentation for this API can be found at: https://cloud.google.com/solutions/gaming/ - NOTES
-
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. These variants are also available:
gcloud game servers clusters create
gcloud beta game servers clusters create
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-12-15 UTC.