NAME

gcloud beta game servers clusters create - create a Game Server Cluster

SYNOPSIS

gcloud beta 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

(BETA) 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 beta 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 beta 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 argument 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.

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/{project_id}/locations/{location_id}/clusters/{cluster_id}'. 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: --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.

API REFERENCE

This command uses the gameservices/v1beta API. The full documentation for this API can be found at: https://cloud.google.com/solutions/gaming/

NOTES

This command is currently in beta and might change without notice. These variants are also available:

$ gcloud game servers clusters create

$ gcloud alpha game servers clusters create