gcloud beta container fleet cloudrun apply

NAME
gcloud beta container fleet cloudrun apply - deploy or update the CloudRun feature
SYNOPSIS
gcloud beta container fleet cloudrun apply(--gke-cluster=LOCATION/CLUSTER_NAME    |--gke-uri=GKE_URI    | [--context=CONTEXT :--kubeconfig=KUBECONFIG])[--config=CONFIG][GCLOUD_WIDE_FLAG]
DESCRIPTION
(BETA) Deploy or update a user-specified config file of theCloudRun custom resource. The config file should be a YAML file.
EXAMPLES
To apply the CloudRun YAML file, run:
gcloudbetacontainerfleetcloudrunapply--kubeconfig=/path/to/kubeconfig--config=/path/to/cloud-run-cr.yaml
REQUIRED FLAGS
Cluster identifier.

Exactly one of these must be specified:

--gke-cluster=LOCATION/CLUSTER_NAME
The location/name of the GKE cluster. The location can be a zone or a region fore.gus-central1-a/my-cluster.
--gke-uri=GKE_URI
The URI of a GKE cluster that you want to register to Hub; for example,'https://container.googleapis.com/v1/projects/my-project/locations/us-central1-a/clusters/my-cluster'.To obtain the URI, you can run 'gcloud container clusters list --uri'. Note thatthis should only be provided if the cluster being registered is a GKE cluster.The service will validate the provided URI to confirm that it maps to a validGKE cluster."
Or at least one of these can be specified:
Non-GKE cluster identifier.
--context=CONTEXT
The cluster context as it appears in the kubeconfig file. You can get this valuefrom the command line by running command:kubectl configcurrent-context.

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

--kubeconfig=KUBECONFIG
The kubeconfig file containing an entry for the cluster. Defaults to $KUBECONFIGif it is set in the environment, otherwise defaults to $HOME/.kube/config.
OPTIONAL FLAGS
--config=CONFIG
The path to CloudRun custom resource config file.
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 command is currently in beta and might change without notice. Thesevariants are also available:
gcloudcontainerfleetcloudrunapply
gcloudalphacontainerfleetcloudrunapply

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-21 UTC.