blob: 711c48770d0e6f51f5925091673367c0501fdfc0 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="run_v1alpha1.html">Cloud Run API</a> . <a href="run_v1alpha1.namespaces.html">namespaces</a> . <a href="run_v1alpha1.namespaces.revisions.html">revisions</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070078 <code><a href="#delete">delete(name, apiVersion=None, propagationPolicy=None, kind=None, orphanDependents=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Rpc to delete a revision.</p>
80<p class="toc_element">
81 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
82<p class="firstline">Rpc to get information about a revision.</p>
83<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070084 <code><a href="#list">list(parent, labelSelector=None, resourceVersion=None, includeUninitialized=None, fieldSelector=None, continue=None, limit=None, watch=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070085<p class="firstline">Rpc to list revisions.</p>
86<h3>Method Details</h3>
87<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -070088 <code class="details" id="delete">delete(name, apiVersion=None, propagationPolicy=None, kind=None, orphanDependents=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070089 <pre>Rpc to delete a revision.
90
91Args:
92 name: string, The name of the revision being deleted. If needed, replace
93{namespace_id} with the project ID. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -070094 apiVersion: string, Cloud Run currently ignores this parameter.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070095 propagationPolicy: string, Specifies the propagation policy of delete. Cloud Run currently ignores
96this setting, and deletes in the background. Please see
97kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for
98more information.
Bu Sun Kim65020912020-05-20 12:08:20 -070099 kind: string, Cloud Run currently ignores this parameter.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100 orphanDependents: boolean, Deprecated.
101Specifies the cascade behavior on delete.
102Cloud Run only supports cascading behavior, so this must be false.
103This attribute is deprecated, and is now replaced with PropagationPolicy
104See https://github.com/kubernetes/kubernetes/issues/46659 for more info.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700105 x__xgafv: string, V1 error format.
106 Allowed values
107 1 - v1 error format
108 2 - v2 error format
109
110Returns:
111 An object of the form:
112
113 { # A generic empty message that you can re-use to avoid defining duplicated
114 # empty messages in your APIs. A typical example is to use it as the request
115 # or the response type of an API method. For instance:
116 #
117 # service Foo {
118 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
119 # }
120 #
121 # The JSON representation for `Empty` is empty JSON object `{}`.
122 }</pre>
123</div>
124
125<div class="method">
126 <code class="details" id="get">get(name, x__xgafv=None)</code>
127 <pre>Rpc to get information about a revision.
128
129Args:
130 name: string, The name of the revision being retrieved. If needed, replace
131{namespace_id} with the project ID. (required)
132 x__xgafv: string, V1 error format.
133 Allowed values
134 1 - v1 error format
135 2 - v2 error format
136
137Returns:
138 An object of the form:
139
140 { # Revision is an immutable snapshot of code and configuration. A revision
141 # references a container image. Revisions are created by updates to a
142 # Configuration.
143 #
144 # Cloud Run does not currently support referencing a build that is responsible
145 # for materializing the container image from source.
146 #
147 # See also:
148 # https://github.com/knative/serving/blob/master/docs/spec/overview.md#revision
Bu Sun Kim65020912020-05-20 12:08:20 -0700149 &quot;status&quot;: { # RevisionStatus communicates the observed state of the Revision (from the # Status communicates the observed state of the Revision (from the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700150 # controller).
151 # controller).
Bu Sun Kim65020912020-05-20 12:08:20 -0700152 &quot;conditions&quot;: [ # Conditions communicates information about ongoing/complete
153 # reconciliation processes that bring the &quot;spec&quot; inline with the observed
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700154 # state of the world.
155 #
156 # As a Revision is being prepared, it will incrementally
Bu Sun Kim65020912020-05-20 12:08:20 -0700157 # update conditions &quot;ResourcesAvailable&quot;, &quot;ContainerHealthy&quot;, and &quot;Active&quot;,
158 # which contribute to the overall &quot;Ready&quot; condition.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700159 { # RevisionCondition defines a readiness condition for a Revision.
Bu Sun Kim65020912020-05-20 12:08:20 -0700160 &quot;message&quot;: &quot;A String&quot;, # Human readable message indicating details about the current status.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700161 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700162 &quot;lastTransitionTime&quot;: &quot;A String&quot;, # Last time the condition transitioned from one status to another.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700163 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700164 &quot;status&quot;: &quot;A String&quot;, # Status of the condition, one of True, False, Unknown.
165 &quot;severity&quot;: &quot;A String&quot;, # How to interpret failures of this condition, one of Error, Warning, Info
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700166 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700167 &quot;reason&quot;: &quot;A String&quot;, # One-word CamelCase reason for the condition&#x27;s last transition.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700168 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700169 &quot;type&quot;: &quot;A String&quot;, # RevisionConditionType is used to communicate the status of the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700170 # reconciliation process. See also:
171 # https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-reporting
172 # Types include:
173 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700174 # * &quot;Ready&quot;: True when the Revision is ready.
175 # * &quot;ResourcesAvailable&quot;: True when underlying resources have been
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700176 # provisioned.
Bu Sun Kim65020912020-05-20 12:08:20 -0700177 # * &quot;ContainerHealthy&quot;: True when the Revision readiness check completes.
178 # * &quot;Active&quot;: True when the Revision may receive traffic.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700179 },
180 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700181 &quot;observedGeneration&quot;: 42, # ObservedGeneration is the &#x27;Generation&#x27; of the Revision that
182 # was last processed by the controller.
183 #
184 # Clients polling for completed reconciliation should poll until
185 # observedGeneration = metadata.generation, and the Ready condition&#x27;s status
186 # is True or False.
187 &quot;imageDigest&quot;: &quot;A String&quot;, # ImageDigest holds the resolved digest for the image specified
188 # within .Spec.Container.Image. The digest is resolved during the creation
189 # of Revision. This field holds the digest value regardless of whether
190 # a tag or digest was originally specified in the Container object.
191 &quot;logUrl&quot;: &quot;A String&quot;, # Specifies the generated logging url for this particular revision
192 # based on the revision url template specified in the controller&#x27;s config.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700193 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700194 &quot;serviceName&quot;: &quot;A String&quot;, # Not currently used by Cloud Run.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700195 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700196 &quot;apiVersion&quot;: &quot;A String&quot;, # The API version for this call such as &quot;serving.knative.dev/v1alpha1&quot;.
197 &quot;spec&quot;: { # RevisionSpec holds the desired state of the Revision (from the client). # Spec holds the desired state of the Revision (from the client).
198 &quot;containerConcurrency&quot;: 42, # (Optional)
Dan O'Mearadd494642020-05-01 07:42:23 -0700199 #
200 # ContainerConcurrency specifies the maximum allowed in-flight (concurrent)
201 # requests per container instance of the Revision.
202 #
203 # Cloud Run fully managed: supported, defaults to 80
204 #
205 # Cloud Run on GKE: supported, defaults to 0, which means concurrency
206 # to the application is not limited, and the system decides the
207 # target concurrency for the autoscaler.
Bu Sun Kim65020912020-05-20 12:08:20 -0700208 &quot;serviceAccountName&quot;: &quot;A String&quot;, # Email address of the IAM service account associated with the revision
209 # of the service. The service account represents the identity of the
210 # running revision, and determines what permissions the revision has. If
211 # not provided, the revision will use the project&#x27;s default service account.
212 &quot;containers&quot;: [ # Containers holds the single container that defines the unit of execution
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700213 # for this Revision. In the context of a Revision, we disallow a number of
214 # fields on this Container, including: name and lifecycle.
Dan O'Mearadd494642020-05-01 07:42:23 -0700215 # In Cloud Run, only a single container may be provided.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700216 { # A single application container.
217 # This specifies both the container to run, the command to run in the container
218 # and the arguments to supply to it.
219 # Note that additional arguments may be supplied by the system to the container
220 # at runtime.
Bu Sun Kim65020912020-05-20 12:08:20 -0700221 &quot;terminationMessagePath&quot;: &quot;A String&quot;, # Optional: Path at which the file to which the container&#x27;s termination
222 # message will be written is mounted into the container&#x27;s filesystem. Message
223 # written is intended to be brief final status, such as an assertion failure
224 # message. Will be truncated by the node if greater than 4096 bytes. The
225 # total message length across all containers will be limited to 12kb.
226 # Defaults to /dev/termination-log.
Dan O'Mearadd494642020-05-01 07:42:23 -0700227 # Cannot be updated.
Dan O'Mearadd494642020-05-01 07:42:23 -0700228 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700229 &quot;lifecycle&quot;: { # Lifecycle describes actions that the management system should take in # Actions that the management system should take in response to container
230 # lifecycle events. Cannot be updated. +optional
231 # response to container lifecycle events. For the PostStart and PreStop
232 # lifecycle handlers, management of the container blocks until the action is
233 # complete, unless the container process fails, in which case the handler is
234 # aborted.
235 &quot;preStop&quot;: { # Handler defines a specific action that should be taken # PreStop is called immediately before a container is terminated.
236 # The container is terminated after the handler completes.
237 # The reason for termination is passed to the handler.
238 # Regardless of the outcome of the handler, the container is eventually
239 # terminated. Other management of the container blocks until the hook
240 # completes. More info:
241 # https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
Dan O'Mearadd494642020-05-01 07:42:23 -0700242 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700243 &quot;exec&quot;: { # ExecAction describes a &quot;run in container&quot; action. # One and only one of the following should be specified.
Dan O'Mearadd494642020-05-01 07:42:23 -0700244 # Exec specifies the action to take.
245 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700246 &quot;command&quot;: &quot;A String&quot;, # Command is the command line to execute inside the container, the working
247 # directory for the command is root (&#x27;/&#x27;) in the container&#x27;s filesystem. The
248 # command is simply exec&#x27;d, it is not run inside a shell, so traditional
249 # shell instructions (&#x27;|&#x27;, etc) won&#x27;t work. To use a shell, you need to
Dan O'Mearadd494642020-05-01 07:42:23 -0700250 # explicitly call out to that shell. Exit status of 0 is treated as
251 # live/healthy and non-zero is unhealthy. +optional
252 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700253 &quot;httpGet&quot;: { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
254 # +optional
255 &quot;httpHeaders&quot;: [ # Custom headers to set in the request. HTTP allows repeated headers.
256 # +optional
257 { # HTTPHeader describes a custom header to be used in HTTP probes
258 &quot;value&quot;: &quot;A String&quot;, # The header field value
259 &quot;name&quot;: &quot;A String&quot;, # The header field name
260 },
261 ],
262 &quot;path&quot;: &quot;A String&quot;, # Path to access on the HTTP server.
263 # +optional
264 &quot;port&quot;: { # 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.
265 # Number must be in the range 1 to 65535.
266 # Name must be an IANA_SVC_NAME.
267 # JSON or YAML marshalling and unmarshalling, it produces or consumes the
268 # inner type. This allows you to have, for example, a JSON field that can
269 # accept a name or number.
270 &quot;type&quot;: 42, # The type of the value.
271 &quot;intVal&quot;: 42, # The int value.
272 &quot;strVal&quot;: &quot;A String&quot;, # The string value.
273 },
274 &quot;host&quot;: &quot;A String&quot;, # Host name to connect to, defaults to the pod IP. You probably want to set
275 # &quot;Host&quot; in httpHeaders instead.
276 # +optional
277 &quot;scheme&quot;: &quot;A String&quot;, # Scheme to use for connecting to the host.
278 # Defaults to HTTP.
279 # +optional
280 },
281 &quot;tcpSocket&quot;: { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
282 # TCP hooks not yet supported
283 &quot;port&quot;: { # 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.
284 # Number must be in the range 1 to 65535.
285 # Name must be an IANA_SVC_NAME.
286 # JSON or YAML marshalling and unmarshalling, it produces or consumes the
287 # inner type. This allows you to have, for example, a JSON field that can
288 # accept a name or number.
289 &quot;type&quot;: 42, # The type of the value.
290 &quot;intVal&quot;: 42, # The int value.
291 &quot;strVal&quot;: &quot;A String&quot;, # The string value.
292 },
293 &quot;host&quot;: &quot;A String&quot;, # Optional: Host name to connect to, defaults to the pod IP.
294 # +optional
295 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700296 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700297 &quot;postStart&quot;: { # Handler defines a specific action that should be taken # PostStart is called immediately after a container is created. If the
298 # handler fails, the container is terminated and restarted according to its
299 # restart policy. Other management of the container blocks until the hook
300 # completes. More info:
301 # https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
Dan O'Mearadd494642020-05-01 07:42:23 -0700302 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700303 &quot;exec&quot;: { # ExecAction describes a &quot;run in container&quot; action. # One and only one of the following should be specified.
304 # Exec specifies the action to take.
305 # +optional
306 &quot;command&quot;: &quot;A String&quot;, # Command is the command line to execute inside the container, the working
307 # directory for the command is root (&#x27;/&#x27;) in the container&#x27;s filesystem. The
308 # command is simply exec&#x27;d, it is not run inside a shell, so traditional
309 # shell instructions (&#x27;|&#x27;, etc) won&#x27;t work. To use a shell, you need to
310 # explicitly call out to that shell. Exit status of 0 is treated as
311 # live/healthy and non-zero is unhealthy. +optional
312 },
313 &quot;httpGet&quot;: { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
314 # +optional
315 &quot;httpHeaders&quot;: [ # Custom headers to set in the request. HTTP allows repeated headers.
316 # +optional
317 { # HTTPHeader describes a custom header to be used in HTTP probes
318 &quot;value&quot;: &quot;A String&quot;, # The header field value
319 &quot;name&quot;: &quot;A String&quot;, # The header field name
320 },
321 ],
322 &quot;path&quot;: &quot;A String&quot;, # Path to access on the HTTP server.
323 # +optional
324 &quot;port&quot;: { # 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.
325 # Number must be in the range 1 to 65535.
326 # Name must be an IANA_SVC_NAME.
327 # JSON or YAML marshalling and unmarshalling, it produces or consumes the
328 # inner type. This allows you to have, for example, a JSON field that can
329 # accept a name or number.
330 &quot;type&quot;: 42, # The type of the value.
331 &quot;intVal&quot;: 42, # The int value.
332 &quot;strVal&quot;: &quot;A String&quot;, # The string value.
333 },
334 &quot;host&quot;: &quot;A String&quot;, # Host name to connect to, defaults to the pod IP. You probably want to set
335 # &quot;Host&quot; in httpHeaders instead.
336 # +optional
337 &quot;scheme&quot;: &quot;A String&quot;, # Scheme to use for connecting to the host.
338 # Defaults to HTTP.
339 # +optional
340 },
341 &quot;tcpSocket&quot;: { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
342 # TCP hooks not yet supported
343 &quot;port&quot;: { # 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.
344 # Number must be in the range 1 to 65535.
345 # Name must be an IANA_SVC_NAME.
346 # JSON or YAML marshalling and unmarshalling, it produces or consumes the
347 # inner type. This allows you to have, for example, a JSON field that can
348 # accept a name or number.
349 &quot;type&quot;: 42, # The type of the value.
350 &quot;intVal&quot;: 42, # The int value.
351 &quot;strVal&quot;: &quot;A String&quot;, # The string value.
352 },
353 &quot;host&quot;: &quot;A String&quot;, # Optional: Host name to connect to, defaults to the pod IP.
354 # +optional
355 },
356 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700357 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700358 &quot;stdin&quot;: True or False, # Whether this container should allocate a buffer for stdin in the container
359 # runtime. If this is not set, reads from stdin in the container will always
360 # result in EOF. Default is false. +optional
361 &quot;tty&quot;: True or False, # Whether this container should allocate a TTY for itself, also requires
362 # &#x27;stdin&#x27; to be true. Default is false. +optional
363 &quot;volumeMounts&quot;: [ # Pod volumes to mount into the container&#x27;s filesystem.
364 # Cannot be updated.
365 # +optional
366 { # VolumeMount describes a mounting of a Volume within a container.
367 &quot;readOnly&quot;: True or False, # Mounted read-only if true, read-write otherwise (false or unspecified).
368 # Defaults to false.
369 # +optional
370 &quot;mountPropagation&quot;: &quot;A String&quot;, # mountPropagation determines how mounts are propagated from the host
371 # to container and the other way around.
372 # When not set, MountPropagationHostToContainer is used.
373 # This field is beta in 1.10.
374 # +optional
375 &quot;mountPath&quot;: &quot;A String&quot;, # Path within the container at which the volume should be mounted. Must
376 # not contain &#x27;:&#x27;.
377 &quot;subPath&quot;: &quot;A String&quot;, # Path within the volume from which the container&#x27;s volume should be mounted.
378 # Defaults to &quot;&quot; (volume&#x27;s root).
379 # +optional
380 &quot;name&quot;: &quot;A String&quot;, # This must match the Name of a Volume.
381 },
382 ],
383 &quot;volumeDevices&quot;: [ # volumeDevices is the list of block devices to be used by the container.
384 # This is an alpha feature and may change in the future.
385 # +optional
386 { # volumeDevice describes a mapping of a raw block device within a container.
387 &quot;name&quot;: &quot;A String&quot;, # name must match the name of a persistentVolumeClaim in the pod
388 &quot;devicePath&quot;: &quot;A String&quot;, # devicePath is the path inside of the container that the device will be
389 # mapped to.
390 },
391 ],
392 &quot;ports&quot;: [ # List of ports to expose from the container. Exposing a port here gives
393 # the system additional information about the network connections a
394 # container uses, but is primarily informational. Not specifying a port here
395 # DOES NOT prevent that port from being exposed. Any port which is
396 # listening on the default &quot;0.0.0.0&quot; address inside a container will be
397 # accessible from the network.
398 # Cannot be updated.
399 # +optional
400 { # ContainerPort represents a network port in a single container.
401 &quot;hostPort&quot;: 42, # Number of port to expose on the host.
402 # If specified, this must be a valid port number, 0 &lt; x &lt; 65536.
403 # If HostNetwork is specified, this must match ContainerPort.
404 # Most containers do not need this.
405 # +optional
406 &quot;containerPort&quot;: 42, # Number of port to expose on the pod&#x27;s IP address.
407 # This must be a valid port number, 0 &lt; x &lt; 65536.
408 &quot;protocol&quot;: &quot;A String&quot;, # Protocol for port. Must be UDP or TCP.
409 # Defaults to &quot;TCP&quot;.
410 # +optional
411 &quot;hostIP&quot;: &quot;A String&quot;, # What host IP to bind the external port to.
412 # +optional
413 &quot;name&quot;: &quot;A String&quot;, # If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
414 # named port in a pod must have a unique name. Name for the port that can be
415 # referred to by services.
416 # +optional
417 },
418 ],
419 &quot;workingDir&quot;: &quot;A String&quot;, # Container&#x27;s working directory.
420 # If not specified, the container runtime&#x27;s default will be used, which
421 # might be configured in the container image.
422 # Cannot be updated.
423 # +optional
424 &quot;args&quot;: [ # Arguments to the entrypoint.
425 # The docker image&#x27;s CMD is used if this is not provided.
426 # Variable references $(VAR_NAME) are expanded using the container&#x27;s
Dan O'Mearadd494642020-05-01 07:42:23 -0700427 # environment. If a variable cannot be resolved, the reference in the input
428 # string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
429 # double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
430 # regardless of whether the variable exists or not.
431 # Cannot be updated.
432 # More info:
433 # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
434 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700435 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700436 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700437 &quot;stdinOnce&quot;: True or False, # Whether the container runtime should close the stdin channel after it has
Dan O'Mearadd494642020-05-01 07:42:23 -0700438 # been opened by a single attach. When stdin is true the stdin stream will
439 # remain open across multiple attach sessions. If stdinOnce is set to true,
440 # stdin is opened on container start, is empty until the first client
441 # attaches to stdin, and then remains open and accepts data until the client
442 # disconnects, at which time stdin is closed and remains closed until the
443 # container is restarted. If this flag is false, a container processes that
444 # reads from stdin will never receive an EOF. Default is false +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700445 &quot;envFrom&quot;: [ # List of sources to populate environment variables in the container.
446 # The keys defined within a source must be a C_IDENTIFIER. All invalid keys
447 # will be reported as an event when the container is starting. When a key
448 # exists in multiple sources, the value associated with the last source will
449 # take precedence. Values defined by an Env with a duplicate key will take
450 # precedence. Cannot be updated. +optional
451 { # EnvFromSource represents the source of a set of ConfigMaps
452 &quot;configMapRef&quot;: { # ConfigMapEnvSource selects a ConfigMap to populate the environment # The ConfigMap to select from
453 # +optional
454 # variables with.
455 #
456 # The contents of the target ConfigMap&#x27;s Data field will represent the
457 # key-value pairs as environment variables.
458 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
459 #
460 # Cloud Run for Anthos: supported
461 #
462 # The ConfigMap to select from.
463 &quot;localObjectReference&quot;: { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
464 # directly into the message. Use the &quot;name&quot; field instead.
465 # referenced object inside the same namespace.
466 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
467 # More info:
468 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
469 },
470 &quot;optional&quot;: True or False, # Cloud Run fully managed: not supported
471 #
472 # Cloud Run for Anthos: supported
473 #
474 # Specify whether the ConfigMap must be defined
475 # +optional
476 },
477 &quot;secretRef&quot;: { # SecretEnvSource selects a Secret to populate the environment # The Secret to select from
478 # +optional
479 # variables with.
480 #
481 # The contents of the target Secret&#x27;s Data field will represent the
482 # key-value pairs as environment variables.
483 &quot;localObjectReference&quot;: { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
484 # directly into the message. Use the &quot;name&quot; field instead.
485 # referenced object inside the same namespace.
486 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
487 # More info:
488 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
489 },
490 &quot;optional&quot;: True or False, # Cloud Run fully managed: not supported
491 #
492 # Cloud Run for Anthos: supported
493 #
494 # Specify whether the Secret must be defined
495 # +optional
496 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
497 #
498 # Cloud Run for Anthos: supported
499 #
500 # The Secret to select from.
501 },
502 &quot;prefix&quot;: &quot;A String&quot;, # An optional identifier to prepend to each key in the ConfigMap. Must be a
503 # C_IDENTIFIER. +optional
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700504 },
505 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700506 &quot;image&quot;: &quot;A String&quot;, # Docker image name.
507 # More info: https://kubernetes.io/docs/concepts/containers/images
508 &quot;name&quot;: &quot;A String&quot;, # Name of the container specified as a DNS_LABEL.
509 # Each container must have a unique name (DNS_LABEL).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700510 # Cannot be updated.
Bu Sun Kim65020912020-05-20 12:08:20 -0700511 &quot;command&quot;: [ # Entrypoint array. Not executed within a shell.
512 # The docker image&#x27;s ENTRYPOINT is used if this is not provided.
513 # Variable references $(VAR_NAME) are expanded using the container&#x27;s
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700514 # environment. If a variable cannot be resolved, the reference in the input
515 # string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
516 # double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
517 # regardless of whether the variable exists or not.
518 # Cannot be updated.
519 # More info:
520 # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
521 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700522 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700523 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700524 &quot;terminationMessagePolicy&quot;: &quot;A String&quot;, # Indicate how the termination message should be populated. File will use the
525 # contents of terminationMessagePath to populate the container status message
526 # on both success and failure. FallbackToLogsOnError will use the last chunk
527 # of container log output if the termination message file is empty and the
528 # container exited with an error. The log output is limited to 2048 bytes or
529 # 80 lines, whichever is smaller. Defaults to File. Cannot be updated.
530 # +optional
531 &quot;securityContext&quot;: { # SecurityContext holds security configuration that will be applied to a # Security options the pod should run with.
532 # More info: https://kubernetes.io/docs/concepts/policy/security-context/
533 # More info:
534 # https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
535 # +optional
536 # container. Some fields are present in both SecurityContext and
537 # PodSecurityContext. When both are set, the values in SecurityContext take
538 # precedence.
539 &quot;capabilities&quot;: { # Adds and removes POSIX capabilities from running containers. # The capabilities to add/drop when running containers.
540 # Defaults to the default set of capabilities granted by the container
541 # runtime. +optional
542 &quot;add&quot;: [ # Added capabilities
543 # +optional
544 &quot;A String&quot;,
545 ],
546 &quot;drop&quot;: [ # Removed capabilities
547 # +optional
548 &quot;A String&quot;,
549 ],
550 },
551 &quot;runAsNonRoot&quot;: True or False, # Indicates that the container must run as a non-root user.
552 # If true, the Kubelet will validate the image at runtime to ensure that it
553 # does not run as UID 0 (root) and fail to start the container if it does.
554 # If unset or false, no such validation will be performed.
555 # May also be set in PodSecurityContext. If set in both SecurityContext and
556 # PodSecurityContext, the value specified in SecurityContext takes
557 # precedence. +optional
558 &quot;runAsGroup&quot;: 42, # The GID to run the entrypoint of the container process.
559 # Uses runtime default if unset.
560 # May also be set in PodSecurityContext. If set in both SecurityContext and
561 # PodSecurityContext, the value specified in SecurityContext takes
562 # precedence. +optional
563 &quot;privileged&quot;: True or False, # Run container in privileged mode.
564 # Processes in privileged containers are essentially equivalent to root on
565 # the host. Defaults to false. +optional
566 &quot;allowPrivilegeEscalation&quot;: True or False, # AllowPrivilegeEscalation controls whether a process can gain more
567 # privileges than its parent process. This bool directly controls if
568 # the no_new_privs flag will be set on the container process.
569 # AllowPrivilegeEscalation is true always when the container is:
570 # 1) run as Privileged
571 # 2) has CAP_SYS_ADMIN
572 # +optional
573 &quot;seLinuxOptions&quot;: { # SELinuxOptions are the labels to be applied to the container # The SELinux context to be applied to the container.
574 # If unspecified, the container runtime will allocate a random SELinux
575 # context for each container. May also be set in PodSecurityContext. If set
576 # in both SecurityContext and PodSecurityContext, the value specified in
577 # SecurityContext takes precedence. +optional
578 &quot;role&quot;: &quot;A String&quot;, # Role is a SELinux role label that applies to the container.
579 # +optional
580 &quot;level&quot;: &quot;A String&quot;, # Level is SELinux level label that applies to the container.
581 # +optional
582 &quot;user&quot;: &quot;A String&quot;, # User is a SELinux user label that applies to the container.
583 # +optional
584 &quot;type&quot;: &quot;A String&quot;, # Type is a SELinux type label that applies to the container.
585 # +optional
586 },
587 &quot;readOnlyRootFilesystem&quot;: True or False, # Whether this container has a read-only root filesystem.
588 # Default is false.
589 # +optional
590 &quot;runAsUser&quot;: 42, # The UID to run the entrypoint of the container process.
591 # Defaults to user specified in image metadata if unspecified.
592 # May also be set in PodSecurityContext. If set in both SecurityContext and
593 # PodSecurityContext, the value specified in SecurityContext takes
594 # precedence. +optional
595 },
596 &quot;livenessProbe&quot;: { # Probe describes a health check to be performed against a container to # Periodic probe of container liveness.
597 # Container will be restarted if the probe fails.
598 # Cannot be updated.
599 # More info:
600 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
601 # +optional
602 # determine whether it is alive or ready to receive traffic.
603 &quot;failureThreshold&quot;: 42, # Minimum consecutive failures for the probe to be considered failed after
604 # having succeeded. Defaults to 3. Minimum value is 1. +optional
605 &quot;initialDelaySeconds&quot;: 42, # Number of seconds after the container has started before liveness probes
606 # are initiated. More info:
607 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
608 # +optional
609 &quot;timeoutSeconds&quot;: 42, # Number of seconds after which the probe times out.
610 # Defaults to 1 second. Minimum value is 1.
611 # More info:
612 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
613 # +optional
614 &quot;handler&quot;: { # Handler defines a specific action that should be taken # The action taken to determine the health of a container
615 &quot;exec&quot;: { # ExecAction describes a &quot;run in container&quot; action. # One and only one of the following should be specified.
616 # Exec specifies the action to take.
617 # +optional
618 &quot;command&quot;: &quot;A String&quot;, # Command is the command line to execute inside the container, the working
619 # directory for the command is root (&#x27;/&#x27;) in the container&#x27;s filesystem. The
620 # command is simply exec&#x27;d, it is not run inside a shell, so traditional
621 # shell instructions (&#x27;|&#x27;, etc) won&#x27;t work. To use a shell, you need to
622 # explicitly call out to that shell. Exit status of 0 is treated as
623 # live/healthy and non-zero is unhealthy. +optional
624 },
625 &quot;httpGet&quot;: { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
626 # +optional
627 &quot;httpHeaders&quot;: [ # Custom headers to set in the request. HTTP allows repeated headers.
628 # +optional
629 { # HTTPHeader describes a custom header to be used in HTTP probes
630 &quot;value&quot;: &quot;A String&quot;, # The header field value
631 &quot;name&quot;: &quot;A String&quot;, # The header field name
632 },
633 ],
634 &quot;path&quot;: &quot;A String&quot;, # Path to access on the HTTP server.
635 # +optional
636 &quot;port&quot;: { # 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.
637 # Number must be in the range 1 to 65535.
638 # Name must be an IANA_SVC_NAME.
639 # JSON or YAML marshalling and unmarshalling, it produces or consumes the
640 # inner type. This allows you to have, for example, a JSON field that can
641 # accept a name or number.
642 &quot;type&quot;: 42, # The type of the value.
643 &quot;intVal&quot;: 42, # The int value.
644 &quot;strVal&quot;: &quot;A String&quot;, # The string value.
645 },
646 &quot;host&quot;: &quot;A String&quot;, # Host name to connect to, defaults to the pod IP. You probably want to set
647 # &quot;Host&quot; in httpHeaders instead.
648 # +optional
649 &quot;scheme&quot;: &quot;A String&quot;, # Scheme to use for connecting to the host.
650 # Defaults to HTTP.
651 # +optional
652 },
653 &quot;tcpSocket&quot;: { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
654 # TCP hooks not yet supported
655 &quot;port&quot;: { # 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.
656 # Number must be in the range 1 to 65535.
657 # Name must be an IANA_SVC_NAME.
658 # JSON or YAML marshalling and unmarshalling, it produces or consumes the
659 # inner type. This allows you to have, for example, a JSON field that can
660 # accept a name or number.
661 &quot;type&quot;: 42, # The type of the value.
662 &quot;intVal&quot;: 42, # The int value.
663 &quot;strVal&quot;: &quot;A String&quot;, # The string value.
664 },
665 &quot;host&quot;: &quot;A String&quot;, # Optional: Host name to connect to, defaults to the pod IP.
666 # +optional
667 },
668 },
669 &quot;successThreshold&quot;: 42, # Minimum consecutive successes for the probe to be considered successful
670 # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value
671 # is 1. +optional
672 &quot;periodSeconds&quot;: 42, # How often (in seconds) to perform the probe.
673 # Default to 10 seconds. Minimum value is 1.
674 # +optional
675 },
676 &quot;env&quot;: [ # List of environment variables to set in the container.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700677 # Cannot be updated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700678 # +optional
Dan O'Mearadd494642020-05-01 07:42:23 -0700679 { # EnvVar represents an environment variable present in a Container.
Bu Sun Kim65020912020-05-20 12:08:20 -0700680 &quot;value&quot;: &quot;A String&quot;, # Variable references $(VAR_NAME) are expanded
681 # using the previous defined environment variables in the container and
682 # any route environment variables. If a variable cannot be resolved,
683 # the reference in the input string will be unchanged. The $(VAR_NAME)
684 # syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped
685 # references will never be expanded, regardless of whether the variable
686 # exists or not.
687 # Defaults to &quot;&quot;.
688 # +optional
689 &quot;name&quot;: &quot;A String&quot;, # Name of the environment variable. Must be a C_IDENTIFIER.
690 &quot;valueFrom&quot;: { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported
Dan O'Mearadd494642020-05-01 07:42:23 -0700691 #
692 # Cloud Run on GKE: supported
693 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700694 # Source for the environment variable&#x27;s value. Cannot be used if value is not
Dan O'Mearadd494642020-05-01 07:42:23 -0700695 # empty. +optional
696 #
697 # Cloud Run on GKE: supported
698 #
699 # EnvVarSource represents a source for the value of an EnvVar.
Bu Sun Kim65020912020-05-20 12:08:20 -0700700 &quot;configMapKeyRef&quot;: { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported
Dan O'Mearadd494642020-05-01 07:42:23 -0700701 #
702 # Cloud Run on GKE: supported
703 #
704 # Selects a key of a ConfigMap.
705 # +optional
706 #
707 # Cloud Run on GKE: supported
708 #
709 # Selects a key from a ConfigMap.
Bu Sun Kim65020912020-05-20 12:08:20 -0700710 &quot;optional&quot;: True or False, # Cloud Run fully managed: not supported
Dan O'Mearadd494642020-05-01 07:42:23 -0700711 #
712 # Cloud Run on GKE: supported
713 #
714 # Specify whether the ConfigMap or its key must be defined
715 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700716 &quot;key&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
Dan O'Mearadd494642020-05-01 07:42:23 -0700717 #
718 # Cloud Run on GKE: supported
719 #
720 # The key to select.
Bu Sun Kim65020912020-05-20 12:08:20 -0700721 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
722 #
723 # Cloud Run on GKE: supported
724 #
725 # The ConfigMap to select from.
726 &quot;localObjectReference&quot;: { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
727 # directly into the message. Use the &quot;name&quot; field instead.
728 # referenced object inside the same namespace.
729 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
730 # More info:
731 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
732 },
733 },
734 &quot;secretKeyRef&quot;: { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported
735 #
736 # Cloud Run on GKE: supported
737 #
738 # Selects a key of a secret in the pod&#x27;s namespace
739 # +optional
740 #
741 # Cloud Run on GKE: supported
742 #
743 # SecretKeySelector selects a key of a Secret.
744 &quot;localObjectReference&quot;: { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
745 # directly into the message. Use the &quot;name&quot; field instead.
746 # referenced object inside the same namespace.
747 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
748 # More info:
749 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
750 },
751 &quot;optional&quot;: True or False, # Cloud Run fully managed: not supported
752 #
753 # Cloud Run on GKE: supported
754 #
755 # Specify whether the Secret or its key must be defined
756 # +optional
757 &quot;key&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
758 #
759 # Cloud Run on GKE: supported
760 #
761 # The key of the secret to select from. Must be a valid secret key.
762 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
763 #
764 # Cloud Run on GKE: supported
765 #
766 # The name of the secret in the pod&#x27;s namespace to select from.
Dan O'Mearadd494642020-05-01 07:42:23 -0700767 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700768 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700769 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700770 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700771 &quot;resources&quot;: { # ResourceRequirements describes the compute resource requirements. # Compute Resources required by this container.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700772 # Cannot be updated.
773 # More info:
774 # https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
775 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -0700776 &quot;requestsInMap&quot;: { # Requests describes the minimum amount of compute resources required.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700777 # If Requests is omitted for a container, it defaults to Limits if that is
778 # explicitly specified, otherwise to an implementation-defined value.
779 # This is a temporary field created to migrate away from the
Dan O'Mearadd494642020-05-01 07:42:23 -0700780 # map&lt;string, Quantity&gt; requests field. This is done to become compliant
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700781 # with k8s style API.
782 # This field is deprecated in favor of requests field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700783 &quot;a_key&quot;: { # The view model of a single quantity, e.g. &quot;800 MiB&quot;. Corresponds to
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700784 # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/generated.proto
Bu Sun Kim65020912020-05-20 12:08:20 -0700785 &quot;string&quot;: &quot;A String&quot;, # Stringified version of the quantity, e.g., &quot;800 MiB&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700786 },
787 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700788 &quot;requests&quot;: { # Requests describes the minimum amount of compute resources required.
Dan O'Mearadd494642020-05-01 07:42:23 -0700789 # If Requests is omitted for a container, it defaults to Limits if that is
790 # explicitly specified, otherwise to an implementation-defined value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700791 # The values of the map is string form of the &#x27;quantity&#x27; k8s type:
Dan O'Mearadd494642020-05-01 07:42:23 -0700792 # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
Bu Sun Kim65020912020-05-20 12:08:20 -0700793 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700794 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700795 &quot;limits&quot;: { # Limits describes the maximum amount of compute resources allowed.
796 # The values of the map is string form of the &#x27;quantity&#x27; k8s type:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700797 # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
Bu Sun Kim65020912020-05-20 12:08:20 -0700798 &quot;a_key&quot;: &quot;A String&quot;,
799 },
800 &quot;limitsInMap&quot;: { # Limits describes the maximum amount of compute resources allowed.
801 # This is a temporary field created to migrate away from the
802 # map&lt;string, Quantity&gt; limits field. This is done to become compliant
803 # with k8s style API.
804 # This field is deprecated in favor of limits field.
805 &quot;a_key&quot;: { # The view model of a single quantity, e.g. &quot;800 MiB&quot;. Corresponds to
806 # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/generated.proto
807 &quot;string&quot;: &quot;A String&quot;, # Stringified version of the quantity, e.g., &quot;800 MiB&quot;.
808 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700809 },
810 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700811 &quot;readinessProbe&quot;: { # Probe describes a health check to be performed against a container to # Periodic probe of container service readiness.
812 # Container will be removed from service endpoints if the probe fails.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700813 # Cannot be updated.
Bu Sun Kim65020912020-05-20 12:08:20 -0700814 # More info:
815 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
816 # +optional
817 # determine whether it is alive or ready to receive traffic.
818 &quot;failureThreshold&quot;: 42, # Minimum consecutive failures for the probe to be considered failed after
819 # having succeeded. Defaults to 3. Minimum value is 1. +optional
820 &quot;initialDelaySeconds&quot;: 42, # Number of seconds after the container has started before liveness probes
821 # are initiated. More info:
822 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
823 # +optional
824 &quot;timeoutSeconds&quot;: 42, # Number of seconds after which the probe times out.
825 # Defaults to 1 second. Minimum value is 1.
826 # More info:
827 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
828 # +optional
829 &quot;handler&quot;: { # Handler defines a specific action that should be taken # The action taken to determine the health of a container
830 &quot;exec&quot;: { # ExecAction describes a &quot;run in container&quot; action. # One and only one of the following should be specified.
831 # Exec specifies the action to take.
832 # +optional
833 &quot;command&quot;: &quot;A String&quot;, # Command is the command line to execute inside the container, the working
834 # directory for the command is root (&#x27;/&#x27;) in the container&#x27;s filesystem. The
835 # command is simply exec&#x27;d, it is not run inside a shell, so traditional
836 # shell instructions (&#x27;|&#x27;, etc) won&#x27;t work. To use a shell, you need to
837 # explicitly call out to that shell. Exit status of 0 is treated as
838 # live/healthy and non-zero is unhealthy. +optional
839 },
840 &quot;httpGet&quot;: { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
841 # +optional
842 &quot;httpHeaders&quot;: [ # Custom headers to set in the request. HTTP allows repeated headers.
843 # +optional
844 { # HTTPHeader describes a custom header to be used in HTTP probes
845 &quot;value&quot;: &quot;A String&quot;, # The header field value
846 &quot;name&quot;: &quot;A String&quot;, # The header field name
847 },
848 ],
849 &quot;path&quot;: &quot;A String&quot;, # Path to access on the HTTP server.
850 # +optional
851 &quot;port&quot;: { # 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.
852 # Number must be in the range 1 to 65535.
853 # Name must be an IANA_SVC_NAME.
854 # JSON or YAML marshalling and unmarshalling, it produces or consumes the
855 # inner type. This allows you to have, for example, a JSON field that can
856 # accept a name or number.
857 &quot;type&quot;: 42, # The type of the value.
858 &quot;intVal&quot;: 42, # The int value.
859 &quot;strVal&quot;: &quot;A String&quot;, # The string value.
860 },
861 &quot;host&quot;: &quot;A String&quot;, # Host name to connect to, defaults to the pod IP. You probably want to set
862 # &quot;Host&quot; in httpHeaders instead.
863 # +optional
864 &quot;scheme&quot;: &quot;A String&quot;, # Scheme to use for connecting to the host.
865 # Defaults to HTTP.
866 # +optional
867 },
868 &quot;tcpSocket&quot;: { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
869 # TCP hooks not yet supported
870 &quot;port&quot;: { # 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.
871 # Number must be in the range 1 to 65535.
872 # Name must be an IANA_SVC_NAME.
873 # JSON or YAML marshalling and unmarshalling, it produces or consumes the
874 # inner type. This allows you to have, for example, a JSON field that can
875 # accept a name or number.
876 &quot;type&quot;: 42, # The type of the value.
877 &quot;intVal&quot;: 42, # The int value.
878 &quot;strVal&quot;: &quot;A String&quot;, # The string value.
879 },
880 &quot;host&quot;: &quot;A String&quot;, # Optional: Host name to connect to, defaults to the pod IP.
881 # +optional
882 },
883 },
884 &quot;successThreshold&quot;: 42, # Minimum consecutive successes for the probe to be considered successful
885 # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value
886 # is 1. +optional
887 &quot;periodSeconds&quot;: 42, # How often (in seconds) to perform the probe.
888 # Default to 10 seconds. Minimum value is 1.
889 # +optional
890 },
891 &quot;imagePullPolicy&quot;: &quot;A String&quot;, # Image pull policy.
892 # One of Always, Never, IfNotPresent.
893 # Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
894 # Cannot be updated.
895 # More info:
896 # https://kubernetes.io/docs/concepts/containers/images#updating-images
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700897 # +optional
898 },
899 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700900 &quot;generation&quot;: 42, # Deprecated and not currently populated by Cloud Run. See
901 # metadata.generation instead, which is the sequence number containing the
902 # latest generation of the desired state.
903 #
904 # Read-only.
905 &quot;servingState&quot;: &quot;A String&quot;, # ServingState holds a value describing the state the resources
906 # are in for this Revision.
907 # Users must not specify this when creating a revision. It is expected
908 # that the system will manipulate this based on routability and load.
909 #
910 # Populated by the system.
911 # Read-only.
912 &quot;concurrencyModel&quot;: &quot;A String&quot;, # ConcurrencyModel specifies the desired concurrency model
913 # (Single or Multi) for the Revision. Defaults to Multi.
914 # Deprecated in favor of ContainerConcurrency.
915 # +optional
916 &quot;container&quot;: { # A single application container. # Container defines the unit of execution for this Revision.
917 # In the context of a Revision, we disallow a number of the fields of
918 # this Container, including: name, ports, and volumeMounts.
919 # The runtime contract is documented here:
920 # https://github.com/knative/serving/blob/master/docs/runtime-contract.md
921 # This specifies both the container to run, the command to run in the container
922 # and the arguments to supply to it.
923 # Note that additional arguments may be supplied by the system to the container
924 # at runtime.
925 &quot;terminationMessagePath&quot;: &quot;A String&quot;, # Optional: Path at which the file to which the container&#x27;s termination
926 # message will be written is mounted into the container&#x27;s filesystem. Message
927 # written is intended to be brief final status, such as an assertion failure
928 # message. Will be truncated by the node if greater than 4096 bytes. The
929 # total message length across all containers will be limited to 12kb.
930 # Defaults to /dev/termination-log.
931 # Cannot be updated.
932 # +optional
933 &quot;lifecycle&quot;: { # Lifecycle describes actions that the management system should take in # Actions that the management system should take in response to container
934 # lifecycle events. Cannot be updated. +optional
935 # response to container lifecycle events. For the PostStart and PreStop
936 # lifecycle handlers, management of the container blocks until the action is
937 # complete, unless the container process fails, in which case the handler is
938 # aborted.
939 &quot;preStop&quot;: { # Handler defines a specific action that should be taken # PreStop is called immediately before a container is terminated.
940 # The container is terminated after the handler completes.
941 # The reason for termination is passed to the handler.
942 # Regardless of the outcome of the handler, the container is eventually
943 # terminated. Other management of the container blocks until the hook
944 # completes. More info:
945 # https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
946 # +optional
947 &quot;exec&quot;: { # ExecAction describes a &quot;run in container&quot; action. # One and only one of the following should be specified.
948 # Exec specifies the action to take.
949 # +optional
950 &quot;command&quot;: &quot;A String&quot;, # Command is the command line to execute inside the container, the working
951 # directory for the command is root (&#x27;/&#x27;) in the container&#x27;s filesystem. The
952 # command is simply exec&#x27;d, it is not run inside a shell, so traditional
953 # shell instructions (&#x27;|&#x27;, etc) won&#x27;t work. To use a shell, you need to
954 # explicitly call out to that shell. Exit status of 0 is treated as
955 # live/healthy and non-zero is unhealthy. +optional
956 },
957 &quot;httpGet&quot;: { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
958 # +optional
959 &quot;httpHeaders&quot;: [ # Custom headers to set in the request. HTTP allows repeated headers.
960 # +optional
961 { # HTTPHeader describes a custom header to be used in HTTP probes
962 &quot;value&quot;: &quot;A String&quot;, # The header field value
963 &quot;name&quot;: &quot;A String&quot;, # The header field name
964 },
965 ],
966 &quot;path&quot;: &quot;A String&quot;, # Path to access on the HTTP server.
967 # +optional
968 &quot;port&quot;: { # 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.
969 # Number must be in the range 1 to 65535.
970 # Name must be an IANA_SVC_NAME.
971 # JSON or YAML marshalling and unmarshalling, it produces or consumes the
972 # inner type. This allows you to have, for example, a JSON field that can
973 # accept a name or number.
974 &quot;type&quot;: 42, # The type of the value.
975 &quot;intVal&quot;: 42, # The int value.
976 &quot;strVal&quot;: &quot;A String&quot;, # The string value.
977 },
978 &quot;host&quot;: &quot;A String&quot;, # Host name to connect to, defaults to the pod IP. You probably want to set
979 # &quot;Host&quot; in httpHeaders instead.
980 # +optional
981 &quot;scheme&quot;: &quot;A String&quot;, # Scheme to use for connecting to the host.
982 # Defaults to HTTP.
983 # +optional
984 },
985 &quot;tcpSocket&quot;: { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
986 # TCP hooks not yet supported
987 &quot;port&quot;: { # 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.
988 # Number must be in the range 1 to 65535.
989 # Name must be an IANA_SVC_NAME.
990 # JSON or YAML marshalling and unmarshalling, it produces or consumes the
991 # inner type. This allows you to have, for example, a JSON field that can
992 # accept a name or number.
993 &quot;type&quot;: 42, # The type of the value.
994 &quot;intVal&quot;: 42, # The int value.
995 &quot;strVal&quot;: &quot;A String&quot;, # The string value.
996 },
997 &quot;host&quot;: &quot;A String&quot;, # Optional: Host name to connect to, defaults to the pod IP.
998 # +optional
999 },
1000 },
1001 &quot;postStart&quot;: { # Handler defines a specific action that should be taken # PostStart is called immediately after a container is created. If the
1002 # handler fails, the container is terminated and restarted according to its
1003 # restart policy. Other management of the container blocks until the hook
1004 # completes. More info:
1005 # https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
1006 # +optional
1007 &quot;exec&quot;: { # ExecAction describes a &quot;run in container&quot; action. # One and only one of the following should be specified.
1008 # Exec specifies the action to take.
1009 # +optional
1010 &quot;command&quot;: &quot;A String&quot;, # Command is the command line to execute inside the container, the working
1011 # directory for the command is root (&#x27;/&#x27;) in the container&#x27;s filesystem. The
1012 # command is simply exec&#x27;d, it is not run inside a shell, so traditional
1013 # shell instructions (&#x27;|&#x27;, etc) won&#x27;t work. To use a shell, you need to
1014 # explicitly call out to that shell. Exit status of 0 is treated as
1015 # live/healthy and non-zero is unhealthy. +optional
1016 },
1017 &quot;httpGet&quot;: { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
1018 # +optional
1019 &quot;httpHeaders&quot;: [ # Custom headers to set in the request. HTTP allows repeated headers.
1020 # +optional
1021 { # HTTPHeader describes a custom header to be used in HTTP probes
1022 &quot;value&quot;: &quot;A String&quot;, # The header field value
1023 &quot;name&quot;: &quot;A String&quot;, # The header field name
1024 },
1025 ],
1026 &quot;path&quot;: &quot;A String&quot;, # Path to access on the HTTP server.
1027 # +optional
1028 &quot;port&quot;: { # 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.
1029 # Number must be in the range 1 to 65535.
1030 # Name must be an IANA_SVC_NAME.
1031 # JSON or YAML marshalling and unmarshalling, it produces or consumes the
1032 # inner type. This allows you to have, for example, a JSON field that can
1033 # accept a name or number.
1034 &quot;type&quot;: 42, # The type of the value.
1035 &quot;intVal&quot;: 42, # The int value.
1036 &quot;strVal&quot;: &quot;A String&quot;, # The string value.
1037 },
1038 &quot;host&quot;: &quot;A String&quot;, # Host name to connect to, defaults to the pod IP. You probably want to set
1039 # &quot;Host&quot; in httpHeaders instead.
1040 # +optional
1041 &quot;scheme&quot;: &quot;A String&quot;, # Scheme to use for connecting to the host.
1042 # Defaults to HTTP.
1043 # +optional
1044 },
1045 &quot;tcpSocket&quot;: { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
1046 # TCP hooks not yet supported
1047 &quot;port&quot;: { # 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.
1048 # Number must be in the range 1 to 65535.
1049 # Name must be an IANA_SVC_NAME.
1050 # JSON or YAML marshalling and unmarshalling, it produces or consumes the
1051 # inner type. This allows you to have, for example, a JSON field that can
1052 # accept a name or number.
1053 &quot;type&quot;: 42, # The type of the value.
1054 &quot;intVal&quot;: 42, # The int value.
1055 &quot;strVal&quot;: &quot;A String&quot;, # The string value.
1056 },
1057 &quot;host&quot;: &quot;A String&quot;, # Optional: Host name to connect to, defaults to the pod IP.
1058 # +optional
1059 },
1060 },
1061 },
1062 &quot;stdin&quot;: True or False, # Whether this container should allocate a buffer for stdin in the container
1063 # runtime. If this is not set, reads from stdin in the container will always
1064 # result in EOF. Default is false. +optional
1065 &quot;tty&quot;: True or False, # Whether this container should allocate a TTY for itself, also requires
1066 # &#x27;stdin&#x27; to be true. Default is false. +optional
1067 &quot;volumeMounts&quot;: [ # Pod volumes to mount into the container&#x27;s filesystem.
1068 # Cannot be updated.
1069 # +optional
1070 { # VolumeMount describes a mounting of a Volume within a container.
1071 &quot;readOnly&quot;: True or False, # Mounted read-only if true, read-write otherwise (false or unspecified).
1072 # Defaults to false.
1073 # +optional
1074 &quot;mountPropagation&quot;: &quot;A String&quot;, # mountPropagation determines how mounts are propagated from the host
1075 # to container and the other way around.
1076 # When not set, MountPropagationHostToContainer is used.
1077 # This field is beta in 1.10.
1078 # +optional
1079 &quot;mountPath&quot;: &quot;A String&quot;, # Path within the container at which the volume should be mounted. Must
1080 # not contain &#x27;:&#x27;.
1081 &quot;subPath&quot;: &quot;A String&quot;, # Path within the volume from which the container&#x27;s volume should be mounted.
1082 # Defaults to &quot;&quot; (volume&#x27;s root).
1083 # +optional
1084 &quot;name&quot;: &quot;A String&quot;, # This must match the Name of a Volume.
1085 },
1086 ],
1087 &quot;volumeDevices&quot;: [ # volumeDevices is the list of block devices to be used by the container.
1088 # This is an alpha feature and may change in the future.
1089 # +optional
1090 { # volumeDevice describes a mapping of a raw block device within a container.
1091 &quot;name&quot;: &quot;A String&quot;, # name must match the name of a persistentVolumeClaim in the pod
1092 &quot;devicePath&quot;: &quot;A String&quot;, # devicePath is the path inside of the container that the device will be
1093 # mapped to.
1094 },
1095 ],
1096 &quot;ports&quot;: [ # List of ports to expose from the container. Exposing a port here gives
1097 # the system additional information about the network connections a
1098 # container uses, but is primarily informational. Not specifying a port here
1099 # DOES NOT prevent that port from being exposed. Any port which is
1100 # listening on the default &quot;0.0.0.0&quot; address inside a container will be
1101 # accessible from the network.
1102 # Cannot be updated.
1103 # +optional
1104 { # ContainerPort represents a network port in a single container.
1105 &quot;hostPort&quot;: 42, # Number of port to expose on the host.
1106 # If specified, this must be a valid port number, 0 &lt; x &lt; 65536.
1107 # If HostNetwork is specified, this must match ContainerPort.
1108 # Most containers do not need this.
1109 # +optional
1110 &quot;containerPort&quot;: 42, # Number of port to expose on the pod&#x27;s IP address.
1111 # This must be a valid port number, 0 &lt; x &lt; 65536.
1112 &quot;protocol&quot;: &quot;A String&quot;, # Protocol for port. Must be UDP or TCP.
1113 # Defaults to &quot;TCP&quot;.
1114 # +optional
1115 &quot;hostIP&quot;: &quot;A String&quot;, # What host IP to bind the external port to.
1116 # +optional
1117 &quot;name&quot;: &quot;A String&quot;, # If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
1118 # named port in a pod must have a unique name. Name for the port that can be
1119 # referred to by services.
1120 # +optional
1121 },
1122 ],
1123 &quot;workingDir&quot;: &quot;A String&quot;, # Container&#x27;s working directory.
1124 # If not specified, the container runtime&#x27;s default will be used, which
1125 # might be configured in the container image.
1126 # Cannot be updated.
1127 # +optional
1128 &quot;args&quot;: [ # Arguments to the entrypoint.
1129 # The docker image&#x27;s CMD is used if this is not provided.
1130 # Variable references $(VAR_NAME) are expanded using the container&#x27;s
1131 # environment. If a variable cannot be resolved, the reference in the input
1132 # string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
1133 # double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
1134 # regardless of whether the variable exists or not.
1135 # Cannot be updated.
1136 # More info:
1137 # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
1138 # +optional
1139 &quot;A String&quot;,
1140 ],
1141 &quot;stdinOnce&quot;: True or False, # Whether the container runtime should close the stdin channel after it has
1142 # been opened by a single attach. When stdin is true the stdin stream will
1143 # remain open across multiple attach sessions. If stdinOnce is set to true,
1144 # stdin is opened on container start, is empty until the first client
1145 # attaches to stdin, and then remains open and accepts data until the client
1146 # disconnects, at which time stdin is closed and remains closed until the
1147 # container is restarted. If this flag is false, a container processes that
1148 # reads from stdin will never receive an EOF. Default is false +optional
1149 &quot;envFrom&quot;: [ # List of sources to populate environment variables in the container.
1150 # The keys defined within a source must be a C_IDENTIFIER. All invalid keys
1151 # will be reported as an event when the container is starting. When a key
1152 # exists in multiple sources, the value associated with the last source will
1153 # take precedence. Values defined by an Env with a duplicate key will take
1154 # precedence. Cannot be updated. +optional
1155 { # EnvFromSource represents the source of a set of ConfigMaps
1156 &quot;configMapRef&quot;: { # ConfigMapEnvSource selects a ConfigMap to populate the environment # The ConfigMap to select from
1157 # +optional
1158 # variables with.
1159 #
1160 # The contents of the target ConfigMap&#x27;s Data field will represent the
1161 # key-value pairs as environment variables.
1162 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1163 #
1164 # Cloud Run for Anthos: supported
1165 #
1166 # The ConfigMap to select from.
1167 &quot;localObjectReference&quot;: { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
1168 # directly into the message. Use the &quot;name&quot; field instead.
1169 # referenced object inside the same namespace.
1170 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
1171 # More info:
1172 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
1173 },
1174 &quot;optional&quot;: True or False, # Cloud Run fully managed: not supported
1175 #
1176 # Cloud Run for Anthos: supported
1177 #
1178 # Specify whether the ConfigMap must be defined
1179 # +optional
1180 },
1181 &quot;secretRef&quot;: { # SecretEnvSource selects a Secret to populate the environment # The Secret to select from
1182 # +optional
1183 # variables with.
1184 #
1185 # The contents of the target Secret&#x27;s Data field will represent the
1186 # key-value pairs as environment variables.
1187 &quot;localObjectReference&quot;: { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
1188 # directly into the message. Use the &quot;name&quot; field instead.
1189 # referenced object inside the same namespace.
1190 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
1191 # More info:
1192 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
1193 },
1194 &quot;optional&quot;: True or False, # Cloud Run fully managed: not supported
1195 #
1196 # Cloud Run for Anthos: supported
1197 #
1198 # Specify whether the Secret must be defined
1199 # +optional
1200 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1201 #
1202 # Cloud Run for Anthos: supported
1203 #
1204 # The Secret to select from.
1205 },
1206 &quot;prefix&quot;: &quot;A String&quot;, # An optional identifier to prepend to each key in the ConfigMap. Must be a
1207 # C_IDENTIFIER. +optional
1208 },
1209 ],
1210 &quot;image&quot;: &quot;A String&quot;, # Docker image name.
1211 # More info: https://kubernetes.io/docs/concepts/containers/images
1212 &quot;name&quot;: &quot;A String&quot;, # Name of the container specified as a DNS_LABEL.
1213 # Each container must have a unique name (DNS_LABEL).
1214 # Cannot be updated.
1215 &quot;command&quot;: [ # Entrypoint array. Not executed within a shell.
1216 # The docker image&#x27;s ENTRYPOINT is used if this is not provided.
1217 # Variable references $(VAR_NAME) are expanded using the container&#x27;s
1218 # environment. If a variable cannot be resolved, the reference in the input
1219 # string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
1220 # double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
1221 # regardless of whether the variable exists or not.
1222 # Cannot be updated.
1223 # More info:
1224 # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
1225 # +optional
1226 &quot;A String&quot;,
1227 ],
1228 &quot;terminationMessagePolicy&quot;: &quot;A String&quot;, # Indicate how the termination message should be populated. File will use the
1229 # contents of terminationMessagePath to populate the container status message
1230 # on both success and failure. FallbackToLogsOnError will use the last chunk
1231 # of container log output if the termination message file is empty and the
1232 # container exited with an error. The log output is limited to 2048 bytes or
1233 # 80 lines, whichever is smaller. Defaults to File. Cannot be updated.
1234 # +optional
1235 &quot;securityContext&quot;: { # SecurityContext holds security configuration that will be applied to a # Security options the pod should run with.
1236 # More info: https://kubernetes.io/docs/concepts/policy/security-context/
1237 # More info:
1238 # https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
1239 # +optional
1240 # container. Some fields are present in both SecurityContext and
1241 # PodSecurityContext. When both are set, the values in SecurityContext take
1242 # precedence.
1243 &quot;capabilities&quot;: { # Adds and removes POSIX capabilities from running containers. # The capabilities to add/drop when running containers.
1244 # Defaults to the default set of capabilities granted by the container
1245 # runtime. +optional
1246 &quot;add&quot;: [ # Added capabilities
1247 # +optional
1248 &quot;A String&quot;,
1249 ],
1250 &quot;drop&quot;: [ # Removed capabilities
1251 # +optional
1252 &quot;A String&quot;,
1253 ],
1254 },
1255 &quot;runAsNonRoot&quot;: True or False, # Indicates that the container must run as a non-root user.
1256 # If true, the Kubelet will validate the image at runtime to ensure that it
1257 # does not run as UID 0 (root) and fail to start the container if it does.
1258 # If unset or false, no such validation will be performed.
1259 # May also be set in PodSecurityContext. If set in both SecurityContext and
1260 # PodSecurityContext, the value specified in SecurityContext takes
1261 # precedence. +optional
1262 &quot;runAsGroup&quot;: 42, # The GID to run the entrypoint of the container process.
1263 # Uses runtime default if unset.
1264 # May also be set in PodSecurityContext. If set in both SecurityContext and
1265 # PodSecurityContext, the value specified in SecurityContext takes
1266 # precedence. +optional
1267 &quot;privileged&quot;: True or False, # Run container in privileged mode.
1268 # Processes in privileged containers are essentially equivalent to root on
1269 # the host. Defaults to false. +optional
1270 &quot;allowPrivilegeEscalation&quot;: True or False, # AllowPrivilegeEscalation controls whether a process can gain more
1271 # privileges than its parent process. This bool directly controls if
1272 # the no_new_privs flag will be set on the container process.
1273 # AllowPrivilegeEscalation is true always when the container is:
1274 # 1) run as Privileged
1275 # 2) has CAP_SYS_ADMIN
1276 # +optional
1277 &quot;seLinuxOptions&quot;: { # SELinuxOptions are the labels to be applied to the container # The SELinux context to be applied to the container.
1278 # If unspecified, the container runtime will allocate a random SELinux
1279 # context for each container. May also be set in PodSecurityContext. If set
1280 # in both SecurityContext and PodSecurityContext, the value specified in
1281 # SecurityContext takes precedence. +optional
1282 &quot;role&quot;: &quot;A String&quot;, # Role is a SELinux role label that applies to the container.
1283 # +optional
1284 &quot;level&quot;: &quot;A String&quot;, # Level is SELinux level label that applies to the container.
1285 # +optional
1286 &quot;user&quot;: &quot;A String&quot;, # User is a SELinux user label that applies to the container.
1287 # +optional
1288 &quot;type&quot;: &quot;A String&quot;, # Type is a SELinux type label that applies to the container.
1289 # +optional
1290 },
1291 &quot;readOnlyRootFilesystem&quot;: True or False, # Whether this container has a read-only root filesystem.
1292 # Default is false.
1293 # +optional
1294 &quot;runAsUser&quot;: 42, # The UID to run the entrypoint of the container process.
1295 # Defaults to user specified in image metadata if unspecified.
1296 # May also be set in PodSecurityContext. If set in both SecurityContext and
1297 # PodSecurityContext, the value specified in SecurityContext takes
1298 # precedence. +optional
1299 },
1300 &quot;livenessProbe&quot;: { # Probe describes a health check to be performed against a container to # Periodic probe of container liveness.
1301 # Container will be restarted if the probe fails.
1302 # Cannot be updated.
1303 # More info:
1304 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
1305 # +optional
1306 # determine whether it is alive or ready to receive traffic.
1307 &quot;failureThreshold&quot;: 42, # Minimum consecutive failures for the probe to be considered failed after
1308 # having succeeded. Defaults to 3. Minimum value is 1. +optional
1309 &quot;initialDelaySeconds&quot;: 42, # Number of seconds after the container has started before liveness probes
1310 # are initiated. More info:
1311 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
1312 # +optional
1313 &quot;timeoutSeconds&quot;: 42, # Number of seconds after which the probe times out.
1314 # Defaults to 1 second. Minimum value is 1.
1315 # More info:
1316 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
1317 # +optional
1318 &quot;handler&quot;: { # Handler defines a specific action that should be taken # The action taken to determine the health of a container
1319 &quot;exec&quot;: { # ExecAction describes a &quot;run in container&quot; action. # One and only one of the following should be specified.
1320 # Exec specifies the action to take.
1321 # +optional
1322 &quot;command&quot;: &quot;A String&quot;, # Command is the command line to execute inside the container, the working
1323 # directory for the command is root (&#x27;/&#x27;) in the container&#x27;s filesystem. The
1324 # command is simply exec&#x27;d, it is not run inside a shell, so traditional
1325 # shell instructions (&#x27;|&#x27;, etc) won&#x27;t work. To use a shell, you need to
1326 # explicitly call out to that shell. Exit status of 0 is treated as
1327 # live/healthy and non-zero is unhealthy. +optional
1328 },
1329 &quot;httpGet&quot;: { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
1330 # +optional
1331 &quot;httpHeaders&quot;: [ # Custom headers to set in the request. HTTP allows repeated headers.
1332 # +optional
1333 { # HTTPHeader describes a custom header to be used in HTTP probes
1334 &quot;value&quot;: &quot;A String&quot;, # The header field value
1335 &quot;name&quot;: &quot;A String&quot;, # The header field name
1336 },
1337 ],
1338 &quot;path&quot;: &quot;A String&quot;, # Path to access on the HTTP server.
1339 # +optional
1340 &quot;port&quot;: { # 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.
1341 # Number must be in the range 1 to 65535.
1342 # Name must be an IANA_SVC_NAME.
1343 # JSON or YAML marshalling and unmarshalling, it produces or consumes the
1344 # inner type. This allows you to have, for example, a JSON field that can
1345 # accept a name or number.
1346 &quot;type&quot;: 42, # The type of the value.
1347 &quot;intVal&quot;: 42, # The int value.
1348 &quot;strVal&quot;: &quot;A String&quot;, # The string value.
1349 },
1350 &quot;host&quot;: &quot;A String&quot;, # Host name to connect to, defaults to the pod IP. You probably want to set
1351 # &quot;Host&quot; in httpHeaders instead.
1352 # +optional
1353 &quot;scheme&quot;: &quot;A String&quot;, # Scheme to use for connecting to the host.
1354 # Defaults to HTTP.
1355 # +optional
1356 },
1357 &quot;tcpSocket&quot;: { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
1358 # TCP hooks not yet supported
1359 &quot;port&quot;: { # 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.
1360 # Number must be in the range 1 to 65535.
1361 # Name must be an IANA_SVC_NAME.
1362 # JSON or YAML marshalling and unmarshalling, it produces or consumes the
1363 # inner type. This allows you to have, for example, a JSON field that can
1364 # accept a name or number.
1365 &quot;type&quot;: 42, # The type of the value.
1366 &quot;intVal&quot;: 42, # The int value.
1367 &quot;strVal&quot;: &quot;A String&quot;, # The string value.
1368 },
1369 &quot;host&quot;: &quot;A String&quot;, # Optional: Host name to connect to, defaults to the pod IP.
1370 # +optional
1371 },
1372 },
1373 &quot;successThreshold&quot;: 42, # Minimum consecutive successes for the probe to be considered successful
1374 # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value
1375 # is 1. +optional
1376 &quot;periodSeconds&quot;: 42, # How often (in seconds) to perform the probe.
1377 # Default to 10 seconds. Minimum value is 1.
1378 # +optional
1379 },
1380 &quot;env&quot;: [ # List of environment variables to set in the container.
1381 # Cannot be updated.
1382 # +optional
1383 { # EnvVar represents an environment variable present in a Container.
1384 &quot;value&quot;: &quot;A String&quot;, # Variable references $(VAR_NAME) are expanded
1385 # using the previous defined environment variables in the container and
1386 # any route environment variables. If a variable cannot be resolved,
1387 # the reference in the input string will be unchanged. The $(VAR_NAME)
1388 # syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped
1389 # references will never be expanded, regardless of whether the variable
1390 # exists or not.
1391 # Defaults to &quot;&quot;.
1392 # +optional
1393 &quot;name&quot;: &quot;A String&quot;, # Name of the environment variable. Must be a C_IDENTIFIER.
1394 &quot;valueFrom&quot;: { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported
1395 #
1396 # Cloud Run on GKE: supported
1397 #
1398 # Source for the environment variable&#x27;s value. Cannot be used if value is not
1399 # empty. +optional
1400 #
1401 # Cloud Run on GKE: supported
1402 #
1403 # EnvVarSource represents a source for the value of an EnvVar.
1404 &quot;configMapKeyRef&quot;: { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported
1405 #
1406 # Cloud Run on GKE: supported
1407 #
1408 # Selects a key of a ConfigMap.
1409 # +optional
1410 #
1411 # Cloud Run on GKE: supported
1412 #
1413 # Selects a key from a ConfigMap.
1414 &quot;optional&quot;: True or False, # Cloud Run fully managed: not supported
1415 #
1416 # Cloud Run on GKE: supported
1417 #
1418 # Specify whether the ConfigMap or its key must be defined
1419 # +optional
1420 &quot;key&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1421 #
1422 # Cloud Run on GKE: supported
1423 #
1424 # The key to select.
1425 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1426 #
1427 # Cloud Run on GKE: supported
1428 #
1429 # The ConfigMap to select from.
1430 &quot;localObjectReference&quot;: { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
1431 # directly into the message. Use the &quot;name&quot; field instead.
1432 # referenced object inside the same namespace.
1433 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
1434 # More info:
1435 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
1436 },
1437 },
1438 &quot;secretKeyRef&quot;: { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported
1439 #
1440 # Cloud Run on GKE: supported
1441 #
1442 # Selects a key of a secret in the pod&#x27;s namespace
1443 # +optional
1444 #
1445 # Cloud Run on GKE: supported
1446 #
1447 # SecretKeySelector selects a key of a Secret.
1448 &quot;localObjectReference&quot;: { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
1449 # directly into the message. Use the &quot;name&quot; field instead.
1450 # referenced object inside the same namespace.
1451 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
1452 # More info:
1453 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
1454 },
1455 &quot;optional&quot;: True or False, # Cloud Run fully managed: not supported
1456 #
1457 # Cloud Run on GKE: supported
1458 #
1459 # Specify whether the Secret or its key must be defined
1460 # +optional
1461 &quot;key&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1462 #
1463 # Cloud Run on GKE: supported
1464 #
1465 # The key of the secret to select from. Must be a valid secret key.
1466 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1467 #
1468 # Cloud Run on GKE: supported
1469 #
1470 # The name of the secret in the pod&#x27;s namespace to select from.
1471 },
1472 },
1473 },
1474 ],
1475 &quot;resources&quot;: { # ResourceRequirements describes the compute resource requirements. # Compute Resources required by this container.
1476 # Cannot be updated.
1477 # More info:
1478 # https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
1479 # +optional
1480 &quot;requestsInMap&quot;: { # Requests describes the minimum amount of compute resources required.
1481 # If Requests is omitted for a container, it defaults to Limits if that is
1482 # explicitly specified, otherwise to an implementation-defined value.
1483 # This is a temporary field created to migrate away from the
1484 # map&lt;string, Quantity&gt; requests field. This is done to become compliant
1485 # with k8s style API.
1486 # This field is deprecated in favor of requests field.
1487 &quot;a_key&quot;: { # The view model of a single quantity, e.g. &quot;800 MiB&quot;. Corresponds to
1488 # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/generated.proto
1489 &quot;string&quot;: &quot;A String&quot;, # Stringified version of the quantity, e.g., &quot;800 MiB&quot;.
1490 },
1491 },
1492 &quot;requests&quot;: { # Requests describes the minimum amount of compute resources required.
1493 # If Requests is omitted for a container, it defaults to Limits if that is
1494 # explicitly specified, otherwise to an implementation-defined value.
1495 # The values of the map is string form of the &#x27;quantity&#x27; k8s type:
1496 # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
1497 &quot;a_key&quot;: &quot;A String&quot;,
1498 },
1499 &quot;limits&quot;: { # Limits describes the maximum amount of compute resources allowed.
1500 # The values of the map is string form of the &#x27;quantity&#x27; k8s type:
1501 # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
1502 &quot;a_key&quot;: &quot;A String&quot;,
1503 },
1504 &quot;limitsInMap&quot;: { # Limits describes the maximum amount of compute resources allowed.
1505 # This is a temporary field created to migrate away from the
1506 # map&lt;string, Quantity&gt; limits field. This is done to become compliant
1507 # with k8s style API.
1508 # This field is deprecated in favor of limits field.
1509 &quot;a_key&quot;: { # The view model of a single quantity, e.g. &quot;800 MiB&quot;. Corresponds to
1510 # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/generated.proto
1511 &quot;string&quot;: &quot;A String&quot;, # Stringified version of the quantity, e.g., &quot;800 MiB&quot;.
1512 },
1513 },
1514 },
1515 &quot;readinessProbe&quot;: { # Probe describes a health check to be performed against a container to # Periodic probe of container service readiness.
1516 # Container will be removed from service endpoints if the probe fails.
1517 # Cannot be updated.
1518 # More info:
1519 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
1520 # +optional
1521 # determine whether it is alive or ready to receive traffic.
1522 &quot;failureThreshold&quot;: 42, # Minimum consecutive failures for the probe to be considered failed after
1523 # having succeeded. Defaults to 3. Minimum value is 1. +optional
1524 &quot;initialDelaySeconds&quot;: 42, # Number of seconds after the container has started before liveness probes
1525 # are initiated. More info:
1526 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
1527 # +optional
1528 &quot;timeoutSeconds&quot;: 42, # Number of seconds after which the probe times out.
1529 # Defaults to 1 second. Minimum value is 1.
1530 # More info:
1531 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
1532 # +optional
1533 &quot;handler&quot;: { # Handler defines a specific action that should be taken # The action taken to determine the health of a container
1534 &quot;exec&quot;: { # ExecAction describes a &quot;run in container&quot; action. # One and only one of the following should be specified.
1535 # Exec specifies the action to take.
1536 # +optional
1537 &quot;command&quot;: &quot;A String&quot;, # Command is the command line to execute inside the container, the working
1538 # directory for the command is root (&#x27;/&#x27;) in the container&#x27;s filesystem. The
1539 # command is simply exec&#x27;d, it is not run inside a shell, so traditional
1540 # shell instructions (&#x27;|&#x27;, etc) won&#x27;t work. To use a shell, you need to
1541 # explicitly call out to that shell. Exit status of 0 is treated as
1542 # live/healthy and non-zero is unhealthy. +optional
1543 },
1544 &quot;httpGet&quot;: { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
1545 # +optional
1546 &quot;httpHeaders&quot;: [ # Custom headers to set in the request. HTTP allows repeated headers.
1547 # +optional
1548 { # HTTPHeader describes a custom header to be used in HTTP probes
1549 &quot;value&quot;: &quot;A String&quot;, # The header field value
1550 &quot;name&quot;: &quot;A String&quot;, # The header field name
1551 },
1552 ],
1553 &quot;path&quot;: &quot;A String&quot;, # Path to access on the HTTP server.
1554 # +optional
1555 &quot;port&quot;: { # 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.
1556 # Number must be in the range 1 to 65535.
1557 # Name must be an IANA_SVC_NAME.
1558 # JSON or YAML marshalling and unmarshalling, it produces or consumes the
1559 # inner type. This allows you to have, for example, a JSON field that can
1560 # accept a name or number.
1561 &quot;type&quot;: 42, # The type of the value.
1562 &quot;intVal&quot;: 42, # The int value.
1563 &quot;strVal&quot;: &quot;A String&quot;, # The string value.
1564 },
1565 &quot;host&quot;: &quot;A String&quot;, # Host name to connect to, defaults to the pod IP. You probably want to set
1566 # &quot;Host&quot; in httpHeaders instead.
1567 # +optional
1568 &quot;scheme&quot;: &quot;A String&quot;, # Scheme to use for connecting to the host.
1569 # Defaults to HTTP.
1570 # +optional
1571 },
1572 &quot;tcpSocket&quot;: { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
1573 # TCP hooks not yet supported
1574 &quot;port&quot;: { # 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.
1575 # Number must be in the range 1 to 65535.
1576 # Name must be an IANA_SVC_NAME.
1577 # JSON or YAML marshalling and unmarshalling, it produces or consumes the
1578 # inner type. This allows you to have, for example, a JSON field that can
1579 # accept a name or number.
1580 &quot;type&quot;: 42, # The type of the value.
1581 &quot;intVal&quot;: 42, # The int value.
1582 &quot;strVal&quot;: &quot;A String&quot;, # The string value.
1583 },
1584 &quot;host&quot;: &quot;A String&quot;, # Optional: Host name to connect to, defaults to the pod IP.
1585 # +optional
1586 },
1587 },
1588 &quot;successThreshold&quot;: 42, # Minimum consecutive successes for the probe to be considered successful
1589 # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value
1590 # is 1. +optional
1591 &quot;periodSeconds&quot;: 42, # How often (in seconds) to perform the probe.
1592 # Default to 10 seconds. Minimum value is 1.
1593 # +optional
1594 },
1595 &quot;imagePullPolicy&quot;: &quot;A String&quot;, # Image pull policy.
1596 # One of Always, Never, IfNotPresent.
1597 # Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
1598 # Cannot be updated.
1599 # More info:
1600 # https://kubernetes.io/docs/concepts/containers/images#updating-images
1601 # +optional
1602 },
1603 &quot;timeoutSeconds&quot;: 42, # TimeoutSeconds holds the max duration the instance is allowed for
1604 # responding to a request.
1605 # Not currently used by Cloud Run.
1606 &quot;volumes&quot;: [
1607 { # Volume represents a named volume in a container.
1608 &quot;configMap&quot;: { # Adapts a ConfigMap into a volume.
1609 # The contents of the target ConfigMap&#x27;s Data field will be presented in a
1610 # volume as files using the keys in the Data field as the file names, unless
1611 # the items element is populated with specific mappings of keys to paths.
1612 &quot;name&quot;: &quot;A String&quot;, # Name of the config.
1613 &quot;defaultMode&quot;: 42, # Mode bits to use on created files by default. Must be a value between 0 and
1614 # 0777. Defaults to 0644. Directories within the path are not affected by
1615 # this setting. This might be in conflict with other options that affect the
1616 # file mode, like fsGroup, and the result can be other mode bits set.
1617 &quot;items&quot;: [ # If unspecified, each key-value pair in the Data field of the referenced
1618 # Secret will be projected into the volume as a file whose name is the
1619 # key and content is the value. If specified, the listed keys will be
1620 # projected into the specified paths, and unlisted keys will not be
1621 # present. If a key is specified which is not present in the Secret,
1622 # the volume setup will error unless it is marked optional.
1623 { # Maps a string key to a path within a volume.
1624 &quot;key&quot;: &quot;A String&quot;, # The key to project.
1625 &quot;path&quot;: &quot;A String&quot;, # The relative path of the file to map the key to.
1626 # May not be an absolute path.
1627 # May not contain the path element &#x27;..&#x27;.
1628 # May not start with the string &#x27;..&#x27;.
1629 &quot;mode&quot;: 42, # Mode bits to use on this file, must be a value between 0 and 0777. If not
1630 # specified, the volume defaultMode will be used. This might be in conflict
1631 # with other options that affect the file mode, like fsGroup, and the result
1632 # can be other mode bits set. +optional
1633 },
1634 ],
1635 &quot;optional&quot;: True or False, # Specify whether the Secret or its keys must be defined.
1636 },
1637 &quot;name&quot;: &quot;A String&quot;, # Volume&#x27;s name.
1638 &quot;secret&quot;: { # The contents of the target Secret&#x27;s Data field will be presented in a volume
1639 # as files using the keys in the Data field as the file names.
1640 &quot;optional&quot;: True or False, # Specify whether the Secret or its keys must be defined.
1641 &quot;defaultMode&quot;: 42, # Mode bits to use on created files by default. Must be a value between 0 and
1642 # 0777. Defaults to 0644. Directories within the path are not affected by
1643 # this setting. This might be in conflict with other options that affect the
1644 # file mode, like fsGroup, and the result can be other mode bits set.
1645 &quot;secretName&quot;: &quot;A String&quot;, # Name of the secret in the container&#x27;s namespace to use.
1646 &quot;items&quot;: [ # If unspecified, each key-value pair in the Data field of the referenced
1647 # Secret will be projected into the volume as a file whose name is the
1648 # key and content is the value. If specified, the listed keys will be
1649 # projected into the specified paths, and unlisted keys will not be
1650 # present. If a key is specified which is not present in the Secret,
1651 # the volume setup will error unless it is marked optional.
1652 { # Maps a string key to a path within a volume.
1653 &quot;key&quot;: &quot;A String&quot;, # The key to project.
1654 &quot;path&quot;: &quot;A String&quot;, # The relative path of the file to map the key to.
1655 # May not be an absolute path.
1656 # May not contain the path element &#x27;..&#x27;.
1657 # May not start with the string &#x27;..&#x27;.
1658 &quot;mode&quot;: 42, # Mode bits to use on this file, must be a value between 0 and 0777. If not
1659 # specified, the volume defaultMode will be used. This might be in conflict
1660 # with other options that affect the file mode, like fsGroup, and the result
1661 # can be other mode bits set. +optional
1662 },
1663 ],
1664 },
1665 },
1666 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001667 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001668 &quot;kind&quot;: &quot;A String&quot;, # The kind of this resource, in this case &quot;Revision&quot;.
1669 &quot;metadata&quot;: { # ObjectMeta is metadata that all persisted resources must have, which includes # Metadata associated with this Revision, including name, namespace, labels,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001670 # and annotations.
1671 # all objects users must create.
Bu Sun Kim65020912020-05-20 12:08:20 -07001672 &quot;annotations&quot;: { # Annotations is an unstructured key value map stored with a resource that
1673 # may be set by external tools to store and retrieve arbitrary metadata. They
1674 # are not queryable and should be preserved when modifying objects. More
1675 # info: http://kubernetes.io/docs/user-guide/annotations +optional
1676 &quot;a_key&quot;: &quot;A String&quot;,
1677 },
1678 &quot;generateName&quot;: &quot;A String&quot;, # Not currently supported by Cloud Run.
1679 #
1680 # GenerateName is an optional prefix, used by the server, to generate a
1681 # unique name ONLY IF the Name field has not been provided. If this field is
1682 # used, the name returned to the client will be different than the name
1683 # passed. This value will also be combined with a unique suffix. The provided
1684 # value has the same validation rules as the Name field, and may be truncated
1685 # by the length of the suffix required to make the value unique on the
1686 # server.
1687 #
1688 # If this field is specified and the generated name exists, the server will
1689 # NOT return a 409 - instead, it will either return 201 Created or 500 with
1690 # Reason ServerTimeout indicating a unique name could not be found in the
1691 # time allotted, and the client should retry (optionally after the time
1692 # indicated in the Retry-After header).
1693 #
1694 # Applied only if Name is not specified.
1695 # More info:
1696 # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001697 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07001698 # string generateName = 2;
1699 &quot;name&quot;: &quot;A String&quot;, # Name must be unique within a namespace, within a Cloud Run region.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001700 # Is required when creating
1701 # resources, although some resources may allow a client to request the
1702 # generation of an appropriate name automatically. Name is primarily intended
1703 # for creation idempotence and configuration definition. Cannot be updated.
1704 # More info: http://kubernetes.io/docs/user-guide/identifiers#names
1705 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07001706 &quot;clusterName&quot;: &quot;A String&quot;, # Not currently supported by Cloud Run.
1707 #
1708 # The name of the cluster which the object belongs to.
1709 # This is used to distinguish resources with same name and namespace in
1710 # different clusters. This field is not set anywhere right now and apiserver
1711 # is going to ignore it if set in create or update request. +optional
1712 &quot;deletionGracePeriodSeconds&quot;: 42, # Not currently supported by Cloud Run.
1713 #
1714 # Number of seconds allowed for this object to gracefully terminate before
1715 # it will be removed from the system. Only set when deletionTimestamp is also
1716 # set. May only be shortened. Read-only. +optional
1717 &quot;finalizers&quot;: [ # Not currently supported by Cloud Run.
1718 #
1719 # Must be empty before the object is deleted from the registry. Each entry
1720 # is an identifier for the responsible component that will remove the entry
1721 # from the list. If the deletionTimestamp of the object is non-nil, entries
1722 # in this list can only be removed.
1723 # +optional
1724 # +patchStrategy=merge
1725 &quot;A String&quot;,
1726 ],
1727 &quot;deletionTimestamp&quot;: &quot;A String&quot;, # DeletionTimestamp is RFC 3339 date and time at which this resource will be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001728 # deleted. This field is set by the server when a graceful deletion is
1729 # requested by the user, and is not directly settable by a client. The
1730 # resource is expected to be deleted (no longer visible from resource lists,
1731 # and not reachable by name) after the time in this field, once the
1732 # finalizers list is empty. As long as the finalizers list contains items,
1733 # deletion is blocked. Once the deletionTimestamp is set, this value may not
1734 # be unset or be set further into the future, although it may be shortened or
1735 # the resource may be deleted prior to this time. For example, a user may
1736 # request that a pod is deleted in 30 seconds. The Kubelet will react by
1737 # sending a graceful termination signal to the containers in the pod. After
1738 # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL)
1739 # to the container and after cleanup, remove the pod from the API. In the
1740 # presence of network partitions, this object may still exist after this
1741 # timestamp, until an administrator or automated process can determine the
1742 # resource is fully terminated.
1743 # If not set, graceful deletion of the object has not been requested.
1744 #
1745 # Populated by the system when a graceful deletion is requested.
1746 # Read-only.
1747 # More info:
1748 # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
1749 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07001750 &quot;ownerReferences&quot;: [ # List of objects that own this object. If ALL objects in the list have
1751 # been deleted, this object will be garbage collected.
1752 # +optional
1753 { # OwnerReference contains enough information to let you identify an owning
1754 # object. Currently, an owning object must be in the same namespace, so there
1755 # is no namespace field.
1756 &quot;apiVersion&quot;: &quot;A String&quot;, # API version of the referent.
1757 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
1758 # More info: http://kubernetes.io/docs/user-guide/identifiers#names
1759 &quot;uid&quot;: &quot;A String&quot;, # UID of the referent.
1760 # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
1761 &quot;controller&quot;: True or False, # If true, this reference points to the managing controller.
1762 # +optional
1763 &quot;kind&quot;: &quot;A String&quot;, # Kind of the referent.
1764 # More info:
1765 # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
1766 &quot;blockOwnerDeletion&quot;: True or False, # If true, AND if the owner has the &quot;foregroundDeletion&quot; finalizer, then
1767 # the owner cannot be deleted from the key-value store until this
1768 # reference is removed.
1769 # Defaults to false.
1770 # To set this field, a user needs &quot;delete&quot; permission of the owner,
1771 # otherwise 422 (Unprocessable Entity) will be returned.
1772 # +optional
1773 },
1774 ],
1775 &quot;creationTimestamp&quot;: &quot;A String&quot;, # CreationTimestamp is a timestamp representing the server time when this
1776 # object was created. It is not guaranteed to be set in happens-before order
1777 # across separate operations. Clients may not set this value. It is
1778 # represented in RFC3339 form and is in UTC.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001779 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001780 # Populated by the system.
1781 # Read-only.
1782 # Null for lists.
1783 # More info:
1784 # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
1785 # +optional
1786 &quot;labels&quot;: { # Map of string keys and values that can be used to organize and categorize
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001787 # (scope and select) objects. May match selectors of replication controllers
1788 # and routes.
1789 # More info: http://kubernetes.io/docs/user-guide/labels
1790 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07001791 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001792 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001793 &quot;generation&quot;: 42, # A sequence number representing a specific generation of the desired state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001794 # Populated by the system. Read-only.
1795 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07001796 &quot;resourceVersion&quot;: &quot;A String&quot;, # An opaque value that represents the internal version of this object that
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001797 # can be used by clients to determine when objects have changed. May be used
1798 # for optimistic concurrency, change detection, and the watch operation on a
1799 # resource or set of resources. Clients must treat these values as opaque and
1800 # passed unmodified back to the server. They may only be valid for a
1801 # particular resource or set of resources.
1802 #
1803 # Populated by the system.
1804 # Read-only.
1805 # Value must be treated as opaque by clients and .
1806 # More info:
1807 # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
1808 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07001809 &quot;uid&quot;: &quot;A String&quot;, # UID is the unique in time and space value for this object. It is typically
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001810 # generated by the server on successful creation of a resource and is not
1811 # allowed to change on PUT operations.
1812 #
1813 # Populated by the system.
1814 # Read-only.
1815 # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
1816 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07001817 &quot;selfLink&quot;: &quot;A String&quot;, # SelfLink is a URL representing this object.
1818 # Populated by the system.
1819 # Read-only.
1820 # +optional
1821 # string selfLink = 4;
1822 &quot;namespace&quot;: &quot;A String&quot;, # Namespace defines the space within each name must be unique, within a
1823 # Cloud Run region. In Cloud Run the namespace must be equal to either the
1824 # project ID or project number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001825 },
1826 }</pre>
1827</div>
1828
1829<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07001830 <code class="details" id="list">list(parent, labelSelector=None, resourceVersion=None, includeUninitialized=None, fieldSelector=None, continue=None, limit=None, watch=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001831 <pre>Rpc to list revisions.
1832
1833Args:
1834 parent: string, The project ID or project number from which the revisions should be listed. (required)
1835 labelSelector: string, Allows to filter resources based on a label. Supported operations are
1836=, !=, exists, in, and notIn.
Bu Sun Kim65020912020-05-20 12:08:20 -07001837 resourceVersion: string, The baseline resource version from which the list or watch operation should
1838start. Not currently used by Cloud Run.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001839 includeUninitialized: boolean, Not currently used by Cloud Run.
Bu Sun Kim65020912020-05-20 12:08:20 -07001840 fieldSelector: string, Allows to filter resources based on a specific value for a field name.
1841Send this in a query string format. i.e. &#x27;metadata.name%3Dlorem&#x27;.
1842Not currently used by Cloud Run.
1843 continue: string, Optional encoded string to continue paging.
1844 limit: integer, The maximum number of records that should be returned.
1845 watch: boolean, Flag that indicates that the client expects to watch this resource as well.
1846Not currently used by Cloud Run.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001847 x__xgafv: string, V1 error format.
1848 Allowed values
1849 1 - v1 error format
1850 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001851
1852Returns:
1853 An object of the form:
1854
1855 { # ListRevisionsResponse is a list of Revision resources.
Bu Sun Kim65020912020-05-20 12:08:20 -07001856 &quot;apiVersion&quot;: &quot;A String&quot;, # The API version for this call such as &quot;serving.knative.dev/v1alpha1&quot;.
1857 &quot;kind&quot;: &quot;A String&quot;, # The kind of this resource, in this case &quot;RevisionList&quot;.
1858 &quot;unreachable&quot;: [ # Locations that could not be reached.
1859 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001860 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001861 &quot;metadata&quot;: { # ListMeta describes metadata that synthetic resources must have, including # Metadata associated with this revision list.
1862 # lists and various status objects. A resource may have only one of
1863 # {ObjectMeta, ListMeta}.
1864 &quot;resourceVersion&quot;: &quot;A String&quot;, # String that identifies the server&#x27;s internal version of this object that
1865 # can be used by clients to determine when objects have changed. Value must
1866 # be treated as opaque by clients and passed unmodified back to the server.
1867 # Populated by the system.
1868 # Read-only.
1869 # More info:
1870 # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
1871 # +optional
1872 &quot;continue&quot;: &quot;A String&quot;, # continue may be set if the user set a limit on the number of items
1873 # returned, and indicates that the server has more data available. The value
1874 # is opaque and may be used to issue another request to the endpoint that
1875 # served this list to retrieve the next set of available objects. Continuing
1876 # a list may not be possible if the server configuration has changed or more
1877 # than a few minutes have passed. The resourceVersion field returned when
1878 # using this continue value will be identical to the value in the first
1879 # response.
1880 &quot;selfLink&quot;: &quot;A String&quot;, # SelfLink is a URL representing this object.
1881 # Populated by the system.
1882 # Read-only.
1883 # +optional
1884 },
1885 &quot;items&quot;: [ # List of Revisions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001886 { # Revision is an immutable snapshot of code and configuration. A revision
1887 # references a container image. Revisions are created by updates to a
1888 # Configuration.
1889 #
1890 # Cloud Run does not currently support referencing a build that is responsible
1891 # for materializing the container image from source.
1892 #
1893 # See also:
1894 # https://github.com/knative/serving/blob/master/docs/spec/overview.md#revision
Bu Sun Kim65020912020-05-20 12:08:20 -07001895 &quot;status&quot;: { # RevisionStatus communicates the observed state of the Revision (from the # Status communicates the observed state of the Revision (from the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001896 # controller).
1897 # controller).
Bu Sun Kim65020912020-05-20 12:08:20 -07001898 &quot;conditions&quot;: [ # Conditions communicates information about ongoing/complete
1899 # reconciliation processes that bring the &quot;spec&quot; inline with the observed
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001900 # state of the world.
1901 #
1902 # As a Revision is being prepared, it will incrementally
Bu Sun Kim65020912020-05-20 12:08:20 -07001903 # update conditions &quot;ResourcesAvailable&quot;, &quot;ContainerHealthy&quot;, and &quot;Active&quot;,
1904 # which contribute to the overall &quot;Ready&quot; condition.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001905 { # RevisionCondition defines a readiness condition for a Revision.
Bu Sun Kim65020912020-05-20 12:08:20 -07001906 &quot;message&quot;: &quot;A String&quot;, # Human readable message indicating details about the current status.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001907 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07001908 &quot;lastTransitionTime&quot;: &quot;A String&quot;, # Last time the condition transitioned from one status to another.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001909 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07001910 &quot;status&quot;: &quot;A String&quot;, # Status of the condition, one of True, False, Unknown.
1911 &quot;severity&quot;: &quot;A String&quot;, # How to interpret failures of this condition, one of Error, Warning, Info
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001912 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07001913 &quot;reason&quot;: &quot;A String&quot;, # One-word CamelCase reason for the condition&#x27;s last transition.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001914 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07001915 &quot;type&quot;: &quot;A String&quot;, # RevisionConditionType is used to communicate the status of the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001916 # reconciliation process. See also:
1917 # https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-reporting
1918 # Types include:
1919 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001920 # * &quot;Ready&quot;: True when the Revision is ready.
1921 # * &quot;ResourcesAvailable&quot;: True when underlying resources have been
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001922 # provisioned.
Bu Sun Kim65020912020-05-20 12:08:20 -07001923 # * &quot;ContainerHealthy&quot;: True when the Revision readiness check completes.
1924 # * &quot;Active&quot;: True when the Revision may receive traffic.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001925 },
1926 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001927 &quot;observedGeneration&quot;: 42, # ObservedGeneration is the &#x27;Generation&#x27; of the Revision that
1928 # was last processed by the controller.
1929 #
1930 # Clients polling for completed reconciliation should poll until
1931 # observedGeneration = metadata.generation, and the Ready condition&#x27;s status
1932 # is True or False.
1933 &quot;imageDigest&quot;: &quot;A String&quot;, # ImageDigest holds the resolved digest for the image specified
1934 # within .Spec.Container.Image. The digest is resolved during the creation
1935 # of Revision. This field holds the digest value regardless of whether
1936 # a tag or digest was originally specified in the Container object.
1937 &quot;logUrl&quot;: &quot;A String&quot;, # Specifies the generated logging url for this particular revision
1938 # based on the revision url template specified in the controller&#x27;s config.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001939 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07001940 &quot;serviceName&quot;: &quot;A String&quot;, # Not currently used by Cloud Run.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001941 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001942 &quot;apiVersion&quot;: &quot;A String&quot;, # The API version for this call such as &quot;serving.knative.dev/v1alpha1&quot;.
1943 &quot;spec&quot;: { # RevisionSpec holds the desired state of the Revision (from the client). # Spec holds the desired state of the Revision (from the client).
1944 &quot;containerConcurrency&quot;: 42, # (Optional)
Dan O'Mearadd494642020-05-01 07:42:23 -07001945 #
1946 # ContainerConcurrency specifies the maximum allowed in-flight (concurrent)
1947 # requests per container instance of the Revision.
1948 #
1949 # Cloud Run fully managed: supported, defaults to 80
1950 #
1951 # Cloud Run on GKE: supported, defaults to 0, which means concurrency
1952 # to the application is not limited, and the system decides the
1953 # target concurrency for the autoscaler.
Bu Sun Kim65020912020-05-20 12:08:20 -07001954 &quot;serviceAccountName&quot;: &quot;A String&quot;, # Email address of the IAM service account associated with the revision
1955 # of the service. The service account represents the identity of the
1956 # running revision, and determines what permissions the revision has. If
1957 # not provided, the revision will use the project&#x27;s default service account.
1958 &quot;containers&quot;: [ # Containers holds the single container that defines the unit of execution
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001959 # for this Revision. In the context of a Revision, we disallow a number of
1960 # fields on this Container, including: name and lifecycle.
Dan O'Mearadd494642020-05-01 07:42:23 -07001961 # In Cloud Run, only a single container may be provided.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001962 { # A single application container.
1963 # This specifies both the container to run, the command to run in the container
1964 # and the arguments to supply to it.
1965 # Note that additional arguments may be supplied by the system to the container
1966 # at runtime.
Bu Sun Kim65020912020-05-20 12:08:20 -07001967 &quot;terminationMessagePath&quot;: &quot;A String&quot;, # Optional: Path at which the file to which the container&#x27;s termination
1968 # message will be written is mounted into the container&#x27;s filesystem. Message
1969 # written is intended to be brief final status, such as an assertion failure
1970 # message. Will be truncated by the node if greater than 4096 bytes. The
1971 # total message length across all containers will be limited to 12kb.
1972 # Defaults to /dev/termination-log.
Dan O'Mearadd494642020-05-01 07:42:23 -07001973 # Cannot be updated.
Dan O'Mearadd494642020-05-01 07:42:23 -07001974 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07001975 &quot;lifecycle&quot;: { # Lifecycle describes actions that the management system should take in # Actions that the management system should take in response to container
1976 # lifecycle events. Cannot be updated. +optional
1977 # response to container lifecycle events. For the PostStart and PreStop
1978 # lifecycle handlers, management of the container blocks until the action is
1979 # complete, unless the container process fails, in which case the handler is
1980 # aborted.
1981 &quot;preStop&quot;: { # Handler defines a specific action that should be taken # PreStop is called immediately before a container is terminated.
1982 # The container is terminated after the handler completes.
1983 # The reason for termination is passed to the handler.
1984 # Regardless of the outcome of the handler, the container is eventually
1985 # terminated. Other management of the container blocks until the hook
1986 # completes. More info:
1987 # https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
Dan O'Mearadd494642020-05-01 07:42:23 -07001988 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07001989 &quot;exec&quot;: { # ExecAction describes a &quot;run in container&quot; action. # One and only one of the following should be specified.
Dan O'Mearadd494642020-05-01 07:42:23 -07001990 # Exec specifies the action to take.
1991 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07001992 &quot;command&quot;: &quot;A String&quot;, # Command is the command line to execute inside the container, the working
1993 # directory for the command is root (&#x27;/&#x27;) in the container&#x27;s filesystem. The
1994 # command is simply exec&#x27;d, it is not run inside a shell, so traditional
1995 # shell instructions (&#x27;|&#x27;, etc) won&#x27;t work. To use a shell, you need to
Dan O'Mearadd494642020-05-01 07:42:23 -07001996 # explicitly call out to that shell. Exit status of 0 is treated as
1997 # live/healthy and non-zero is unhealthy. +optional
1998 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001999 &quot;httpGet&quot;: { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
2000 # +optional
2001 &quot;httpHeaders&quot;: [ # Custom headers to set in the request. HTTP allows repeated headers.
2002 # +optional
2003 { # HTTPHeader describes a custom header to be used in HTTP probes
2004 &quot;value&quot;: &quot;A String&quot;, # The header field value
2005 &quot;name&quot;: &quot;A String&quot;, # The header field name
2006 },
2007 ],
2008 &quot;path&quot;: &quot;A String&quot;, # Path to access on the HTTP server.
2009 # +optional
2010 &quot;port&quot;: { # 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.
2011 # Number must be in the range 1 to 65535.
2012 # Name must be an IANA_SVC_NAME.
2013 # JSON or YAML marshalling and unmarshalling, it produces or consumes the
2014 # inner type. This allows you to have, for example, a JSON field that can
2015 # accept a name or number.
2016 &quot;type&quot;: 42, # The type of the value.
2017 &quot;intVal&quot;: 42, # The int value.
2018 &quot;strVal&quot;: &quot;A String&quot;, # The string value.
2019 },
2020 &quot;host&quot;: &quot;A String&quot;, # Host name to connect to, defaults to the pod IP. You probably want to set
2021 # &quot;Host&quot; in httpHeaders instead.
2022 # +optional
2023 &quot;scheme&quot;: &quot;A String&quot;, # Scheme to use for connecting to the host.
2024 # Defaults to HTTP.
2025 # +optional
2026 },
2027 &quot;tcpSocket&quot;: { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
2028 # TCP hooks not yet supported
2029 &quot;port&quot;: { # 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.
2030 # Number must be in the range 1 to 65535.
2031 # Name must be an IANA_SVC_NAME.
2032 # JSON or YAML marshalling and unmarshalling, it produces or consumes the
2033 # inner type. This allows you to have, for example, a JSON field that can
2034 # accept a name or number.
2035 &quot;type&quot;: 42, # The type of the value.
2036 &quot;intVal&quot;: 42, # The int value.
2037 &quot;strVal&quot;: &quot;A String&quot;, # The string value.
2038 },
2039 &quot;host&quot;: &quot;A String&quot;, # Optional: Host name to connect to, defaults to the pod IP.
2040 # +optional
2041 },
Dan O'Mearadd494642020-05-01 07:42:23 -07002042 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002043 &quot;postStart&quot;: { # Handler defines a specific action that should be taken # PostStart is called immediately after a container is created. If the
2044 # handler fails, the container is terminated and restarted according to its
2045 # restart policy. Other management of the container blocks until the hook
2046 # completes. More info:
2047 # https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
Dan O'Mearadd494642020-05-01 07:42:23 -07002048 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07002049 &quot;exec&quot;: { # ExecAction describes a &quot;run in container&quot; action. # One and only one of the following should be specified.
2050 # Exec specifies the action to take.
2051 # +optional
2052 &quot;command&quot;: &quot;A String&quot;, # Command is the command line to execute inside the container, the working
2053 # directory for the command is root (&#x27;/&#x27;) in the container&#x27;s filesystem. The
2054 # command is simply exec&#x27;d, it is not run inside a shell, so traditional
2055 # shell instructions (&#x27;|&#x27;, etc) won&#x27;t work. To use a shell, you need to
2056 # explicitly call out to that shell. Exit status of 0 is treated as
2057 # live/healthy and non-zero is unhealthy. +optional
2058 },
2059 &quot;httpGet&quot;: { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
2060 # +optional
2061 &quot;httpHeaders&quot;: [ # Custom headers to set in the request. HTTP allows repeated headers.
2062 # +optional
2063 { # HTTPHeader describes a custom header to be used in HTTP probes
2064 &quot;value&quot;: &quot;A String&quot;, # The header field value
2065 &quot;name&quot;: &quot;A String&quot;, # The header field name
2066 },
2067 ],
2068 &quot;path&quot;: &quot;A String&quot;, # Path to access on the HTTP server.
2069 # +optional
2070 &quot;port&quot;: { # 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.
2071 # Number must be in the range 1 to 65535.
2072 # Name must be an IANA_SVC_NAME.
2073 # JSON or YAML marshalling and unmarshalling, it produces or consumes the
2074 # inner type. This allows you to have, for example, a JSON field that can
2075 # accept a name or number.
2076 &quot;type&quot;: 42, # The type of the value.
2077 &quot;intVal&quot;: 42, # The int value.
2078 &quot;strVal&quot;: &quot;A String&quot;, # The string value.
2079 },
2080 &quot;host&quot;: &quot;A String&quot;, # Host name to connect to, defaults to the pod IP. You probably want to set
2081 # &quot;Host&quot; in httpHeaders instead.
2082 # +optional
2083 &quot;scheme&quot;: &quot;A String&quot;, # Scheme to use for connecting to the host.
2084 # Defaults to HTTP.
2085 # +optional
2086 },
2087 &quot;tcpSocket&quot;: { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
2088 # TCP hooks not yet supported
2089 &quot;port&quot;: { # 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.
2090 # Number must be in the range 1 to 65535.
2091 # Name must be an IANA_SVC_NAME.
2092 # JSON or YAML marshalling and unmarshalling, it produces or consumes the
2093 # inner type. This allows you to have, for example, a JSON field that can
2094 # accept a name or number.
2095 &quot;type&quot;: 42, # The type of the value.
2096 &quot;intVal&quot;: 42, # The int value.
2097 &quot;strVal&quot;: &quot;A String&quot;, # The string value.
2098 },
2099 &quot;host&quot;: &quot;A String&quot;, # Optional: Host name to connect to, defaults to the pod IP.
2100 # +optional
2101 },
2102 },
Dan O'Mearadd494642020-05-01 07:42:23 -07002103 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002104 &quot;stdin&quot;: True or False, # Whether this container should allocate a buffer for stdin in the container
2105 # runtime. If this is not set, reads from stdin in the container will always
2106 # result in EOF. Default is false. +optional
2107 &quot;tty&quot;: True or False, # Whether this container should allocate a TTY for itself, also requires
2108 # &#x27;stdin&#x27; to be true. Default is false. +optional
2109 &quot;volumeMounts&quot;: [ # Pod volumes to mount into the container&#x27;s filesystem.
2110 # Cannot be updated.
2111 # +optional
2112 { # VolumeMount describes a mounting of a Volume within a container.
2113 &quot;readOnly&quot;: True or False, # Mounted read-only if true, read-write otherwise (false or unspecified).
2114 # Defaults to false.
2115 # +optional
2116 &quot;mountPropagation&quot;: &quot;A String&quot;, # mountPropagation determines how mounts are propagated from the host
2117 # to container and the other way around.
2118 # When not set, MountPropagationHostToContainer is used.
2119 # This field is beta in 1.10.
2120 # +optional
2121 &quot;mountPath&quot;: &quot;A String&quot;, # Path within the container at which the volume should be mounted. Must
2122 # not contain &#x27;:&#x27;.
2123 &quot;subPath&quot;: &quot;A String&quot;, # Path within the volume from which the container&#x27;s volume should be mounted.
2124 # Defaults to &quot;&quot; (volume&#x27;s root).
2125 # +optional
2126 &quot;name&quot;: &quot;A String&quot;, # This must match the Name of a Volume.
2127 },
2128 ],
2129 &quot;volumeDevices&quot;: [ # volumeDevices is the list of block devices to be used by the container.
2130 # This is an alpha feature and may change in the future.
2131 # +optional
2132 { # volumeDevice describes a mapping of a raw block device within a container.
2133 &quot;name&quot;: &quot;A String&quot;, # name must match the name of a persistentVolumeClaim in the pod
2134 &quot;devicePath&quot;: &quot;A String&quot;, # devicePath is the path inside of the container that the device will be
2135 # mapped to.
2136 },
2137 ],
2138 &quot;ports&quot;: [ # List of ports to expose from the container. Exposing a port here gives
2139 # the system additional information about the network connections a
2140 # container uses, but is primarily informational. Not specifying a port here
2141 # DOES NOT prevent that port from being exposed. Any port which is
2142 # listening on the default &quot;0.0.0.0&quot; address inside a container will be
2143 # accessible from the network.
2144 # Cannot be updated.
2145 # +optional
2146 { # ContainerPort represents a network port in a single container.
2147 &quot;hostPort&quot;: 42, # Number of port to expose on the host.
2148 # If specified, this must be a valid port number, 0 &lt; x &lt; 65536.
2149 # If HostNetwork is specified, this must match ContainerPort.
2150 # Most containers do not need this.
2151 # +optional
2152 &quot;containerPort&quot;: 42, # Number of port to expose on the pod&#x27;s IP address.
2153 # This must be a valid port number, 0 &lt; x &lt; 65536.
2154 &quot;protocol&quot;: &quot;A String&quot;, # Protocol for port. Must be UDP or TCP.
2155 # Defaults to &quot;TCP&quot;.
2156 # +optional
2157 &quot;hostIP&quot;: &quot;A String&quot;, # What host IP to bind the external port to.
2158 # +optional
2159 &quot;name&quot;: &quot;A String&quot;, # If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
2160 # named port in a pod must have a unique name. Name for the port that can be
2161 # referred to by services.
2162 # +optional
2163 },
2164 ],
2165 &quot;workingDir&quot;: &quot;A String&quot;, # Container&#x27;s working directory.
2166 # If not specified, the container runtime&#x27;s default will be used, which
2167 # might be configured in the container image.
2168 # Cannot be updated.
2169 # +optional
2170 &quot;args&quot;: [ # Arguments to the entrypoint.
2171 # The docker image&#x27;s CMD is used if this is not provided.
2172 # Variable references $(VAR_NAME) are expanded using the container&#x27;s
Dan O'Mearadd494642020-05-01 07:42:23 -07002173 # environment. If a variable cannot be resolved, the reference in the input
2174 # string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
2175 # double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
2176 # regardless of whether the variable exists or not.
2177 # Cannot be updated.
2178 # More info:
2179 # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
2180 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07002181 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002182 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002183 &quot;stdinOnce&quot;: True or False, # Whether the container runtime should close the stdin channel after it has
Dan O'Mearadd494642020-05-01 07:42:23 -07002184 # been opened by a single attach. When stdin is true the stdin stream will
2185 # remain open across multiple attach sessions. If stdinOnce is set to true,
2186 # stdin is opened on container start, is empty until the first client
2187 # attaches to stdin, and then remains open and accepts data until the client
2188 # disconnects, at which time stdin is closed and remains closed until the
2189 # container is restarted. If this flag is false, a container processes that
2190 # reads from stdin will never receive an EOF. Default is false +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07002191 &quot;envFrom&quot;: [ # List of sources to populate environment variables in the container.
2192 # The keys defined within a source must be a C_IDENTIFIER. All invalid keys
2193 # will be reported as an event when the container is starting. When a key
2194 # exists in multiple sources, the value associated with the last source will
2195 # take precedence. Values defined by an Env with a duplicate key will take
2196 # precedence. Cannot be updated. +optional
2197 { # EnvFromSource represents the source of a set of ConfigMaps
2198 &quot;configMapRef&quot;: { # ConfigMapEnvSource selects a ConfigMap to populate the environment # The ConfigMap to select from
2199 # +optional
2200 # variables with.
2201 #
2202 # The contents of the target ConfigMap&#x27;s Data field will represent the
2203 # key-value pairs as environment variables.
2204 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
2205 #
2206 # Cloud Run for Anthos: supported
2207 #
2208 # The ConfigMap to select from.
2209 &quot;localObjectReference&quot;: { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
2210 # directly into the message. Use the &quot;name&quot; field instead.
2211 # referenced object inside the same namespace.
2212 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
2213 # More info:
2214 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2215 },
2216 &quot;optional&quot;: True or False, # Cloud Run fully managed: not supported
2217 #
2218 # Cloud Run for Anthos: supported
2219 #
2220 # Specify whether the ConfigMap must be defined
2221 # +optional
2222 },
2223 &quot;secretRef&quot;: { # SecretEnvSource selects a Secret to populate the environment # The Secret to select from
2224 # +optional
2225 # variables with.
2226 #
2227 # The contents of the target Secret&#x27;s Data field will represent the
2228 # key-value pairs as environment variables.
2229 &quot;localObjectReference&quot;: { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
2230 # directly into the message. Use the &quot;name&quot; field instead.
2231 # referenced object inside the same namespace.
2232 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
2233 # More info:
2234 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2235 },
2236 &quot;optional&quot;: True or False, # Cloud Run fully managed: not supported
2237 #
2238 # Cloud Run for Anthos: supported
2239 #
2240 # Specify whether the Secret must be defined
2241 # +optional
2242 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
2243 #
2244 # Cloud Run for Anthos: supported
2245 #
2246 # The Secret to select from.
2247 },
2248 &quot;prefix&quot;: &quot;A String&quot;, # An optional identifier to prepend to each key in the ConfigMap. Must be a
2249 # C_IDENTIFIER. +optional
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002250 },
2251 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002252 &quot;image&quot;: &quot;A String&quot;, # Docker image name.
2253 # More info: https://kubernetes.io/docs/concepts/containers/images
2254 &quot;name&quot;: &quot;A String&quot;, # Name of the container specified as a DNS_LABEL.
2255 # Each container must have a unique name (DNS_LABEL).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002256 # Cannot be updated.
Bu Sun Kim65020912020-05-20 12:08:20 -07002257 &quot;command&quot;: [ # Entrypoint array. Not executed within a shell.
2258 # The docker image&#x27;s ENTRYPOINT is used if this is not provided.
2259 # Variable references $(VAR_NAME) are expanded using the container&#x27;s
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002260 # environment. If a variable cannot be resolved, the reference in the input
2261 # string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
2262 # double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
2263 # regardless of whether the variable exists or not.
2264 # Cannot be updated.
2265 # More info:
2266 # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
2267 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07002268 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002269 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002270 &quot;terminationMessagePolicy&quot;: &quot;A String&quot;, # Indicate how the termination message should be populated. File will use the
2271 # contents of terminationMessagePath to populate the container status message
2272 # on both success and failure. FallbackToLogsOnError will use the last chunk
2273 # of container log output if the termination message file is empty and the
2274 # container exited with an error. The log output is limited to 2048 bytes or
2275 # 80 lines, whichever is smaller. Defaults to File. Cannot be updated.
2276 # +optional
2277 &quot;securityContext&quot;: { # SecurityContext holds security configuration that will be applied to a # Security options the pod should run with.
2278 # More info: https://kubernetes.io/docs/concepts/policy/security-context/
2279 # More info:
2280 # https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
2281 # +optional
2282 # container. Some fields are present in both SecurityContext and
2283 # PodSecurityContext. When both are set, the values in SecurityContext take
2284 # precedence.
2285 &quot;capabilities&quot;: { # Adds and removes POSIX capabilities from running containers. # The capabilities to add/drop when running containers.
2286 # Defaults to the default set of capabilities granted by the container
2287 # runtime. +optional
2288 &quot;add&quot;: [ # Added capabilities
2289 # +optional
2290 &quot;A String&quot;,
2291 ],
2292 &quot;drop&quot;: [ # Removed capabilities
2293 # +optional
2294 &quot;A String&quot;,
2295 ],
2296 },
2297 &quot;runAsNonRoot&quot;: True or False, # Indicates that the container must run as a non-root user.
2298 # If true, the Kubelet will validate the image at runtime to ensure that it
2299 # does not run as UID 0 (root) and fail to start the container if it does.
2300 # If unset or false, no such validation will be performed.
2301 # May also be set in PodSecurityContext. If set in both SecurityContext and
2302 # PodSecurityContext, the value specified in SecurityContext takes
2303 # precedence. +optional
2304 &quot;runAsGroup&quot;: 42, # The GID to run the entrypoint of the container process.
2305 # Uses runtime default if unset.
2306 # May also be set in PodSecurityContext. If set in both SecurityContext and
2307 # PodSecurityContext, the value specified in SecurityContext takes
2308 # precedence. +optional
2309 &quot;privileged&quot;: True or False, # Run container in privileged mode.
2310 # Processes in privileged containers are essentially equivalent to root on
2311 # the host. Defaults to false. +optional
2312 &quot;allowPrivilegeEscalation&quot;: True or False, # AllowPrivilegeEscalation controls whether a process can gain more
2313 # privileges than its parent process. This bool directly controls if
2314 # the no_new_privs flag will be set on the container process.
2315 # AllowPrivilegeEscalation is true always when the container is:
2316 # 1) run as Privileged
2317 # 2) has CAP_SYS_ADMIN
2318 # +optional
2319 &quot;seLinuxOptions&quot;: { # SELinuxOptions are the labels to be applied to the container # The SELinux context to be applied to the container.
2320 # If unspecified, the container runtime will allocate a random SELinux
2321 # context for each container. May also be set in PodSecurityContext. If set
2322 # in both SecurityContext and PodSecurityContext, the value specified in
2323 # SecurityContext takes precedence. +optional
2324 &quot;role&quot;: &quot;A String&quot;, # Role is a SELinux role label that applies to the container.
2325 # +optional
2326 &quot;level&quot;: &quot;A String&quot;, # Level is SELinux level label that applies to the container.
2327 # +optional
2328 &quot;user&quot;: &quot;A String&quot;, # User is a SELinux user label that applies to the container.
2329 # +optional
2330 &quot;type&quot;: &quot;A String&quot;, # Type is a SELinux type label that applies to the container.
2331 # +optional
2332 },
2333 &quot;readOnlyRootFilesystem&quot;: True or False, # Whether this container has a read-only root filesystem.
2334 # Default is false.
2335 # +optional
2336 &quot;runAsUser&quot;: 42, # The UID to run the entrypoint of the container process.
2337 # Defaults to user specified in image metadata if unspecified.
2338 # May also be set in PodSecurityContext. If set in both SecurityContext and
2339 # PodSecurityContext, the value specified in SecurityContext takes
2340 # precedence. +optional
2341 },
2342 &quot;livenessProbe&quot;: { # Probe describes a health check to be performed against a container to # Periodic probe of container liveness.
2343 # Container will be restarted if the probe fails.
2344 # Cannot be updated.
2345 # More info:
2346 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
2347 # +optional
2348 # determine whether it is alive or ready to receive traffic.
2349 &quot;failureThreshold&quot;: 42, # Minimum consecutive failures for the probe to be considered failed after
2350 # having succeeded. Defaults to 3. Minimum value is 1. +optional
2351 &quot;initialDelaySeconds&quot;: 42, # Number of seconds after the container has started before liveness probes
2352 # are initiated. More info:
2353 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
2354 # +optional
2355 &quot;timeoutSeconds&quot;: 42, # Number of seconds after which the probe times out.
2356 # Defaults to 1 second. Minimum value is 1.
2357 # More info:
2358 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
2359 # +optional
2360 &quot;handler&quot;: { # Handler defines a specific action that should be taken # The action taken to determine the health of a container
2361 &quot;exec&quot;: { # ExecAction describes a &quot;run in container&quot; action. # One and only one of the following should be specified.
2362 # Exec specifies the action to take.
2363 # +optional
2364 &quot;command&quot;: &quot;A String&quot;, # Command is the command line to execute inside the container, the working
2365 # directory for the command is root (&#x27;/&#x27;) in the container&#x27;s filesystem. The
2366 # command is simply exec&#x27;d, it is not run inside a shell, so traditional
2367 # shell instructions (&#x27;|&#x27;, etc) won&#x27;t work. To use a shell, you need to
2368 # explicitly call out to that shell. Exit status of 0 is treated as
2369 # live/healthy and non-zero is unhealthy. +optional
2370 },
2371 &quot;httpGet&quot;: { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
2372 # +optional
2373 &quot;httpHeaders&quot;: [ # Custom headers to set in the request. HTTP allows repeated headers.
2374 # +optional
2375 { # HTTPHeader describes a custom header to be used in HTTP probes
2376 &quot;value&quot;: &quot;A String&quot;, # The header field value
2377 &quot;name&quot;: &quot;A String&quot;, # The header field name
2378 },
2379 ],
2380 &quot;path&quot;: &quot;A String&quot;, # Path to access on the HTTP server.
2381 # +optional
2382 &quot;port&quot;: { # 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.
2383 # Number must be in the range 1 to 65535.
2384 # Name must be an IANA_SVC_NAME.
2385 # JSON or YAML marshalling and unmarshalling, it produces or consumes the
2386 # inner type. This allows you to have, for example, a JSON field that can
2387 # accept a name or number.
2388 &quot;type&quot;: 42, # The type of the value.
2389 &quot;intVal&quot;: 42, # The int value.
2390 &quot;strVal&quot;: &quot;A String&quot;, # The string value.
2391 },
2392 &quot;host&quot;: &quot;A String&quot;, # Host name to connect to, defaults to the pod IP. You probably want to set
2393 # &quot;Host&quot; in httpHeaders instead.
2394 # +optional
2395 &quot;scheme&quot;: &quot;A String&quot;, # Scheme to use for connecting to the host.
2396 # Defaults to HTTP.
2397 # +optional
2398 },
2399 &quot;tcpSocket&quot;: { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
2400 # TCP hooks not yet supported
2401 &quot;port&quot;: { # 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.
2402 # Number must be in the range 1 to 65535.
2403 # Name must be an IANA_SVC_NAME.
2404 # JSON or YAML marshalling and unmarshalling, it produces or consumes the
2405 # inner type. This allows you to have, for example, a JSON field that can
2406 # accept a name or number.
2407 &quot;type&quot;: 42, # The type of the value.
2408 &quot;intVal&quot;: 42, # The int value.
2409 &quot;strVal&quot;: &quot;A String&quot;, # The string value.
2410 },
2411 &quot;host&quot;: &quot;A String&quot;, # Optional: Host name to connect to, defaults to the pod IP.
2412 # +optional
2413 },
2414 },
2415 &quot;successThreshold&quot;: 42, # Minimum consecutive successes for the probe to be considered successful
2416 # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value
2417 # is 1. +optional
2418 &quot;periodSeconds&quot;: 42, # How often (in seconds) to perform the probe.
2419 # Default to 10 seconds. Minimum value is 1.
2420 # +optional
2421 },
2422 &quot;env&quot;: [ # List of environment variables to set in the container.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002423 # Cannot be updated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002424 # +optional
Dan O'Mearadd494642020-05-01 07:42:23 -07002425 { # EnvVar represents an environment variable present in a Container.
Bu Sun Kim65020912020-05-20 12:08:20 -07002426 &quot;value&quot;: &quot;A String&quot;, # Variable references $(VAR_NAME) are expanded
2427 # using the previous defined environment variables in the container and
2428 # any route environment variables. If a variable cannot be resolved,
2429 # the reference in the input string will be unchanged. The $(VAR_NAME)
2430 # syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped
2431 # references will never be expanded, regardless of whether the variable
2432 # exists or not.
2433 # Defaults to &quot;&quot;.
2434 # +optional
2435 &quot;name&quot;: &quot;A String&quot;, # Name of the environment variable. Must be a C_IDENTIFIER.
2436 &quot;valueFrom&quot;: { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported
Dan O'Mearadd494642020-05-01 07:42:23 -07002437 #
2438 # Cloud Run on GKE: supported
2439 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002440 # Source for the environment variable&#x27;s value. Cannot be used if value is not
Dan O'Mearadd494642020-05-01 07:42:23 -07002441 # empty. +optional
2442 #
2443 # Cloud Run on GKE: supported
2444 #
2445 # EnvVarSource represents a source for the value of an EnvVar.
Bu Sun Kim65020912020-05-20 12:08:20 -07002446 &quot;configMapKeyRef&quot;: { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported
Dan O'Mearadd494642020-05-01 07:42:23 -07002447 #
2448 # Cloud Run on GKE: supported
2449 #
2450 # Selects a key of a ConfigMap.
2451 # +optional
2452 #
2453 # Cloud Run on GKE: supported
2454 #
2455 # Selects a key from a ConfigMap.
Bu Sun Kim65020912020-05-20 12:08:20 -07002456 &quot;optional&quot;: True or False, # Cloud Run fully managed: not supported
Dan O'Mearadd494642020-05-01 07:42:23 -07002457 #
2458 # Cloud Run on GKE: supported
2459 #
2460 # Specify whether the ConfigMap or its key must be defined
2461 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07002462 &quot;key&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
Dan O'Mearadd494642020-05-01 07:42:23 -07002463 #
2464 # Cloud Run on GKE: supported
2465 #
2466 # The key to select.
Bu Sun Kim65020912020-05-20 12:08:20 -07002467 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
2468 #
2469 # Cloud Run on GKE: supported
2470 #
2471 # The ConfigMap to select from.
2472 &quot;localObjectReference&quot;: { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
2473 # directly into the message. Use the &quot;name&quot; field instead.
2474 # referenced object inside the same namespace.
2475 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
2476 # More info:
2477 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2478 },
2479 },
2480 &quot;secretKeyRef&quot;: { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported
2481 #
2482 # Cloud Run on GKE: supported
2483 #
2484 # Selects a key of a secret in the pod&#x27;s namespace
2485 # +optional
2486 #
2487 # Cloud Run on GKE: supported
2488 #
2489 # SecretKeySelector selects a key of a Secret.
2490 &quot;localObjectReference&quot;: { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
2491 # directly into the message. Use the &quot;name&quot; field instead.
2492 # referenced object inside the same namespace.
2493 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
2494 # More info:
2495 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2496 },
2497 &quot;optional&quot;: True or False, # Cloud Run fully managed: not supported
2498 #
2499 # Cloud Run on GKE: supported
2500 #
2501 # Specify whether the Secret or its key must be defined
2502 # +optional
2503 &quot;key&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
2504 #
2505 # Cloud Run on GKE: supported
2506 #
2507 # The key of the secret to select from. Must be a valid secret key.
2508 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
2509 #
2510 # Cloud Run on GKE: supported
2511 #
2512 # The name of the secret in the pod&#x27;s namespace to select from.
Dan O'Mearadd494642020-05-01 07:42:23 -07002513 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002514 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002515 },
Dan O'Mearadd494642020-05-01 07:42:23 -07002516 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002517 &quot;resources&quot;: { # ResourceRequirements describes the compute resource requirements. # Compute Resources required by this container.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002518 # Cannot be updated.
2519 # More info:
2520 # https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
2521 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07002522 &quot;requestsInMap&quot;: { # Requests describes the minimum amount of compute resources required.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002523 # If Requests is omitted for a container, it defaults to Limits if that is
2524 # explicitly specified, otherwise to an implementation-defined value.
2525 # This is a temporary field created to migrate away from the
Dan O'Mearadd494642020-05-01 07:42:23 -07002526 # map&lt;string, Quantity&gt; requests field. This is done to become compliant
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002527 # with k8s style API.
2528 # This field is deprecated in favor of requests field.
Bu Sun Kim65020912020-05-20 12:08:20 -07002529 &quot;a_key&quot;: { # The view model of a single quantity, e.g. &quot;800 MiB&quot;. Corresponds to
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002530 # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/generated.proto
Bu Sun Kim65020912020-05-20 12:08:20 -07002531 &quot;string&quot;: &quot;A String&quot;, # Stringified version of the quantity, e.g., &quot;800 MiB&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002532 },
2533 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002534 &quot;requests&quot;: { # Requests describes the minimum amount of compute resources required.
Dan O'Mearadd494642020-05-01 07:42:23 -07002535 # If Requests is omitted for a container, it defaults to Limits if that is
2536 # explicitly specified, otherwise to an implementation-defined value.
Bu Sun Kim65020912020-05-20 12:08:20 -07002537 # The values of the map is string form of the &#x27;quantity&#x27; k8s type:
Dan O'Mearadd494642020-05-01 07:42:23 -07002538 # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
Bu Sun Kim65020912020-05-20 12:08:20 -07002539 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002540 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002541 &quot;limits&quot;: { # Limits describes the maximum amount of compute resources allowed.
2542 # The values of the map is string form of the &#x27;quantity&#x27; k8s type:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002543 # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
Bu Sun Kim65020912020-05-20 12:08:20 -07002544 &quot;a_key&quot;: &quot;A String&quot;,
2545 },
2546 &quot;limitsInMap&quot;: { # Limits describes the maximum amount of compute resources allowed.
2547 # This is a temporary field created to migrate away from the
2548 # map&lt;string, Quantity&gt; limits field. This is done to become compliant
2549 # with k8s style API.
2550 # This field is deprecated in favor of limits field.
2551 &quot;a_key&quot;: { # The view model of a single quantity, e.g. &quot;800 MiB&quot;. Corresponds to
2552 # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/generated.proto
2553 &quot;string&quot;: &quot;A String&quot;, # Stringified version of the quantity, e.g., &quot;800 MiB&quot;.
2554 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002555 },
2556 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002557 &quot;readinessProbe&quot;: { # Probe describes a health check to be performed against a container to # Periodic probe of container service readiness.
2558 # Container will be removed from service endpoints if the probe fails.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002559 # Cannot be updated.
Bu Sun Kim65020912020-05-20 12:08:20 -07002560 # More info:
2561 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
2562 # +optional
2563 # determine whether it is alive or ready to receive traffic.
2564 &quot;failureThreshold&quot;: 42, # Minimum consecutive failures for the probe to be considered failed after
2565 # having succeeded. Defaults to 3. Minimum value is 1. +optional
2566 &quot;initialDelaySeconds&quot;: 42, # Number of seconds after the container has started before liveness probes
2567 # are initiated. More info:
2568 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
2569 # +optional
2570 &quot;timeoutSeconds&quot;: 42, # Number of seconds after which the probe times out.
2571 # Defaults to 1 second. Minimum value is 1.
2572 # More info:
2573 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
2574 # +optional
2575 &quot;handler&quot;: { # Handler defines a specific action that should be taken # The action taken to determine the health of a container
2576 &quot;exec&quot;: { # ExecAction describes a &quot;run in container&quot; action. # One and only one of the following should be specified.
2577 # Exec specifies the action to take.
2578 # +optional
2579 &quot;command&quot;: &quot;A String&quot;, # Command is the command line to execute inside the container, the working
2580 # directory for the command is root (&#x27;/&#x27;) in the container&#x27;s filesystem. The
2581 # command is simply exec&#x27;d, it is not run inside a shell, so traditional
2582 # shell instructions (&#x27;|&#x27;, etc) won&#x27;t work. To use a shell, you need to
2583 # explicitly call out to that shell. Exit status of 0 is treated as
2584 # live/healthy and non-zero is unhealthy. +optional
2585 },
2586 &quot;httpGet&quot;: { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
2587 # +optional
2588 &quot;httpHeaders&quot;: [ # Custom headers to set in the request. HTTP allows repeated headers.
2589 # +optional
2590 { # HTTPHeader describes a custom header to be used in HTTP probes
2591 &quot;value&quot;: &quot;A String&quot;, # The header field value
2592 &quot;name&quot;: &quot;A String&quot;, # The header field name
2593 },
2594 ],
2595 &quot;path&quot;: &quot;A String&quot;, # Path to access on the HTTP server.
2596 # +optional
2597 &quot;port&quot;: { # 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.
2598 # Number must be in the range 1 to 65535.
2599 # Name must be an IANA_SVC_NAME.
2600 # JSON or YAML marshalling and unmarshalling, it produces or consumes the
2601 # inner type. This allows you to have, for example, a JSON field that can
2602 # accept a name or number.
2603 &quot;type&quot;: 42, # The type of the value.
2604 &quot;intVal&quot;: 42, # The int value.
2605 &quot;strVal&quot;: &quot;A String&quot;, # The string value.
2606 },
2607 &quot;host&quot;: &quot;A String&quot;, # Host name to connect to, defaults to the pod IP. You probably want to set
2608 # &quot;Host&quot; in httpHeaders instead.
2609 # +optional
2610 &quot;scheme&quot;: &quot;A String&quot;, # Scheme to use for connecting to the host.
2611 # Defaults to HTTP.
2612 # +optional
2613 },
2614 &quot;tcpSocket&quot;: { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
2615 # TCP hooks not yet supported
2616 &quot;port&quot;: { # 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.
2617 # Number must be in the range 1 to 65535.
2618 # Name must be an IANA_SVC_NAME.
2619 # JSON or YAML marshalling and unmarshalling, it produces or consumes the
2620 # inner type. This allows you to have, for example, a JSON field that can
2621 # accept a name or number.
2622 &quot;type&quot;: 42, # The type of the value.
2623 &quot;intVal&quot;: 42, # The int value.
2624 &quot;strVal&quot;: &quot;A String&quot;, # The string value.
2625 },
2626 &quot;host&quot;: &quot;A String&quot;, # Optional: Host name to connect to, defaults to the pod IP.
2627 # +optional
2628 },
2629 },
2630 &quot;successThreshold&quot;: 42, # Minimum consecutive successes for the probe to be considered successful
2631 # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value
2632 # is 1. +optional
2633 &quot;periodSeconds&quot;: 42, # How often (in seconds) to perform the probe.
2634 # Default to 10 seconds. Minimum value is 1.
2635 # +optional
2636 },
2637 &quot;imagePullPolicy&quot;: &quot;A String&quot;, # Image pull policy.
2638 # One of Always, Never, IfNotPresent.
2639 # Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
2640 # Cannot be updated.
2641 # More info:
2642 # https://kubernetes.io/docs/concepts/containers/images#updating-images
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002643 # +optional
2644 },
2645 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002646 &quot;generation&quot;: 42, # Deprecated and not currently populated by Cloud Run. See
2647 # metadata.generation instead, which is the sequence number containing the
2648 # latest generation of the desired state.
2649 #
2650 # Read-only.
2651 &quot;servingState&quot;: &quot;A String&quot;, # ServingState holds a value describing the state the resources
2652 # are in for this Revision.
2653 # Users must not specify this when creating a revision. It is expected
2654 # that the system will manipulate this based on routability and load.
2655 #
2656 # Populated by the system.
2657 # Read-only.
2658 &quot;concurrencyModel&quot;: &quot;A String&quot;, # ConcurrencyModel specifies the desired concurrency model
2659 # (Single or Multi) for the Revision. Defaults to Multi.
2660 # Deprecated in favor of ContainerConcurrency.
2661 # +optional
2662 &quot;container&quot;: { # A single application container. # Container defines the unit of execution for this Revision.
2663 # In the context of a Revision, we disallow a number of the fields of
2664 # this Container, including: name, ports, and volumeMounts.
2665 # The runtime contract is documented here:
2666 # https://github.com/knative/serving/blob/master/docs/runtime-contract.md
2667 # This specifies both the container to run, the command to run in the container
2668 # and the arguments to supply to it.
2669 # Note that additional arguments may be supplied by the system to the container
2670 # at runtime.
2671 &quot;terminationMessagePath&quot;: &quot;A String&quot;, # Optional: Path at which the file to which the container&#x27;s termination
2672 # message will be written is mounted into the container&#x27;s filesystem. Message
2673 # written is intended to be brief final status, such as an assertion failure
2674 # message. Will be truncated by the node if greater than 4096 bytes. The
2675 # total message length across all containers will be limited to 12kb.
2676 # Defaults to /dev/termination-log.
2677 # Cannot be updated.
2678 # +optional
2679 &quot;lifecycle&quot;: { # Lifecycle describes actions that the management system should take in # Actions that the management system should take in response to container
2680 # lifecycle events. Cannot be updated. +optional
2681 # response to container lifecycle events. For the PostStart and PreStop
2682 # lifecycle handlers, management of the container blocks until the action is
2683 # complete, unless the container process fails, in which case the handler is
2684 # aborted.
2685 &quot;preStop&quot;: { # Handler defines a specific action that should be taken # PreStop is called immediately before a container is terminated.
2686 # The container is terminated after the handler completes.
2687 # The reason for termination is passed to the handler.
2688 # Regardless of the outcome of the handler, the container is eventually
2689 # terminated. Other management of the container blocks until the hook
2690 # completes. More info:
2691 # https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
2692 # +optional
2693 &quot;exec&quot;: { # ExecAction describes a &quot;run in container&quot; action. # One and only one of the following should be specified.
2694 # Exec specifies the action to take.
2695 # +optional
2696 &quot;command&quot;: &quot;A String&quot;, # Command is the command line to execute inside the container, the working
2697 # directory for the command is root (&#x27;/&#x27;) in the container&#x27;s filesystem. The
2698 # command is simply exec&#x27;d, it is not run inside a shell, so traditional
2699 # shell instructions (&#x27;|&#x27;, etc) won&#x27;t work. To use a shell, you need to
2700 # explicitly call out to that shell. Exit status of 0 is treated as
2701 # live/healthy and non-zero is unhealthy. +optional
2702 },
2703 &quot;httpGet&quot;: { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
2704 # +optional
2705 &quot;httpHeaders&quot;: [ # Custom headers to set in the request. HTTP allows repeated headers.
2706 # +optional
2707 { # HTTPHeader describes a custom header to be used in HTTP probes
2708 &quot;value&quot;: &quot;A String&quot;, # The header field value
2709 &quot;name&quot;: &quot;A String&quot;, # The header field name
2710 },
2711 ],
2712 &quot;path&quot;: &quot;A String&quot;, # Path to access on the HTTP server.
2713 # +optional
2714 &quot;port&quot;: { # 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.
2715 # Number must be in the range 1 to 65535.
2716 # Name must be an IANA_SVC_NAME.
2717 # JSON or YAML marshalling and unmarshalling, it produces or consumes the
2718 # inner type. This allows you to have, for example, a JSON field that can
2719 # accept a name or number.
2720 &quot;type&quot;: 42, # The type of the value.
2721 &quot;intVal&quot;: 42, # The int value.
2722 &quot;strVal&quot;: &quot;A String&quot;, # The string value.
2723 },
2724 &quot;host&quot;: &quot;A String&quot;, # Host name to connect to, defaults to the pod IP. You probably want to set
2725 # &quot;Host&quot; in httpHeaders instead.
2726 # +optional
2727 &quot;scheme&quot;: &quot;A String&quot;, # Scheme to use for connecting to the host.
2728 # Defaults to HTTP.
2729 # +optional
2730 },
2731 &quot;tcpSocket&quot;: { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
2732 # TCP hooks not yet supported
2733 &quot;port&quot;: { # 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.
2734 # Number must be in the range 1 to 65535.
2735 # Name must be an IANA_SVC_NAME.
2736 # JSON or YAML marshalling and unmarshalling, it produces or consumes the
2737 # inner type. This allows you to have, for example, a JSON field that can
2738 # accept a name or number.
2739 &quot;type&quot;: 42, # The type of the value.
2740 &quot;intVal&quot;: 42, # The int value.
2741 &quot;strVal&quot;: &quot;A String&quot;, # The string value.
2742 },
2743 &quot;host&quot;: &quot;A String&quot;, # Optional: Host name to connect to, defaults to the pod IP.
2744 # +optional
2745 },
2746 },
2747 &quot;postStart&quot;: { # Handler defines a specific action that should be taken # PostStart is called immediately after a container is created. If the
2748 # handler fails, the container is terminated and restarted according to its
2749 # restart policy. Other management of the container blocks until the hook
2750 # completes. More info:
2751 # https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
2752 # +optional
2753 &quot;exec&quot;: { # ExecAction describes a &quot;run in container&quot; action. # One and only one of the following should be specified.
2754 # Exec specifies the action to take.
2755 # +optional
2756 &quot;command&quot;: &quot;A String&quot;, # Command is the command line to execute inside the container, the working
2757 # directory for the command is root (&#x27;/&#x27;) in the container&#x27;s filesystem. The
2758 # command is simply exec&#x27;d, it is not run inside a shell, so traditional
2759 # shell instructions (&#x27;|&#x27;, etc) won&#x27;t work. To use a shell, you need to
2760 # explicitly call out to that shell. Exit status of 0 is treated as
2761 # live/healthy and non-zero is unhealthy. +optional
2762 },
2763 &quot;httpGet&quot;: { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
2764 # +optional
2765 &quot;httpHeaders&quot;: [ # Custom headers to set in the request. HTTP allows repeated headers.
2766 # +optional
2767 { # HTTPHeader describes a custom header to be used in HTTP probes
2768 &quot;value&quot;: &quot;A String&quot;, # The header field value
2769 &quot;name&quot;: &quot;A String&quot;, # The header field name
2770 },
2771 ],
2772 &quot;path&quot;: &quot;A String&quot;, # Path to access on the HTTP server.
2773 # +optional
2774 &quot;port&quot;: { # 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.
2775 # Number must be in the range 1 to 65535.
2776 # Name must be an IANA_SVC_NAME.
2777 # JSON or YAML marshalling and unmarshalling, it produces or consumes the
2778 # inner type. This allows you to have, for example, a JSON field that can
2779 # accept a name or number.
2780 &quot;type&quot;: 42, # The type of the value.
2781 &quot;intVal&quot;: 42, # The int value.
2782 &quot;strVal&quot;: &quot;A String&quot;, # The string value.
2783 },
2784 &quot;host&quot;: &quot;A String&quot;, # Host name to connect to, defaults to the pod IP. You probably want to set
2785 # &quot;Host&quot; in httpHeaders instead.
2786 # +optional
2787 &quot;scheme&quot;: &quot;A String&quot;, # Scheme to use for connecting to the host.
2788 # Defaults to HTTP.
2789 # +optional
2790 },
2791 &quot;tcpSocket&quot;: { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
2792 # TCP hooks not yet supported
2793 &quot;port&quot;: { # 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.
2794 # Number must be in the range 1 to 65535.
2795 # Name must be an IANA_SVC_NAME.
2796 # JSON or YAML marshalling and unmarshalling, it produces or consumes the
2797 # inner type. This allows you to have, for example, a JSON field that can
2798 # accept a name or number.
2799 &quot;type&quot;: 42, # The type of the value.
2800 &quot;intVal&quot;: 42, # The int value.
2801 &quot;strVal&quot;: &quot;A String&quot;, # The string value.
2802 },
2803 &quot;host&quot;: &quot;A String&quot;, # Optional: Host name to connect to, defaults to the pod IP.
2804 # +optional
2805 },
2806 },
2807 },
2808 &quot;stdin&quot;: True or False, # Whether this container should allocate a buffer for stdin in the container
2809 # runtime. If this is not set, reads from stdin in the container will always
2810 # result in EOF. Default is false. +optional
2811 &quot;tty&quot;: True or False, # Whether this container should allocate a TTY for itself, also requires
2812 # &#x27;stdin&#x27; to be true. Default is false. +optional
2813 &quot;volumeMounts&quot;: [ # Pod volumes to mount into the container&#x27;s filesystem.
2814 # Cannot be updated.
2815 # +optional
2816 { # VolumeMount describes a mounting of a Volume within a container.
2817 &quot;readOnly&quot;: True or False, # Mounted read-only if true, read-write otherwise (false or unspecified).
2818 # Defaults to false.
2819 # +optional
2820 &quot;mountPropagation&quot;: &quot;A String&quot;, # mountPropagation determines how mounts are propagated from the host
2821 # to container and the other way around.
2822 # When not set, MountPropagationHostToContainer is used.
2823 # This field is beta in 1.10.
2824 # +optional
2825 &quot;mountPath&quot;: &quot;A String&quot;, # Path within the container at which the volume should be mounted. Must
2826 # not contain &#x27;:&#x27;.
2827 &quot;subPath&quot;: &quot;A String&quot;, # Path within the volume from which the container&#x27;s volume should be mounted.
2828 # Defaults to &quot;&quot; (volume&#x27;s root).
2829 # +optional
2830 &quot;name&quot;: &quot;A String&quot;, # This must match the Name of a Volume.
2831 },
2832 ],
2833 &quot;volumeDevices&quot;: [ # volumeDevices is the list of block devices to be used by the container.
2834 # This is an alpha feature and may change in the future.
2835 # +optional
2836 { # volumeDevice describes a mapping of a raw block device within a container.
2837 &quot;name&quot;: &quot;A String&quot;, # name must match the name of a persistentVolumeClaim in the pod
2838 &quot;devicePath&quot;: &quot;A String&quot;, # devicePath is the path inside of the container that the device will be
2839 # mapped to.
2840 },
2841 ],
2842 &quot;ports&quot;: [ # List of ports to expose from the container. Exposing a port here gives
2843 # the system additional information about the network connections a
2844 # container uses, but is primarily informational. Not specifying a port here
2845 # DOES NOT prevent that port from being exposed. Any port which is
2846 # listening on the default &quot;0.0.0.0&quot; address inside a container will be
2847 # accessible from the network.
2848 # Cannot be updated.
2849 # +optional
2850 { # ContainerPort represents a network port in a single container.
2851 &quot;hostPort&quot;: 42, # Number of port to expose on the host.
2852 # If specified, this must be a valid port number, 0 &lt; x &lt; 65536.
2853 # If HostNetwork is specified, this must match ContainerPort.
2854 # Most containers do not need this.
2855 # +optional
2856 &quot;containerPort&quot;: 42, # Number of port to expose on the pod&#x27;s IP address.
2857 # This must be a valid port number, 0 &lt; x &lt; 65536.
2858 &quot;protocol&quot;: &quot;A String&quot;, # Protocol for port. Must be UDP or TCP.
2859 # Defaults to &quot;TCP&quot;.
2860 # +optional
2861 &quot;hostIP&quot;: &quot;A String&quot;, # What host IP to bind the external port to.
2862 # +optional
2863 &quot;name&quot;: &quot;A String&quot;, # If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
2864 # named port in a pod must have a unique name. Name for the port that can be
2865 # referred to by services.
2866 # +optional
2867 },
2868 ],
2869 &quot;workingDir&quot;: &quot;A String&quot;, # Container&#x27;s working directory.
2870 # If not specified, the container runtime&#x27;s default will be used, which
2871 # might be configured in the container image.
2872 # Cannot be updated.
2873 # +optional
2874 &quot;args&quot;: [ # Arguments to the entrypoint.
2875 # The docker image&#x27;s CMD is used if this is not provided.
2876 # Variable references $(VAR_NAME) are expanded using the container&#x27;s
2877 # environment. If a variable cannot be resolved, the reference in the input
2878 # string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
2879 # double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
2880 # regardless of whether the variable exists or not.
2881 # Cannot be updated.
2882 # More info:
2883 # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
2884 # +optional
2885 &quot;A String&quot;,
2886 ],
2887 &quot;stdinOnce&quot;: True or False, # Whether the container runtime should close the stdin channel after it has
2888 # been opened by a single attach. When stdin is true the stdin stream will
2889 # remain open across multiple attach sessions. If stdinOnce is set to true,
2890 # stdin is opened on container start, is empty until the first client
2891 # attaches to stdin, and then remains open and accepts data until the client
2892 # disconnects, at which time stdin is closed and remains closed until the
2893 # container is restarted. If this flag is false, a container processes that
2894 # reads from stdin will never receive an EOF. Default is false +optional
2895 &quot;envFrom&quot;: [ # List of sources to populate environment variables in the container.
2896 # The keys defined within a source must be a C_IDENTIFIER. All invalid keys
2897 # will be reported as an event when the container is starting. When a key
2898 # exists in multiple sources, the value associated with the last source will
2899 # take precedence. Values defined by an Env with a duplicate key will take
2900 # precedence. Cannot be updated. +optional
2901 { # EnvFromSource represents the source of a set of ConfigMaps
2902 &quot;configMapRef&quot;: { # ConfigMapEnvSource selects a ConfigMap to populate the environment # The ConfigMap to select from
2903 # +optional
2904 # variables with.
2905 #
2906 # The contents of the target ConfigMap&#x27;s Data field will represent the
2907 # key-value pairs as environment variables.
2908 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
2909 #
2910 # Cloud Run for Anthos: supported
2911 #
2912 # The ConfigMap to select from.
2913 &quot;localObjectReference&quot;: { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
2914 # directly into the message. Use the &quot;name&quot; field instead.
2915 # referenced object inside the same namespace.
2916 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
2917 # More info:
2918 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2919 },
2920 &quot;optional&quot;: True or False, # Cloud Run fully managed: not supported
2921 #
2922 # Cloud Run for Anthos: supported
2923 #
2924 # Specify whether the ConfigMap must be defined
2925 # +optional
2926 },
2927 &quot;secretRef&quot;: { # SecretEnvSource selects a Secret to populate the environment # The Secret to select from
2928 # +optional
2929 # variables with.
2930 #
2931 # The contents of the target Secret&#x27;s Data field will represent the
2932 # key-value pairs as environment variables.
2933 &quot;localObjectReference&quot;: { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
2934 # directly into the message. Use the &quot;name&quot; field instead.
2935 # referenced object inside the same namespace.
2936 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
2937 # More info:
2938 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2939 },
2940 &quot;optional&quot;: True or False, # Cloud Run fully managed: not supported
2941 #
2942 # Cloud Run for Anthos: supported
2943 #
2944 # Specify whether the Secret must be defined
2945 # +optional
2946 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
2947 #
2948 # Cloud Run for Anthos: supported
2949 #
2950 # The Secret to select from.
2951 },
2952 &quot;prefix&quot;: &quot;A String&quot;, # An optional identifier to prepend to each key in the ConfigMap. Must be a
2953 # C_IDENTIFIER. +optional
2954 },
2955 ],
2956 &quot;image&quot;: &quot;A String&quot;, # Docker image name.
2957 # More info: https://kubernetes.io/docs/concepts/containers/images
2958 &quot;name&quot;: &quot;A String&quot;, # Name of the container specified as a DNS_LABEL.
2959 # Each container must have a unique name (DNS_LABEL).
2960 # Cannot be updated.
2961 &quot;command&quot;: [ # Entrypoint array. Not executed within a shell.
2962 # The docker image&#x27;s ENTRYPOINT is used if this is not provided.
2963 # Variable references $(VAR_NAME) are expanded using the container&#x27;s
2964 # environment. If a variable cannot be resolved, the reference in the input
2965 # string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
2966 # double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
2967 # regardless of whether the variable exists or not.
2968 # Cannot be updated.
2969 # More info:
2970 # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
2971 # +optional
2972 &quot;A String&quot;,
2973 ],
2974 &quot;terminationMessagePolicy&quot;: &quot;A String&quot;, # Indicate how the termination message should be populated. File will use the
2975 # contents of terminationMessagePath to populate the container status message
2976 # on both success and failure. FallbackToLogsOnError will use the last chunk
2977 # of container log output if the termination message file is empty and the
2978 # container exited with an error. The log output is limited to 2048 bytes or
2979 # 80 lines, whichever is smaller. Defaults to File. Cannot be updated.
2980 # +optional
2981 &quot;securityContext&quot;: { # SecurityContext holds security configuration that will be applied to a # Security options the pod should run with.
2982 # More info: https://kubernetes.io/docs/concepts/policy/security-context/
2983 # More info:
2984 # https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
2985 # +optional
2986 # container. Some fields are present in both SecurityContext and
2987 # PodSecurityContext. When both are set, the values in SecurityContext take
2988 # precedence.
2989 &quot;capabilities&quot;: { # Adds and removes POSIX capabilities from running containers. # The capabilities to add/drop when running containers.
2990 # Defaults to the default set of capabilities granted by the container
2991 # runtime. +optional
2992 &quot;add&quot;: [ # Added capabilities
2993 # +optional
2994 &quot;A String&quot;,
2995 ],
2996 &quot;drop&quot;: [ # Removed capabilities
2997 # +optional
2998 &quot;A String&quot;,
2999 ],
3000 },
3001 &quot;runAsNonRoot&quot;: True or False, # Indicates that the container must run as a non-root user.
3002 # If true, the Kubelet will validate the image at runtime to ensure that it
3003 # does not run as UID 0 (root) and fail to start the container if it does.
3004 # If unset or false, no such validation will be performed.
3005 # May also be set in PodSecurityContext. If set in both SecurityContext and
3006 # PodSecurityContext, the value specified in SecurityContext takes
3007 # precedence. +optional
3008 &quot;runAsGroup&quot;: 42, # The GID to run the entrypoint of the container process.
3009 # Uses runtime default if unset.
3010 # May also be set in PodSecurityContext. If set in both SecurityContext and
3011 # PodSecurityContext, the value specified in SecurityContext takes
3012 # precedence. +optional
3013 &quot;privileged&quot;: True or False, # Run container in privileged mode.
3014 # Processes in privileged containers are essentially equivalent to root on
3015 # the host. Defaults to false. +optional
3016 &quot;allowPrivilegeEscalation&quot;: True or False, # AllowPrivilegeEscalation controls whether a process can gain more
3017 # privileges than its parent process. This bool directly controls if
3018 # the no_new_privs flag will be set on the container process.
3019 # AllowPrivilegeEscalation is true always when the container is:
3020 # 1) run as Privileged
3021 # 2) has CAP_SYS_ADMIN
3022 # +optional
3023 &quot;seLinuxOptions&quot;: { # SELinuxOptions are the labels to be applied to the container # The SELinux context to be applied to the container.
3024 # If unspecified, the container runtime will allocate a random SELinux
3025 # context for each container. May also be set in PodSecurityContext. If set
3026 # in both SecurityContext and PodSecurityContext, the value specified in
3027 # SecurityContext takes precedence. +optional
3028 &quot;role&quot;: &quot;A String&quot;, # Role is a SELinux role label that applies to the container.
3029 # +optional
3030 &quot;level&quot;: &quot;A String&quot;, # Level is SELinux level label that applies to the container.
3031 # +optional
3032 &quot;user&quot;: &quot;A String&quot;, # User is a SELinux user label that applies to the container.
3033 # +optional
3034 &quot;type&quot;: &quot;A String&quot;, # Type is a SELinux type label that applies to the container.
3035 # +optional
3036 },
3037 &quot;readOnlyRootFilesystem&quot;: True or False, # Whether this container has a read-only root filesystem.
3038 # Default is false.
3039 # +optional
3040 &quot;runAsUser&quot;: 42, # The UID to run the entrypoint of the container process.
3041 # Defaults to user specified in image metadata if unspecified.
3042 # May also be set in PodSecurityContext. If set in both SecurityContext and
3043 # PodSecurityContext, the value specified in SecurityContext takes
3044 # precedence. +optional
3045 },
3046 &quot;livenessProbe&quot;: { # Probe describes a health check to be performed against a container to # Periodic probe of container liveness.
3047 # Container will be restarted if the probe fails.
3048 # Cannot be updated.
3049 # More info:
3050 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
3051 # +optional
3052 # determine whether it is alive or ready to receive traffic.
3053 &quot;failureThreshold&quot;: 42, # Minimum consecutive failures for the probe to be considered failed after
3054 # having succeeded. Defaults to 3. Minimum value is 1. +optional
3055 &quot;initialDelaySeconds&quot;: 42, # Number of seconds after the container has started before liveness probes
3056 # are initiated. More info:
3057 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
3058 # +optional
3059 &quot;timeoutSeconds&quot;: 42, # Number of seconds after which the probe times out.
3060 # Defaults to 1 second. Minimum value is 1.
3061 # More info:
3062 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
3063 # +optional
3064 &quot;handler&quot;: { # Handler defines a specific action that should be taken # The action taken to determine the health of a container
3065 &quot;exec&quot;: { # ExecAction describes a &quot;run in container&quot; action. # One and only one of the following should be specified.
3066 # Exec specifies the action to take.
3067 # +optional
3068 &quot;command&quot;: &quot;A String&quot;, # Command is the command line to execute inside the container, the working
3069 # directory for the command is root (&#x27;/&#x27;) in the container&#x27;s filesystem. The
3070 # command is simply exec&#x27;d, it is not run inside a shell, so traditional
3071 # shell instructions (&#x27;|&#x27;, etc) won&#x27;t work. To use a shell, you need to
3072 # explicitly call out to that shell. Exit status of 0 is treated as
3073 # live/healthy and non-zero is unhealthy. +optional
3074 },
3075 &quot;httpGet&quot;: { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
3076 # +optional
3077 &quot;httpHeaders&quot;: [ # Custom headers to set in the request. HTTP allows repeated headers.
3078 # +optional
3079 { # HTTPHeader describes a custom header to be used in HTTP probes
3080 &quot;value&quot;: &quot;A String&quot;, # The header field value
3081 &quot;name&quot;: &quot;A String&quot;, # The header field name
3082 },
3083 ],
3084 &quot;path&quot;: &quot;A String&quot;, # Path to access on the HTTP server.
3085 # +optional
3086 &quot;port&quot;: { # 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.
3087 # Number must be in the range 1 to 65535.
3088 # Name must be an IANA_SVC_NAME.
3089 # JSON or YAML marshalling and unmarshalling, it produces or consumes the
3090 # inner type. This allows you to have, for example, a JSON field that can
3091 # accept a name or number.
3092 &quot;type&quot;: 42, # The type of the value.
3093 &quot;intVal&quot;: 42, # The int value.
3094 &quot;strVal&quot;: &quot;A String&quot;, # The string value.
3095 },
3096 &quot;host&quot;: &quot;A String&quot;, # Host name to connect to, defaults to the pod IP. You probably want to set
3097 # &quot;Host&quot; in httpHeaders instead.
3098 # +optional
3099 &quot;scheme&quot;: &quot;A String&quot;, # Scheme to use for connecting to the host.
3100 # Defaults to HTTP.
3101 # +optional
3102 },
3103 &quot;tcpSocket&quot;: { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
3104 # TCP hooks not yet supported
3105 &quot;port&quot;: { # 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.
3106 # Number must be in the range 1 to 65535.
3107 # Name must be an IANA_SVC_NAME.
3108 # JSON or YAML marshalling and unmarshalling, it produces or consumes the
3109 # inner type. This allows you to have, for example, a JSON field that can
3110 # accept a name or number.
3111 &quot;type&quot;: 42, # The type of the value.
3112 &quot;intVal&quot;: 42, # The int value.
3113 &quot;strVal&quot;: &quot;A String&quot;, # The string value.
3114 },
3115 &quot;host&quot;: &quot;A String&quot;, # Optional: Host name to connect to, defaults to the pod IP.
3116 # +optional
3117 },
3118 },
3119 &quot;successThreshold&quot;: 42, # Minimum consecutive successes for the probe to be considered successful
3120 # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value
3121 # is 1. +optional
3122 &quot;periodSeconds&quot;: 42, # How often (in seconds) to perform the probe.
3123 # Default to 10 seconds. Minimum value is 1.
3124 # +optional
3125 },
3126 &quot;env&quot;: [ # List of environment variables to set in the container.
3127 # Cannot be updated.
3128 # +optional
3129 { # EnvVar represents an environment variable present in a Container.
3130 &quot;value&quot;: &quot;A String&quot;, # Variable references $(VAR_NAME) are expanded
3131 # using the previous defined environment variables in the container and
3132 # any route environment variables. If a variable cannot be resolved,
3133 # the reference in the input string will be unchanged. The $(VAR_NAME)
3134 # syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped
3135 # references will never be expanded, regardless of whether the variable
3136 # exists or not.
3137 # Defaults to &quot;&quot;.
3138 # +optional
3139 &quot;name&quot;: &quot;A String&quot;, # Name of the environment variable. Must be a C_IDENTIFIER.
3140 &quot;valueFrom&quot;: { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported
3141 #
3142 # Cloud Run on GKE: supported
3143 #
3144 # Source for the environment variable&#x27;s value. Cannot be used if value is not
3145 # empty. +optional
3146 #
3147 # Cloud Run on GKE: supported
3148 #
3149 # EnvVarSource represents a source for the value of an EnvVar.
3150 &quot;configMapKeyRef&quot;: { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported
3151 #
3152 # Cloud Run on GKE: supported
3153 #
3154 # Selects a key of a ConfigMap.
3155 # +optional
3156 #
3157 # Cloud Run on GKE: supported
3158 #
3159 # Selects a key from a ConfigMap.
3160 &quot;optional&quot;: True or False, # Cloud Run fully managed: not supported
3161 #
3162 # Cloud Run on GKE: supported
3163 #
3164 # Specify whether the ConfigMap or its key must be defined
3165 # +optional
3166 &quot;key&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
3167 #
3168 # Cloud Run on GKE: supported
3169 #
3170 # The key to select.
3171 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
3172 #
3173 # Cloud Run on GKE: supported
3174 #
3175 # The ConfigMap to select from.
3176 &quot;localObjectReference&quot;: { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
3177 # directly into the message. Use the &quot;name&quot; field instead.
3178 # referenced object inside the same namespace.
3179 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
3180 # More info:
3181 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
3182 },
3183 },
3184 &quot;secretKeyRef&quot;: { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported
3185 #
3186 # Cloud Run on GKE: supported
3187 #
3188 # Selects a key of a secret in the pod&#x27;s namespace
3189 # +optional
3190 #
3191 # Cloud Run on GKE: supported
3192 #
3193 # SecretKeySelector selects a key of a Secret.
3194 &quot;localObjectReference&quot;: { # LocalObjectReference contains enough information to let you locate the # This field should not be used directly as it is meant to be inlined
3195 # directly into the message. Use the &quot;name&quot; field instead.
3196 # referenced object inside the same namespace.
3197 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
3198 # More info:
3199 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
3200 },
3201 &quot;optional&quot;: True or False, # Cloud Run fully managed: not supported
3202 #
3203 # Cloud Run on GKE: supported
3204 #
3205 # Specify whether the Secret or its key must be defined
3206 # +optional
3207 &quot;key&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
3208 #
3209 # Cloud Run on GKE: supported
3210 #
3211 # The key of the secret to select from. Must be a valid secret key.
3212 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
3213 #
3214 # Cloud Run on GKE: supported
3215 #
3216 # The name of the secret in the pod&#x27;s namespace to select from.
3217 },
3218 },
3219 },
3220 ],
3221 &quot;resources&quot;: { # ResourceRequirements describes the compute resource requirements. # Compute Resources required by this container.
3222 # Cannot be updated.
3223 # More info:
3224 # https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
3225 # +optional
3226 &quot;requestsInMap&quot;: { # Requests describes the minimum amount of compute resources required.
3227 # If Requests is omitted for a container, it defaults to Limits if that is
3228 # explicitly specified, otherwise to an implementation-defined value.
3229 # This is a temporary field created to migrate away from the
3230 # map&lt;string, Quantity&gt; requests field. This is done to become compliant
3231 # with k8s style API.
3232 # This field is deprecated in favor of requests field.
3233 &quot;a_key&quot;: { # The view model of a single quantity, e.g. &quot;800 MiB&quot;. Corresponds to
3234 # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/generated.proto
3235 &quot;string&quot;: &quot;A String&quot;, # Stringified version of the quantity, e.g., &quot;800 MiB&quot;.
3236 },
3237 },
3238 &quot;requests&quot;: { # Requests describes the minimum amount of compute resources required.
3239 # If Requests is omitted for a container, it defaults to Limits if that is
3240 # explicitly specified, otherwise to an implementation-defined value.
3241 # The values of the map is string form of the &#x27;quantity&#x27; k8s type:
3242 # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
3243 &quot;a_key&quot;: &quot;A String&quot;,
3244 },
3245 &quot;limits&quot;: { # Limits describes the maximum amount of compute resources allowed.
3246 # The values of the map is string form of the &#x27;quantity&#x27; k8s type:
3247 # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
3248 &quot;a_key&quot;: &quot;A String&quot;,
3249 },
3250 &quot;limitsInMap&quot;: { # Limits describes the maximum amount of compute resources allowed.
3251 # This is a temporary field created to migrate away from the
3252 # map&lt;string, Quantity&gt; limits field. This is done to become compliant
3253 # with k8s style API.
3254 # This field is deprecated in favor of limits field.
3255 &quot;a_key&quot;: { # The view model of a single quantity, e.g. &quot;800 MiB&quot;. Corresponds to
3256 # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/generated.proto
3257 &quot;string&quot;: &quot;A String&quot;, # Stringified version of the quantity, e.g., &quot;800 MiB&quot;.
3258 },
3259 },
3260 },
3261 &quot;readinessProbe&quot;: { # Probe describes a health check to be performed against a container to # Periodic probe of container service readiness.
3262 # Container will be removed from service endpoints if the probe fails.
3263 # Cannot be updated.
3264 # More info:
3265 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
3266 # +optional
3267 # determine whether it is alive or ready to receive traffic.
3268 &quot;failureThreshold&quot;: 42, # Minimum consecutive failures for the probe to be considered failed after
3269 # having succeeded. Defaults to 3. Minimum value is 1. +optional
3270 &quot;initialDelaySeconds&quot;: 42, # Number of seconds after the container has started before liveness probes
3271 # are initiated. More info:
3272 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
3273 # +optional
3274 &quot;timeoutSeconds&quot;: 42, # Number of seconds after which the probe times out.
3275 # Defaults to 1 second. Minimum value is 1.
3276 # More info:
3277 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
3278 # +optional
3279 &quot;handler&quot;: { # Handler defines a specific action that should be taken # The action taken to determine the health of a container
3280 &quot;exec&quot;: { # ExecAction describes a &quot;run in container&quot; action. # One and only one of the following should be specified.
3281 # Exec specifies the action to take.
3282 # +optional
3283 &quot;command&quot;: &quot;A String&quot;, # Command is the command line to execute inside the container, the working
3284 # directory for the command is root (&#x27;/&#x27;) in the container&#x27;s filesystem. The
3285 # command is simply exec&#x27;d, it is not run inside a shell, so traditional
3286 # shell instructions (&#x27;|&#x27;, etc) won&#x27;t work. To use a shell, you need to
3287 # explicitly call out to that shell. Exit status of 0 is treated as
3288 # live/healthy and non-zero is unhealthy. +optional
3289 },
3290 &quot;httpGet&quot;: { # HTTPGetAction describes an action based on HTTP Get requests. # HTTPGet specifies the http request to perform.
3291 # +optional
3292 &quot;httpHeaders&quot;: [ # Custom headers to set in the request. HTTP allows repeated headers.
3293 # +optional
3294 { # HTTPHeader describes a custom header to be used in HTTP probes
3295 &quot;value&quot;: &quot;A String&quot;, # The header field value
3296 &quot;name&quot;: &quot;A String&quot;, # The header field name
3297 },
3298 ],
3299 &quot;path&quot;: &quot;A String&quot;, # Path to access on the HTTP server.
3300 # +optional
3301 &quot;port&quot;: { # 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.
3302 # Number must be in the range 1 to 65535.
3303 # Name must be an IANA_SVC_NAME.
3304 # JSON or YAML marshalling and unmarshalling, it produces or consumes the
3305 # inner type. This allows you to have, for example, a JSON field that can
3306 # accept a name or number.
3307 &quot;type&quot;: 42, # The type of the value.
3308 &quot;intVal&quot;: 42, # The int value.
3309 &quot;strVal&quot;: &quot;A String&quot;, # The string value.
3310 },
3311 &quot;host&quot;: &quot;A String&quot;, # Host name to connect to, defaults to the pod IP. You probably want to set
3312 # &quot;Host&quot; in httpHeaders instead.
3313 # +optional
3314 &quot;scheme&quot;: &quot;A String&quot;, # Scheme to use for connecting to the host.
3315 # Defaults to HTTP.
3316 # +optional
3317 },
3318 &quot;tcpSocket&quot;: { # TCPSocketAction describes an action based on opening a socket # TCPSocket specifies an action involving a TCP port.
3319 # TCP hooks not yet supported
3320 &quot;port&quot;: { # 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.
3321 # Number must be in the range 1 to 65535.
3322 # Name must be an IANA_SVC_NAME.
3323 # JSON or YAML marshalling and unmarshalling, it produces or consumes the
3324 # inner type. This allows you to have, for example, a JSON field that can
3325 # accept a name or number.
3326 &quot;type&quot;: 42, # The type of the value.
3327 &quot;intVal&quot;: 42, # The int value.
3328 &quot;strVal&quot;: &quot;A String&quot;, # The string value.
3329 },
3330 &quot;host&quot;: &quot;A String&quot;, # Optional: Host name to connect to, defaults to the pod IP.
3331 # +optional
3332 },
3333 },
3334 &quot;successThreshold&quot;: 42, # Minimum consecutive successes for the probe to be considered successful
3335 # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value
3336 # is 1. +optional
3337 &quot;periodSeconds&quot;: 42, # How often (in seconds) to perform the probe.
3338 # Default to 10 seconds. Minimum value is 1.
3339 # +optional
3340 },
3341 &quot;imagePullPolicy&quot;: &quot;A String&quot;, # Image pull policy.
3342 # One of Always, Never, IfNotPresent.
3343 # Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
3344 # Cannot be updated.
3345 # More info:
3346 # https://kubernetes.io/docs/concepts/containers/images#updating-images
3347 # +optional
3348 },
3349 &quot;timeoutSeconds&quot;: 42, # TimeoutSeconds holds the max duration the instance is allowed for
3350 # responding to a request.
3351 # Not currently used by Cloud Run.
3352 &quot;volumes&quot;: [
3353 { # Volume represents a named volume in a container.
3354 &quot;configMap&quot;: { # Adapts a ConfigMap into a volume.
3355 # The contents of the target ConfigMap&#x27;s Data field will be presented in a
3356 # volume as files using the keys in the Data field as the file names, unless
3357 # the items element is populated with specific mappings of keys to paths.
3358 &quot;name&quot;: &quot;A String&quot;, # Name of the config.
3359 &quot;defaultMode&quot;: 42, # Mode bits to use on created files by default. Must be a value between 0 and
3360 # 0777. Defaults to 0644. Directories within the path are not affected by
3361 # this setting. This might be in conflict with other options that affect the
3362 # file mode, like fsGroup, and the result can be other mode bits set.
3363 &quot;items&quot;: [ # If unspecified, each key-value pair in the Data field of the referenced
3364 # Secret will be projected into the volume as a file whose name is the
3365 # key and content is the value. If specified, the listed keys will be
3366 # projected into the specified paths, and unlisted keys will not be
3367 # present. If a key is specified which is not present in the Secret,
3368 # the volume setup will error unless it is marked optional.
3369 { # Maps a string key to a path within a volume.
3370 &quot;key&quot;: &quot;A String&quot;, # The key to project.
3371 &quot;path&quot;: &quot;A String&quot;, # The relative path of the file to map the key to.
3372 # May not be an absolute path.
3373 # May not contain the path element &#x27;..&#x27;.
3374 # May not start with the string &#x27;..&#x27;.
3375 &quot;mode&quot;: 42, # Mode bits to use on this file, must be a value between 0 and 0777. If not
3376 # specified, the volume defaultMode will be used. This might be in conflict
3377 # with other options that affect the file mode, like fsGroup, and the result
3378 # can be other mode bits set. +optional
3379 },
3380 ],
3381 &quot;optional&quot;: True or False, # Specify whether the Secret or its keys must be defined.
3382 },
3383 &quot;name&quot;: &quot;A String&quot;, # Volume&#x27;s name.
3384 &quot;secret&quot;: { # The contents of the target Secret&#x27;s Data field will be presented in a volume
3385 # as files using the keys in the Data field as the file names.
3386 &quot;optional&quot;: True or False, # Specify whether the Secret or its keys must be defined.
3387 &quot;defaultMode&quot;: 42, # Mode bits to use on created files by default. Must be a value between 0 and
3388 # 0777. Defaults to 0644. Directories within the path are not affected by
3389 # this setting. This might be in conflict with other options that affect the
3390 # file mode, like fsGroup, and the result can be other mode bits set.
3391 &quot;secretName&quot;: &quot;A String&quot;, # Name of the secret in the container&#x27;s namespace to use.
3392 &quot;items&quot;: [ # If unspecified, each key-value pair in the Data field of the referenced
3393 # Secret will be projected into the volume as a file whose name is the
3394 # key and content is the value. If specified, the listed keys will be
3395 # projected into the specified paths, and unlisted keys will not be
3396 # present. If a key is specified which is not present in the Secret,
3397 # the volume setup will error unless it is marked optional.
3398 { # Maps a string key to a path within a volume.
3399 &quot;key&quot;: &quot;A String&quot;, # The key to project.
3400 &quot;path&quot;: &quot;A String&quot;, # The relative path of the file to map the key to.
3401 # May not be an absolute path.
3402 # May not contain the path element &#x27;..&#x27;.
3403 # May not start with the string &#x27;..&#x27;.
3404 &quot;mode&quot;: 42, # Mode bits to use on this file, must be a value between 0 and 0777. If not
3405 # specified, the volume defaultMode will be used. This might be in conflict
3406 # with other options that affect the file mode, like fsGroup, and the result
3407 # can be other mode bits set. +optional
3408 },
3409 ],
3410 },
3411 },
3412 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003413 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003414 &quot;kind&quot;: &quot;A String&quot;, # The kind of this resource, in this case &quot;Revision&quot;.
3415 &quot;metadata&quot;: { # ObjectMeta is metadata that all persisted resources must have, which includes # Metadata associated with this Revision, including name, namespace, labels,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003416 # and annotations.
3417 # all objects users must create.
Bu Sun Kim65020912020-05-20 12:08:20 -07003418 &quot;annotations&quot;: { # Annotations is an unstructured key value map stored with a resource that
3419 # may be set by external tools to store and retrieve arbitrary metadata. They
3420 # are not queryable and should be preserved when modifying objects. More
3421 # info: http://kubernetes.io/docs/user-guide/annotations +optional
3422 &quot;a_key&quot;: &quot;A String&quot;,
3423 },
3424 &quot;generateName&quot;: &quot;A String&quot;, # Not currently supported by Cloud Run.
3425 #
3426 # GenerateName is an optional prefix, used by the server, to generate a
3427 # unique name ONLY IF the Name field has not been provided. If this field is
3428 # used, the name returned to the client will be different than the name
3429 # passed. This value will also be combined with a unique suffix. The provided
3430 # value has the same validation rules as the Name field, and may be truncated
3431 # by the length of the suffix required to make the value unique on the
3432 # server.
3433 #
3434 # If this field is specified and the generated name exists, the server will
3435 # NOT return a 409 - instead, it will either return 201 Created or 500 with
3436 # Reason ServerTimeout indicating a unique name could not be found in the
3437 # time allotted, and the client should retry (optionally after the time
3438 # indicated in the Retry-After header).
3439 #
3440 # Applied only if Name is not specified.
3441 # More info:
3442 # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003443 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07003444 # string generateName = 2;
3445 &quot;name&quot;: &quot;A String&quot;, # Name must be unique within a namespace, within a Cloud Run region.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003446 # Is required when creating
3447 # resources, although some resources may allow a client to request the
3448 # generation of an appropriate name automatically. Name is primarily intended
3449 # for creation idempotence and configuration definition. Cannot be updated.
3450 # More info: http://kubernetes.io/docs/user-guide/identifiers#names
3451 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07003452 &quot;clusterName&quot;: &quot;A String&quot;, # Not currently supported by Cloud Run.
3453 #
3454 # The name of the cluster which the object belongs to.
3455 # This is used to distinguish resources with same name and namespace in
3456 # different clusters. This field is not set anywhere right now and apiserver
3457 # is going to ignore it if set in create or update request. +optional
3458 &quot;deletionGracePeriodSeconds&quot;: 42, # Not currently supported by Cloud Run.
3459 #
3460 # Number of seconds allowed for this object to gracefully terminate before
3461 # it will be removed from the system. Only set when deletionTimestamp is also
3462 # set. May only be shortened. Read-only. +optional
3463 &quot;finalizers&quot;: [ # Not currently supported by Cloud Run.
3464 #
3465 # Must be empty before the object is deleted from the registry. Each entry
3466 # is an identifier for the responsible component that will remove the entry
3467 # from the list. If the deletionTimestamp of the object is non-nil, entries
3468 # in this list can only be removed.
3469 # +optional
3470 # +patchStrategy=merge
3471 &quot;A String&quot;,
3472 ],
3473 &quot;deletionTimestamp&quot;: &quot;A String&quot;, # DeletionTimestamp is RFC 3339 date and time at which this resource will be
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003474 # deleted. This field is set by the server when a graceful deletion is
3475 # requested by the user, and is not directly settable by a client. The
3476 # resource is expected to be deleted (no longer visible from resource lists,
3477 # and not reachable by name) after the time in this field, once the
3478 # finalizers list is empty. As long as the finalizers list contains items,
3479 # deletion is blocked. Once the deletionTimestamp is set, this value may not
3480 # be unset or be set further into the future, although it may be shortened or
3481 # the resource may be deleted prior to this time. For example, a user may
3482 # request that a pod is deleted in 30 seconds. The Kubelet will react by
3483 # sending a graceful termination signal to the containers in the pod. After
3484 # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL)
3485 # to the container and after cleanup, remove the pod from the API. In the
3486 # presence of network partitions, this object may still exist after this
3487 # timestamp, until an administrator or automated process can determine the
3488 # resource is fully terminated.
3489 # If not set, graceful deletion of the object has not been requested.
3490 #
3491 # Populated by the system when a graceful deletion is requested.
3492 # Read-only.
3493 # More info:
3494 # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
3495 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07003496 &quot;ownerReferences&quot;: [ # List of objects that own this object. If ALL objects in the list have
3497 # been deleted, this object will be garbage collected.
3498 # +optional
3499 { # OwnerReference contains enough information to let you identify an owning
3500 # object. Currently, an owning object must be in the same namespace, so there
3501 # is no namespace field.
3502 &quot;apiVersion&quot;: &quot;A String&quot;, # API version of the referent.
3503 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
3504 # More info: http://kubernetes.io/docs/user-guide/identifiers#names
3505 &quot;uid&quot;: &quot;A String&quot;, # UID of the referent.
3506 # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
3507 &quot;controller&quot;: True or False, # If true, this reference points to the managing controller.
3508 # +optional
3509 &quot;kind&quot;: &quot;A String&quot;, # Kind of the referent.
3510 # More info:
3511 # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
3512 &quot;blockOwnerDeletion&quot;: True or False, # If true, AND if the owner has the &quot;foregroundDeletion&quot; finalizer, then
3513 # the owner cannot be deleted from the key-value store until this
3514 # reference is removed.
3515 # Defaults to false.
3516 # To set this field, a user needs &quot;delete&quot; permission of the owner,
3517 # otherwise 422 (Unprocessable Entity) will be returned.
3518 # +optional
3519 },
3520 ],
3521 &quot;creationTimestamp&quot;: &quot;A String&quot;, # CreationTimestamp is a timestamp representing the server time when this
3522 # object was created. It is not guaranteed to be set in happens-before order
3523 # across separate operations. Clients may not set this value. It is
3524 # represented in RFC3339 form and is in UTC.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003525 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003526 # Populated by the system.
3527 # Read-only.
3528 # Null for lists.
3529 # More info:
3530 # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
3531 # +optional
3532 &quot;labels&quot;: { # Map of string keys and values that can be used to organize and categorize
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003533 # (scope and select) objects. May match selectors of replication controllers
3534 # and routes.
3535 # More info: http://kubernetes.io/docs/user-guide/labels
3536 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07003537 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003538 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003539 &quot;generation&quot;: 42, # A sequence number representing a specific generation of the desired state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003540 # Populated by the system. Read-only.
3541 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07003542 &quot;resourceVersion&quot;: &quot;A String&quot;, # An opaque value that represents the internal version of this object that
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003543 # can be used by clients to determine when objects have changed. May be used
3544 # for optimistic concurrency, change detection, and the watch operation on a
3545 # resource or set of resources. Clients must treat these values as opaque and
3546 # passed unmodified back to the server. They may only be valid for a
3547 # particular resource or set of resources.
3548 #
3549 # Populated by the system.
3550 # Read-only.
3551 # Value must be treated as opaque by clients and .
3552 # More info:
3553 # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
3554 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07003555 &quot;uid&quot;: &quot;A String&quot;, # UID is the unique in time and space value for this object. It is typically
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003556 # generated by the server on successful creation of a resource and is not
3557 # allowed to change on PUT operations.
3558 #
3559 # Populated by the system.
3560 # Read-only.
3561 # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
3562 # +optional
Bu Sun Kim65020912020-05-20 12:08:20 -07003563 &quot;selfLink&quot;: &quot;A String&quot;, # SelfLink is a URL representing this object.
3564 # Populated by the system.
3565 # Read-only.
3566 # +optional
3567 # string selfLink = 4;
3568 &quot;namespace&quot;: &quot;A String&quot;, # Namespace defines the space within each name must be unique, within a
3569 # Cloud Run region. In Cloud Run the namespace must be equal to either the
3570 # project ID or project number.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003571 },
3572 },
3573 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003574 }</pre>
3575</div>
3576
3577</body></html>