- NAME
-
- gcloud game servers clusters create - create a Game Server Cluster
- SYNOPSIS
-
-
gcloud game servers clusters create
(CLUSTER
:--location
=LOCATION
--realm
=REALM
)--dry-run
--gke-cluster
=GKE_CLUSTER
--namespace
=NAMESPACE
[--description
=DESCRIPTION
] [--labels
=[KEY
=VALUE
,…]] [--preview-time
=PREVIEW_TIME
] [GCLOUD_WIDE_FLAG …
]
-
- DESCRIPTION
- 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 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 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 argumentcluster
on the command line with a fully specified name; set the propertycore/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 argumentcluster
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 argumentcluster
on the command line with a fully specified name; provide the argument--location
on the command line; set the propertygame_services/location
. --realm
=REALM
-
Cloud Game Servers Realm. To set the
realm
attribute: provide the argumentcluster
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
- REQUIRED FLAGS
-
--dry-run
- Validate the creation, but do not execute it.
--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.
- --namespace
=
NAMESPACE
- Namespace for Kubernetes API server endpoint.
- OPTIONAL FLAGS
-
--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/v1
API. The full documentation for this API can be found at: https://cloud.google.com/solutions/gaming/ - NOTES
-
These variants are also available:
gcloud alpha 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 2021-02-09 UTC.