File: //snap/google-cloud-cli/396/help/man/man1/gcloud_container_hub_cloudrun_apply.1
.TH "GCLOUD_CONTAINER_HUB_CLOUDRUN_APPLY" 1
.SH "NAME"
.HP
gcloud container hub cloudrun apply \- deploy or update the CloudRun feature
.SH "SYNOPSIS"
.HP
\f5gcloud container hub cloudrun apply\fR (\fB\-\-gke\-cluster\fR=\fILOCATION\fR/\fICLUSTER_NAME\fR\ |\ \fB\-\-gke\-uri\fR=\fIGKE_URI\fR\ |\ [\fB\-\-context\fR=\fICONTEXT\fR\ :\ \fB\-\-kubeconfig\fR=\fIKUBECONFIG\fR]) [\fB\-\-config\fR=\fICONFIG\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
Deploy or update a user\-specified config file of the CloudRun custom resource.
The config file should be a YAML file.
.SH "EXAMPLES"
To apply the CloudRun YAML file, run:
.RS 2m
$ gcloud container hub cloudrun apply \e
\-\-kubeconfig=/path/to/kubeconfig \e
\-\-config=/path/to/cloud\-run\-cr.yaml
.RE
.SH "REQUIRED FLAGS"
.RS 2m
.TP 2m
Cluster identifier.
Exactly one of these must be specified:
.RS 2m
.TP 2m
\fB\-\-gke\-cluster\fR=\fILOCATION\fR/\fICLUSTER_NAME\fR
The location/name of the GKE cluster. The location can be a zone or a region for
e.g \f5us\-central1\-a/my\-cluster\fR.
.TP 2m
\fB\-\-gke\-uri\fR=\fIGKE_URI\fR
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
that this 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
valid GKE cluster."
.TP 2m
Non\-GKE cluster identifier.
.RS 2m
.TP 2m
\fB\-\-context\fR=\fICONTEXT\fR
The cluster context as it appears in the kubeconfig file. You can get this value
from the command line by running command: \f5kubectl config current\-context\fR.
This flag argument must be specified if any of the other arguments in this group
are specified.
.TP 2m
\fB\-\-kubeconfig\fR=\fIKUBECONFIG\fR
The kubeconfig file containing an entry for the cluster. Defaults to $KUBECONFIG
if it is set in the environment, otherwise defaults to $HOME/.kube/config.
.RE
.RE
.RE
.sp
.SH "OPTIONAL FLAGS"
.RS 2m
.TP 2m
\fB\-\-config\fR=\fICONFIG\fR
The path to CloudRun custom resource config file.
.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"
These variants are also available:
.RS 2m
$ gcloud alpha container hub cloudrun apply
.RE
.RS 2m
$ gcloud beta container hub cloudrun apply
.RE