Marketplace
BrowsePublish
Marketplace
You are viewing an outdated version of provider-gcp.Go to Latest
upbound/provider-gcp@v0.29.0
Service
cloudrun.gcp.upbound.io
Service
upbound/provider-gcp@v0.29.0cloudrun.gcp.upbound.io

Service is the Schema for the Services API. Service acts as a top-level container that manages a set of Routes and Configurations which implement a network service.

Type

CRD

Group

cloudrun.gcp.upbound.io

Version

v1beta1

apiVersion: cloudrun.gcp.upbound.io/v1beta1

kind: Service

API Documentation
apiVersion
string
kind
string
metadata
object
spec
object
object

ServiceSpec defines the desired state of Service

forProvider
requiredobject
requiredobject

No description provided.

location
requiredstring
array

Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the "autoscaling.knative.dev/minScale" annotation key. To set maximum instances for this revision, use the "autoscaling.knative.dev/maxScale" annotation key. To set Cloud SQL connections for the revision, use the "run.googleapis.com/cloudsql-instances" annotation key. Structure is documented below.

labels
object
namespace
string
object

Reference to a Project in cloudplatform to populate namespace.

name
requiredstring
policy
object
object

Policies for referencing.

resolve
string
object

Selector for a Project in cloudplatform to populate namespace.

policy
object
object

Policies for selection.

resolve
string
project
string
array

template holds the latest specification for the Revision to be stamped out. The template references the container image, and may also include labels and annotations that should be attached to the Revision. To correlate a Revision, and/or to force a Revision to be created when the spec doesn't otherwise change, a nonce label may be provided in the template metadata. For more details, see: https://github.com/knative/serving/blob/main/docs/client-conventions.md#associate-modifications-with-revisions Cloud Run does not currently support referencing a build that is responsible for materializing the container image from source. Structure is documented below.

array

Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the "autoscaling.knative.dev/minScale" annotation key. To set maximum instances for this revision, use the "autoscaling.knative.dev/maxScale" annotation key. To set Cloud SQL connections for the revision, use the "run.googleapis.com/cloudsql-instances" annotation key. Structure is documented below.

labels
object
name
string
namespace
string
spec
array
array

RevisionSpec holds the desired state of the Revision (from the client). Structure is documented below.

array

Container defines the unit of execution for this Revision. In the context of a Revision, we disallow a number of the fields of this Container, including: name, ports, and volumeMounts. The runtime contract is documented here: https://github.com/knative/serving/blob/main/docs/runtime-contract.md Structure is documented below.

args
array
array

Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

command
array
array

Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

env
array
array

List of environment variables to set in the container. Structure is documented below.

name
string
value
string
array

Source for the environment variable's value. Only supports secret_key_ref. Structure is documented below.

secretKeyRef
requiredarray
requiredarray

Selects a key (version) of a secret in Secret Manager. Structure is documented below.

key
requiredstring
name
string
nameRef
object
object

Reference to a Secret in secretmanager to populate name.

name
requiredstring
policy
object
object

Policies for referencing.

resolve
string
object

Selector for a Secret in secretmanager to populate name.

policy
object
object

Policies for selection.

resolve
string
envFrom
array
array

List of sources to populate environment variables in the container. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Structure is documented below.

array

The ConfigMap to select from. Structure is documented below.

array

The Secret to select from. Structure is documented below.

name
requiredstring
optional
boolean
prefix
string
array

The Secret to select from. Structure is documented below.

array

The Secret to select from. Structure is documented below.

name
requiredstring
optional
boolean
image
requiredstring
ports
array
array

List of open ports in the container. More Info: https://cloud.google.com/run/docs/reference/rest/v1/RevisionSpec#ContainerPort Structure is documented below.

name
string
protocol
string
array

Compute Resources required by this container. Used to set values such as max memory More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#requests-and-limits Structure is documented below.

limits
object
requests
object
array

Volume to mount into the container's filesystem. Only supports SecretVolumeSources. Structure is documented below.

mountPath
requiredstring
name
requiredstring
volumes
array
array

Volume represents a named volume in a container. Structure is documented below.

name
requiredstring
secret
requiredarray
requiredarray

The secret's value will be presented as the content of a file whose name is defined in the item path. If no items are defined, the name of the file is the secret_name. Structure is documented below.

items
array
array

If unspecified, the volume will expose a file whose name is the secret_name. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a key and a path. Structure is documented below.

key
requiredstring
mode
number
path
requiredstring
object

Reference to a Secret in secretmanager to populate secretName.

name
requiredstring
policy
object
object

Policies for referencing.

resolve
string
object

Selector for a Secret in secretmanager to populate secretName.

policy
object
object

Policies for selection.

resolve
string
traffic
array
array

Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below.

percent
requirednumber
tag
string
object

ProviderConfigReference specifies how the provider that will be used to create, observe, update, and delete this managed resource should be configured.

name
requiredstring
policy
object
object

Policies for referencing.

resolve
string
object

ProviderReference specifies the provider that will be used to create, observe, update, and delete this managed resource. Deprecated: Please use ProviderConfigReference, i.e. providerConfigRef

name
requiredstring
policy
object
object

Policies for referencing.

resolve
string
object

PublishConnectionDetailsTo specifies the connection secret config which contains a name, metadata and a reference to secret store config to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource.

configRef
object
object

SecretStoreConfigRef specifies which secret store config should be used for this ConnectionSecret.

name
requiredstring
policy
object
object

Policies for referencing.

resolve
string
metadata
object
object

Metadata is the metadata for connection secret.

labels
object
type
string
name
requiredstring
object

WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource. This field is planned to be replaced in a future release in favor of PublishConnectionDetailsTo. Currently, both could be set independently and connection details would be published to both without affecting each other.

name
requiredstring
namespace
requiredstring
status
object
object

ServiceStatus defines the observed state of Service.

object

No description provided.

id
string
array

Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the "autoscaling.knative.dev/minScale" annotation key. To set maximum instances for this revision, use the "autoscaling.knative.dev/maxScale" annotation key. To set Cloud SQL connections for the revision, use the "run.googleapis.com/cloudsql-instances" annotation key. Structure is documented below.

selfLink
string
uid
string
status
array
array

The current status of the Service. Structure is documented below.

array

Array of observed Service Conditions, indicating the current ready state of the service. Structure is documented below.

message
string
reason
string
status
string
type
string
url
string
array

template holds the latest specification for the Revision to be stamped out. The template references the container image, and may also include labels and annotations that should be attached to the Revision. To correlate a Revision, and/or to force a Revision to be created when the spec doesn't otherwise change, a nonce label may be provided in the template metadata. For more details, see: https://github.com/knative/serving/blob/main/docs/client-conventions.md#associate-modifications-with-revisions Cloud Run does not currently support referencing a build that is responsible for materializing the container image from source. Structure is documented below.

array

Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the "autoscaling.knative.dev/minScale" annotation key. To set maximum instances for this revision, use the "autoscaling.knative.dev/maxScale" annotation key. To set Cloud SQL connections for the revision, use the "run.googleapis.com/cloudsql-instances" annotation key. Structure is documented below.

selfLink
string
uid
string
spec
array
array

RevisionSpec holds the desired state of the Revision (from the client). Structure is documented below.

traffic
array
array

Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below.

url
string
array

Conditions of the resource.

lastTransitionTime
requiredstring
message
string
reason
requiredstring
status
requiredstring
type
requiredstring
Marketplace

Discover the building blocks for your internal cloud platform.

© 2022 Upbound, Inc.

SolutionsProvidersConfigurations
LearnDocumentationTry for Free
MorePrivacy PolicyTerms & Conditions
Marketplace

© 2022 Upbound, Inc.

Marketplace

Discover the building blocksfor your internal cloud platform.