chore: regens API reference docs (#889)
diff --git a/docs/dyn/run_v1alpha1.namespaces.revisions.html b/docs/dyn/run_v1alpha1.namespaces.revisions.html
index b6e4bf5..2ab8794 100644
--- a/docs/dyn/run_v1alpha1.namespaces.revisions.html
+++ b/docs/dyn/run_v1alpha1.namespaces.revisions.html
@@ -204,11 +204,99 @@
# and the arguments to supply to it.
# Note that additional arguments may be supplied by the system to the container
# at runtime.
- "tty": True or False, # Whether this container should allocate a TTY for itself, also requires
- # 'stdin' to be true. Default is false. +optional
- "stdin": True or False, # Whether this container should allocate a buffer for stdin in the container
- # runtime. If this is not set, reads from stdin in the container will always
- # result in EOF. Default is false. +optional
+ "livenessProbe": { # Probe describes a health check to be performed against a container to # Periodic probe of container liveness.
+ # Container will be restarted if the probe fails.
+ # Cannot be updated.
+ # More info:
+ # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
+ # +optional
+ # determine whether it is alive or ready to receive traffic.
+ "timeoutSeconds": 42, # Number of seconds after which the probe times out.
+ # Defaults to 1 second. Minimum value is 1.
+ # More info:
+ # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
+ # +optional
+ "initialDelaySeconds": 42, # Number of seconds after the container has started before liveness probes
+ # are initiated. More info:
+ # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
+ # +optional
+ "handler": { # Handler defines a specific action that should be taken # The action taken to determine the health of a container
+ "tcpSocket": { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
+ # TCP hooks not yet supported
+ "host": "A String", # Optional: Host name to connect to, defaults to the pod IP.
+ # +optional
+ "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Number or name of the port to access on the container.
+ # Number must be in the range 1 to 65535.
+ # Name must be an IANA_SVC_NAME.
+ # JSON or YAML marshalling and unmarshalling, it produces or consumes the
+ # inner type. This allows you to have, for example, a JSON field that can
+ # accept a name or number.
+ "strVal": "A String", # The string value.
+ "type": 42, # The type of the value.
+ "intVal": 42, # The int value.
+ },
+ },
+ "httpGet": { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
+ # +optional
+ "path": "A String", # Path to access on the HTTP server.
+ # +optional
+ "host": "A String", # Host name to connect to, defaults to the pod IP. You probably want to set
+ # "Host" in httpHeaders instead.
+ # +optional
+ "scheme": "A String", # Scheme to use for connecting to the host.
+ # Defaults to HTTP.
+ # +optional
+ "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Name or number of the port to access on the container.
+ # Number must be in the range 1 to 65535.
+ # Name must be an IANA_SVC_NAME.
+ # JSON or YAML marshalling and unmarshalling, it produces or consumes the
+ # inner type. This allows you to have, for example, a JSON field that can
+ # accept a name or number.
+ "strVal": "A String", # The string value.
+ "type": 42, # The type of the value.
+ "intVal": 42, # The int value.
+ },
+ "httpHeaders": [ # Custom headers to set in the request. HTTP allows repeated headers.
+ # +optional
+ { # HTTPHeader describes a custom header to be used in HTTP probes
+ "name": "A String", # The header field name
+ "value": "A String", # The header field value
+ },
+ ],
+ },
+ "exec": { # ExecAction describes a "run in container" action. # One and only one of the following should be specified.
+ # Exec specifies the action to take.
+ # +optional
+ "command": "A String", # Command is the command line to execute inside the container, the working
+ # directory for the command is root ('/') in the container's filesystem. The
+ # command is simply exec'd, it is not run inside a shell, so traditional
+ # shell instructions ('|', etc) won't work. To use a shell, you need to
+ # explicitly call out to that shell. Exit status of 0 is treated as
+ # live/healthy and non-zero is unhealthy. +optional
+ },
+ },
+ "periodSeconds": 42, # How often (in seconds) to perform the probe.
+ # Default to 10 seconds. Minimum value is 1.
+ # +optional
+ "successThreshold": 42, # Minimum consecutive successes for the probe to be considered successful
+ # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value
+ # is 1. +optional
+ "failureThreshold": 42, # Minimum consecutive failures for the probe to be considered failed after
+ # having succeeded. Defaults to 3. Minimum value is 1. +optional
+ },
+ "args": [ # 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.
+ # Cannot be updated.
+ # More info:
+ # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
+ # +optional
+ "A String",
+ ],
"securityContext": { # SecurityContext holds security configuration that will be applied to a # Security options the pod should run with.
# More info: https://kubernetes.io/docs/concepts/policy/security-context/
# More info:
@@ -220,16 +308,11 @@
"readOnlyRootFilesystem": True or False, # Whether this container has a read-only root filesystem.
# Default is false.
# +optional
- "runAsGroup": "A String", # The GID to run the entrypoint of the container process.
+ "runAsGroup": 42, # The GID to run the entrypoint of the container process.
# Uses runtime default if unset.
# May also be set in PodSecurityContext. If set in both SecurityContext and
# PodSecurityContext, the value specified in SecurityContext takes
# precedence. +optional
- "runAsUser": "A String", # The UID to run the entrypoint of the container process.
- # Defaults to user specified in image metadata if unspecified.
- # May also be set in PodSecurityContext. If set in both SecurityContext and
- # PodSecurityContext, the value specified in SecurityContext takes
- # precedence. +optional
"allowPrivilegeEscalation": True or False, # AllowPrivilegeEscalation controls whether a process can gain more
# privileges than its parent process. This bool directly controls if
# the no_new_privs flag will be set on the container process.
@@ -237,6 +320,11 @@
# 1) run as Privileged
# 2) has CAP_SYS_ADMIN
# +optional
+ "runAsUser": 42, # The UID to run the entrypoint of the container process.
+ # Defaults to user specified in image metadata if unspecified.
+ # May also be set in PodSecurityContext. If set in both SecurityContext and
+ # PodSecurityContext, the value specified in SecurityContext takes
+ # precedence. +optional
"capabilities": { # Adds and removes POSIX capabilities from running containers. # The capabilities to add/drop when running containers.
# Defaults to the default set of capabilities granted by the container
# runtime. +optional
@@ -290,14 +378,24 @@
#
# The contents of the target Secret's Data field will represent the
# key-value pairs as environment variables.
- "localObjectReference": { # LocalObjectReference contains enough information to let you locate the # The Secret to select from.
+ "localObjectReference": { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
+ # directly into the message. Use the "name" field instead.
# referenced object inside the same namespace.
"name": "A String", # Name of the referent.
# More info:
# https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
},
- "optional": True or False, # Specify whether the Secret must be defined
+ "optional": True or False, # Cloud Run fully managed: not supported
+ #
+ # Cloud Run for Anthos: supported
+ #
+ # Specify whether the Secret must be defined
# +optional
+ "name": "A String", # Cloud Run fully managed: not supported
+ #
+ # Cloud Run for Anthos: supported
+ #
+ # The Secret to select from.
},
"configMapRef": { # ConfigMapEnvSource selects a ConfigMap to populate the environment # The ConfigMap to select from
# +optional
@@ -305,35 +403,49 @@
#
# The contents of the target ConfigMap's Data field will represent the
# key-value pairs as environment variables.
- "localObjectReference": { # LocalObjectReference contains enough information to let you locate the # The ConfigMap to select from.
+ "localObjectReference": { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
+ # directly into the message. Use the "name" field instead.
# referenced object inside the same namespace.
"name": "A String", # Name of the referent.
# More info:
# https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
},
- "optional": True or False, # Specify whether the ConfigMap must be defined
+ "optional": True or False, # Cloud Run fully managed: not supported
+ #
+ # Cloud Run for Anthos: supported
+ #
+ # Specify whether the ConfigMap must be defined
# +optional
+ "name": "A String", # Cloud Run fully managed: not supported
+ #
+ # Cloud Run for Anthos: supported
+ #
+ # The ConfigMap to select from.
},
"prefix": "A String", # An optional identifier to prepend to each key in the ConfigMap. Must be a
# C_IDENTIFIER. +optional
},
],
- "env": [ # List of environment variables to set in the container.
- # Cannot be updated.
+ "stdinOnce": True or False, # Whether the container runtime should close the stdin channel after it has
+ # been opened by a single attach. When stdin is true the stdin stream will
+ # remain open across multiple attach sessions. If stdinOnce is set to true,
+ # stdin is opened on container start, is empty until the first client
+ # attaches to stdin, and then remains open and accepts data until the client
+ # disconnects, at which time stdin is closed and remains closed until the
+ # container is restarted. If this flag is false, a container processes that
+ # reads from stdin will never receive an EOF. Default is false +optional
+ "volumeDevices": [ # volumeDevices is the list of block devices to be used by the container.
+ # This is an alpha feature and may change in the future.
# +optional
- { # EnvVar represents an environment variable present in a Container.
- "name": "A String", # Name of the environment variable. Must be a C_IDENTIFIER.
- "value": "A String", # Variable references $(VAR_NAME) are expanded
- # using the previous defined environment variables in the container and
- # any route environment variables. 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.
- # Defaults to "".
- # +optional
+ { # volumeDevice describes a mapping of a raw block device within a container.
+ "devicePath": "A String", # devicePath is the path inside of the container that the device will be
+ # mapped to.
+ "name": "A String", # name must match the name of a persistentVolumeClaim in the pod
},
],
+ "stdin": True or False, # Whether this container should allocate a buffer for stdin in the container
+ # runtime. If this is not set, reads from stdin in the container will always
+ # result in EOF. Default is false. +optional
"volumeMounts": [ # Pod volumes to mount into the container's filesystem.
# Cannot be updated.
# +optional
@@ -354,36 +466,35 @@
# not contain ':'.
},
],
- "volumeDevices": [ # volumeDevices is the list of block devices to be used by the container.
- # This is an alpha feature and may change in the future.
+ "tty": True or False, # Whether this container should allocate a TTY for itself, also requires
+ # 'stdin' to be true. Default is false. +optional
+ "ports": [ # List of ports to expose from the container. Exposing a port here gives
+ # the system additional information about the network connections a
+ # container uses, but is primarily informational. Not specifying a port here
+ # DOES NOT prevent that port from being exposed. Any port which is
+ # listening on the default "0.0.0.0" address inside a container will be
+ # accessible from the network.
+ # Cannot be updated.
# +optional
- { # volumeDevice describes a mapping of a raw block device within a container.
- "devicePath": "A String", # devicePath is the path inside of the container that the device will be
- # mapped to.
- "name": "A String", # name must match the name of a persistentVolumeClaim in the pod
+ { # ContainerPort represents a network port in a single container.
+ "protocol": "A String", # Protocol for port. Must be UDP or TCP.
+ # Defaults to "TCP".
+ # +optional
+ "hostIP": "A String", # What host IP to bind the external port to.
+ # +optional
+ "containerPort": 42, # Number of port to expose on the pod's IP address.
+ # This must be a valid port number, 0 < x < 65536.
+ "name": "A String", # If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
+ # named port in a pod must have a unique name. Name for the port that can be
+ # referred to by services.
+ # +optional
+ "hostPort": 42, # Number of port to expose on the host.
+ # If specified, this must be a valid port number, 0 < x < 65536.
+ # If HostNetwork is specified, this must match ContainerPort.
+ # Most containers do not need this.
+ # +optional
},
],
- "args": [ # 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.
- # Cannot be updated.
- # More info:
- # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
- # +optional
- "A String",
- ],
- "stdinOnce": True or False, # Whether the container runtime should close the stdin channel after it has
- # been opened by a single attach. When stdin is true the stdin stream will
- # remain open across multiple attach sessions. If stdinOnce is set to true,
- # stdin is opened on container start, is empty until the first client
- # attaches to stdin, and then remains open and accepts data until the client
- # disconnects, at which time stdin is closed and remains closed until the
- # container is restarted. If this flag is false, a container processes that
- # reads from stdin will never receive an EOF. Default is false +optional
"terminationMessagePolicy": "A String", # Indicate how the termination message should be populated. File will use the
# contents of terminationMessagePath to populate the container status message
# on both success and failure. FallbackToLogsOnError will use the last chunk
@@ -391,135 +502,6 @@
# container exited with an error. The log output is limited to 2048 bytes or
# 80 lines, whichever is smaller. Defaults to File. Cannot be updated.
# +optional
- "lifecycle": { # Lifecycle describes actions that the management system should take in # Actions that the management system should take in response to container
- # lifecycle events. Cannot be updated. +optional
- # response to container lifecycle events. For the PostStart and PreStop
- # lifecycle handlers, management of the container blocks until the action is
- # complete, unless the container process fails, in which case the handler is
- # aborted.
- "preStop": { # Handler defines a specific action that should be taken # PreStop is called immediately before a container is terminated.
- # The container is terminated after the handler completes.
- # The reason for termination is passed to the handler.
- # Regardless of the outcome of the handler, the container is eventually
- # terminated. Other management of the container blocks until the hook
- # completes. More info:
- # https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
- # +optional
- "tcpSocket": { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
- # TCP hooks not yet supported
- "host": "A String", # Optional: Host name to connect to, defaults to the pod IP.
- # +optional
- "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Number or name of the port to access on the container.
- # Number must be in the range 1 to 65535.
- # Name must be an IANA_SVC_NAME.
- # JSON or YAML marshalling and unmarshalling, it produces or consumes the
- # inner type. This allows you to have, for example, a JSON field that can
- # accept a name or number.
- "strVal": "A String", # The string value.
- "type": "A String", # The type of the value.
- "intVal": 42, # The int value.
- },
- },
- "httpGet": { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
- # +optional
- "path": "A String", # Path to access on the HTTP server.
- # +optional
- "host": "A String", # Host name to connect to, defaults to the pod IP. You probably want to set
- # "Host" in httpHeaders instead.
- # +optional
- "scheme": "A String", # Scheme to use for connecting to the host.
- # Defaults to HTTP.
- # +optional
- "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Name or number of the port to access on the container.
- # Number must be in the range 1 to 65535.
- # Name must be an IANA_SVC_NAME.
- # JSON or YAML marshalling and unmarshalling, it produces or consumes the
- # inner type. This allows you to have, for example, a JSON field that can
- # accept a name or number.
- "strVal": "A String", # The string value.
- "type": "A String", # The type of the value.
- "intVal": 42, # The int value.
- },
- "httpHeaders": [ # Custom headers to set in the request. HTTP allows repeated headers.
- # +optional
- { # HTTPHeader describes a custom header to be used in HTTP probes
- "name": "A String", # The header field name
- "value": "A String", # The header field value
- },
- ],
- },
- "exec": { # ExecAction describes a "run in container" action. # One and only one of the following should be specified.
- # Exec specifies the action to take.
- # +optional
- "command": "A String", # Command is the command line to execute inside the container, the working
- # directory for the command is root ('/') in the container's filesystem. The
- # command is simply exec'd, it is not run inside a shell, so traditional
- # shell instructions ('|', etc) won't work. To use a shell, you need to
- # explicitly call out to that shell. Exit status of 0 is treated as
- # live/healthy and non-zero is unhealthy. +optional
- },
- },
- "postStart": { # Handler defines a specific action that should be taken # PostStart is called immediately after a container is created. If the
- # handler fails, the container is terminated and restarted according to its
- # restart policy. Other management of the container blocks until the hook
- # completes. More info:
- # https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
- # +optional
- "tcpSocket": { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
- # TCP hooks not yet supported
- "host": "A String", # Optional: Host name to connect to, defaults to the pod IP.
- # +optional
- "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Number or name of the port to access on the container.
- # Number must be in the range 1 to 65535.
- # Name must be an IANA_SVC_NAME.
- # JSON or YAML marshalling and unmarshalling, it produces or consumes the
- # inner type. This allows you to have, for example, a JSON field that can
- # accept a name or number.
- "strVal": "A String", # The string value.
- "type": "A String", # The type of the value.
- "intVal": 42, # The int value.
- },
- },
- "httpGet": { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
- # +optional
- "path": "A String", # Path to access on the HTTP server.
- # +optional
- "host": "A String", # Host name to connect to, defaults to the pod IP. You probably want to set
- # "Host" in httpHeaders instead.
- # +optional
- "scheme": "A String", # Scheme to use for connecting to the host.
- # Defaults to HTTP.
- # +optional
- "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Name or number of the port to access on the container.
- # Number must be in the range 1 to 65535.
- # Name must be an IANA_SVC_NAME.
- # JSON or YAML marshalling and unmarshalling, it produces or consumes the
- # inner type. This allows you to have, for example, a JSON field that can
- # accept a name or number.
- "strVal": "A String", # The string value.
- "type": "A String", # The type of the value.
- "intVal": 42, # The int value.
- },
- "httpHeaders": [ # Custom headers to set in the request. HTTP allows repeated headers.
- # +optional
- { # HTTPHeader describes a custom header to be used in HTTP probes
- "name": "A String", # The header field name
- "value": "A String", # The header field value
- },
- ],
- },
- "exec": { # ExecAction describes a "run in container" action. # One and only one of the following should be specified.
- # Exec specifies the action to take.
- # +optional
- "command": "A String", # Command is the command line to execute inside the container, the working
- # directory for the command is root ('/') in the container's filesystem. The
- # command is simply exec'd, it is not run inside a shell, so traditional
- # shell instructions ('|', etc) won't work. To use a shell, you need to
- # explicitly call out to that shell. Exit status of 0 is treated as
- # live/healthy and non-zero is unhealthy. +optional
- },
- },
- },
"command": [ # 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
@@ -533,88 +515,101 @@
# +optional
"A String",
],
- "livenessProbe": { # Probe describes a health check to be performed against a container to # Periodic probe of container liveness.
- # Container will be restarted if the probe fails.
+ "env": [ # List of environment variables to set in the container.
# Cannot be updated.
- # More info:
- # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
# +optional
- # determine whether it is alive or ready to receive traffic.
- "timeoutSeconds": 42, # Number of seconds after which the probe times out.
- # Defaults to 1 second. Minimum value is 1.
- # More info:
- # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- # +optional
- "initialDelaySeconds": 42, # Number of seconds after the container has started before liveness probes
- # are initiated. More info:
- # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- # +optional
- "handler": { # Handler defines a specific action that should be taken # The action taken to determine the health of a container
- "tcpSocket": { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
- # TCP hooks not yet supported
- "host": "A String", # Optional: Host name to connect to, defaults to the pod IP.
+ { # EnvVar represents an environment variable present in a Container.
+ "valueFrom": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # Source for the environment variable's value. Cannot be used if value is not
+ # empty. +optional
+ #
+ # Cloud Run on GKE: supported
+ #
+ # EnvVarSource represents a source for the value of an EnvVar.
+ "secretKeyRef": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # Selects a key of a secret in the pod's namespace
# +optional
- "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Number or name of the port to access on the container.
- # Number must be in the range 1 to 65535.
- # Name must be an IANA_SVC_NAME.
- # JSON or YAML marshalling and unmarshalling, it produces or consumes the
- # inner type. This allows you to have, for example, a JSON field that can
- # accept a name or number.
- "strVal": "A String", # The string value.
- "type": "A String", # The type of the value.
- "intVal": 42, # The int value.
- },
- },
- "httpGet": { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
- # +optional
- "path": "A String", # Path to access on the HTTP server.
- # +optional
- "host": "A String", # Host name to connect to, defaults to the pod IP. You probably want to set
- # "Host" in httpHeaders instead.
- # +optional
- "scheme": "A String", # Scheme to use for connecting to the host.
- # Defaults to HTTP.
- # +optional
- "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Name or number of the port to access on the container.
- # Number must be in the range 1 to 65535.
- # Name must be an IANA_SVC_NAME.
- # JSON or YAML marshalling and unmarshalling, it produces or consumes the
- # inner type. This allows you to have, for example, a JSON field that can
- # accept a name or number.
- "strVal": "A String", # The string value.
- "type": "A String", # The type of the value.
- "intVal": 42, # The int value.
- },
- "httpHeaders": [ # Custom headers to set in the request. HTTP allows repeated headers.
- # +optional
- { # HTTPHeader describes a custom header to be used in HTTP probes
- "name": "A String", # The header field name
- "value": "A String", # The header field value
+ #
+ # Cloud Run on GKE: supported
+ #
+ # SecretKeySelector selects a key of a Secret.
+ "localObjectReference": { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
+ # directly into the message. Use the "name" field instead.
+ # referenced object inside the same namespace.
+ "name": "A String", # Name of the referent.
+ # More info:
+ # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
},
- ],
+ "optional": True or False, # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # Specify whether the Secret or its key must be defined
+ # +optional
+ "name": "A String", # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # The name of the secret in the pod's namespace to select from.
+ "key": "A String", # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # The key of the secret to select from. Must be a valid secret key.
+ },
+ "configMapKeyRef": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # Selects a key of a ConfigMap.
+ # +optional
+ #
+ # Cloud Run on GKE: supported
+ #
+ # Selects a key from a ConfigMap.
+ "localObjectReference": { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
+ # directly into the message. Use the "name" field instead.
+ # referenced object inside the same namespace.
+ "name": "A String", # Name of the referent.
+ # More info:
+ # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
+ },
+ "optional": True or False, # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # Specify whether the ConfigMap or its key must be defined
+ # +optional
+ "name": "A String", # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # The ConfigMap to select from.
+ "key": "A String", # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # The key to select.
+ },
},
- "exec": { # ExecAction describes a "run in container" action. # One and only one of the following should be specified.
- # Exec specifies the action to take.
+ "name": "A String", # Name of the environment variable. Must be a C_IDENTIFIER.
+ "value": "A String", # Variable references $(VAR_NAME) are expanded
+ # using the previous defined environment variables in the container and
+ # any route environment variables. 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.
+ # Defaults to "".
# +optional
- "command": "A String", # Command is the command line to execute inside the container, the working
- # directory for the command is root ('/') in the container's filesystem. The
- # command is simply exec'd, it is not run inside a shell, so traditional
- # shell instructions ('|', etc) won't work. To use a shell, you need to
- # explicitly call out to that shell. Exit status of 0 is treated as
- # live/healthy and non-zero is unhealthy. +optional
- },
},
- "periodSeconds": 42, # How often (in seconds) to perform the probe.
- # Default to 10 seconds. Minimum value is 1.
- # +optional
- "successThreshold": 42, # Minimum consecutive successes for the probe to be considered successful
- # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value
- # is 1. +optional
- "failureThreshold": 42, # Minimum consecutive failures for the probe to be considered failed after
- # having succeeded. Defaults to 3. Minimum value is 1. +optional
- },
- "image": "A String", # Docker image name.
- # More info: https://kubernetes.io/docs/concepts/containers/images
+ ],
"imagePullPolicy": "A String", # Image pull policy.
# One of Always, Never, IfNotPresent.
# Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
@@ -650,7 +645,7 @@
# inner type. This allows you to have, for example, a JSON field that can
# accept a name or number.
"strVal": "A String", # The string value.
- "type": "A String", # The type of the value.
+ "type": 42, # The type of the value.
"intVal": 42, # The int value.
},
},
@@ -671,7 +666,7 @@
# inner type. This allows you to have, for example, a JSON field that can
# accept a name or number.
"strVal": "A String", # The string value.
- "type": "A String", # The type of the value.
+ "type": 42, # The type of the value.
"intVal": 42, # The int value.
},
"httpHeaders": [ # Custom headers to set in the request. HTTP allows repeated headers.
@@ -710,50 +705,157 @@
# Defaults to /dev/termination-log.
# Cannot be updated.
# +optional
- "ports": [ # List of ports to expose from the container. Exposing a port here gives
- # the system additional information about the network connections a
- # container uses, but is primarily informational. Not specifying a port here
- # DOES NOT prevent that port from being exposed. Any port which is
- # listening on the default "0.0.0.0" address inside a container will be
- # accessible from the network.
- # Cannot be updated.
- # +optional
- { # ContainerPort represents a network port in a single container.
- "protocol": "A String", # Protocol for port. Must be UDP or TCP.
- # Defaults to "TCP".
+ "image": "A String", # Docker image name.
+ # More info: https://kubernetes.io/docs/concepts/containers/images
+ "lifecycle": { # Lifecycle describes actions that the management system should take in # Actions that the management system should take in response to container
+ # lifecycle events. Cannot be updated. +optional
+ # response to container lifecycle events. For the PostStart and PreStop
+ # lifecycle handlers, management of the container blocks until the action is
+ # complete, unless the container process fails, in which case the handler is
+ # aborted.
+ "preStop": { # Handler defines a specific action that should be taken # PreStop is called immediately before a container is terminated.
+ # The container is terminated after the handler completes.
+ # The reason for termination is passed to the handler.
+ # Regardless of the outcome of the handler, the container is eventually
+ # terminated. Other management of the container blocks until the hook
+ # completes. More info:
+ # https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
+ # +optional
+ "tcpSocket": { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
+ # TCP hooks not yet supported
+ "host": "A String", # Optional: Host name to connect to, defaults to the pod IP.
+ # +optional
+ "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Number or name of the port to access on the container.
+ # Number must be in the range 1 to 65535.
+ # Name must be an IANA_SVC_NAME.
+ # JSON or YAML marshalling and unmarshalling, it produces or consumes the
+ # inner type. This allows you to have, for example, a JSON field that can
+ # accept a name or number.
+ "strVal": "A String", # The string value.
+ "type": 42, # The type of the value.
+ "intVal": 42, # The int value.
+ },
+ },
+ "httpGet": { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
# +optional
- "hostIP": "A String", # What host IP to bind the external port to.
+ "path": "A String", # Path to access on the HTTP server.
+ # +optional
+ "host": "A String", # Host name to connect to, defaults to the pod IP. You probably want to set
+ # "Host" in httpHeaders instead.
+ # +optional
+ "scheme": "A String", # Scheme to use for connecting to the host.
+ # Defaults to HTTP.
+ # +optional
+ "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Name or number of the port to access on the container.
+ # Number must be in the range 1 to 65535.
+ # Name must be an IANA_SVC_NAME.
+ # JSON or YAML marshalling and unmarshalling, it produces or consumes the
+ # inner type. This allows you to have, for example, a JSON field that can
+ # accept a name or number.
+ "strVal": "A String", # The string value.
+ "type": 42, # The type of the value.
+ "intVal": 42, # The int value.
+ },
+ "httpHeaders": [ # Custom headers to set in the request. HTTP allows repeated headers.
+ # +optional
+ { # HTTPHeader describes a custom header to be used in HTTP probes
+ "name": "A String", # The header field name
+ "value": "A String", # The header field value
+ },
+ ],
+ },
+ "exec": { # ExecAction describes a "run in container" action. # One and only one of the following should be specified.
+ # Exec specifies the action to take.
# +optional
- "containerPort": 42, # Number of port to expose on the pod's IP address.
- # This must be a valid port number, 0 < x < 65536.
- "name": "A String", # If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
- # named port in a pod must have a unique name. Name for the port that can be
- # referred to by services.
- # +optional
- "hostPort": 42, # Number of port to expose on the host.
- # If specified, this must be a valid port number, 0 < x < 65536.
- # If HostNetwork is specified, this must match ContainerPort.
- # Most containers do not need this.
- # +optional
+ "command": "A String", # Command is the command line to execute inside the container, the working
+ # directory for the command is root ('/') in the container's filesystem. The
+ # command is simply exec'd, it is not run inside a shell, so traditional
+ # shell instructions ('|', etc) won't work. To use a shell, you need to
+ # explicitly call out to that shell. Exit status of 0 is treated as
+ # live/healthy and non-zero is unhealthy. +optional
+ },
},
- ],
+ "postStart": { # Handler defines a specific action that should be taken # PostStart is called immediately after a container is created. If the
+ # handler fails, the container is terminated and restarted according to its
+ # restart policy. Other management of the container blocks until the hook
+ # completes. More info:
+ # https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
+ # +optional
+ "tcpSocket": { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
+ # TCP hooks not yet supported
+ "host": "A String", # Optional: Host name to connect to, defaults to the pod IP.
+ # +optional
+ "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Number or name of the port to access on the container.
+ # Number must be in the range 1 to 65535.
+ # Name must be an IANA_SVC_NAME.
+ # JSON or YAML marshalling and unmarshalling, it produces or consumes the
+ # inner type. This allows you to have, for example, a JSON field that can
+ # accept a name or number.
+ "strVal": "A String", # The string value.
+ "type": 42, # The type of the value.
+ "intVal": 42, # The int value.
+ },
+ },
+ "httpGet": { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
+ # +optional
+ "path": "A String", # Path to access on the HTTP server.
+ # +optional
+ "host": "A String", # Host name to connect to, defaults to the pod IP. You probably want to set
+ # "Host" in httpHeaders instead.
+ # +optional
+ "scheme": "A String", # Scheme to use for connecting to the host.
+ # Defaults to HTTP.
+ # +optional
+ "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Name or number of the port to access on the container.
+ # Number must be in the range 1 to 65535.
+ # Name must be an IANA_SVC_NAME.
+ # JSON or YAML marshalling and unmarshalling, it produces or consumes the
+ # inner type. This allows you to have, for example, a JSON field that can
+ # accept a name or number.
+ "strVal": "A String", # The string value.
+ "type": 42, # The type of the value.
+ "intVal": 42, # The int value.
+ },
+ "httpHeaders": [ # Custom headers to set in the request. HTTP allows repeated headers.
+ # +optional
+ { # HTTPHeader describes a custom header to be used in HTTP probes
+ "name": "A String", # The header field name
+ "value": "A String", # The header field value
+ },
+ ],
+ },
+ "exec": { # ExecAction describes a "run in container" action. # One and only one of the following should be specified.
+ # Exec specifies the action to take.
+ # +optional
+ "command": "A String", # Command is the command line to execute inside the container, the working
+ # directory for the command is root ('/') in the container's filesystem. The
+ # command is simply exec'd, it is not run inside a shell, so traditional
+ # shell instructions ('|', etc) won't work. To use a shell, you need to
+ # explicitly call out to that shell. Exit status of 0 is treated as
+ # live/healthy and non-zero is unhealthy. +optional
+ },
+ },
+ },
"resources": { # ResourceRequirements describes the compute resource requirements. # Compute Resources required by this container.
# Cannot be updated.
# More info:
# https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
# +optional
- "requests": { # Requests describes the minimum amount of compute resources required.
- # If Requests is omitted for a container, it defaults to Limits if that is
- # explicitly specified, otherwise to an implementation-defined value.
- # The values of the map is string form of the 'quantity' k8s type:
- # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
- "a_key": "A String",
+ "limitsInMap": { # Limits describes the maximum amount of compute resources allowed.
+ # This is a temporary field created to migrate away from the
+ # map<string, Quantity> limits field. This is done to become compliant
+ # with k8s style API.
+ # This field is deprecated in favor of limits field.
+ "a_key": { # The view model of a single quantity, e.g. "800 MiB". Corresponds to
+ # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/generated.proto
+ "string": "A String", # Stringified version of the quantity, e.g., "800 MiB".
+ },
},
"requestsInMap": { # Requests describes the minimum amount of compute resources required.
# If Requests is omitted for a container, it defaults to Limits if that is
# explicitly specified, otherwise to an implementation-defined value.
# This is a temporary field created to migrate away from the
- # map<string, Quantity> requests field. This is done to become compliant
+ # map<string, Quantity> requests field. This is done to become compliant
# with k8s style API.
# This field is deprecated in favor of requests field.
"a_key": { # The view model of a single quantity, e.g. "800 MiB". Corresponds to
@@ -761,15 +863,12 @@
"string": "A String", # Stringified version of the quantity, e.g., "800 MiB".
},
},
- "limitsInMap": { # Limits describes the maximum amount of compute resources allowed.
- # This is a temporary field created to migrate away from the
- # map<string, Quantity> limits field. This is done to become compliant
- # with k8s style API.
- # This field is deprecated in favor of limits field.
- "a_key": { # The view model of a single quantity, e.g. "800 MiB". Corresponds to
- # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/generated.proto
- "string": "A String", # Stringified version of the quantity, e.g., "800 MiB".
- },
+ "requests": { # Requests describes the minimum amount of compute resources required.
+ # If Requests is omitted for a container, it defaults to Limits if that is
+ # explicitly specified, otherwise to an implementation-defined value.
+ # The values of the map is string form of the 'quantity' k8s type:
+ # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
+ "a_key": "A String",
},
"limits": { # Limits describes the maximum amount of compute resources allowed.
# The values of the map is string form of the 'quantity' k8s type:
@@ -783,32 +882,6 @@
# Cannot be updated.
# +optional
},
- "serviceAccountName": "A String", # Not currently used by Cloud Run.
- "timeoutSeconds": 42, # TimeoutSeconds holds the max duration the instance is allowed for
- # responding to a request.
- # Not currently used by Cloud Run.
- "servingState": "A String", # ServingState holds a value describing the state the resources
- # are in for this Revision.
- # Users must not specify this when creating a revision. It is expected
- # that the system will manipulate this based on routability and load.
- #
- # Populated by the system.
- # Read-only.
- "generation": 42, # Deprecated and not currently populated by Cloud Run. See
- # metadata.generation instead, which is the sequence number containing the
- # latest generation of the desired state.
- #
- # Read-only.
- "concurrencyModel": "A String", # ConcurrencyModel specifies the desired concurrency model
- # (Single or Multi) for the Revision. Defaults to Multi.
- # Deprecated in favor of ContainerConcurrency.
- # +optional
- "containerConcurrency": 42, # ContainerConcurrency specifies the maximum allowed in-flight (concurrent)
- # requests per container of the Revision. Values are:
- # - `0` thread-safe, the system should manage the max concurrency. This is
- # the default value.
- # - `1` not-thread-safe. Single concurrency
- # - `2-N` thread-safe, max concurrency of N
"volumes": [
{ # Volume represents a named volume in a container.
"configMap": { # Adapts a ConfigMap into a volume.
@@ -870,19 +943,137 @@
"name": "A String", # Volume's name.
},
],
+ "timeoutSeconds": 42, # TimeoutSeconds holds the max duration the instance is allowed for
+ # responding to a request.
+ # Not currently used by Cloud Run.
+ "servingState": "A String", # ServingState holds a value describing the state the resources
+ # are in for this Revision.
+ # Users must not specify this when creating a revision. It is expected
+ # that the system will manipulate this based on routability and load.
+ #
+ # Populated by the system.
+ # Read-only.
+ "generation": 42, # Deprecated and not currently populated by Cloud Run. See
+ # metadata.generation instead, which is the sequence number containing the
+ # latest generation of the desired state.
+ #
+ # Read-only.
+ "concurrencyModel": "A String", # ConcurrencyModel specifies the desired concurrency model
+ # (Single or Multi) for the Revision. Defaults to Multi.
+ # Deprecated in favor of ContainerConcurrency.
+ # +optional
+ "containerConcurrency": 42, # (Optional)
+ #
+ # ContainerConcurrency specifies the maximum allowed in-flight (concurrent)
+ # requests per container instance of the Revision.
+ #
+ # Cloud Run fully managed: supported, defaults to 80
+ #
+ # Cloud Run on GKE: supported, defaults to 0, which means concurrency
+ # to the application is not limited, and the system decides the
+ # target concurrency for the autoscaler.
"containers": [ # Containers holds the single container that defines the unit of execution
# for this Revision. In the context of a Revision, we disallow a number of
# fields on this Container, including: name and lifecycle.
+ # In Cloud Run, only a single container may be provided.
{ # A single application container.
# This specifies both the container to run, the command to run in the container
# and the arguments to supply to it.
# Note that additional arguments may be supplied by the system to the container
# at runtime.
- "tty": True or False, # Whether this container should allocate a TTY for itself, also requires
- # 'stdin' to be true. Default is false. +optional
- "stdin": True or False, # Whether this container should allocate a buffer for stdin in the container
- # runtime. If this is not set, reads from stdin in the container will always
- # result in EOF. Default is false. +optional
+ "livenessProbe": { # Probe describes a health check to be performed against a container to # Periodic probe of container liveness.
+ # Container will be restarted if the probe fails.
+ # Cannot be updated.
+ # More info:
+ # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
+ # +optional
+ # determine whether it is alive or ready to receive traffic.
+ "timeoutSeconds": 42, # Number of seconds after which the probe times out.
+ # Defaults to 1 second. Minimum value is 1.
+ # More info:
+ # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
+ # +optional
+ "initialDelaySeconds": 42, # Number of seconds after the container has started before liveness probes
+ # are initiated. More info:
+ # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
+ # +optional
+ "handler": { # Handler defines a specific action that should be taken # The action taken to determine the health of a container
+ "tcpSocket": { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
+ # TCP hooks not yet supported
+ "host": "A String", # Optional: Host name to connect to, defaults to the pod IP.
+ # +optional
+ "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Number or name of the port to access on the container.
+ # Number must be in the range 1 to 65535.
+ # Name must be an IANA_SVC_NAME.
+ # JSON or YAML marshalling and unmarshalling, it produces or consumes the
+ # inner type. This allows you to have, for example, a JSON field that can
+ # accept a name or number.
+ "strVal": "A String", # The string value.
+ "type": 42, # The type of the value.
+ "intVal": 42, # The int value.
+ },
+ },
+ "httpGet": { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
+ # +optional
+ "path": "A String", # Path to access on the HTTP server.
+ # +optional
+ "host": "A String", # Host name to connect to, defaults to the pod IP. You probably want to set
+ # "Host" in httpHeaders instead.
+ # +optional
+ "scheme": "A String", # Scheme to use for connecting to the host.
+ # Defaults to HTTP.
+ # +optional
+ "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Name or number of the port to access on the container.
+ # Number must be in the range 1 to 65535.
+ # Name must be an IANA_SVC_NAME.
+ # JSON or YAML marshalling and unmarshalling, it produces or consumes the
+ # inner type. This allows you to have, for example, a JSON field that can
+ # accept a name or number.
+ "strVal": "A String", # The string value.
+ "type": 42, # The type of the value.
+ "intVal": 42, # The int value.
+ },
+ "httpHeaders": [ # Custom headers to set in the request. HTTP allows repeated headers.
+ # +optional
+ { # HTTPHeader describes a custom header to be used in HTTP probes
+ "name": "A String", # The header field name
+ "value": "A String", # The header field value
+ },
+ ],
+ },
+ "exec": { # ExecAction describes a "run in container" action. # One and only one of the following should be specified.
+ # Exec specifies the action to take.
+ # +optional
+ "command": "A String", # Command is the command line to execute inside the container, the working
+ # directory for the command is root ('/') in the container's filesystem. The
+ # command is simply exec'd, it is not run inside a shell, so traditional
+ # shell instructions ('|', etc) won't work. To use a shell, you need to
+ # explicitly call out to that shell. Exit status of 0 is treated as
+ # live/healthy and non-zero is unhealthy. +optional
+ },
+ },
+ "periodSeconds": 42, # How often (in seconds) to perform the probe.
+ # Default to 10 seconds. Minimum value is 1.
+ # +optional
+ "successThreshold": 42, # Minimum consecutive successes for the probe to be considered successful
+ # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value
+ # is 1. +optional
+ "failureThreshold": 42, # Minimum consecutive failures for the probe to be considered failed after
+ # having succeeded. Defaults to 3. Minimum value is 1. +optional
+ },
+ "args": [ # 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.
+ # Cannot be updated.
+ # More info:
+ # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
+ # +optional
+ "A String",
+ ],
"securityContext": { # SecurityContext holds security configuration that will be applied to a # Security options the pod should run with.
# More info: https://kubernetes.io/docs/concepts/policy/security-context/
# More info:
@@ -894,16 +1085,11 @@
"readOnlyRootFilesystem": True or False, # Whether this container has a read-only root filesystem.
# Default is false.
# +optional
- "runAsGroup": "A String", # The GID to run the entrypoint of the container process.
+ "runAsGroup": 42, # The GID to run the entrypoint of the container process.
# Uses runtime default if unset.
# May also be set in PodSecurityContext. If set in both SecurityContext and
# PodSecurityContext, the value specified in SecurityContext takes
# precedence. +optional
- "runAsUser": "A String", # The UID to run the entrypoint of the container process.
- # Defaults to user specified in image metadata if unspecified.
- # May also be set in PodSecurityContext. If set in both SecurityContext and
- # PodSecurityContext, the value specified in SecurityContext takes
- # precedence. +optional
"allowPrivilegeEscalation": True or False, # AllowPrivilegeEscalation controls whether a process can gain more
# privileges than its parent process. This bool directly controls if
# the no_new_privs flag will be set on the container process.
@@ -911,6 +1097,11 @@
# 1) run as Privileged
# 2) has CAP_SYS_ADMIN
# +optional
+ "runAsUser": 42, # The UID to run the entrypoint of the container process.
+ # Defaults to user specified in image metadata if unspecified.
+ # May also be set in PodSecurityContext. If set in both SecurityContext and
+ # PodSecurityContext, the value specified in SecurityContext takes
+ # precedence. +optional
"capabilities": { # Adds and removes POSIX capabilities from running containers. # The capabilities to add/drop when running containers.
# Defaults to the default set of capabilities granted by the container
# runtime. +optional
@@ -964,14 +1155,24 @@
#
# The contents of the target Secret's Data field will represent the
# key-value pairs as environment variables.
- "localObjectReference": { # LocalObjectReference contains enough information to let you locate the # The Secret to select from.
+ "localObjectReference": { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
+ # directly into the message. Use the "name" field instead.
# referenced object inside the same namespace.
"name": "A String", # Name of the referent.
# More info:
# https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
},
- "optional": True or False, # Specify whether the Secret must be defined
+ "optional": True or False, # Cloud Run fully managed: not supported
+ #
+ # Cloud Run for Anthos: supported
+ #
+ # Specify whether the Secret must be defined
# +optional
+ "name": "A String", # Cloud Run fully managed: not supported
+ #
+ # Cloud Run for Anthos: supported
+ #
+ # The Secret to select from.
},
"configMapRef": { # ConfigMapEnvSource selects a ConfigMap to populate the environment # The ConfigMap to select from
# +optional
@@ -979,35 +1180,49 @@
#
# The contents of the target ConfigMap's Data field will represent the
# key-value pairs as environment variables.
- "localObjectReference": { # LocalObjectReference contains enough information to let you locate the # The ConfigMap to select from.
+ "localObjectReference": { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
+ # directly into the message. Use the "name" field instead.
# referenced object inside the same namespace.
"name": "A String", # Name of the referent.
# More info:
# https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
},
- "optional": True or False, # Specify whether the ConfigMap must be defined
+ "optional": True or False, # Cloud Run fully managed: not supported
+ #
+ # Cloud Run for Anthos: supported
+ #
+ # Specify whether the ConfigMap must be defined
# +optional
+ "name": "A String", # Cloud Run fully managed: not supported
+ #
+ # Cloud Run for Anthos: supported
+ #
+ # The ConfigMap to select from.
},
"prefix": "A String", # An optional identifier to prepend to each key in the ConfigMap. Must be a
# C_IDENTIFIER. +optional
},
],
- "env": [ # List of environment variables to set in the container.
- # Cannot be updated.
+ "stdinOnce": True or False, # Whether the container runtime should close the stdin channel after it has
+ # been opened by a single attach. When stdin is true the stdin stream will
+ # remain open across multiple attach sessions. If stdinOnce is set to true,
+ # stdin is opened on container start, is empty until the first client
+ # attaches to stdin, and then remains open and accepts data until the client
+ # disconnects, at which time stdin is closed and remains closed until the
+ # container is restarted. If this flag is false, a container processes that
+ # reads from stdin will never receive an EOF. Default is false +optional
+ "volumeDevices": [ # volumeDevices is the list of block devices to be used by the container.
+ # This is an alpha feature and may change in the future.
# +optional
- { # EnvVar represents an environment variable present in a Container.
- "name": "A String", # Name of the environment variable. Must be a C_IDENTIFIER.
- "value": "A String", # Variable references $(VAR_NAME) are expanded
- # using the previous defined environment variables in the container and
- # any route environment variables. 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.
- # Defaults to "".
- # +optional
+ { # volumeDevice describes a mapping of a raw block device within a container.
+ "devicePath": "A String", # devicePath is the path inside of the container that the device will be
+ # mapped to.
+ "name": "A String", # name must match the name of a persistentVolumeClaim in the pod
},
],
+ "stdin": True or False, # Whether this container should allocate a buffer for stdin in the container
+ # runtime. If this is not set, reads from stdin in the container will always
+ # result in EOF. Default is false. +optional
"volumeMounts": [ # Pod volumes to mount into the container's filesystem.
# Cannot be updated.
# +optional
@@ -1028,36 +1243,35 @@
# not contain ':'.
},
],
- "volumeDevices": [ # volumeDevices is the list of block devices to be used by the container.
- # This is an alpha feature and may change in the future.
+ "tty": True or False, # Whether this container should allocate a TTY for itself, also requires
+ # 'stdin' to be true. Default is false. +optional
+ "ports": [ # List of ports to expose from the container. Exposing a port here gives
+ # the system additional information about the network connections a
+ # container uses, but is primarily informational. Not specifying a port here
+ # DOES NOT prevent that port from being exposed. Any port which is
+ # listening on the default "0.0.0.0" address inside a container will be
+ # accessible from the network.
+ # Cannot be updated.
# +optional
- { # volumeDevice describes a mapping of a raw block device within a container.
- "devicePath": "A String", # devicePath is the path inside of the container that the device will be
- # mapped to.
- "name": "A String", # name must match the name of a persistentVolumeClaim in the pod
+ { # ContainerPort represents a network port in a single container.
+ "protocol": "A String", # Protocol for port. Must be UDP or TCP.
+ # Defaults to "TCP".
+ # +optional
+ "hostIP": "A String", # What host IP to bind the external port to.
+ # +optional
+ "containerPort": 42, # Number of port to expose on the pod's IP address.
+ # This must be a valid port number, 0 < x < 65536.
+ "name": "A String", # If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
+ # named port in a pod must have a unique name. Name for the port that can be
+ # referred to by services.
+ # +optional
+ "hostPort": 42, # Number of port to expose on the host.
+ # If specified, this must be a valid port number, 0 < x < 65536.
+ # If HostNetwork is specified, this must match ContainerPort.
+ # Most containers do not need this.
+ # +optional
},
],
- "args": [ # 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.
- # Cannot be updated.
- # More info:
- # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
- # +optional
- "A String",
- ],
- "stdinOnce": True or False, # Whether the container runtime should close the stdin channel after it has
- # been opened by a single attach. When stdin is true the stdin stream will
- # remain open across multiple attach sessions. If stdinOnce is set to true,
- # stdin is opened on container start, is empty until the first client
- # attaches to stdin, and then remains open and accepts data until the client
- # disconnects, at which time stdin is closed and remains closed until the
- # container is restarted. If this flag is false, a container processes that
- # reads from stdin will never receive an EOF. Default is false +optional
"terminationMessagePolicy": "A String", # Indicate how the termination message should be populated. File will use the
# contents of terminationMessagePath to populate the container status message
# on both success and failure. FallbackToLogsOnError will use the last chunk
@@ -1065,135 +1279,6 @@
# container exited with an error. The log output is limited to 2048 bytes or
# 80 lines, whichever is smaller. Defaults to File. Cannot be updated.
# +optional
- "lifecycle": { # Lifecycle describes actions that the management system should take in # Actions that the management system should take in response to container
- # lifecycle events. Cannot be updated. +optional
- # response to container lifecycle events. For the PostStart and PreStop
- # lifecycle handlers, management of the container blocks until the action is
- # complete, unless the container process fails, in which case the handler is
- # aborted.
- "preStop": { # Handler defines a specific action that should be taken # PreStop is called immediately before a container is terminated.
- # The container is terminated after the handler completes.
- # The reason for termination is passed to the handler.
- # Regardless of the outcome of the handler, the container is eventually
- # terminated. Other management of the container blocks until the hook
- # completes. More info:
- # https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
- # +optional
- "tcpSocket": { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
- # TCP hooks not yet supported
- "host": "A String", # Optional: Host name to connect to, defaults to the pod IP.
- # +optional
- "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Number or name of the port to access on the container.
- # Number must be in the range 1 to 65535.
- # Name must be an IANA_SVC_NAME.
- # JSON or YAML marshalling and unmarshalling, it produces or consumes the
- # inner type. This allows you to have, for example, a JSON field that can
- # accept a name or number.
- "strVal": "A String", # The string value.
- "type": "A String", # The type of the value.
- "intVal": 42, # The int value.
- },
- },
- "httpGet": { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
- # +optional
- "path": "A String", # Path to access on the HTTP server.
- # +optional
- "host": "A String", # Host name to connect to, defaults to the pod IP. You probably want to set
- # "Host" in httpHeaders instead.
- # +optional
- "scheme": "A String", # Scheme to use for connecting to the host.
- # Defaults to HTTP.
- # +optional
- "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Name or number of the port to access on the container.
- # Number must be in the range 1 to 65535.
- # Name must be an IANA_SVC_NAME.
- # JSON or YAML marshalling and unmarshalling, it produces or consumes the
- # inner type. This allows you to have, for example, a JSON field that can
- # accept a name or number.
- "strVal": "A String", # The string value.
- "type": "A String", # The type of the value.
- "intVal": 42, # The int value.
- },
- "httpHeaders": [ # Custom headers to set in the request. HTTP allows repeated headers.
- # +optional
- { # HTTPHeader describes a custom header to be used in HTTP probes
- "name": "A String", # The header field name
- "value": "A String", # The header field value
- },
- ],
- },
- "exec": { # ExecAction describes a "run in container" action. # One and only one of the following should be specified.
- # Exec specifies the action to take.
- # +optional
- "command": "A String", # Command is the command line to execute inside the container, the working
- # directory for the command is root ('/') in the container's filesystem. The
- # command is simply exec'd, it is not run inside a shell, so traditional
- # shell instructions ('|', etc) won't work. To use a shell, you need to
- # explicitly call out to that shell. Exit status of 0 is treated as
- # live/healthy and non-zero is unhealthy. +optional
- },
- },
- "postStart": { # Handler defines a specific action that should be taken # PostStart is called immediately after a container is created. If the
- # handler fails, the container is terminated and restarted according to its
- # restart policy. Other management of the container blocks until the hook
- # completes. More info:
- # https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
- # +optional
- "tcpSocket": { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
- # TCP hooks not yet supported
- "host": "A String", # Optional: Host name to connect to, defaults to the pod IP.
- # +optional
- "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Number or name of the port to access on the container.
- # Number must be in the range 1 to 65535.
- # Name must be an IANA_SVC_NAME.
- # JSON or YAML marshalling and unmarshalling, it produces or consumes the
- # inner type. This allows you to have, for example, a JSON field that can
- # accept a name or number.
- "strVal": "A String", # The string value.
- "type": "A String", # The type of the value.
- "intVal": 42, # The int value.
- },
- },
- "httpGet": { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
- # +optional
- "path": "A String", # Path to access on the HTTP server.
- # +optional
- "host": "A String", # Host name to connect to, defaults to the pod IP. You probably want to set
- # "Host" in httpHeaders instead.
- # +optional
- "scheme": "A String", # Scheme to use for connecting to the host.
- # Defaults to HTTP.
- # +optional
- "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Name or number of the port to access on the container.
- # Number must be in the range 1 to 65535.
- # Name must be an IANA_SVC_NAME.
- # JSON or YAML marshalling and unmarshalling, it produces or consumes the
- # inner type. This allows you to have, for example, a JSON field that can
- # accept a name or number.
- "strVal": "A String", # The string value.
- "type": "A String", # The type of the value.
- "intVal": 42, # The int value.
- },
- "httpHeaders": [ # Custom headers to set in the request. HTTP allows repeated headers.
- # +optional
- { # HTTPHeader describes a custom header to be used in HTTP probes
- "name": "A String", # The header field name
- "value": "A String", # The header field value
- },
- ],
- },
- "exec": { # ExecAction describes a "run in container" action. # One and only one of the following should be specified.
- # Exec specifies the action to take.
- # +optional
- "command": "A String", # Command is the command line to execute inside the container, the working
- # directory for the command is root ('/') in the container's filesystem. The
- # command is simply exec'd, it is not run inside a shell, so traditional
- # shell instructions ('|', etc) won't work. To use a shell, you need to
- # explicitly call out to that shell. Exit status of 0 is treated as
- # live/healthy and non-zero is unhealthy. +optional
- },
- },
- },
"command": [ # 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
@@ -1207,88 +1292,101 @@
# +optional
"A String",
],
- "livenessProbe": { # Probe describes a health check to be performed against a container to # Periodic probe of container liveness.
- # Container will be restarted if the probe fails.
+ "env": [ # List of environment variables to set in the container.
# Cannot be updated.
- # More info:
- # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
# +optional
- # determine whether it is alive or ready to receive traffic.
- "timeoutSeconds": 42, # Number of seconds after which the probe times out.
- # Defaults to 1 second. Minimum value is 1.
- # More info:
- # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- # +optional
- "initialDelaySeconds": 42, # Number of seconds after the container has started before liveness probes
- # are initiated. More info:
- # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- # +optional
- "handler": { # Handler defines a specific action that should be taken # The action taken to determine the health of a container
- "tcpSocket": { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
- # TCP hooks not yet supported
- "host": "A String", # Optional: Host name to connect to, defaults to the pod IP.
+ { # EnvVar represents an environment variable present in a Container.
+ "valueFrom": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # Source for the environment variable's value. Cannot be used if value is not
+ # empty. +optional
+ #
+ # Cloud Run on GKE: supported
+ #
+ # EnvVarSource represents a source for the value of an EnvVar.
+ "secretKeyRef": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # Selects a key of a secret in the pod's namespace
# +optional
- "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Number or name of the port to access on the container.
- # Number must be in the range 1 to 65535.
- # Name must be an IANA_SVC_NAME.
- # JSON or YAML marshalling and unmarshalling, it produces or consumes the
- # inner type. This allows you to have, for example, a JSON field that can
- # accept a name or number.
- "strVal": "A String", # The string value.
- "type": "A String", # The type of the value.
- "intVal": 42, # The int value.
- },
- },
- "httpGet": { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
- # +optional
- "path": "A String", # Path to access on the HTTP server.
- # +optional
- "host": "A String", # Host name to connect to, defaults to the pod IP. You probably want to set
- # "Host" in httpHeaders instead.
- # +optional
- "scheme": "A String", # Scheme to use for connecting to the host.
- # Defaults to HTTP.
- # +optional
- "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Name or number of the port to access on the container.
- # Number must be in the range 1 to 65535.
- # Name must be an IANA_SVC_NAME.
- # JSON or YAML marshalling and unmarshalling, it produces or consumes the
- # inner type. This allows you to have, for example, a JSON field that can
- # accept a name or number.
- "strVal": "A String", # The string value.
- "type": "A String", # The type of the value.
- "intVal": 42, # The int value.
- },
- "httpHeaders": [ # Custom headers to set in the request. HTTP allows repeated headers.
- # +optional
- { # HTTPHeader describes a custom header to be used in HTTP probes
- "name": "A String", # The header field name
- "value": "A String", # The header field value
+ #
+ # Cloud Run on GKE: supported
+ #
+ # SecretKeySelector selects a key of a Secret.
+ "localObjectReference": { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
+ # directly into the message. Use the "name" field instead.
+ # referenced object inside the same namespace.
+ "name": "A String", # Name of the referent.
+ # More info:
+ # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
},
- ],
+ "optional": True or False, # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # Specify whether the Secret or its key must be defined
+ # +optional
+ "name": "A String", # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # The name of the secret in the pod's namespace to select from.
+ "key": "A String", # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # The key of the secret to select from. Must be a valid secret key.
+ },
+ "configMapKeyRef": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # Selects a key of a ConfigMap.
+ # +optional
+ #
+ # Cloud Run on GKE: supported
+ #
+ # Selects a key from a ConfigMap.
+ "localObjectReference": { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
+ # directly into the message. Use the "name" field instead.
+ # referenced object inside the same namespace.
+ "name": "A String", # Name of the referent.
+ # More info:
+ # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
+ },
+ "optional": True or False, # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # Specify whether the ConfigMap or its key must be defined
+ # +optional
+ "name": "A String", # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # The ConfigMap to select from.
+ "key": "A String", # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # The key to select.
+ },
},
- "exec": { # ExecAction describes a "run in container" action. # One and only one of the following should be specified.
- # Exec specifies the action to take.
+ "name": "A String", # Name of the environment variable. Must be a C_IDENTIFIER.
+ "value": "A String", # Variable references $(VAR_NAME) are expanded
+ # using the previous defined environment variables in the container and
+ # any route environment variables. 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.
+ # Defaults to "".
# +optional
- "command": "A String", # Command is the command line to execute inside the container, the working
- # directory for the command is root ('/') in the container's filesystem. The
- # command is simply exec'd, it is not run inside a shell, so traditional
- # shell instructions ('|', etc) won't work. To use a shell, you need to
- # explicitly call out to that shell. Exit status of 0 is treated as
- # live/healthy and non-zero is unhealthy. +optional
- },
},
- "periodSeconds": 42, # How often (in seconds) to perform the probe.
- # Default to 10 seconds. Minimum value is 1.
- # +optional
- "successThreshold": 42, # Minimum consecutive successes for the probe to be considered successful
- # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value
- # is 1. +optional
- "failureThreshold": 42, # Minimum consecutive failures for the probe to be considered failed after
- # having succeeded. Defaults to 3. Minimum value is 1. +optional
- },
- "image": "A String", # Docker image name.
- # More info: https://kubernetes.io/docs/concepts/containers/images
+ ],
"imagePullPolicy": "A String", # Image pull policy.
# One of Always, Never, IfNotPresent.
# Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
@@ -1324,7 +1422,7 @@
# inner type. This allows you to have, for example, a JSON field that can
# accept a name or number.
"strVal": "A String", # The string value.
- "type": "A String", # The type of the value.
+ "type": 42, # The type of the value.
"intVal": 42, # The int value.
},
},
@@ -1345,7 +1443,7 @@
# inner type. This allows you to have, for example, a JSON field that can
# accept a name or number.
"strVal": "A String", # The string value.
- "type": "A String", # The type of the value.
+ "type": 42, # The type of the value.
"intVal": 42, # The int value.
},
"httpHeaders": [ # Custom headers to set in the request. HTTP allows repeated headers.
@@ -1384,50 +1482,157 @@
# Defaults to /dev/termination-log.
# Cannot be updated.
# +optional
- "ports": [ # List of ports to expose from the container. Exposing a port here gives
- # the system additional information about the network connections a
- # container uses, but is primarily informational. Not specifying a port here
- # DOES NOT prevent that port from being exposed. Any port which is
- # listening on the default "0.0.0.0" address inside a container will be
- # accessible from the network.
- # Cannot be updated.
- # +optional
- { # ContainerPort represents a network port in a single container.
- "protocol": "A String", # Protocol for port. Must be UDP or TCP.
- # Defaults to "TCP".
+ "image": "A String", # Docker image name.
+ # More info: https://kubernetes.io/docs/concepts/containers/images
+ "lifecycle": { # Lifecycle describes actions that the management system should take in # Actions that the management system should take in response to container
+ # lifecycle events. Cannot be updated. +optional
+ # response to container lifecycle events. For the PostStart and PreStop
+ # lifecycle handlers, management of the container blocks until the action is
+ # complete, unless the container process fails, in which case the handler is
+ # aborted.
+ "preStop": { # Handler defines a specific action that should be taken # PreStop is called immediately before a container is terminated.
+ # The container is terminated after the handler completes.
+ # The reason for termination is passed to the handler.
+ # Regardless of the outcome of the handler, the container is eventually
+ # terminated. Other management of the container blocks until the hook
+ # completes. More info:
+ # https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
+ # +optional
+ "tcpSocket": { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
+ # TCP hooks not yet supported
+ "host": "A String", # Optional: Host name to connect to, defaults to the pod IP.
+ # +optional
+ "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Number or name of the port to access on the container.
+ # Number must be in the range 1 to 65535.
+ # Name must be an IANA_SVC_NAME.
+ # JSON or YAML marshalling and unmarshalling, it produces or consumes the
+ # inner type. This allows you to have, for example, a JSON field that can
+ # accept a name or number.
+ "strVal": "A String", # The string value.
+ "type": 42, # The type of the value.
+ "intVal": 42, # The int value.
+ },
+ },
+ "httpGet": { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
# +optional
- "hostIP": "A String", # What host IP to bind the external port to.
+ "path": "A String", # Path to access on the HTTP server.
+ # +optional
+ "host": "A String", # Host name to connect to, defaults to the pod IP. You probably want to set
+ # "Host" in httpHeaders instead.
+ # +optional
+ "scheme": "A String", # Scheme to use for connecting to the host.
+ # Defaults to HTTP.
+ # +optional
+ "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Name or number of the port to access on the container.
+ # Number must be in the range 1 to 65535.
+ # Name must be an IANA_SVC_NAME.
+ # JSON or YAML marshalling and unmarshalling, it produces or consumes the
+ # inner type. This allows you to have, for example, a JSON field that can
+ # accept a name or number.
+ "strVal": "A String", # The string value.
+ "type": 42, # The type of the value.
+ "intVal": 42, # The int value.
+ },
+ "httpHeaders": [ # Custom headers to set in the request. HTTP allows repeated headers.
+ # +optional
+ { # HTTPHeader describes a custom header to be used in HTTP probes
+ "name": "A String", # The header field name
+ "value": "A String", # The header field value
+ },
+ ],
+ },
+ "exec": { # ExecAction describes a "run in container" action. # One and only one of the following should be specified.
+ # Exec specifies the action to take.
# +optional
- "containerPort": 42, # Number of port to expose on the pod's IP address.
- # This must be a valid port number, 0 < x < 65536.
- "name": "A String", # If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
- # named port in a pod must have a unique name. Name for the port that can be
- # referred to by services.
- # +optional
- "hostPort": 42, # Number of port to expose on the host.
- # If specified, this must be a valid port number, 0 < x < 65536.
- # If HostNetwork is specified, this must match ContainerPort.
- # Most containers do not need this.
- # +optional
+ "command": "A String", # Command is the command line to execute inside the container, the working
+ # directory for the command is root ('/') in the container's filesystem. The
+ # command is simply exec'd, it is not run inside a shell, so traditional
+ # shell instructions ('|', etc) won't work. To use a shell, you need to
+ # explicitly call out to that shell. Exit status of 0 is treated as
+ # live/healthy and non-zero is unhealthy. +optional
+ },
},
- ],
+ "postStart": { # Handler defines a specific action that should be taken # PostStart is called immediately after a container is created. If the
+ # handler fails, the container is terminated and restarted according to its
+ # restart policy. Other management of the container blocks until the hook
+ # completes. More info:
+ # https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
+ # +optional
+ "tcpSocket": { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
+ # TCP hooks not yet supported
+ "host": "A String", # Optional: Host name to connect to, defaults to the pod IP.
+ # +optional
+ "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Number or name of the port to access on the container.
+ # Number must be in the range 1 to 65535.
+ # Name must be an IANA_SVC_NAME.
+ # JSON or YAML marshalling and unmarshalling, it produces or consumes the
+ # inner type. This allows you to have, for example, a JSON field that can
+ # accept a name or number.
+ "strVal": "A String", # The string value.
+ "type": 42, # The type of the value.
+ "intVal": 42, # The int value.
+ },
+ },
+ "httpGet": { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
+ # +optional
+ "path": "A String", # Path to access on the HTTP server.
+ # +optional
+ "host": "A String", # Host name to connect to, defaults to the pod IP. You probably want to set
+ # "Host" in httpHeaders instead.
+ # +optional
+ "scheme": "A String", # Scheme to use for connecting to the host.
+ # Defaults to HTTP.
+ # +optional
+ "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Name or number of the port to access on the container.
+ # Number must be in the range 1 to 65535.
+ # Name must be an IANA_SVC_NAME.
+ # JSON or YAML marshalling and unmarshalling, it produces or consumes the
+ # inner type. This allows you to have, for example, a JSON field that can
+ # accept a name or number.
+ "strVal": "A String", # The string value.
+ "type": 42, # The type of the value.
+ "intVal": 42, # The int value.
+ },
+ "httpHeaders": [ # Custom headers to set in the request. HTTP allows repeated headers.
+ # +optional
+ { # HTTPHeader describes a custom header to be used in HTTP probes
+ "name": "A String", # The header field name
+ "value": "A String", # The header field value
+ },
+ ],
+ },
+ "exec": { # ExecAction describes a "run in container" action. # One and only one of the following should be specified.
+ # Exec specifies the action to take.
+ # +optional
+ "command": "A String", # Command is the command line to execute inside the container, the working
+ # directory for the command is root ('/') in the container's filesystem. The
+ # command is simply exec'd, it is not run inside a shell, so traditional
+ # shell instructions ('|', etc) won't work. To use a shell, you need to
+ # explicitly call out to that shell. Exit status of 0 is treated as
+ # live/healthy and non-zero is unhealthy. +optional
+ },
+ },
+ },
"resources": { # ResourceRequirements describes the compute resource requirements. # Compute Resources required by this container.
# Cannot be updated.
# More info:
# https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
# +optional
- "requests": { # Requests describes the minimum amount of compute resources required.
- # If Requests is omitted for a container, it defaults to Limits if that is
- # explicitly specified, otherwise to an implementation-defined value.
- # The values of the map is string form of the 'quantity' k8s type:
- # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
- "a_key": "A String",
+ "limitsInMap": { # Limits describes the maximum amount of compute resources allowed.
+ # This is a temporary field created to migrate away from the
+ # map<string, Quantity> limits field. This is done to become compliant
+ # with k8s style API.
+ # This field is deprecated in favor of limits field.
+ "a_key": { # The view model of a single quantity, e.g. "800 MiB". Corresponds to
+ # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/generated.proto
+ "string": "A String", # Stringified version of the quantity, e.g., "800 MiB".
+ },
},
"requestsInMap": { # Requests describes the minimum amount of compute resources required.
# If Requests is omitted for a container, it defaults to Limits if that is
# explicitly specified, otherwise to an implementation-defined value.
# This is a temporary field created to migrate away from the
- # map<string, Quantity> requests field. This is done to become compliant
+ # map<string, Quantity> requests field. This is done to become compliant
# with k8s style API.
# This field is deprecated in favor of requests field.
"a_key": { # The view model of a single quantity, e.g. "800 MiB". Corresponds to
@@ -1435,15 +1640,12 @@
"string": "A String", # Stringified version of the quantity, e.g., "800 MiB".
},
},
- "limitsInMap": { # Limits describes the maximum amount of compute resources allowed.
- # This is a temporary field created to migrate away from the
- # map<string, Quantity> limits field. This is done to become compliant
- # with k8s style API.
- # This field is deprecated in favor of limits field.
- "a_key": { # The view model of a single quantity, e.g. "800 MiB". Corresponds to
- # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/generated.proto
- "string": "A String", # Stringified version of the quantity, e.g., "800 MiB".
- },
+ "requests": { # Requests describes the minimum amount of compute resources required.
+ # If Requests is omitted for a container, it defaults to Limits if that is
+ # explicitly specified, otherwise to an implementation-defined value.
+ # The values of the map is string form of the 'quantity' k8s type:
+ # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
+ "a_key": "A String",
},
"limits": { # Limits describes the maximum amount of compute resources allowed.
# The values of the map is string form of the 'quantity' k8s type:
@@ -1458,8 +1660,12 @@
# +optional
},
],
+ "serviceAccountName": "A String", # Email address of the IAM service account associated with the revision
+ # of the service. The service account represents the identity of the
+ # running revision, and determines what permissions the revision has. If
+ # not provided, the revision will use the project's default service account.
},
- "apiVersion": "A String", # The API version for this call such as "v1alpha1".
+ "apiVersion": "A String", # The API version for this call such as "serving.knative.dev/v1alpha1".
"metadata": { # ObjectMeta is metadata that all persisted resources must have, which includes # Metadata associated with this Revision, including name, namespace, labels,
# and annotations.
# all objects users must create.
@@ -1472,8 +1678,8 @@
"kind": "A String", # Kind of the referent.
# More info:
# https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
- "uid": "A String", # UID of the referent.
- # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
+ "name": "A String", # Name of the referent.
+ # More info: http://kubernetes.io/docs/user-guide/identifiers#names
"apiVersion": "A String", # API version of the referent.
"controller": True or False, # If true, this reference points to the managing controller.
# +optional
@@ -1484,8 +1690,8 @@
# To set this field, a user needs "delete" permission of the owner,
# otherwise 422 (Unprocessable Entity) will be returned.
# +optional
- "name": "A String", # Name of the referent.
- # More info: http://kubernetes.io/docs/user-guide/identifiers#names
+ "uid": "A String", # UID of the referent.
+ # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
},
],
"name": "A String", # Name must be unique within a namespace, within a Cloud Run region.
@@ -1552,29 +1758,6 @@
# +patchStrategy=merge
"A String",
],
- "initializers": { # Initializers tracks the progress of initialization. # Not currently supported by Cloud Run.
- #
- # An initializer is a controller which enforces some system invariant at
- # object creation time. This field is a list of initializers that have not
- # yet acted on this object. If nil or empty, this object has been completely
- # initialized. Otherwise, the object is considered uninitialized and is
- # hidden (in list/watch and get calls) from clients that haven't explicitly
- # asked to observe uninitialized objects.
- #
- # When an object is created, the system will populate this list with the
- # current set of initializers. Only privileged users may set or modify this
- # list. Once it is empty, it may not be modified further by any user.
- "pending": [ # Pending is a list of initializers that must execute in order before this
- # object is visible. When the last pending initializer is removed, and no
- # failing result is set, the initializers struct will be set to nil and the
- # object is considered as initialized and visible to all clients.
- # +patchMergeKey=name
- # +patchStrategy=merge
- { # Initializer is information about an initializer that has not yet completed.
- "name": "A String", # name of the process that is responsible for initializing this object.
- },
- ],
- },
"resourceVersion": "A String", # An opaque value that represents the internal version of this object that
# can be used by clients to determine when objects have changed. May be used
# for optimistic concurrency, change detection, and the watch operation on a
@@ -1670,6 +1853,10 @@
An object of the form:
{ # ListRevisionsResponse is a list of Revision resources.
+ "unreachable": [ # Locations that could not be reached.
+ "A String",
+ ],
+ "kind": "A String", # The kind of this resource, in this case "RevisionList".
"items": [ # List of Revisions.
{ # Revision is an immutable snapshot of code and configuration. A revision
# references a container image. Revisions are created by updates to a
@@ -1738,11 +1925,99 @@
# and the arguments to supply to it.
# Note that additional arguments may be supplied by the system to the container
# at runtime.
- "tty": True or False, # Whether this container should allocate a TTY for itself, also requires
- # 'stdin' to be true. Default is false. +optional
- "stdin": True or False, # Whether this container should allocate a buffer for stdin in the container
- # runtime. If this is not set, reads from stdin in the container will always
- # result in EOF. Default is false. +optional
+ "livenessProbe": { # Probe describes a health check to be performed against a container to # Periodic probe of container liveness.
+ # Container will be restarted if the probe fails.
+ # Cannot be updated.
+ # More info:
+ # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
+ # +optional
+ # determine whether it is alive or ready to receive traffic.
+ "timeoutSeconds": 42, # Number of seconds after which the probe times out.
+ # Defaults to 1 second. Minimum value is 1.
+ # More info:
+ # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
+ # +optional
+ "initialDelaySeconds": 42, # Number of seconds after the container has started before liveness probes
+ # are initiated. More info:
+ # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
+ # +optional
+ "handler": { # Handler defines a specific action that should be taken # The action taken to determine the health of a container
+ "tcpSocket": { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
+ # TCP hooks not yet supported
+ "host": "A String", # Optional: Host name to connect to, defaults to the pod IP.
+ # +optional
+ "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Number or name of the port to access on the container.
+ # Number must be in the range 1 to 65535.
+ # Name must be an IANA_SVC_NAME.
+ # JSON or YAML marshalling and unmarshalling, it produces or consumes the
+ # inner type. This allows you to have, for example, a JSON field that can
+ # accept a name or number.
+ "strVal": "A String", # The string value.
+ "type": 42, # The type of the value.
+ "intVal": 42, # The int value.
+ },
+ },
+ "httpGet": { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
+ # +optional
+ "path": "A String", # Path to access on the HTTP server.
+ # +optional
+ "host": "A String", # Host name to connect to, defaults to the pod IP. You probably want to set
+ # "Host" in httpHeaders instead.
+ # +optional
+ "scheme": "A String", # Scheme to use for connecting to the host.
+ # Defaults to HTTP.
+ # +optional
+ "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Name or number of the port to access on the container.
+ # Number must be in the range 1 to 65535.
+ # Name must be an IANA_SVC_NAME.
+ # JSON or YAML marshalling and unmarshalling, it produces or consumes the
+ # inner type. This allows you to have, for example, a JSON field that can
+ # accept a name or number.
+ "strVal": "A String", # The string value.
+ "type": 42, # The type of the value.
+ "intVal": 42, # The int value.
+ },
+ "httpHeaders": [ # Custom headers to set in the request. HTTP allows repeated headers.
+ # +optional
+ { # HTTPHeader describes a custom header to be used in HTTP probes
+ "name": "A String", # The header field name
+ "value": "A String", # The header field value
+ },
+ ],
+ },
+ "exec": { # ExecAction describes a "run in container" action. # One and only one of the following should be specified.
+ # Exec specifies the action to take.
+ # +optional
+ "command": "A String", # Command is the command line to execute inside the container, the working
+ # directory for the command is root ('/') in the container's filesystem. The
+ # command is simply exec'd, it is not run inside a shell, so traditional
+ # shell instructions ('|', etc) won't work. To use a shell, you need to
+ # explicitly call out to that shell. Exit status of 0 is treated as
+ # live/healthy and non-zero is unhealthy. +optional
+ },
+ },
+ "periodSeconds": 42, # How often (in seconds) to perform the probe.
+ # Default to 10 seconds. Minimum value is 1.
+ # +optional
+ "successThreshold": 42, # Minimum consecutive successes for the probe to be considered successful
+ # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value
+ # is 1. +optional
+ "failureThreshold": 42, # Minimum consecutive failures for the probe to be considered failed after
+ # having succeeded. Defaults to 3. Minimum value is 1. +optional
+ },
+ "args": [ # 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.
+ # Cannot be updated.
+ # More info:
+ # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
+ # +optional
+ "A String",
+ ],
"securityContext": { # SecurityContext holds security configuration that will be applied to a # Security options the pod should run with.
# More info: https://kubernetes.io/docs/concepts/policy/security-context/
# More info:
@@ -1754,16 +2029,11 @@
"readOnlyRootFilesystem": True or False, # Whether this container has a read-only root filesystem.
# Default is false.
# +optional
- "runAsGroup": "A String", # The GID to run the entrypoint of the container process.
+ "runAsGroup": 42, # The GID to run the entrypoint of the container process.
# Uses runtime default if unset.
# May also be set in PodSecurityContext. If set in both SecurityContext and
# PodSecurityContext, the value specified in SecurityContext takes
# precedence. +optional
- "runAsUser": "A String", # The UID to run the entrypoint of the container process.
- # Defaults to user specified in image metadata if unspecified.
- # May also be set in PodSecurityContext. If set in both SecurityContext and
- # PodSecurityContext, the value specified in SecurityContext takes
- # precedence. +optional
"allowPrivilegeEscalation": True or False, # AllowPrivilegeEscalation controls whether a process can gain more
# privileges than its parent process. This bool directly controls if
# the no_new_privs flag will be set on the container process.
@@ -1771,6 +2041,11 @@
# 1) run as Privileged
# 2) has CAP_SYS_ADMIN
# +optional
+ "runAsUser": 42, # The UID to run the entrypoint of the container process.
+ # Defaults to user specified in image metadata if unspecified.
+ # May also be set in PodSecurityContext. If set in both SecurityContext and
+ # PodSecurityContext, the value specified in SecurityContext takes
+ # precedence. +optional
"capabilities": { # Adds and removes POSIX capabilities from running containers. # The capabilities to add/drop when running containers.
# Defaults to the default set of capabilities granted by the container
# runtime. +optional
@@ -1824,14 +2099,24 @@
#
# The contents of the target Secret's Data field will represent the
# key-value pairs as environment variables.
- "localObjectReference": { # LocalObjectReference contains enough information to let you locate the # The Secret to select from.
+ "localObjectReference": { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
+ # directly into the message. Use the "name" field instead.
# referenced object inside the same namespace.
"name": "A String", # Name of the referent.
# More info:
# https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
},
- "optional": True or False, # Specify whether the Secret must be defined
+ "optional": True or False, # Cloud Run fully managed: not supported
+ #
+ # Cloud Run for Anthos: supported
+ #
+ # Specify whether the Secret must be defined
# +optional
+ "name": "A String", # Cloud Run fully managed: not supported
+ #
+ # Cloud Run for Anthos: supported
+ #
+ # The Secret to select from.
},
"configMapRef": { # ConfigMapEnvSource selects a ConfigMap to populate the environment # The ConfigMap to select from
# +optional
@@ -1839,35 +2124,49 @@
#
# The contents of the target ConfigMap's Data field will represent the
# key-value pairs as environment variables.
- "localObjectReference": { # LocalObjectReference contains enough information to let you locate the # The ConfigMap to select from.
+ "localObjectReference": { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
+ # directly into the message. Use the "name" field instead.
# referenced object inside the same namespace.
"name": "A String", # Name of the referent.
# More info:
# https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
},
- "optional": True or False, # Specify whether the ConfigMap must be defined
+ "optional": True or False, # Cloud Run fully managed: not supported
+ #
+ # Cloud Run for Anthos: supported
+ #
+ # Specify whether the ConfigMap must be defined
# +optional
+ "name": "A String", # Cloud Run fully managed: not supported
+ #
+ # Cloud Run for Anthos: supported
+ #
+ # The ConfigMap to select from.
},
"prefix": "A String", # An optional identifier to prepend to each key in the ConfigMap. Must be a
# C_IDENTIFIER. +optional
},
],
- "env": [ # List of environment variables to set in the container.
- # Cannot be updated.
+ "stdinOnce": True or False, # Whether the container runtime should close the stdin channel after it has
+ # been opened by a single attach. When stdin is true the stdin stream will
+ # remain open across multiple attach sessions. If stdinOnce is set to true,
+ # stdin is opened on container start, is empty until the first client
+ # attaches to stdin, and then remains open and accepts data until the client
+ # disconnects, at which time stdin is closed and remains closed until the
+ # container is restarted. If this flag is false, a container processes that
+ # reads from stdin will never receive an EOF. Default is false +optional
+ "volumeDevices": [ # volumeDevices is the list of block devices to be used by the container.
+ # This is an alpha feature and may change in the future.
# +optional
- { # EnvVar represents an environment variable present in a Container.
- "name": "A String", # Name of the environment variable. Must be a C_IDENTIFIER.
- "value": "A String", # Variable references $(VAR_NAME) are expanded
- # using the previous defined environment variables in the container and
- # any route environment variables. 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.
- # Defaults to "".
- # +optional
+ { # volumeDevice describes a mapping of a raw block device within a container.
+ "devicePath": "A String", # devicePath is the path inside of the container that the device will be
+ # mapped to.
+ "name": "A String", # name must match the name of a persistentVolumeClaim in the pod
},
],
+ "stdin": True or False, # Whether this container should allocate a buffer for stdin in the container
+ # runtime. If this is not set, reads from stdin in the container will always
+ # result in EOF. Default is false. +optional
"volumeMounts": [ # Pod volumes to mount into the container's filesystem.
# Cannot be updated.
# +optional
@@ -1888,36 +2187,35 @@
# not contain ':'.
},
],
- "volumeDevices": [ # volumeDevices is the list of block devices to be used by the container.
- # This is an alpha feature and may change in the future.
+ "tty": True or False, # Whether this container should allocate a TTY for itself, also requires
+ # 'stdin' to be true. Default is false. +optional
+ "ports": [ # List of ports to expose from the container. Exposing a port here gives
+ # the system additional information about the network connections a
+ # container uses, but is primarily informational. Not specifying a port here
+ # DOES NOT prevent that port from being exposed. Any port which is
+ # listening on the default "0.0.0.0" address inside a container will be
+ # accessible from the network.
+ # Cannot be updated.
# +optional
- { # volumeDevice describes a mapping of a raw block device within a container.
- "devicePath": "A String", # devicePath is the path inside of the container that the device will be
- # mapped to.
- "name": "A String", # name must match the name of a persistentVolumeClaim in the pod
+ { # ContainerPort represents a network port in a single container.
+ "protocol": "A String", # Protocol for port. Must be UDP or TCP.
+ # Defaults to "TCP".
+ # +optional
+ "hostIP": "A String", # What host IP to bind the external port to.
+ # +optional
+ "containerPort": 42, # Number of port to expose on the pod's IP address.
+ # This must be a valid port number, 0 < x < 65536.
+ "name": "A String", # If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
+ # named port in a pod must have a unique name. Name for the port that can be
+ # referred to by services.
+ # +optional
+ "hostPort": 42, # Number of port to expose on the host.
+ # If specified, this must be a valid port number, 0 < x < 65536.
+ # If HostNetwork is specified, this must match ContainerPort.
+ # Most containers do not need this.
+ # +optional
},
],
- "args": [ # 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.
- # Cannot be updated.
- # More info:
- # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
- # +optional
- "A String",
- ],
- "stdinOnce": True or False, # Whether the container runtime should close the stdin channel after it has
- # been opened by a single attach. When stdin is true the stdin stream will
- # remain open across multiple attach sessions. If stdinOnce is set to true,
- # stdin is opened on container start, is empty until the first client
- # attaches to stdin, and then remains open and accepts data until the client
- # disconnects, at which time stdin is closed and remains closed until the
- # container is restarted. If this flag is false, a container processes that
- # reads from stdin will never receive an EOF. Default is false +optional
"terminationMessagePolicy": "A String", # Indicate how the termination message should be populated. File will use the
# contents of terminationMessagePath to populate the container status message
# on both success and failure. FallbackToLogsOnError will use the last chunk
@@ -1925,135 +2223,6 @@
# container exited with an error. The log output is limited to 2048 bytes or
# 80 lines, whichever is smaller. Defaults to File. Cannot be updated.
# +optional
- "lifecycle": { # Lifecycle describes actions that the management system should take in # Actions that the management system should take in response to container
- # lifecycle events. Cannot be updated. +optional
- # response to container lifecycle events. For the PostStart and PreStop
- # lifecycle handlers, management of the container blocks until the action is
- # complete, unless the container process fails, in which case the handler is
- # aborted.
- "preStop": { # Handler defines a specific action that should be taken # PreStop is called immediately before a container is terminated.
- # The container is terminated after the handler completes.
- # The reason for termination is passed to the handler.
- # Regardless of the outcome of the handler, the container is eventually
- # terminated. Other management of the container blocks until the hook
- # completes. More info:
- # https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
- # +optional
- "tcpSocket": { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
- # TCP hooks not yet supported
- "host": "A String", # Optional: Host name to connect to, defaults to the pod IP.
- # +optional
- "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Number or name of the port to access on the container.
- # Number must be in the range 1 to 65535.
- # Name must be an IANA_SVC_NAME.
- # JSON or YAML marshalling and unmarshalling, it produces or consumes the
- # inner type. This allows you to have, for example, a JSON field that can
- # accept a name or number.
- "strVal": "A String", # The string value.
- "type": "A String", # The type of the value.
- "intVal": 42, # The int value.
- },
- },
- "httpGet": { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
- # +optional
- "path": "A String", # Path to access on the HTTP server.
- # +optional
- "host": "A String", # Host name to connect to, defaults to the pod IP. You probably want to set
- # "Host" in httpHeaders instead.
- # +optional
- "scheme": "A String", # Scheme to use for connecting to the host.
- # Defaults to HTTP.
- # +optional
- "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Name or number of the port to access on the container.
- # Number must be in the range 1 to 65535.
- # Name must be an IANA_SVC_NAME.
- # JSON or YAML marshalling and unmarshalling, it produces or consumes the
- # inner type. This allows you to have, for example, a JSON field that can
- # accept a name or number.
- "strVal": "A String", # The string value.
- "type": "A String", # The type of the value.
- "intVal": 42, # The int value.
- },
- "httpHeaders": [ # Custom headers to set in the request. HTTP allows repeated headers.
- # +optional
- { # HTTPHeader describes a custom header to be used in HTTP probes
- "name": "A String", # The header field name
- "value": "A String", # The header field value
- },
- ],
- },
- "exec": { # ExecAction describes a "run in container" action. # One and only one of the following should be specified.
- # Exec specifies the action to take.
- # +optional
- "command": "A String", # Command is the command line to execute inside the container, the working
- # directory for the command is root ('/') in the container's filesystem. The
- # command is simply exec'd, it is not run inside a shell, so traditional
- # shell instructions ('|', etc) won't work. To use a shell, you need to
- # explicitly call out to that shell. Exit status of 0 is treated as
- # live/healthy and non-zero is unhealthy. +optional
- },
- },
- "postStart": { # Handler defines a specific action that should be taken # PostStart is called immediately after a container is created. If the
- # handler fails, the container is terminated and restarted according to its
- # restart policy. Other management of the container blocks until the hook
- # completes. More info:
- # https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
- # +optional
- "tcpSocket": { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
- # TCP hooks not yet supported
- "host": "A String", # Optional: Host name to connect to, defaults to the pod IP.
- # +optional
- "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Number or name of the port to access on the container.
- # Number must be in the range 1 to 65535.
- # Name must be an IANA_SVC_NAME.
- # JSON or YAML marshalling and unmarshalling, it produces or consumes the
- # inner type. This allows you to have, for example, a JSON field that can
- # accept a name or number.
- "strVal": "A String", # The string value.
- "type": "A String", # The type of the value.
- "intVal": 42, # The int value.
- },
- },
- "httpGet": { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
- # +optional
- "path": "A String", # Path to access on the HTTP server.
- # +optional
- "host": "A String", # Host name to connect to, defaults to the pod IP. You probably want to set
- # "Host" in httpHeaders instead.
- # +optional
- "scheme": "A String", # Scheme to use for connecting to the host.
- # Defaults to HTTP.
- # +optional
- "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Name or number of the port to access on the container.
- # Number must be in the range 1 to 65535.
- # Name must be an IANA_SVC_NAME.
- # JSON or YAML marshalling and unmarshalling, it produces or consumes the
- # inner type. This allows you to have, for example, a JSON field that can
- # accept a name or number.
- "strVal": "A String", # The string value.
- "type": "A String", # The type of the value.
- "intVal": 42, # The int value.
- },
- "httpHeaders": [ # Custom headers to set in the request. HTTP allows repeated headers.
- # +optional
- { # HTTPHeader describes a custom header to be used in HTTP probes
- "name": "A String", # The header field name
- "value": "A String", # The header field value
- },
- ],
- },
- "exec": { # ExecAction describes a "run in container" action. # One and only one of the following should be specified.
- # Exec specifies the action to take.
- # +optional
- "command": "A String", # Command is the command line to execute inside the container, the working
- # directory for the command is root ('/') in the container's filesystem. The
- # command is simply exec'd, it is not run inside a shell, so traditional
- # shell instructions ('|', etc) won't work. To use a shell, you need to
- # explicitly call out to that shell. Exit status of 0 is treated as
- # live/healthy and non-zero is unhealthy. +optional
- },
- },
- },
"command": [ # 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
@@ -2067,88 +2236,101 @@
# +optional
"A String",
],
- "livenessProbe": { # Probe describes a health check to be performed against a container to # Periodic probe of container liveness.
- # Container will be restarted if the probe fails.
+ "env": [ # List of environment variables to set in the container.
# Cannot be updated.
- # More info:
- # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
# +optional
- # determine whether it is alive or ready to receive traffic.
- "timeoutSeconds": 42, # Number of seconds after which the probe times out.
- # Defaults to 1 second. Minimum value is 1.
- # More info:
- # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- # +optional
- "initialDelaySeconds": 42, # Number of seconds after the container has started before liveness probes
- # are initiated. More info:
- # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- # +optional
- "handler": { # Handler defines a specific action that should be taken # The action taken to determine the health of a container
- "tcpSocket": { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
- # TCP hooks not yet supported
- "host": "A String", # Optional: Host name to connect to, defaults to the pod IP.
+ { # EnvVar represents an environment variable present in a Container.
+ "valueFrom": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # Source for the environment variable's value. Cannot be used if value is not
+ # empty. +optional
+ #
+ # Cloud Run on GKE: supported
+ #
+ # EnvVarSource represents a source for the value of an EnvVar.
+ "secretKeyRef": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # Selects a key of a secret in the pod's namespace
# +optional
- "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Number or name of the port to access on the container.
- # Number must be in the range 1 to 65535.
- # Name must be an IANA_SVC_NAME.
- # JSON or YAML marshalling and unmarshalling, it produces or consumes the
- # inner type. This allows you to have, for example, a JSON field that can
- # accept a name or number.
- "strVal": "A String", # The string value.
- "type": "A String", # The type of the value.
- "intVal": 42, # The int value.
- },
- },
- "httpGet": { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
- # +optional
- "path": "A String", # Path to access on the HTTP server.
- # +optional
- "host": "A String", # Host name to connect to, defaults to the pod IP. You probably want to set
- # "Host" in httpHeaders instead.
- # +optional
- "scheme": "A String", # Scheme to use for connecting to the host.
- # Defaults to HTTP.
- # +optional
- "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Name or number of the port to access on the container.
- # Number must be in the range 1 to 65535.
- # Name must be an IANA_SVC_NAME.
- # JSON or YAML marshalling and unmarshalling, it produces or consumes the
- # inner type. This allows you to have, for example, a JSON field that can
- # accept a name or number.
- "strVal": "A String", # The string value.
- "type": "A String", # The type of the value.
- "intVal": 42, # The int value.
- },
- "httpHeaders": [ # Custom headers to set in the request. HTTP allows repeated headers.
- # +optional
- { # HTTPHeader describes a custom header to be used in HTTP probes
- "name": "A String", # The header field name
- "value": "A String", # The header field value
+ #
+ # Cloud Run on GKE: supported
+ #
+ # SecretKeySelector selects a key of a Secret.
+ "localObjectReference": { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
+ # directly into the message. Use the "name" field instead.
+ # referenced object inside the same namespace.
+ "name": "A String", # Name of the referent.
+ # More info:
+ # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
},
- ],
+ "optional": True or False, # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # Specify whether the Secret or its key must be defined
+ # +optional
+ "name": "A String", # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # The name of the secret in the pod's namespace to select from.
+ "key": "A String", # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # The key of the secret to select from. Must be a valid secret key.
+ },
+ "configMapKeyRef": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # Selects a key of a ConfigMap.
+ # +optional
+ #
+ # Cloud Run on GKE: supported
+ #
+ # Selects a key from a ConfigMap.
+ "localObjectReference": { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
+ # directly into the message. Use the "name" field instead.
+ # referenced object inside the same namespace.
+ "name": "A String", # Name of the referent.
+ # More info:
+ # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
+ },
+ "optional": True or False, # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # Specify whether the ConfigMap or its key must be defined
+ # +optional
+ "name": "A String", # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # The ConfigMap to select from.
+ "key": "A String", # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # The key to select.
+ },
},
- "exec": { # ExecAction describes a "run in container" action. # One and only one of the following should be specified.
- # Exec specifies the action to take.
+ "name": "A String", # Name of the environment variable. Must be a C_IDENTIFIER.
+ "value": "A String", # Variable references $(VAR_NAME) are expanded
+ # using the previous defined environment variables in the container and
+ # any route environment variables. 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.
+ # Defaults to "".
# +optional
- "command": "A String", # Command is the command line to execute inside the container, the working
- # directory for the command is root ('/') in the container's filesystem. The
- # command is simply exec'd, it is not run inside a shell, so traditional
- # shell instructions ('|', etc) won't work. To use a shell, you need to
- # explicitly call out to that shell. Exit status of 0 is treated as
- # live/healthy and non-zero is unhealthy. +optional
- },
},
- "periodSeconds": 42, # How often (in seconds) to perform the probe.
- # Default to 10 seconds. Minimum value is 1.
- # +optional
- "successThreshold": 42, # Minimum consecutive successes for the probe to be considered successful
- # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value
- # is 1. +optional
- "failureThreshold": 42, # Minimum consecutive failures for the probe to be considered failed after
- # having succeeded. Defaults to 3. Minimum value is 1. +optional
- },
- "image": "A String", # Docker image name.
- # More info: https://kubernetes.io/docs/concepts/containers/images
+ ],
"imagePullPolicy": "A String", # Image pull policy.
# One of Always, Never, IfNotPresent.
# Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
@@ -2184,7 +2366,7 @@
# inner type. This allows you to have, for example, a JSON field that can
# accept a name or number.
"strVal": "A String", # The string value.
- "type": "A String", # The type of the value.
+ "type": 42, # The type of the value.
"intVal": 42, # The int value.
},
},
@@ -2205,7 +2387,7 @@
# inner type. This allows you to have, for example, a JSON field that can
# accept a name or number.
"strVal": "A String", # The string value.
- "type": "A String", # The type of the value.
+ "type": 42, # The type of the value.
"intVal": 42, # The int value.
},
"httpHeaders": [ # Custom headers to set in the request. HTTP allows repeated headers.
@@ -2244,50 +2426,157 @@
# Defaults to /dev/termination-log.
# Cannot be updated.
# +optional
- "ports": [ # List of ports to expose from the container. Exposing a port here gives
- # the system additional information about the network connections a
- # container uses, but is primarily informational. Not specifying a port here
- # DOES NOT prevent that port from being exposed. Any port which is
- # listening on the default "0.0.0.0" address inside a container will be
- # accessible from the network.
- # Cannot be updated.
- # +optional
- { # ContainerPort represents a network port in a single container.
- "protocol": "A String", # Protocol for port. Must be UDP or TCP.
- # Defaults to "TCP".
+ "image": "A String", # Docker image name.
+ # More info: https://kubernetes.io/docs/concepts/containers/images
+ "lifecycle": { # Lifecycle describes actions that the management system should take in # Actions that the management system should take in response to container
+ # lifecycle events. Cannot be updated. +optional
+ # response to container lifecycle events. For the PostStart and PreStop
+ # lifecycle handlers, management of the container blocks until the action is
+ # complete, unless the container process fails, in which case the handler is
+ # aborted.
+ "preStop": { # Handler defines a specific action that should be taken # PreStop is called immediately before a container is terminated.
+ # The container is terminated after the handler completes.
+ # The reason for termination is passed to the handler.
+ # Regardless of the outcome of the handler, the container is eventually
+ # terminated. Other management of the container blocks until the hook
+ # completes. More info:
+ # https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
+ # +optional
+ "tcpSocket": { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
+ # TCP hooks not yet supported
+ "host": "A String", # Optional: Host name to connect to, defaults to the pod IP.
+ # +optional
+ "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Number or name of the port to access on the container.
+ # Number must be in the range 1 to 65535.
+ # Name must be an IANA_SVC_NAME.
+ # JSON or YAML marshalling and unmarshalling, it produces or consumes the
+ # inner type. This allows you to have, for example, a JSON field that can
+ # accept a name or number.
+ "strVal": "A String", # The string value.
+ "type": 42, # The type of the value.
+ "intVal": 42, # The int value.
+ },
+ },
+ "httpGet": { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
# +optional
- "hostIP": "A String", # What host IP to bind the external port to.
+ "path": "A String", # Path to access on the HTTP server.
+ # +optional
+ "host": "A String", # Host name to connect to, defaults to the pod IP. You probably want to set
+ # "Host" in httpHeaders instead.
+ # +optional
+ "scheme": "A String", # Scheme to use for connecting to the host.
+ # Defaults to HTTP.
+ # +optional
+ "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Name or number of the port to access on the container.
+ # Number must be in the range 1 to 65535.
+ # Name must be an IANA_SVC_NAME.
+ # JSON or YAML marshalling and unmarshalling, it produces or consumes the
+ # inner type. This allows you to have, for example, a JSON field that can
+ # accept a name or number.
+ "strVal": "A String", # The string value.
+ "type": 42, # The type of the value.
+ "intVal": 42, # The int value.
+ },
+ "httpHeaders": [ # Custom headers to set in the request. HTTP allows repeated headers.
+ # +optional
+ { # HTTPHeader describes a custom header to be used in HTTP probes
+ "name": "A String", # The header field name
+ "value": "A String", # The header field value
+ },
+ ],
+ },
+ "exec": { # ExecAction describes a "run in container" action. # One and only one of the following should be specified.
+ # Exec specifies the action to take.
# +optional
- "containerPort": 42, # Number of port to expose on the pod's IP address.
- # This must be a valid port number, 0 < x < 65536.
- "name": "A String", # If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
- # named port in a pod must have a unique name. Name for the port that can be
- # referred to by services.
- # +optional
- "hostPort": 42, # Number of port to expose on the host.
- # If specified, this must be a valid port number, 0 < x < 65536.
- # If HostNetwork is specified, this must match ContainerPort.
- # Most containers do not need this.
- # +optional
+ "command": "A String", # Command is the command line to execute inside the container, the working
+ # directory for the command is root ('/') in the container's filesystem. The
+ # command is simply exec'd, it is not run inside a shell, so traditional
+ # shell instructions ('|', etc) won't work. To use a shell, you need to
+ # explicitly call out to that shell. Exit status of 0 is treated as
+ # live/healthy and non-zero is unhealthy. +optional
+ },
},
- ],
+ "postStart": { # Handler defines a specific action that should be taken # PostStart is called immediately after a container is created. If the
+ # handler fails, the container is terminated and restarted according to its
+ # restart policy. Other management of the container blocks until the hook
+ # completes. More info:
+ # https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
+ # +optional
+ "tcpSocket": { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
+ # TCP hooks not yet supported
+ "host": "A String", # Optional: Host name to connect to, defaults to the pod IP.
+ # +optional
+ "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Number or name of the port to access on the container.
+ # Number must be in the range 1 to 65535.
+ # Name must be an IANA_SVC_NAME.
+ # JSON or YAML marshalling and unmarshalling, it produces or consumes the
+ # inner type. This allows you to have, for example, a JSON field that can
+ # accept a name or number.
+ "strVal": "A String", # The string value.
+ "type": 42, # The type of the value.
+ "intVal": 42, # The int value.
+ },
+ },
+ "httpGet": { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
+ # +optional
+ "path": "A String", # Path to access on the HTTP server.
+ # +optional
+ "host": "A String", # Host name to connect to, defaults to the pod IP. You probably want to set
+ # "Host" in httpHeaders instead.
+ # +optional
+ "scheme": "A String", # Scheme to use for connecting to the host.
+ # Defaults to HTTP.
+ # +optional
+ "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Name or number of the port to access on the container.
+ # Number must be in the range 1 to 65535.
+ # Name must be an IANA_SVC_NAME.
+ # JSON or YAML marshalling and unmarshalling, it produces or consumes the
+ # inner type. This allows you to have, for example, a JSON field that can
+ # accept a name or number.
+ "strVal": "A String", # The string value.
+ "type": 42, # The type of the value.
+ "intVal": 42, # The int value.
+ },
+ "httpHeaders": [ # Custom headers to set in the request. HTTP allows repeated headers.
+ # +optional
+ { # HTTPHeader describes a custom header to be used in HTTP probes
+ "name": "A String", # The header field name
+ "value": "A String", # The header field value
+ },
+ ],
+ },
+ "exec": { # ExecAction describes a "run in container" action. # One and only one of the following should be specified.
+ # Exec specifies the action to take.
+ # +optional
+ "command": "A String", # Command is the command line to execute inside the container, the working
+ # directory for the command is root ('/') in the container's filesystem. The
+ # command is simply exec'd, it is not run inside a shell, so traditional
+ # shell instructions ('|', etc) won't work. To use a shell, you need to
+ # explicitly call out to that shell. Exit status of 0 is treated as
+ # live/healthy and non-zero is unhealthy. +optional
+ },
+ },
+ },
"resources": { # ResourceRequirements describes the compute resource requirements. # Compute Resources required by this container.
# Cannot be updated.
# More info:
# https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
# +optional
- "requests": { # Requests describes the minimum amount of compute resources required.
- # If Requests is omitted for a container, it defaults to Limits if that is
- # explicitly specified, otherwise to an implementation-defined value.
- # The values of the map is string form of the 'quantity' k8s type:
- # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
- "a_key": "A String",
+ "limitsInMap": { # Limits describes the maximum amount of compute resources allowed.
+ # This is a temporary field created to migrate away from the
+ # map<string, Quantity> limits field. This is done to become compliant
+ # with k8s style API.
+ # This field is deprecated in favor of limits field.
+ "a_key": { # The view model of a single quantity, e.g. "800 MiB". Corresponds to
+ # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/generated.proto
+ "string": "A String", # Stringified version of the quantity, e.g., "800 MiB".
+ },
},
"requestsInMap": { # Requests describes the minimum amount of compute resources required.
# If Requests is omitted for a container, it defaults to Limits if that is
# explicitly specified, otherwise to an implementation-defined value.
# This is a temporary field created to migrate away from the
- # map<string, Quantity> requests field. This is done to become compliant
+ # map<string, Quantity> requests field. This is done to become compliant
# with k8s style API.
# This field is deprecated in favor of requests field.
"a_key": { # The view model of a single quantity, e.g. "800 MiB". Corresponds to
@@ -2295,15 +2584,12 @@
"string": "A String", # Stringified version of the quantity, e.g., "800 MiB".
},
},
- "limitsInMap": { # Limits describes the maximum amount of compute resources allowed.
- # This is a temporary field created to migrate away from the
- # map<string, Quantity> limits field. This is done to become compliant
- # with k8s style API.
- # This field is deprecated in favor of limits field.
- "a_key": { # The view model of a single quantity, e.g. "800 MiB". Corresponds to
- # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/generated.proto
- "string": "A String", # Stringified version of the quantity, e.g., "800 MiB".
- },
+ "requests": { # Requests describes the minimum amount of compute resources required.
+ # If Requests is omitted for a container, it defaults to Limits if that is
+ # explicitly specified, otherwise to an implementation-defined value.
+ # The values of the map is string form of the 'quantity' k8s type:
+ # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
+ "a_key": "A String",
},
"limits": { # Limits describes the maximum amount of compute resources allowed.
# The values of the map is string form of the 'quantity' k8s type:
@@ -2317,32 +2603,6 @@
# Cannot be updated.
# +optional
},
- "serviceAccountName": "A String", # Not currently used by Cloud Run.
- "timeoutSeconds": 42, # TimeoutSeconds holds the max duration the instance is allowed for
- # responding to a request.
- # Not currently used by Cloud Run.
- "servingState": "A String", # ServingState holds a value describing the state the resources
- # are in for this Revision.
- # Users must not specify this when creating a revision. It is expected
- # that the system will manipulate this based on routability and load.
- #
- # Populated by the system.
- # Read-only.
- "generation": 42, # Deprecated and not currently populated by Cloud Run. See
- # metadata.generation instead, which is the sequence number containing the
- # latest generation of the desired state.
- #
- # Read-only.
- "concurrencyModel": "A String", # ConcurrencyModel specifies the desired concurrency model
- # (Single or Multi) for the Revision. Defaults to Multi.
- # Deprecated in favor of ContainerConcurrency.
- # +optional
- "containerConcurrency": 42, # ContainerConcurrency specifies the maximum allowed in-flight (concurrent)
- # requests per container of the Revision. Values are:
- # - `0` thread-safe, the system should manage the max concurrency. This is
- # the default value.
- # - `1` not-thread-safe. Single concurrency
- # - `2-N` thread-safe, max concurrency of N
"volumes": [
{ # Volume represents a named volume in a container.
"configMap": { # Adapts a ConfigMap into a volume.
@@ -2404,19 +2664,137 @@
"name": "A String", # Volume's name.
},
],
+ "timeoutSeconds": 42, # TimeoutSeconds holds the max duration the instance is allowed for
+ # responding to a request.
+ # Not currently used by Cloud Run.
+ "servingState": "A String", # ServingState holds a value describing the state the resources
+ # are in for this Revision.
+ # Users must not specify this when creating a revision. It is expected
+ # that the system will manipulate this based on routability and load.
+ #
+ # Populated by the system.
+ # Read-only.
+ "generation": 42, # Deprecated and not currently populated by Cloud Run. See
+ # metadata.generation instead, which is the sequence number containing the
+ # latest generation of the desired state.
+ #
+ # Read-only.
+ "concurrencyModel": "A String", # ConcurrencyModel specifies the desired concurrency model
+ # (Single or Multi) for the Revision. Defaults to Multi.
+ # Deprecated in favor of ContainerConcurrency.
+ # +optional
+ "containerConcurrency": 42, # (Optional)
+ #
+ # ContainerConcurrency specifies the maximum allowed in-flight (concurrent)
+ # requests per container instance of the Revision.
+ #
+ # Cloud Run fully managed: supported, defaults to 80
+ #
+ # Cloud Run on GKE: supported, defaults to 0, which means concurrency
+ # to the application is not limited, and the system decides the
+ # target concurrency for the autoscaler.
"containers": [ # Containers holds the single container that defines the unit of execution
# for this Revision. In the context of a Revision, we disallow a number of
# fields on this Container, including: name and lifecycle.
+ # In Cloud Run, only a single container may be provided.
{ # A single application container.
# This specifies both the container to run, the command to run in the container
# and the arguments to supply to it.
# Note that additional arguments may be supplied by the system to the container
# at runtime.
- "tty": True or False, # Whether this container should allocate a TTY for itself, also requires
- # 'stdin' to be true. Default is false. +optional
- "stdin": True or False, # Whether this container should allocate a buffer for stdin in the container
- # runtime. If this is not set, reads from stdin in the container will always
- # result in EOF. Default is false. +optional
+ "livenessProbe": { # Probe describes a health check to be performed against a container to # Periodic probe of container liveness.
+ # Container will be restarted if the probe fails.
+ # Cannot be updated.
+ # More info:
+ # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
+ # +optional
+ # determine whether it is alive or ready to receive traffic.
+ "timeoutSeconds": 42, # Number of seconds after which the probe times out.
+ # Defaults to 1 second. Minimum value is 1.
+ # More info:
+ # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
+ # +optional
+ "initialDelaySeconds": 42, # Number of seconds after the container has started before liveness probes
+ # are initiated. More info:
+ # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
+ # +optional
+ "handler": { # Handler defines a specific action that should be taken # The action taken to determine the health of a container
+ "tcpSocket": { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
+ # TCP hooks not yet supported
+ "host": "A String", # Optional: Host name to connect to, defaults to the pod IP.
+ # +optional
+ "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Number or name of the port to access on the container.
+ # Number must be in the range 1 to 65535.
+ # Name must be an IANA_SVC_NAME.
+ # JSON or YAML marshalling and unmarshalling, it produces or consumes the
+ # inner type. This allows you to have, for example, a JSON field that can
+ # accept a name or number.
+ "strVal": "A String", # The string value.
+ "type": 42, # The type of the value.
+ "intVal": 42, # The int value.
+ },
+ },
+ "httpGet": { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
+ # +optional
+ "path": "A String", # Path to access on the HTTP server.
+ # +optional
+ "host": "A String", # Host name to connect to, defaults to the pod IP. You probably want to set
+ # "Host" in httpHeaders instead.
+ # +optional
+ "scheme": "A String", # Scheme to use for connecting to the host.
+ # Defaults to HTTP.
+ # +optional
+ "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Name or number of the port to access on the container.
+ # Number must be in the range 1 to 65535.
+ # Name must be an IANA_SVC_NAME.
+ # JSON or YAML marshalling and unmarshalling, it produces or consumes the
+ # inner type. This allows you to have, for example, a JSON field that can
+ # accept a name or number.
+ "strVal": "A String", # The string value.
+ "type": 42, # The type of the value.
+ "intVal": 42, # The int value.
+ },
+ "httpHeaders": [ # Custom headers to set in the request. HTTP allows repeated headers.
+ # +optional
+ { # HTTPHeader describes a custom header to be used in HTTP probes
+ "name": "A String", # The header field name
+ "value": "A String", # The header field value
+ },
+ ],
+ },
+ "exec": { # ExecAction describes a "run in container" action. # One and only one of the following should be specified.
+ # Exec specifies the action to take.
+ # +optional
+ "command": "A String", # Command is the command line to execute inside the container, the working
+ # directory for the command is root ('/') in the container's filesystem. The
+ # command is simply exec'd, it is not run inside a shell, so traditional
+ # shell instructions ('|', etc) won't work. To use a shell, you need to
+ # explicitly call out to that shell. Exit status of 0 is treated as
+ # live/healthy and non-zero is unhealthy. +optional
+ },
+ },
+ "periodSeconds": 42, # How often (in seconds) to perform the probe.
+ # Default to 10 seconds. Minimum value is 1.
+ # +optional
+ "successThreshold": 42, # Minimum consecutive successes for the probe to be considered successful
+ # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value
+ # is 1. +optional
+ "failureThreshold": 42, # Minimum consecutive failures for the probe to be considered failed after
+ # having succeeded. Defaults to 3. Minimum value is 1. +optional
+ },
+ "args": [ # 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.
+ # Cannot be updated.
+ # More info:
+ # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
+ # +optional
+ "A String",
+ ],
"securityContext": { # SecurityContext holds security configuration that will be applied to a # Security options the pod should run with.
# More info: https://kubernetes.io/docs/concepts/policy/security-context/
# More info:
@@ -2428,16 +2806,11 @@
"readOnlyRootFilesystem": True or False, # Whether this container has a read-only root filesystem.
# Default is false.
# +optional
- "runAsGroup": "A String", # The GID to run the entrypoint of the container process.
+ "runAsGroup": 42, # The GID to run the entrypoint of the container process.
# Uses runtime default if unset.
# May also be set in PodSecurityContext. If set in both SecurityContext and
# PodSecurityContext, the value specified in SecurityContext takes
# precedence. +optional
- "runAsUser": "A String", # The UID to run the entrypoint of the container process.
- # Defaults to user specified in image metadata if unspecified.
- # May also be set in PodSecurityContext. If set in both SecurityContext and
- # PodSecurityContext, the value specified in SecurityContext takes
- # precedence. +optional
"allowPrivilegeEscalation": True or False, # AllowPrivilegeEscalation controls whether a process can gain more
# privileges than its parent process. This bool directly controls if
# the no_new_privs flag will be set on the container process.
@@ -2445,6 +2818,11 @@
# 1) run as Privileged
# 2) has CAP_SYS_ADMIN
# +optional
+ "runAsUser": 42, # The UID to run the entrypoint of the container process.
+ # Defaults to user specified in image metadata if unspecified.
+ # May also be set in PodSecurityContext. If set in both SecurityContext and
+ # PodSecurityContext, the value specified in SecurityContext takes
+ # precedence. +optional
"capabilities": { # Adds and removes POSIX capabilities from running containers. # The capabilities to add/drop when running containers.
# Defaults to the default set of capabilities granted by the container
# runtime. +optional
@@ -2498,14 +2876,24 @@
#
# The contents of the target Secret's Data field will represent the
# key-value pairs as environment variables.
- "localObjectReference": { # LocalObjectReference contains enough information to let you locate the # The Secret to select from.
+ "localObjectReference": { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
+ # directly into the message. Use the "name" field instead.
# referenced object inside the same namespace.
"name": "A String", # Name of the referent.
# More info:
# https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
},
- "optional": True or False, # Specify whether the Secret must be defined
+ "optional": True or False, # Cloud Run fully managed: not supported
+ #
+ # Cloud Run for Anthos: supported
+ #
+ # Specify whether the Secret must be defined
# +optional
+ "name": "A String", # Cloud Run fully managed: not supported
+ #
+ # Cloud Run for Anthos: supported
+ #
+ # The Secret to select from.
},
"configMapRef": { # ConfigMapEnvSource selects a ConfigMap to populate the environment # The ConfigMap to select from
# +optional
@@ -2513,35 +2901,49 @@
#
# The contents of the target ConfigMap's Data field will represent the
# key-value pairs as environment variables.
- "localObjectReference": { # LocalObjectReference contains enough information to let you locate the # The ConfigMap to select from.
+ "localObjectReference": { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
+ # directly into the message. Use the "name" field instead.
# referenced object inside the same namespace.
"name": "A String", # Name of the referent.
# More info:
# https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
},
- "optional": True or False, # Specify whether the ConfigMap must be defined
+ "optional": True or False, # Cloud Run fully managed: not supported
+ #
+ # Cloud Run for Anthos: supported
+ #
+ # Specify whether the ConfigMap must be defined
# +optional
+ "name": "A String", # Cloud Run fully managed: not supported
+ #
+ # Cloud Run for Anthos: supported
+ #
+ # The ConfigMap to select from.
},
"prefix": "A String", # An optional identifier to prepend to each key in the ConfigMap. Must be a
# C_IDENTIFIER. +optional
},
],
- "env": [ # List of environment variables to set in the container.
- # Cannot be updated.
+ "stdinOnce": True or False, # Whether the container runtime should close the stdin channel after it has
+ # been opened by a single attach. When stdin is true the stdin stream will
+ # remain open across multiple attach sessions. If stdinOnce is set to true,
+ # stdin is opened on container start, is empty until the first client
+ # attaches to stdin, and then remains open and accepts data until the client
+ # disconnects, at which time stdin is closed and remains closed until the
+ # container is restarted. If this flag is false, a container processes that
+ # reads from stdin will never receive an EOF. Default is false +optional
+ "volumeDevices": [ # volumeDevices is the list of block devices to be used by the container.
+ # This is an alpha feature and may change in the future.
# +optional
- { # EnvVar represents an environment variable present in a Container.
- "name": "A String", # Name of the environment variable. Must be a C_IDENTIFIER.
- "value": "A String", # Variable references $(VAR_NAME) are expanded
- # using the previous defined environment variables in the container and
- # any route environment variables. 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.
- # Defaults to "".
- # +optional
+ { # volumeDevice describes a mapping of a raw block device within a container.
+ "devicePath": "A String", # devicePath is the path inside of the container that the device will be
+ # mapped to.
+ "name": "A String", # name must match the name of a persistentVolumeClaim in the pod
},
],
+ "stdin": True or False, # Whether this container should allocate a buffer for stdin in the container
+ # runtime. If this is not set, reads from stdin in the container will always
+ # result in EOF. Default is false. +optional
"volumeMounts": [ # Pod volumes to mount into the container's filesystem.
# Cannot be updated.
# +optional
@@ -2562,36 +2964,35 @@
# not contain ':'.
},
],
- "volumeDevices": [ # volumeDevices is the list of block devices to be used by the container.
- # This is an alpha feature and may change in the future.
+ "tty": True or False, # Whether this container should allocate a TTY for itself, also requires
+ # 'stdin' to be true. Default is false. +optional
+ "ports": [ # List of ports to expose from the container. Exposing a port here gives
+ # the system additional information about the network connections a
+ # container uses, but is primarily informational. Not specifying a port here
+ # DOES NOT prevent that port from being exposed. Any port which is
+ # listening on the default "0.0.0.0" address inside a container will be
+ # accessible from the network.
+ # Cannot be updated.
# +optional
- { # volumeDevice describes a mapping of a raw block device within a container.
- "devicePath": "A String", # devicePath is the path inside of the container that the device will be
- # mapped to.
- "name": "A String", # name must match the name of a persistentVolumeClaim in the pod
+ { # ContainerPort represents a network port in a single container.
+ "protocol": "A String", # Protocol for port. Must be UDP or TCP.
+ # Defaults to "TCP".
+ # +optional
+ "hostIP": "A String", # What host IP to bind the external port to.
+ # +optional
+ "containerPort": 42, # Number of port to expose on the pod's IP address.
+ # This must be a valid port number, 0 < x < 65536.
+ "name": "A String", # If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
+ # named port in a pod must have a unique name. Name for the port that can be
+ # referred to by services.
+ # +optional
+ "hostPort": 42, # Number of port to expose on the host.
+ # If specified, this must be a valid port number, 0 < x < 65536.
+ # If HostNetwork is specified, this must match ContainerPort.
+ # Most containers do not need this.
+ # +optional
},
],
- "args": [ # 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.
- # Cannot be updated.
- # More info:
- # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
- # +optional
- "A String",
- ],
- "stdinOnce": True or False, # Whether the container runtime should close the stdin channel after it has
- # been opened by a single attach. When stdin is true the stdin stream will
- # remain open across multiple attach sessions. If stdinOnce is set to true,
- # stdin is opened on container start, is empty until the first client
- # attaches to stdin, and then remains open and accepts data until the client
- # disconnects, at which time stdin is closed and remains closed until the
- # container is restarted. If this flag is false, a container processes that
- # reads from stdin will never receive an EOF. Default is false +optional
"terminationMessagePolicy": "A String", # Indicate how the termination message should be populated. File will use the
# contents of terminationMessagePath to populate the container status message
# on both success and failure. FallbackToLogsOnError will use the last chunk
@@ -2599,135 +3000,6 @@
# container exited with an error. The log output is limited to 2048 bytes or
# 80 lines, whichever is smaller. Defaults to File. Cannot be updated.
# +optional
- "lifecycle": { # Lifecycle describes actions that the management system should take in # Actions that the management system should take in response to container
- # lifecycle events. Cannot be updated. +optional
- # response to container lifecycle events. For the PostStart and PreStop
- # lifecycle handlers, management of the container blocks until the action is
- # complete, unless the container process fails, in which case the handler is
- # aborted.
- "preStop": { # Handler defines a specific action that should be taken # PreStop is called immediately before a container is terminated.
- # The container is terminated after the handler completes.
- # The reason for termination is passed to the handler.
- # Regardless of the outcome of the handler, the container is eventually
- # terminated. Other management of the container blocks until the hook
- # completes. More info:
- # https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
- # +optional
- "tcpSocket": { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
- # TCP hooks not yet supported
- "host": "A String", # Optional: Host name to connect to, defaults to the pod IP.
- # +optional
- "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Number or name of the port to access on the container.
- # Number must be in the range 1 to 65535.
- # Name must be an IANA_SVC_NAME.
- # JSON or YAML marshalling and unmarshalling, it produces or consumes the
- # inner type. This allows you to have, for example, a JSON field that can
- # accept a name or number.
- "strVal": "A String", # The string value.
- "type": "A String", # The type of the value.
- "intVal": 42, # The int value.
- },
- },
- "httpGet": { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
- # +optional
- "path": "A String", # Path to access on the HTTP server.
- # +optional
- "host": "A String", # Host name to connect to, defaults to the pod IP. You probably want to set
- # "Host" in httpHeaders instead.
- # +optional
- "scheme": "A String", # Scheme to use for connecting to the host.
- # Defaults to HTTP.
- # +optional
- "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Name or number of the port to access on the container.
- # Number must be in the range 1 to 65535.
- # Name must be an IANA_SVC_NAME.
- # JSON or YAML marshalling and unmarshalling, it produces or consumes the
- # inner type. This allows you to have, for example, a JSON field that can
- # accept a name or number.
- "strVal": "A String", # The string value.
- "type": "A String", # The type of the value.
- "intVal": 42, # The int value.
- },
- "httpHeaders": [ # Custom headers to set in the request. HTTP allows repeated headers.
- # +optional
- { # HTTPHeader describes a custom header to be used in HTTP probes
- "name": "A String", # The header field name
- "value": "A String", # The header field value
- },
- ],
- },
- "exec": { # ExecAction describes a "run in container" action. # One and only one of the following should be specified.
- # Exec specifies the action to take.
- # +optional
- "command": "A String", # Command is the command line to execute inside the container, the working
- # directory for the command is root ('/') in the container's filesystem. The
- # command is simply exec'd, it is not run inside a shell, so traditional
- # shell instructions ('|', etc) won't work. To use a shell, you need to
- # explicitly call out to that shell. Exit status of 0 is treated as
- # live/healthy and non-zero is unhealthy. +optional
- },
- },
- "postStart": { # Handler defines a specific action that should be taken # PostStart is called immediately after a container is created. If the
- # handler fails, the container is terminated and restarted according to its
- # restart policy. Other management of the container blocks until the hook
- # completes. More info:
- # https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
- # +optional
- "tcpSocket": { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
- # TCP hooks not yet supported
- "host": "A String", # Optional: Host name to connect to, defaults to the pod IP.
- # +optional
- "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Number or name of the port to access on the container.
- # Number must be in the range 1 to 65535.
- # Name must be an IANA_SVC_NAME.
- # JSON or YAML marshalling and unmarshalling, it produces or consumes the
- # inner type. This allows you to have, for example, a JSON field that can
- # accept a name or number.
- "strVal": "A String", # The string value.
- "type": "A String", # The type of the value.
- "intVal": 42, # The int value.
- },
- },
- "httpGet": { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
- # +optional
- "path": "A String", # Path to access on the HTTP server.
- # +optional
- "host": "A String", # Host name to connect to, defaults to the pod IP. You probably want to set
- # "Host" in httpHeaders instead.
- # +optional
- "scheme": "A String", # Scheme to use for connecting to the host.
- # Defaults to HTTP.
- # +optional
- "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Name or number of the port to access on the container.
- # Number must be in the range 1 to 65535.
- # Name must be an IANA_SVC_NAME.
- # JSON or YAML marshalling and unmarshalling, it produces or consumes the
- # inner type. This allows you to have, for example, a JSON field that can
- # accept a name or number.
- "strVal": "A String", # The string value.
- "type": "A String", # The type of the value.
- "intVal": 42, # The int value.
- },
- "httpHeaders": [ # Custom headers to set in the request. HTTP allows repeated headers.
- # +optional
- { # HTTPHeader describes a custom header to be used in HTTP probes
- "name": "A String", # The header field name
- "value": "A String", # The header field value
- },
- ],
- },
- "exec": { # ExecAction describes a "run in container" action. # One and only one of the following should be specified.
- # Exec specifies the action to take.
- # +optional
- "command": "A String", # Command is the command line to execute inside the container, the working
- # directory for the command is root ('/') in the container's filesystem. The
- # command is simply exec'd, it is not run inside a shell, so traditional
- # shell instructions ('|', etc) won't work. To use a shell, you need to
- # explicitly call out to that shell. Exit status of 0 is treated as
- # live/healthy and non-zero is unhealthy. +optional
- },
- },
- },
"command": [ # 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
@@ -2741,88 +3013,101 @@
# +optional
"A String",
],
- "livenessProbe": { # Probe describes a health check to be performed against a container to # Periodic probe of container liveness.
- # Container will be restarted if the probe fails.
+ "env": [ # List of environment variables to set in the container.
# Cannot be updated.
- # More info:
- # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
# +optional
- # determine whether it is alive or ready to receive traffic.
- "timeoutSeconds": 42, # Number of seconds after which the probe times out.
- # Defaults to 1 second. Minimum value is 1.
- # More info:
- # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- # +optional
- "initialDelaySeconds": 42, # Number of seconds after the container has started before liveness probes
- # are initiated. More info:
- # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- # +optional
- "handler": { # Handler defines a specific action that should be taken # The action taken to determine the health of a container
- "tcpSocket": { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
- # TCP hooks not yet supported
- "host": "A String", # Optional: Host name to connect to, defaults to the pod IP.
+ { # EnvVar represents an environment variable present in a Container.
+ "valueFrom": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # Source for the environment variable's value. Cannot be used if value is not
+ # empty. +optional
+ #
+ # Cloud Run on GKE: supported
+ #
+ # EnvVarSource represents a source for the value of an EnvVar.
+ "secretKeyRef": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # Selects a key of a secret in the pod's namespace
# +optional
- "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Number or name of the port to access on the container.
- # Number must be in the range 1 to 65535.
- # Name must be an IANA_SVC_NAME.
- # JSON or YAML marshalling and unmarshalling, it produces or consumes the
- # inner type. This allows you to have, for example, a JSON field that can
- # accept a name or number.
- "strVal": "A String", # The string value.
- "type": "A String", # The type of the value.
- "intVal": 42, # The int value.
- },
- },
- "httpGet": { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
- # +optional
- "path": "A String", # Path to access on the HTTP server.
- # +optional
- "host": "A String", # Host name to connect to, defaults to the pod IP. You probably want to set
- # "Host" in httpHeaders instead.
- # +optional
- "scheme": "A String", # Scheme to use for connecting to the host.
- # Defaults to HTTP.
- # +optional
- "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Name or number of the port to access on the container.
- # Number must be in the range 1 to 65535.
- # Name must be an IANA_SVC_NAME.
- # JSON or YAML marshalling and unmarshalling, it produces or consumes the
- # inner type. This allows you to have, for example, a JSON field that can
- # accept a name or number.
- "strVal": "A String", # The string value.
- "type": "A String", # The type of the value.
- "intVal": 42, # The int value.
- },
- "httpHeaders": [ # Custom headers to set in the request. HTTP allows repeated headers.
- # +optional
- { # HTTPHeader describes a custom header to be used in HTTP probes
- "name": "A String", # The header field name
- "value": "A String", # The header field value
+ #
+ # Cloud Run on GKE: supported
+ #
+ # SecretKeySelector selects a key of a Secret.
+ "localObjectReference": { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
+ # directly into the message. Use the "name" field instead.
+ # referenced object inside the same namespace.
+ "name": "A String", # Name of the referent.
+ # More info:
+ # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
},
- ],
+ "optional": True or False, # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # Specify whether the Secret or its key must be defined
+ # +optional
+ "name": "A String", # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # The name of the secret in the pod's namespace to select from.
+ "key": "A String", # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # The key of the secret to select from. Must be a valid secret key.
+ },
+ "configMapKeyRef": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # Selects a key of a ConfigMap.
+ # +optional
+ #
+ # Cloud Run on GKE: supported
+ #
+ # Selects a key from a ConfigMap.
+ "localObjectReference": { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
+ # directly into the message. Use the "name" field instead.
+ # referenced object inside the same namespace.
+ "name": "A String", # Name of the referent.
+ # More info:
+ # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
+ },
+ "optional": True or False, # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # Specify whether the ConfigMap or its key must be defined
+ # +optional
+ "name": "A String", # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # The ConfigMap to select from.
+ "key": "A String", # Cloud Run fully managed: not supported
+ #
+ # Cloud Run on GKE: supported
+ #
+ # The key to select.
+ },
},
- "exec": { # ExecAction describes a "run in container" action. # One and only one of the following should be specified.
- # Exec specifies the action to take.
+ "name": "A String", # Name of the environment variable. Must be a C_IDENTIFIER.
+ "value": "A String", # Variable references $(VAR_NAME) are expanded
+ # using the previous defined environment variables in the container and
+ # any route environment variables. 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.
+ # Defaults to "".
# +optional
- "command": "A String", # Command is the command line to execute inside the container, the working
- # directory for the command is root ('/') in the container's filesystem. The
- # command is simply exec'd, it is not run inside a shell, so traditional
- # shell instructions ('|', etc) won't work. To use a shell, you need to
- # explicitly call out to that shell. Exit status of 0 is treated as
- # live/healthy and non-zero is unhealthy. +optional
- },
},
- "periodSeconds": 42, # How often (in seconds) to perform the probe.
- # Default to 10 seconds. Minimum value is 1.
- # +optional
- "successThreshold": 42, # Minimum consecutive successes for the probe to be considered successful
- # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value
- # is 1. +optional
- "failureThreshold": 42, # Minimum consecutive failures for the probe to be considered failed after
- # having succeeded. Defaults to 3. Minimum value is 1. +optional
- },
- "image": "A String", # Docker image name.
- # More info: https://kubernetes.io/docs/concepts/containers/images
+ ],
"imagePullPolicy": "A String", # Image pull policy.
# One of Always, Never, IfNotPresent.
# Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
@@ -2858,7 +3143,7 @@
# inner type. This allows you to have, for example, a JSON field that can
# accept a name or number.
"strVal": "A String", # The string value.
- "type": "A String", # The type of the value.
+ "type": 42, # The type of the value.
"intVal": 42, # The int value.
},
},
@@ -2879,7 +3164,7 @@
# inner type. This allows you to have, for example, a JSON field that can
# accept a name or number.
"strVal": "A String", # The string value.
- "type": "A String", # The type of the value.
+ "type": 42, # The type of the value.
"intVal": 42, # The int value.
},
"httpHeaders": [ # Custom headers to set in the request. HTTP allows repeated headers.
@@ -2918,50 +3203,157 @@
# Defaults to /dev/termination-log.
# Cannot be updated.
# +optional
- "ports": [ # List of ports to expose from the container. Exposing a port here gives
- # the system additional information about the network connections a
- # container uses, but is primarily informational. Not specifying a port here
- # DOES NOT prevent that port from being exposed. Any port which is
- # listening on the default "0.0.0.0" address inside a container will be
- # accessible from the network.
- # Cannot be updated.
- # +optional
- { # ContainerPort represents a network port in a single container.
- "protocol": "A String", # Protocol for port. Must be UDP or TCP.
- # Defaults to "TCP".
+ "image": "A String", # Docker image name.
+ # More info: https://kubernetes.io/docs/concepts/containers/images
+ "lifecycle": { # Lifecycle describes actions that the management system should take in # Actions that the management system should take in response to container
+ # lifecycle events. Cannot be updated. +optional
+ # response to container lifecycle events. For the PostStart and PreStop
+ # lifecycle handlers, management of the container blocks until the action is
+ # complete, unless the container process fails, in which case the handler is
+ # aborted.
+ "preStop": { # Handler defines a specific action that should be taken # PreStop is called immediately before a container is terminated.
+ # The container is terminated after the handler completes.
+ # The reason for termination is passed to the handler.
+ # Regardless of the outcome of the handler, the container is eventually
+ # terminated. Other management of the container blocks until the hook
+ # completes. More info:
+ # https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
+ # +optional
+ "tcpSocket": { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
+ # TCP hooks not yet supported
+ "host": "A String", # Optional: Host name to connect to, defaults to the pod IP.
+ # +optional
+ "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Number or name of the port to access on the container.
+ # Number must be in the range 1 to 65535.
+ # Name must be an IANA_SVC_NAME.
+ # JSON or YAML marshalling and unmarshalling, it produces or consumes the
+ # inner type. This allows you to have, for example, a JSON field that can
+ # accept a name or number.
+ "strVal": "A String", # The string value.
+ "type": 42, # The type of the value.
+ "intVal": 42, # The int value.
+ },
+ },
+ "httpGet": { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
# +optional
- "hostIP": "A String", # What host IP to bind the external port to.
+ "path": "A String", # Path to access on the HTTP server.
+ # +optional
+ "host": "A String", # Host name to connect to, defaults to the pod IP. You probably want to set
+ # "Host" in httpHeaders instead.
+ # +optional
+ "scheme": "A String", # Scheme to use for connecting to the host.
+ # Defaults to HTTP.
+ # +optional
+ "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Name or number of the port to access on the container.
+ # Number must be in the range 1 to 65535.
+ # Name must be an IANA_SVC_NAME.
+ # JSON or YAML marshalling and unmarshalling, it produces or consumes the
+ # inner type. This allows you to have, for example, a JSON field that can
+ # accept a name or number.
+ "strVal": "A String", # The string value.
+ "type": 42, # The type of the value.
+ "intVal": 42, # The int value.
+ },
+ "httpHeaders": [ # Custom headers to set in the request. HTTP allows repeated headers.
+ # +optional
+ { # HTTPHeader describes a custom header to be used in HTTP probes
+ "name": "A String", # The header field name
+ "value": "A String", # The header field value
+ },
+ ],
+ },
+ "exec": { # ExecAction describes a "run in container" action. # One and only one of the following should be specified.
+ # Exec specifies the action to take.
# +optional
- "containerPort": 42, # Number of port to expose on the pod's IP address.
- # This must be a valid port number, 0 < x < 65536.
- "name": "A String", # If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
- # named port in a pod must have a unique name. Name for the port that can be
- # referred to by services.
- # +optional
- "hostPort": 42, # Number of port to expose on the host.
- # If specified, this must be a valid port number, 0 < x < 65536.
- # If HostNetwork is specified, this must match ContainerPort.
- # Most containers do not need this.
- # +optional
+ "command": "A String", # Command is the command line to execute inside the container, the working
+ # directory for the command is root ('/') in the container's filesystem. The
+ # command is simply exec'd, it is not run inside a shell, so traditional
+ # shell instructions ('|', etc) won't work. To use a shell, you need to
+ # explicitly call out to that shell. Exit status of 0 is treated as
+ # live/healthy and non-zero is unhealthy. +optional
+ },
},
- ],
+ "postStart": { # Handler defines a specific action that should be taken # PostStart is called immediately after a container is created. If the
+ # handler fails, the container is terminated and restarted according to its
+ # restart policy. Other management of the container blocks until the hook
+ # completes. More info:
+ # https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
+ # +optional
+ "tcpSocket": { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
+ # TCP hooks not yet supported
+ "host": "A String", # Optional: Host name to connect to, defaults to the pod IP.
+ # +optional
+ "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Number or name of the port to access on the container.
+ # Number must be in the range 1 to 65535.
+ # Name must be an IANA_SVC_NAME.
+ # JSON or YAML marshalling and unmarshalling, it produces or consumes the
+ # inner type. This allows you to have, for example, a JSON field that can
+ # accept a name or number.
+ "strVal": "A String", # The string value.
+ "type": 42, # The type of the value.
+ "intVal": 42, # The int value.
+ },
+ },
+ "httpGet": { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
+ # +optional
+ "path": "A String", # Path to access on the HTTP server.
+ # +optional
+ "host": "A String", # Host name to connect to, defaults to the pod IP. You probably want to set
+ # "Host" in httpHeaders instead.
+ # +optional
+ "scheme": "A String", # Scheme to use for connecting to the host.
+ # Defaults to HTTP.
+ # +optional
+ "port": { # IntOrString is a type that can hold an int32 or a string. When used in # Name or number of the port to access on the container.
+ # Number must be in the range 1 to 65535.
+ # Name must be an IANA_SVC_NAME.
+ # JSON or YAML marshalling and unmarshalling, it produces or consumes the
+ # inner type. This allows you to have, for example, a JSON field that can
+ # accept a name or number.
+ "strVal": "A String", # The string value.
+ "type": 42, # The type of the value.
+ "intVal": 42, # The int value.
+ },
+ "httpHeaders": [ # Custom headers to set in the request. HTTP allows repeated headers.
+ # +optional
+ { # HTTPHeader describes a custom header to be used in HTTP probes
+ "name": "A String", # The header field name
+ "value": "A String", # The header field value
+ },
+ ],
+ },
+ "exec": { # ExecAction describes a "run in container" action. # One and only one of the following should be specified.
+ # Exec specifies the action to take.
+ # +optional
+ "command": "A String", # Command is the command line to execute inside the container, the working
+ # directory for the command is root ('/') in the container's filesystem. The
+ # command is simply exec'd, it is not run inside a shell, so traditional
+ # shell instructions ('|', etc) won't work. To use a shell, you need to
+ # explicitly call out to that shell. Exit status of 0 is treated as
+ # live/healthy and non-zero is unhealthy. +optional
+ },
+ },
+ },
"resources": { # ResourceRequirements describes the compute resource requirements. # Compute Resources required by this container.
# Cannot be updated.
# More info:
# https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
# +optional
- "requests": { # Requests describes the minimum amount of compute resources required.
- # If Requests is omitted for a container, it defaults to Limits if that is
- # explicitly specified, otherwise to an implementation-defined value.
- # The values of the map is string form of the 'quantity' k8s type:
- # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
- "a_key": "A String",
+ "limitsInMap": { # Limits describes the maximum amount of compute resources allowed.
+ # This is a temporary field created to migrate away from the
+ # map<string, Quantity> limits field. This is done to become compliant
+ # with k8s style API.
+ # This field is deprecated in favor of limits field.
+ "a_key": { # The view model of a single quantity, e.g. "800 MiB". Corresponds to
+ # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/generated.proto
+ "string": "A String", # Stringified version of the quantity, e.g., "800 MiB".
+ },
},
"requestsInMap": { # Requests describes the minimum amount of compute resources required.
# If Requests is omitted for a container, it defaults to Limits if that is
# explicitly specified, otherwise to an implementation-defined value.
# This is a temporary field created to migrate away from the
- # map<string, Quantity> requests field. This is done to become compliant
+ # map<string, Quantity> requests field. This is done to become compliant
# with k8s style API.
# This field is deprecated in favor of requests field.
"a_key": { # The view model of a single quantity, e.g. "800 MiB". Corresponds to
@@ -2969,15 +3361,12 @@
"string": "A String", # Stringified version of the quantity, e.g., "800 MiB".
},
},
- "limitsInMap": { # Limits describes the maximum amount of compute resources allowed.
- # This is a temporary field created to migrate away from the
- # map<string, Quantity> limits field. This is done to become compliant
- # with k8s style API.
- # This field is deprecated in favor of limits field.
- "a_key": { # The view model of a single quantity, e.g. "800 MiB". Corresponds to
- # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/generated.proto
- "string": "A String", # Stringified version of the quantity, e.g., "800 MiB".
- },
+ "requests": { # Requests describes the minimum amount of compute resources required.
+ # If Requests is omitted for a container, it defaults to Limits if that is
+ # explicitly specified, otherwise to an implementation-defined value.
+ # The values of the map is string form of the 'quantity' k8s type:
+ # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
+ "a_key": "A String",
},
"limits": { # Limits describes the maximum amount of compute resources allowed.
# The values of the map is string form of the 'quantity' k8s type:
@@ -2992,8 +3381,12 @@
# +optional
},
],
+ "serviceAccountName": "A String", # Email address of the IAM service account associated with the revision
+ # of the service. The service account represents the identity of the
+ # running revision, and determines what permissions the revision has. If
+ # not provided, the revision will use the project's default service account.
},
- "apiVersion": "A String", # The API version for this call such as "v1alpha1".
+ "apiVersion": "A String", # The API version for this call such as "serving.knative.dev/v1alpha1".
"metadata": { # ObjectMeta is metadata that all persisted resources must have, which includes # Metadata associated with this Revision, including name, namespace, labels,
# and annotations.
# all objects users must create.
@@ -3006,8 +3399,8 @@
"kind": "A String", # Kind of the referent.
# More info:
# https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
- "uid": "A String", # UID of the referent.
- # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
+ "name": "A String", # Name of the referent.
+ # More info: http://kubernetes.io/docs/user-guide/identifiers#names
"apiVersion": "A String", # API version of the referent.
"controller": True or False, # If true, this reference points to the managing controller.
# +optional
@@ -3018,8 +3411,8 @@
# To set this field, a user needs "delete" permission of the owner,
# otherwise 422 (Unprocessable Entity) will be returned.
# +optional
- "name": "A String", # Name of the referent.
- # More info: http://kubernetes.io/docs/user-guide/identifiers#names
+ "uid": "A String", # UID of the referent.
+ # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
},
],
"name": "A String", # Name must be unique within a namespace, within a Cloud Run region.
@@ -3086,29 +3479,6 @@
# +patchStrategy=merge
"A String",
],
- "initializers": { # Initializers tracks the progress of initialization. # Not currently supported by Cloud Run.
- #
- # An initializer is a controller which enforces some system invariant at
- # object creation time. This field is a list of initializers that have not
- # yet acted on this object. If nil or empty, this object has been completely
- # initialized. Otherwise, the object is considered uninitialized and is
- # hidden (in list/watch and get calls) from clients that haven't explicitly
- # asked to observe uninitialized objects.
- #
- # When an object is created, the system will populate this list with the
- # current set of initializers. Only privileged users may set or modify this
- # list. Once it is empty, it may not be modified further by any user.
- "pending": [ # Pending is a list of initializers that must execute in order before this
- # object is visible. When the last pending initializer is removed, and no
- # failing result is set, the initializers struct will be set to nil and the
- # object is considered as initialized and visible to all clients.
- # +patchMergeKey=name
- # +patchStrategy=merge
- { # Initializer is information about an initializer that has not yet completed.
- "name": "A String", # name of the process that is responsible for initializing this object.
- },
- ],
- },
"resourceVersion": "A String", # An opaque value that represents the internal version of this object that
# can be used by clients to determine when objects have changed. May be used
# for optimistic concurrency, change detection, and the watch operation on a
@@ -3176,11 +3546,7 @@
},
},
],
- "kind": "A String", # The kind of this resource, in this case "RevisionList".
- "unreachable": [ # Locations that could not be reached.
- "A String",
- ],
- "apiVersion": "A String", # The API version for this call such as "v1alpha1".
+ "apiVersion": "A String", # The API version for this call such as "serving.knative.dev/v1alpha1".
"metadata": { # ListMeta describes metadata that synthetic resources must have, including # Metadata associated with this revision list.
# lists and various status objects. A resource may have only one of
# {ObjectMeta, ListMeta}.