blob: 1da75f2bd5b7ee012fe4e9a608f638844c6ff2ed [file] [log] [blame]
Bu Sun Kim65020912020-05-20 12:08:20 -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_v1.html">Cloud Run API</a> . <a href="run_v1.namespaces.html">namespaces</a> . <a href="run_v1.namespaces.revisions.html">revisions</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#delete">delete(name, apiVersion=None, propagationPolicy=None, kind=None, x__xgafv=None)</a></code></p>
79<p class="firstline">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">Get information about a revision.</p>
83<p class="toc_element">
84 <code><a href="#list">list(parent, watch=None, labelSelector=None, resourceVersion=None, includeUninitialized=None, fieldSelector=None, continue=None, limit=None, x__xgafv=None)</a></code></p>
85<p class="firstline">List revisions.</p>
86<h3>Method Details</h3>
87<div class="method">
88 <code class="details" id="delete">delete(name, apiVersion=None, propagationPolicy=None, kind=None, x__xgafv=None)</code>
89 <pre>Delete a revision.
90
91Args:
92 name: string, The name of the revision to delete.
93For Cloud Run (fully managed), replace {namespace_id} with the project ID
94or number. (required)
95 apiVersion: string, Cloud Run currently ignores this parameter.
96 propagationPolicy: string, Specifies the propagation policy of delete. Cloud Run currently ignores
97this setting, and deletes in the background. Please see
98kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for
99more information.
100 kind: string, Cloud Run currently ignores this parameter.
101 x__xgafv: string, V1 error format.
102 Allowed values
103 1 - v1 error format
104 2 - v2 error format
105
106Returns:
107 An object of the form:
108
109 { # Status is a return value for calls that don&#x27;t return other objects
110 &quot;metadata&quot;: { # ListMeta describes metadata that synthetic resources must have, including # Standard list metadata.
111 # More info:
112 # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
113 # +optional
114 # lists and various status objects. A resource may have only one of
115 # {ObjectMeta, ListMeta}.
116 &quot;resourceVersion&quot;: &quot;A String&quot;, # String that identifies the server&#x27;s internal version of this object that
117 # can be used by clients to determine when objects have changed. Value must
118 # be treated as opaque by clients and passed unmodified back to the server.
119 # Populated by the system.
120 # Read-only.
121 # More info:
122 # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
123 # +optional
124 &quot;continue&quot;: &quot;A String&quot;, # continue may be set if the user set a limit on the number of items
125 # returned, and indicates that the server has more data available. The value
126 # is opaque and may be used to issue another request to the endpoint that
127 # served this list to retrieve the next set of available objects. Continuing
128 # a list may not be possible if the server configuration has changed or more
129 # than a few minutes have passed. The resourceVersion field returned when
130 # using this continue value will be identical to the value in the first
131 # response.
132 &quot;selfLink&quot;: &quot;A String&quot;, # SelfLink is a URL representing this object.
133 # Populated by the system.
134 # Read-only.
135 # +optional
136 },
137 &quot;code&quot;: 42, # Suggested HTTP return code for this status, 0 if not set.
138 # +optional
139 &quot;message&quot;: &quot;A String&quot;, # A human-readable description of the status of this operation.
140 # +optional
141 &quot;status&quot;: &quot;A String&quot;, # Status of the operation.
142 # One of: &quot;Success&quot; or &quot;Failure&quot;.
143 # More info:
144 # https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
145 # +optional
146 &quot;details&quot;: { # StatusDetails is a set of additional properties that MAY be set by the # Extended data associated with the reason. Each reason may define its
147 # own extended details. This field is optional and the data returned
148 # is not guaranteed to conform to any schema except that defined by
149 # the reason type.
150 # +optional
151 # server to provide additional information about a response. The Reason
152 # field of a Status object defines what attributes will be set. Clients
153 # must ignore fields that do not match the defined type of each attribute,
154 # and should assume that any attribute may be empty, invalid, or under
155 # defined.
156 &quot;name&quot;: &quot;A String&quot;, # The name attribute of the resource associated with the status StatusReason
157 # (when there is a single name which can be described).
158 # +optional
159 &quot;uid&quot;: &quot;A String&quot;, # UID of the resource.
160 # (when there is a single resource which can be described).
161 # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
162 # +optional
163 &quot;group&quot;: &quot;A String&quot;, # The group attribute of the resource associated with the status
164 # StatusReason. +optional
165 &quot;causes&quot;: [ # The Causes array includes more details associated with the StatusReason
166 # failure. Not all StatusReasons may provide detailed causes.
167 # +optional
168 { # StatusCause provides more information about an api.Status failure, including
169 # cases when multiple errors are encountered.
170 &quot;message&quot;: &quot;A String&quot;, # A human-readable description of the cause of the error. This field may be
171 # presented as-is to a reader.
172 # +optional
173 &quot;reason&quot;: &quot;A String&quot;, # A machine-readable description of the cause of the error. If this value is
174 # empty there is no information available.
175 # +optional
176 &quot;field&quot;: &quot;A String&quot;, # The field of the resource that has caused this error, as named by its JSON
177 # serialization. May include dot and postfix notation for nested attributes.
178 # Arrays are zero-indexed. Fields may appear more than once in an array of
179 # causes due to fields having multiple errors.
180 # Optional.
181 #
182 # Examples:
183 # &quot;name&quot; - the field &quot;name&quot; on the current resource
184 # &quot;items[0].name&quot; - the field &quot;name&quot; on the first array entry in &quot;items&quot;
185 # +optional
186 },
187 ],
188 &quot;kind&quot;: &quot;A String&quot;, # The kind attribute of the resource associated with the status StatusReason.
189 # On some operations may differ from the requested resource Kind.
190 # More info:
191 # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
192 # +optional
193 &quot;retryAfterSeconds&quot;: 42, # If specified, the time in seconds before the operation should be retried.
194 # Some errors may indicate the client must take an alternate action - for
195 # those errors this field may indicate how long to wait before taking the
196 # alternate action. +optional
197 },
198 &quot;reason&quot;: &quot;A String&quot;, # A machine-readable description of why this operation is in the
199 # &quot;Failure&quot; status. If this value is empty there
200 # is no information available. A Reason clarifies an HTTP status
201 # code but does not override it.
202 # +optional
203 }</pre>
204</div>
205
206<div class="method">
207 <code class="details" id="get">get(name, x__xgafv=None)</code>
208 <pre>Get information about a revision.
209
210Args:
211 name: string, The name of the revision to retrieve.
212For Cloud Run (fully managed), replace {namespace_id} with the project ID
213or number. (required)
214 x__xgafv: string, V1 error format.
215 Allowed values
216 1 - v1 error format
217 2 - v2 error format
218
219Returns:
220 An object of the form:
221
222 { # Revision is an immutable snapshot of code and configuration. A revision
223 # references a container image. Revisions are created by updates to a
224 # Configuration.
225 #
226 # See also:
227 # https://github.com/knative/serving/blob/master/docs/spec/overview.md#revision
228 &quot;status&quot;: { # RevisionStatus communicates the observed state of the Revision (from the # Status communicates the observed state of the Revision (from the
229 # controller).
230 # controller).
231 &quot;conditions&quot;: [ # Conditions communicates information about ongoing/complete
232 # reconciliation processes that bring the &quot;spec&quot; inline with the observed
233 # state of the world.
234 #
235 # As a Revision is being prepared, it will incrementally
236 # update conditions. Revision-specific conditions include:
237 # * &quot;ResourcesAvailable&quot;: True when underlying resources have been
238 # provisioned.
239 # * &quot;ContainerHealthy&quot;: True when the Revision readiness check completes.
240 # * &quot;Active&quot;: True when the Revision may receive traffic.
241 { # Condition defines a generic condition for a Resource
242 &quot;message&quot;: &quot;A String&quot;, # Optional. Human readable message indicating details about the current status.
243 &quot;lastTransitionTime&quot;: &quot;A String&quot;, # Optional. Last time the condition transitioned from one status to another.
244 &quot;status&quot;: &quot;A String&quot;, # Status of the condition, one of True, False, Unknown.
245 &quot;severity&quot;: &quot;A String&quot;, # Optional. How to interpret failures of this condition, one of Error, Warning, Info
246 &quot;reason&quot;: &quot;A String&quot;, # Optional. One-word CamelCase reason for the condition&#x27;s last transition.
247 &quot;type&quot;: &quot;A String&quot;, # type is used to communicate the status of the reconciliation process.
248 # See also:
249 # https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-reporting
250 # Types common to all resources include:
251 # * &quot;Ready&quot;: True when the Resource is ready.
252 },
253 ],
254 &quot;observedGeneration&quot;: 42, # ObservedGeneration is the &#x27;Generation&#x27; of the Revision that
255 # was last processed by the controller.
256 #
257 # Clients polling for completed reconciliation should poll until
258 # observedGeneration = metadata.generation, and the Ready condition&#x27;s status
259 # is True or False.
260 &quot;imageDigest&quot;: &quot;A String&quot;, # ImageDigest holds the resolved digest for the image specified
261 # within .Spec.Container.Image. The digest is resolved during the creation
262 # of Revision. This field holds the digest value regardless of whether
263 # a tag or digest was originally specified in the Container object.
264 &quot;logUrl&quot;: &quot;A String&quot;, # Specifies the generated logging url for this particular revision
265 # based on the revision url template specified in the controller&#x27;s config.
266 # +optional
267 &quot;serviceName&quot;: &quot;A String&quot;, # Not currently used by Cloud Run.
268 },
269 &quot;apiVersion&quot;: &quot;A String&quot;, # The API version for this call such as &quot;serving.knative.dev/v1&quot;.
270 &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).
271 &quot;volumes&quot;: [
272 { # Cloud Run fully managed: not supported
273 #
274 # Cloud Run for Anthos: supported
275 #
276 # Volume represents a named volume in a container.
277 &quot;configMap&quot;: { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported
278 #
279 # Cloud Run for Anthos: supported
280 #
281 # Cloud Run for Anthos: supported
282 #
283 # Adapts a ConfigMap into a volume.
284 # The contents of the target ConfigMap&#x27;s Data field will be presented in a
285 # volume as files using the keys in the Data field as the file names, unless
286 # the items element is populated with specific mappings of keys to paths.
287 &quot;optional&quot;: True or False, # (Optional)
288 #
289 # Cloud Run fully managed: not supported
290 #
291 # Cloud Run for Anthos: supported
292 #
293 # Specify whether the Secret or its keys must be defined.
294 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
295 #
296 # Cloud Run for Anthos: supported
297 #
298 # Name of the config.
299 &quot;defaultMode&quot;: 42, # (Optional)
300 #
301 # Cloud Run fully managed: not supported
302 #
303 # Cloud Run for Anthos: supported
304 #
305 # Mode bits to use on created files by default. Must be a value between 0 and
306 # 0777. Defaults to 0644. Directories within the path are not affected by
307 # this setting. This might be in conflict with other options that affect the
308 # file mode, like fsGroup, and the result can be other mode bits set.
309 &quot;items&quot;: [ # (Optional)
310 #
311 # Cloud Run fully managed: not supported
312 #
313 # Cloud Run for Anthos: supported
314 #
315 # If unspecified, each key-value pair in the Data field of the referenced
316 # Secret will be projected into the volume as a file whose name is the
317 # key and content is the value. If specified, the listed keys will be
318 # projected into the specified paths, and unlisted keys will not be
319 # present. If a key is specified which is not present in the Secret,
320 # the volume setup will error unless it is marked optional.
321 { # Cloud Run fully managed: not supported
322 #
323 # Cloud Run for Anthos: supported
324 #
325 # Maps a string key to a path within a volume.
326 &quot;key&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
327 #
328 # Cloud Run for Anthos: supported
329 #
330 # The key to project.
331 &quot;path&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
332 #
333 # Cloud Run for Anthos: supported
334 #
335 # The relative path of the file to map the key to.
336 # May not be an absolute path.
337 # May not contain the path element &#x27;..&#x27;.
338 # May not start with the string &#x27;..&#x27;.
339 &quot;mode&quot;: 42, # (Optional)
340 #
341 # Cloud Run fully managed: not supported
342 #
343 # Cloud Run for Anthos: supported
344 #
345 # Mode bits to use on this file, must be a value between 0 and 0777. If not
346 # specified, the volume defaultMode will be used. This might be in conflict
347 # with other options that affect the file mode, like fsGroup, and the result
348 # can be other mode bits set.
349 },
350 ],
351 },
352 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
353 #
354 # Cloud Run for Anthos: supported
355 #
356 # Volume&#x27;s name.
357 &quot;secret&quot;: { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported
358 #
359 # Cloud Run for Anthos: supported
360 #
361 # Cloud Run for Anthos: supported
362 #
363 # The contents of the target Secret&#x27;s Data field will be presented in a volume
364 # as files using the keys in the Data field as the file names.
365 &quot;optional&quot;: True or False, # (Optional)
366 #
367 # Cloud Run fully managed: not supported
368 #
369 # Cloud Run for Anthos: supported
370 #
371 # Specify whether the Secret or its keys must be defined.
372 &quot;defaultMode&quot;: 42, # (Optional)
373 #
374 # Cloud Run fully managed: not supported
375 #
376 # Cloud Run for Anthos: supported
377 #
378 # Mode bits to use on created files by default. Must be a value between 0 and
379 # 0777. Defaults to 0644. Directories within the path are not affected by
380 # this setting. This might be in conflict with other options that affect the
381 # file mode, like fsGroup, and the result can be other mode bits set.
382 &quot;secretName&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
383 #
384 # Cloud Run for Anthos: supported
385 #
386 # Name of the secret in the container&#x27;s namespace to use.
387 &quot;items&quot;: [ # (Optional)
388 #
389 # Cloud Run fully managed: not supported
390 #
391 # Cloud Run for Anthos: supported
392 #
393 # If unspecified, each key-value pair in the Data field of the referenced
394 # Secret will be projected into the volume as a file whose name is the
395 # key and content is the value. If specified, the listed keys will be
396 # projected into the specified paths, and unlisted keys will not be
397 # present. If a key is specified which is not present in the Secret,
398 # the volume setup will error unless it is marked optional.
399 { # Cloud Run fully managed: not supported
400 #
401 # Cloud Run for Anthos: supported
402 #
403 # Maps a string key to a path within a volume.
404 &quot;key&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
405 #
406 # Cloud Run for Anthos: supported
407 #
408 # The key to project.
409 &quot;path&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
410 #
411 # Cloud Run for Anthos: supported
412 #
413 # The relative path of the file to map the key to.
414 # May not be an absolute path.
415 # May not contain the path element &#x27;..&#x27;.
416 # May not start with the string &#x27;..&#x27;.
417 &quot;mode&quot;: 42, # (Optional)
418 #
419 # Cloud Run fully managed: not supported
420 #
421 # Cloud Run for Anthos: supported
422 #
423 # Mode bits to use on this file, must be a value between 0 and 0777. If not
424 # specified, the volume defaultMode will be used. This might be in conflict
425 # with other options that affect the file mode, like fsGroup, and the result
426 # can be other mode bits set.
427 },
428 ],
429 },
430 },
431 ],
432 &quot;containerConcurrency&quot;: 42, # (Optional)
433 #
434 # ContainerConcurrency specifies the maximum allowed in-flight (concurrent)
435 # requests per container instance of the Revision.
436 #
437 # Cloud Run fully managed: supported, defaults to 80
438 #
439 # Cloud Run for Anthos: supported, defaults to 0, which means concurrency
440 # to the application is not limited, and the system decides the
441 # target concurrency for the autoscaler.
442 &quot;timeoutSeconds&quot;: 42, # TimeoutSeconds holds the max duration the instance is allowed for
443 # responding to a request.
444 # Not currently used by Cloud Run.
445 &quot;serviceAccountName&quot;: &quot;A String&quot;, # Email address of the IAM service account associated with the revision
446 # of the service. The service account represents the identity of the
447 # running revision, and determines what permissions the revision has. If
448 # not provided, the revision will use the project&#x27;s default service account.
449 &quot;containers&quot;: [ # Containers holds the single container that defines the unit of execution
450 # for this Revision. In the context of a Revision, we disallow a number of
451 # fields on this Container, including: name and lifecycle.
452 # In Cloud Run, only a single container may be provided.
453 # The runtime contract is documented here:
454 # https://github.com/knative/serving/blob/master/docs/runtime-contract.md
455 { # A single application container.
456 # This specifies both the container to run, the command to run in the container
457 # and the arguments to supply to it.
458 # Note that additional arguments may be supplied by the system to the container
459 # at runtime.
460 &quot;volumeMounts&quot;: [ # (Optional)
461 #
462 # Cloud Run fully managed: not supported
463 #
464 # Cloud Run for Anthos: supported
465 #
466 # Pod volumes to mount into the container&#x27;s filesystem.
467 { # Cloud Run fully managed: not supported
468 #
469 # Cloud Run for Anthos: supported
470 #
471 # VolumeMount describes a mounting of a Volume within a container.
472 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
473 #
474 # Cloud Run for Anthos: supported
475 #
476 # This must match the Name of a Volume.
477 &quot;readOnly&quot;: True or False, # (Optional)
478 #
479 # Cloud Run fully managed: not supported
480 #
481 # Cloud Run for Anthos: supported
482 #
483 # Only true is accepted.
484 # Defaults to true.
485 &quot;mountPath&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
486 #
487 # Cloud Run for Anthos: supported
488 #
489 # Path within the container at which the volume should be mounted. Must
490 # not contain &#x27;:&#x27;.
491 &quot;subPath&quot;: &quot;A String&quot;, # (Optional)
492 #
493 # Cloud Run fully managed: not supported
494 #
495 # Cloud Run for Anthos: supported
496 #
497 # Path within the volume from which the container&#x27;s volume should be mounted.
498 # Defaults to &quot;&quot; (volume&#x27;s root).
499 },
500 ],
501 &quot;args&quot;: [ # (Optional)
502 #
503 # Cloud Run fully managed: supported
504 #
505 # Cloud Run for Anthos: supported
506 #
507 # Arguments to the entrypoint.
508 # The docker image&#x27;s CMD is used if this is not provided.
509 # Variable references $(VAR_NAME) are expanded using the container&#x27;s
510 # environment. If a variable cannot be resolved, the reference in the input
511 # string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
512 # double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
513 # regardless of whether the variable exists or not.
514 # More info:
515 # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
516 &quot;A String&quot;,
517 ],
518 &quot;workingDir&quot;: &quot;A String&quot;, # (Optional)
519 #
520 # Cloud Run fully managed: not supported
521 #
522 # Cloud Run for Anthos: supported
523 #
524 # Container&#x27;s working directory.
525 # If not specified, the container runtime&#x27;s default will be used, which
526 # might be configured in the container image.
527 &quot;ports&quot;: [ # (Optional)
528 #
529 # List of ports to expose from the container. Only a single port can be
530 # specified. The specified ports must be listening on all interfaces
531 # (0.0.0.0) within the container to be accessible.
532 #
533 # If omitted, a port number will be chosen and passed to the container
534 # through the PORT environment variable for the container to listen on.
535 { # ContainerPort represents a network port in a single container.
536 &quot;containerPort&quot;: 42, # (Optional)
537 #
538 # Port number the container listens on.
539 # This must be a valid port number, 0 &lt; x &lt; 65536.
540 &quot;protocol&quot;: &quot;A String&quot;, # (Optional)
541 #
542 # Cloud Run fully managed: not supported
543 #
544 # Cloud Run for Anthos: supported
545 #
546 # Protocol for port. Must be &quot;TCP&quot;.
547 # Defaults to &quot;TCP&quot;.
548 &quot;name&quot;: &quot;A String&quot;, # (Optional)
549 #
550 # Cloud Run fully managed: not supported
551 #
552 # Cloud Run for Anthos: supported
553 #
554 # If specified, used to specify which protocol to use.
555 # Allowed values are &quot;http1&quot; and &quot;h2c&quot;.
556 },
557 ],
558 &quot;image&quot;: &quot;A String&quot;, # Cloud Run fully managed: only supports containers from Google Container
559 # Registry
560 #
561 # Cloud Run for Anthos: supported
562 #
563 # URL of the Container image.
564 # More info: https://kubernetes.io/docs/concepts/containers/images
565 &quot;envFrom&quot;: [ # (Optional)
566 #
567 # Cloud Run fully managed: not supported
568 #
569 # Cloud Run for Anthos: supported
570 #
571 # List of sources to populate environment variables in the container.
572 # The keys defined within a source must be a C_IDENTIFIER. All invalid keys
573 # will be reported as an event when the container is starting. When a key
574 # exists in multiple sources, the value associated with the last source will
575 # take precedence. Values defined by an Env with a duplicate key will take
576 # precedence. Cannot be updated.
577 { # Cloud Run fully managed: not supported
578 #
579 # Cloud Run for Anthos: supported
580 #
581 # EnvFromSource represents the source of a set of ConfigMaps
582 &quot;prefix&quot;: &quot;A String&quot;, # (Optional)
583 #
584 # Cloud Run fully managed: not supported
585 #
586 # Cloud Run for Anthos: supported
587 #
588 # An optional identifier to prepend to each key in the ConfigMap. Must be a
589 # C_IDENTIFIER.
590 &quot;configMapRef&quot;: { # Cloud Run fully managed: not supported # (Optional)
591 #
592 # Cloud Run fully managed: not supported
593 #
594 # Cloud Run for Anthos: supported
595 #
596 # The ConfigMap to select from
597 #
598 # Cloud Run for Anthos: supported
599 #
600 # ConfigMapEnvSource selects a ConfigMap to populate the environment
601 # variables with.
602 #
603 # The contents of the target ConfigMap&#x27;s Data field will represent the
604 # key-value pairs as environment variables.
605 &quot;localObjectReference&quot;: { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined
606 # directly into the message. Use the &quot;name&quot; field instead.
607 #
608 # Cloud Run for Anthos: supported
609 #
610 # LocalObjectReference contains enough information to let you locate the
611 # referenced object inside the same namespace.
612 &quot;name&quot;: &quot;A String&quot;, # (Optional)
613 #
614 # Cloud Run fully managed: not supported
615 #
616 # Cloud Run for Anthos: supported
617 #
618 # Name of the referent.
619 # More info:
620 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
621 },
622 &quot;optional&quot;: True or False, # (Optional)
623 #
624 # Cloud Run fully managed: not supported
625 #
626 # Cloud Run for Anthos: supported
627 #
628 # Specify whether the ConfigMap must be defined
629 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
630 #
631 # Cloud Run for Anthos: supported
632 #
633 # The ConfigMap to select from.
634 },
635 &quot;secretRef&quot;: { # Cloud Run fully managed: not supported # (Optional)
636 #
637 # Cloud Run fully managed: not supported
638 #
639 # Cloud Run for Anthos: supported
640 #
641 # The Secret to select from
642 #
643 # Cloud Run for Anthos: supported
644 #
645 # SecretEnvSource selects a Secret to populate the environment
646 # variables with.
647 #
648 # The contents of the target Secret&#x27;s Data field will represent the
649 # key-value pairs as environment variables.
650 &quot;localObjectReference&quot;: { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined
651 # directly into the message. Use the &quot;name&quot; field instead.
652 #
653 # Cloud Run for Anthos: supported
654 #
655 # LocalObjectReference contains enough information to let you locate the
656 # referenced object inside the same namespace.
657 &quot;name&quot;: &quot;A String&quot;, # (Optional)
658 #
659 # Cloud Run fully managed: not supported
660 #
661 # Cloud Run for Anthos: supported
662 #
663 # Name of the referent.
664 # More info:
665 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
666 },
667 &quot;optional&quot;: True or False, # (Optional)
668 #
669 # Cloud Run fully managed: not supported
670 #
671 # Cloud Run for Anthos: supported
672 #
673 # Specify whether the Secret must be defined
674 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
675 #
676 # Cloud Run for Anthos: supported
677 #
678 # The Secret to select from.
679 },
680 },
681 ],
682 &quot;name&quot;: &quot;A String&quot;, # (Optional)
683 #
684 # Name of the container specified as a DNS_LABEL.
685 &quot;command&quot;: [
686 &quot;A String&quot;,
687 ],
688 &quot;terminationMessagePolicy&quot;: &quot;A String&quot;, # (Optional)
689 #
690 # Cloud Run fully managed: not supported
691 #
692 # Cloud Run for Anthos: supported
693 #
694 # Indicate how the termination message should be populated. File will use the
695 # contents of terminationMessagePath to populate the container status message
696 # on both success and failure. FallbackToLogsOnError will use the last chunk
697 # of container log output if the termination message file is empty and the
698 # container exited with an error. The log output is limited to 2048 bytes or
699 # 80 lines, whichever is smaller. Defaults to File. Cannot be updated.
700 &quot;securityContext&quot;: { # Cloud Run fully managed: not supported # (Optional)
701 #
702 # Cloud Run fully managed: not supported
703 #
704 # Cloud Run for Anthos: supported
705 #
706 # Security options the pod should run with.
707 # More info: https://kubernetes.io/docs/concepts/policy/security-context/
708 # More info:
709 # https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
710 #
711 # Cloud Run for Anthos: supported
712 #
713 # SecurityContext holds security configuration that will be applied to a
714 # container. Some fields are present in both SecurityContext and
715 # PodSecurityContext. When both are set, the values in SecurityContext take
716 # precedence.
717 &quot;runAsUser&quot;: 42, # (Optional)
718 #
719 # Cloud Run fully managed: not supported
720 #
721 # Cloud Run for Anthos: supported
722 #
723 # The UID to run the entrypoint of the container process.
724 # Defaults to user specified in image metadata if unspecified.
725 # May also be set in PodSecurityContext. If set in both SecurityContext and
726 # PodSecurityContext, the value specified in SecurityContext takes
727 # precedence.
728 },
729 &quot;livenessProbe&quot;: { # Cloud Run fully managed: not supported # (Optional)
730 #
731 # Cloud Run fully managed: not supported
732 #
733 # Cloud Run for Anthos: supported
734 #
735 # Periodic probe of container liveness.
736 # Container will be restarted if the probe fails.
737 # More info:
738 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
739 #
740 # Cloud Run for Anthos: supported
741 #
742 # Probe describes a health check to be performed against a container to
743 # determine whether it is alive or ready to receive traffic.
744 &quot;httpGet&quot;: { # Cloud Run fully managed: not supported # (Optional)
745 #
746 # Cloud Run fully managed: not supported
747 #
748 # Cloud Run for Anthos: supported
749 #
750 # HTTPGet specifies the http request to perform.
751 #
752 # A field inlined from the Handler message.
753 #
754 # Cloud Run for Anthos: supported
755 #
756 # HTTPGetAction describes an action based on HTTP Get requests.
757 &quot;httpHeaders&quot;: [ # (Optional)
758 #
759 # Cloud Run fully managed: not supported
760 #
761 # Cloud Run for Anthos: supported
762 #
763 # Custom headers to set in the request. HTTP allows repeated headers.
764 { # Cloud Run fully managed: not supported
765 #
766 # Cloud Run for Anthos: supported
767 #
768 # HTTPHeader describes a custom header to be used in HTTP probes
769 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
770 #
771 # Cloud Run for Anthos: supported
772 #
773 # The header field name
774 &quot;value&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
775 #
776 # Cloud Run for Anthos: supported
777 #
778 # The header field value
779 },
780 ],
781 &quot;path&quot;: &quot;A String&quot;, # (Optional)
782 #
783 # Cloud Run fully managed: not supported
784 #
785 # Cloud Run for Anthos: supported
786 #
787 # Path to access on the HTTP server.
788 &quot;host&quot;: &quot;A String&quot;, # (Optional)
789 #
790 # Cloud Run fully managed: not supported
791 #
792 # Cloud Run for Anthos: supported
793 #
794 # Host name to connect to, defaults to the pod IP. You probably want to set
795 # &quot;Host&quot; in httpHeaders instead.
796 &quot;scheme&quot;: &quot;A String&quot;, # (Optional)
797 #
798 # Cloud Run fully managed: not supported
799 #
800 # Cloud Run for Anthos: supported
801 #
802 # Scheme to use for connecting to the host.
803 # Defaults to HTTP.
804 },
805 &quot;failureThreshold&quot;: 42, # (Optional)
806 #
807 # Cloud Run fully managed: not supported
808 #
809 # Cloud Run for Anthos: supported
810 #
811 # Minimum consecutive failures for the probe to be considered failed after
812 # having succeeded. Defaults to 3. Minimum value is 1.
813 &quot;exec&quot;: { # Cloud Run fully managed: not supported # (Optional)
814 #
815 # Cloud Run fully managed: not supported
816 #
817 # Cloud Run for Anthos: supported
818 #
819 # One and only one of the following should be specified.
820 # Exec specifies the action to take.
821 #
822 # A field inlined from the Handler message.
823 #
824 # Cloud Run for Anthos: supported
825 #
826 # ExecAction describes a &quot;run in container&quot; action.
827 &quot;command&quot;: &quot;A String&quot;, # (Optional)
828 #
829 # Cloud Run fully managed: not supported
830 #
831 # Cloud Run for Anthos: supported
832 #
833 # 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.
839 },
840 &quot;initialDelaySeconds&quot;: 42, # (Optional)
841 #
842 # Cloud Run fully managed: not supported
843 #
844 # Cloud Run for Anthos: supported
845 #
846 # Number of seconds after the container has started before liveness probes
847 # are initiated. More info:
848 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
849 &quot;timeoutSeconds&quot;: 42, # (Optional)
850 #
851 # Cloud Run fully managed: not supported
852 #
853 # Cloud Run for Anthos: supported
854 #
855 # Number of seconds after which the probe times out.
856 # Defaults to 1 second. Minimum value is 1.
857 # More info:
858 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
859 &quot;successThreshold&quot;: 42, # (Optional)
860 #
861 # Cloud Run fully managed: not supported
862 #
863 # Cloud Run for Anthos: supported
864 #
865 # Minimum consecutive successes for the probe to be considered successful
866 # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value
867 # is 1.
868 &quot;periodSeconds&quot;: 42, # (Optional)
869 #
870 # Cloud Run fully managed: not supported
871 #
872 # Cloud Run for Anthos: supported
873 #
874 # How often (in seconds) to perform the probe.
875 # Default to 10 seconds. Minimum value is 1.
876 &quot;tcpSocket&quot;: { # Cloud Run fully managed: not supported # (Optional)
877 #
878 # Cloud Run fully managed: not supported
879 #
880 # Cloud Run for Anthos: supported
881 #
882 # TCPSocket specifies an action involving a TCP port.
883 # TCP hooks not yet supported
884 #
885 # A field inlined from the Handler message.
886 #
887 # Cloud Run for Anthos: supported
888 #
889 # TCPSocketAction describes an action based on opening a socket
890 &quot;port&quot;: 42, # Cloud Run fully managed: not supported
891 #
892 # Cloud Run for Anthos: supported
893 #
894 # Number or name of the port to access on the container.
895 # Number must be in the range 1 to 65535.
896 # Name must be an IANA_SVC_NAME.
897 #
898 # This field is currently limited to integer types only because of proto&#x27;s
899 # inability to properly support the IntOrString golang type.
900 &quot;host&quot;: &quot;A String&quot;, # (Optional)
901 #
902 # Cloud Run fully managed: not supported
903 #
904 # Cloud Run for Anthos: supported
905 #
906 # Optional: Host name to connect to, defaults to the pod IP.
907 },
908 },
909 &quot;env&quot;: [ # (Optional)
910 #
911 # Cloud Run fully managed: supported
912 #
913 # Cloud Run for Anthos: supported
914 #
915 # List of environment variables to set in the container.
916 { # EnvVar represents an environment variable present in a Container.
917 &quot;name&quot;: &quot;A String&quot;, # Name of the environment variable. Must be a C_IDENTIFIER.
918 &quot;valueFrom&quot;: { # Cloud Run fully managed: not supported # (Optional)
919 #
920 # Cloud Run fully managed: not supported
921 #
922 # Cloud Run for Anthos: supported
923 #
924 # Source for the environment variable&#x27;s value. Cannot be used if value is not
925 # empty.
926 #
927 # Cloud Run for Anthos: supported
928 #
929 # EnvVarSource represents a source for the value of an EnvVar.
930 &quot;secretKeyRef&quot;: { # Cloud Run fully managed: not supported # (Optional)
931 #
932 # Cloud Run fully managed: not supported
933 #
934 # Cloud Run for Anthos: supported
935 #
936 # Selects a key of a secret in the pod&#x27;s namespace
937 #
938 # Cloud Run for Anthos: supported
939 #
940 # SecretKeySelector selects a key of a Secret.
941 &quot;key&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
942 #
943 # Cloud Run for Anthos: supported
944 #
945 # The key of the secret to select from. Must be a valid secret key.
946 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
947 #
948 # Cloud Run for Anthos: supported
949 #
950 # The name of the secret in the pod&#x27;s namespace to select from.
951 &quot;localObjectReference&quot;: { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined
952 # directly into the message. Use the &quot;name&quot; field instead.
953 #
954 # Cloud Run for Anthos: supported
955 #
956 # LocalObjectReference contains enough information to let you locate the
957 # referenced object inside the same namespace.
958 &quot;name&quot;: &quot;A String&quot;, # (Optional)
959 #
960 # Cloud Run fully managed: not supported
961 #
962 # Cloud Run for Anthos: supported
963 #
964 # Name of the referent.
965 # More info:
966 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
967 },
968 &quot;optional&quot;: True or False, # (Optional)
969 #
970 # Cloud Run fully managed: not supported
971 #
972 # Cloud Run for Anthos: supported
973 #
974 # Specify whether the Secret or its key must be defined
975 },
976 &quot;configMapKeyRef&quot;: { # Cloud Run fully managed: not supported # (Optional)
977 #
978 # Cloud Run fully managed: not supported
979 #
980 # Cloud Run for Anthos: supported
981 #
982 # Selects a key of a ConfigMap.
983 #
984 # Cloud Run for Anthos: supported
985 #
986 # Selects a key from a ConfigMap.
987 &quot;localObjectReference&quot;: { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined
988 # directly into the message. Use the &quot;name&quot; field instead.
989 #
990 # Cloud Run for Anthos: supported
991 #
992 # LocalObjectReference contains enough information to let you locate the
993 # referenced object inside the same namespace.
994 &quot;name&quot;: &quot;A String&quot;, # (Optional)
995 #
996 # Cloud Run fully managed: not supported
997 #
998 # Cloud Run for Anthos: supported
999 #
1000 # Name of the referent.
1001 # More info:
1002 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
1003 },
1004 &quot;optional&quot;: True or False, # (Optional)
1005 #
1006 # Cloud Run fully managed: not supported
1007 #
1008 # Cloud Run for Anthos: supported
1009 #
1010 # Specify whether the ConfigMap or its key must be defined
1011 &quot;key&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1012 #
1013 # Cloud Run for Anthos: supported
1014 #
1015 # The key to select.
1016 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1017 #
1018 # Cloud Run for Anthos: supported
1019 #
1020 # The ConfigMap to select from.
1021 },
1022 },
1023 &quot;value&quot;: &quot;A String&quot;, # (Optional)
1024 #
1025 # Variable references $(VAR_NAME) are expanded
1026 # using the previous defined environment variables in the container and
1027 # any route environment variables. If a variable cannot be resolved,
1028 # the reference in the input string will be unchanged. The $(VAR_NAME)
1029 # syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped
1030 # references will never be expanded, regardless of whether the variable
1031 # exists or not.
1032 # Defaults to &quot;&quot;.
1033 },
1034 ],
1035 &quot;resources&quot;: { # ResourceRequirements describes the compute resource requirements. # (Optional)
1036 #
1037 # Cloud Run fully managed: supported
1038 #
1039 # Cloud Run for Anthos: supported
1040 #
1041 # Compute Resources required by this container.
1042 # More info:
1043 # https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
1044 &quot;limits&quot;: { # (Optional)
1045 #
1046 # Cloud Run fully managed: Only memory and CPU are supported. Note: The only
1047 # supported value for CPU is &#x27;1&#x27;.
1048 #
1049 # Cloud Run for Anthos: supported
1050 #
1051 # Limits describes the maximum amount of compute resources allowed.
1052 # The values of the map is string form of the &#x27;quantity&#x27; k8s type:
1053 # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
1054 &quot;a_key&quot;: &quot;A String&quot;,
1055 },
1056 &quot;requests&quot;: { # (Optional)
1057 #
1058 # Cloud Run fully managed: Only memory and CPU are supported. Note: The only
1059 # supported value for CPU is &#x27;1&#x27;.
1060 #
1061 # Cloud Run for Anthos: supported
1062 #
1063 # Requests describes the minimum amount of compute resources required.
1064 # If Requests is omitted for a container, it defaults to Limits if that is
1065 # explicitly specified, otherwise to an implementation-defined value.
1066 # The values of the map is string form of the &#x27;quantity&#x27; k8s type:
1067 # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
1068 &quot;a_key&quot;: &quot;A String&quot;,
1069 },
1070 },
1071 &quot;readinessProbe&quot;: { # Cloud Run fully managed: not supported # (Optional)
1072 #
1073 # Cloud Run fully managed: not supported
1074 #
1075 # Cloud Run for Anthos: supported
1076 #
1077 # Periodic probe of container service readiness.
1078 # Container will be removed from service endpoints if the probe fails.
1079 # More info:
1080 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
1081 #
1082 # Cloud Run for Anthos: supported
1083 #
1084 # Probe describes a health check to be performed against a container to
1085 # determine whether it is alive or ready to receive traffic.
1086 &quot;httpGet&quot;: { # Cloud Run fully managed: not supported # (Optional)
1087 #
1088 # Cloud Run fully managed: not supported
1089 #
1090 # Cloud Run for Anthos: supported
1091 #
1092 # HTTPGet specifies the http request to perform.
1093 #
1094 # A field inlined from the Handler message.
1095 #
1096 # Cloud Run for Anthos: supported
1097 #
1098 # HTTPGetAction describes an action based on HTTP Get requests.
1099 &quot;httpHeaders&quot;: [ # (Optional)
1100 #
1101 # Cloud Run fully managed: not supported
1102 #
1103 # Cloud Run for Anthos: supported
1104 #
1105 # Custom headers to set in the request. HTTP allows repeated headers.
1106 { # Cloud Run fully managed: not supported
1107 #
1108 # Cloud Run for Anthos: supported
1109 #
1110 # HTTPHeader describes a custom header to be used in HTTP probes
1111 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1112 #
1113 # Cloud Run for Anthos: supported
1114 #
1115 # The header field name
1116 &quot;value&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1117 #
1118 # Cloud Run for Anthos: supported
1119 #
1120 # The header field value
1121 },
1122 ],
1123 &quot;path&quot;: &quot;A String&quot;, # (Optional)
1124 #
1125 # Cloud Run fully managed: not supported
1126 #
1127 # Cloud Run for Anthos: supported
1128 #
1129 # Path to access on the HTTP server.
1130 &quot;host&quot;: &quot;A String&quot;, # (Optional)
1131 #
1132 # Cloud Run fully managed: not supported
1133 #
1134 # Cloud Run for Anthos: supported
1135 #
1136 # Host name to connect to, defaults to the pod IP. You probably want to set
1137 # &quot;Host&quot; in httpHeaders instead.
1138 &quot;scheme&quot;: &quot;A String&quot;, # (Optional)
1139 #
1140 # Cloud Run fully managed: not supported
1141 #
1142 # Cloud Run for Anthos: supported
1143 #
1144 # Scheme to use for connecting to the host.
1145 # Defaults to HTTP.
1146 },
1147 &quot;failureThreshold&quot;: 42, # (Optional)
1148 #
1149 # Cloud Run fully managed: not supported
1150 #
1151 # Cloud Run for Anthos: supported
1152 #
1153 # Minimum consecutive failures for the probe to be considered failed after
1154 # having succeeded. Defaults to 3. Minimum value is 1.
1155 &quot;exec&quot;: { # Cloud Run fully managed: not supported # (Optional)
1156 #
1157 # Cloud Run fully managed: not supported
1158 #
1159 # Cloud Run for Anthos: supported
1160 #
1161 # One and only one of the following should be specified.
1162 # Exec specifies the action to take.
1163 #
1164 # A field inlined from the Handler message.
1165 #
1166 # Cloud Run for Anthos: supported
1167 #
1168 # ExecAction describes a &quot;run in container&quot; action.
1169 &quot;command&quot;: &quot;A String&quot;, # (Optional)
1170 #
1171 # Cloud Run fully managed: not supported
1172 #
1173 # Cloud Run for Anthos: supported
1174 #
1175 # Command is the command line to execute inside the container, the working
1176 # directory for the command is root (&#x27;/&#x27;) in the container&#x27;s filesystem. The
1177 # command is simply exec&#x27;d, it is not run inside a shell, so traditional
1178 # shell instructions (&#x27;|&#x27;, etc) won&#x27;t work. To use a shell, you need to
1179 # explicitly call out to that shell. Exit status of 0 is treated as
1180 # live/healthy and non-zero is unhealthy.
1181 },
1182 &quot;initialDelaySeconds&quot;: 42, # (Optional)
1183 #
1184 # Cloud Run fully managed: not supported
1185 #
1186 # Cloud Run for Anthos: supported
1187 #
1188 # Number of seconds after the container has started before liveness probes
1189 # are initiated. More info:
1190 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
1191 &quot;timeoutSeconds&quot;: 42, # (Optional)
1192 #
1193 # Cloud Run fully managed: not supported
1194 #
1195 # Cloud Run for Anthos: supported
1196 #
1197 # Number of seconds after which the probe times out.
1198 # Defaults to 1 second. Minimum value is 1.
1199 # More info:
1200 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
1201 &quot;successThreshold&quot;: 42, # (Optional)
1202 #
1203 # Cloud Run fully managed: not supported
1204 #
1205 # Cloud Run for Anthos: supported
1206 #
1207 # Minimum consecutive successes for the probe to be considered successful
1208 # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value
1209 # is 1.
1210 &quot;periodSeconds&quot;: 42, # (Optional)
1211 #
1212 # Cloud Run fully managed: not supported
1213 #
1214 # Cloud Run for Anthos: supported
1215 #
1216 # How often (in seconds) to perform the probe.
1217 # Default to 10 seconds. Minimum value is 1.
1218 &quot;tcpSocket&quot;: { # Cloud Run fully managed: not supported # (Optional)
1219 #
1220 # Cloud Run fully managed: not supported
1221 #
1222 # Cloud Run for Anthos: supported
1223 #
1224 # TCPSocket specifies an action involving a TCP port.
1225 # TCP hooks not yet supported
1226 #
1227 # A field inlined from the Handler message.
1228 #
1229 # Cloud Run for Anthos: supported
1230 #
1231 # TCPSocketAction describes an action based on opening a socket
1232 &quot;port&quot;: 42, # Cloud Run fully managed: not supported
1233 #
1234 # Cloud Run for Anthos: supported
1235 #
1236 # Number or name of the port to access on the container.
1237 # Number must be in the range 1 to 65535.
1238 # Name must be an IANA_SVC_NAME.
1239 #
1240 # This field is currently limited to integer types only because of proto&#x27;s
1241 # inability to properly support the IntOrString golang type.
1242 &quot;host&quot;: &quot;A String&quot;, # (Optional)
1243 #
1244 # Cloud Run fully managed: not supported
1245 #
1246 # Cloud Run for Anthos: supported
1247 #
1248 # Optional: Host name to connect to, defaults to the pod IP.
1249 },
1250 },
1251 &quot;imagePullPolicy&quot;: &quot;A String&quot;, # (Optional)
1252 #
1253 # Cloud Run fully managed: not supported
1254 #
1255 # Cloud Run for Anthos: supported
1256 #
1257 # Image pull policy.
1258 # One of Always, Never, IfNotPresent.
1259 # Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
1260 # More info:
1261 # https://kubernetes.io/docs/concepts/containers/images#updating-images
1262 &quot;terminationMessagePath&quot;: &quot;A String&quot;, # (Optional)
1263 #
1264 # Cloud Run fully managed: not supported
1265 #
1266 # Cloud Run for Anthos: supported
1267 #
1268 # Path at which the file to which the container&#x27;s termination
1269 # message will be written is mounted into the container&#x27;s filesystem. Message
1270 # written is intended to be brief final status, such as an assertion failure
1271 # message. Will be truncated by the node if greater than 4096 bytes. The
1272 # total message length across all containers will be limited to 12kb.
1273 # Defaults to /dev/termination-log.
1274 },
1275 ],
1276 },
1277 &quot;kind&quot;: &quot;A String&quot;, # The kind of this resource, in this case &quot;Revision&quot;.
1278 &quot;metadata&quot;: { # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # Metadata associated with this Revision, including name, namespace, labels,
1279 # and annotations.
1280 # persisted resources must have, which includes all objects users must create.
1281 &quot;creationTimestamp&quot;: &quot;A String&quot;, # (Optional)
1282 #
1283 # CreationTimestamp is a timestamp representing the server time when this
1284 # object was created. It is not guaranteed to be set in happens-before order
1285 # across separate operations. Clients may not set this value. It is
1286 # represented in RFC3339 form and is in UTC.
1287 #
1288 # Populated by the system.
1289 # Read-only.
1290 # Null for lists.
1291 # More info:
1292 # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
1293 &quot;labels&quot;: { # (Optional)
1294 #
1295 # Map of string keys and values that can be used to organize and categorize
1296 # (scope and select) objects. May match selectors of replication controllers
1297 # and routes.
1298 # More info: http://kubernetes.io/docs/user-guide/labels
1299 &quot;a_key&quot;: &quot;A String&quot;,
1300 },
1301 &quot;generation&quot;: 42, # (Optional)
1302 #
1303 # A sequence number representing a specific generation of the desired state.
1304 # Populated by the system. Read-only.
1305 &quot;resourceVersion&quot;: &quot;A String&quot;, # (Optional)
1306 #
1307 # An opaque value that represents the internal version of this object that
1308 # can be used by clients to determine when objects have changed. May be used
1309 # for optimistic concurrency, change detection, and the watch operation on a
1310 # resource or set of resources. Clients must treat these values as opaque and
1311 # passed unmodified back to the server. They may only be valid for a
1312 # particular resource or set of resources.
1313 #
1314 # Populated by the system.
1315 # Read-only.
1316 # Value must be treated as opaque by clients and .
1317 # More info:
1318 # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
1319 &quot;selfLink&quot;: &quot;A String&quot;, # (Optional)
1320 #
1321 # SelfLink is a URL representing this object.
1322 # Populated by the system.
1323 # Read-only.
1324 # string selfLink = 4;
1325 &quot;uid&quot;: &quot;A String&quot;, # (Optional)
1326 #
1327 # UID is the unique in time and space value for this object. It is typically
1328 # generated by the server on successful creation of a resource and is not
1329 # allowed to change on PUT operations.
1330 #
1331 # Populated by the system.
1332 # Read-only.
1333 # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
1334 &quot;namespace&quot;: &quot;A String&quot;, # Namespace defines the space within each name must be unique, within a
1335 # Cloud Run region. In Cloud Run the namespace must be equal to either the
1336 # project ID or project number.
1337 &quot;annotations&quot;: { # (Optional)
1338 #
1339 # Annotations is an unstructured key value map stored with a resource that
1340 # may be set by external tools to store and retrieve arbitrary metadata. They
1341 # are not queryable and should be preserved when modifying objects. More
1342 # info: http://kubernetes.io/docs/user-guide/annotations
1343 &quot;a_key&quot;: &quot;A String&quot;,
1344 },
1345 &quot;generateName&quot;: &quot;A String&quot;, # (Optional)
1346 #
1347 # Cloud Run fully managed: not supported
1348 #
1349 # Cloud Run for Anthos: supported
1350 #
1351 # GenerateName is an optional prefix, used by the server, to generate a
1352 # unique name ONLY IF the Name field has not been provided. If this field is
1353 # used, the name returned to the client will be different than the name
1354 # passed. This value will also be combined with a unique suffix. The provided
1355 # value has the same validation rules as the Name field, and may be truncated
1356 # by the length of the suffix required to make the value unique on the
1357 # server.
1358 #
1359 # If this field is specified and the generated name exists, the server will
1360 # NOT return a 409 - instead, it will either return 201 Created or 500 with
1361 # Reason ServerTimeout indicating a unique name could not be found in the
1362 # time allotted, and the client should retry (optionally after the time
1363 # indicated in the Retry-After header).
1364 #
1365 # Applied only if Name is not specified.
1366 # More info:
1367 # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency
1368 # string generateName = 2;
1369 &quot;name&quot;: &quot;A String&quot;, # Name must be unique within a namespace, within a Cloud Run region.
1370 # Is required when creating
1371 # resources, although some resources may allow a client to request the
1372 # generation of an appropriate name automatically. Name is primarily intended
1373 # for creation idempotence and configuration definition. Cannot be updated.
1374 # More info: http://kubernetes.io/docs/user-guide/identifiers#names
1375 # +optional
1376 &quot;deletionGracePeriodSeconds&quot;: 42, # (Optional)
1377 #
1378 # Cloud Run fully managed: not supported
1379 #
1380 # Cloud Run for Anthos: supported
1381 #
1382 # Number of seconds allowed for this object to gracefully terminate before
1383 # it will be removed from the system. Only set when deletionTimestamp is also
1384 # set. May only be shortened. Read-only.
1385 &quot;clusterName&quot;: &quot;A String&quot;, # (Optional)
1386 #
1387 # Cloud Run fully managed: not supported
1388 #
1389 # Cloud Run for Anthos: supported
1390 #
1391 # The name of the cluster which the object belongs to.
1392 # This is used to distinguish resources with same name and namespace in
1393 # different clusters. This field is not set anywhere right now and apiserver
1394 # is going to ignore it if set in create or update request.
1395 &quot;finalizers&quot;: [ # (Optional)
1396 #
1397 # Cloud Run fully managed: not supported
1398 #
1399 # Cloud Run for Anthos: supported
1400 #
1401 # Must be empty before the object is deleted from the registry. Each entry
1402 # is an identifier for the responsible component that will remove the entry
1403 # from the list. If the deletionTimestamp of the object is non-nil, entries
1404 # in this list can only be removed.
1405 # +patchStrategy=merge
1406 &quot;A String&quot;,
1407 ],
1408 &quot;deletionTimestamp&quot;: &quot;A String&quot;, # (Optional)
1409 #
1410 # Cloud Run fully managed: not supported
1411 #
1412 # Cloud Run for Anthos: supported
1413 #
1414 # DeletionTimestamp is RFC 3339 date and time at which this resource will be
1415 # deleted. This field is set by the server when a graceful deletion is
1416 # requested by the user, and is not directly settable by a client. The
1417 # resource is expected to be deleted (no longer visible from resource lists,
1418 # and not reachable by name) after the time in this field, once the
1419 # finalizers list is empty. As long as the finalizers list contains items,
1420 # deletion is blocked. Once the deletionTimestamp is set, this value may not
1421 # be unset or be set further into the future, although it may be shortened or
1422 # the resource may be deleted prior to this time. For example, a user may
1423 # request that a pod is deleted in 30 seconds. The Kubelet will react by
1424 # sending a graceful termination signal to the containers in the pod. After
1425 # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL)
1426 # to the container and after cleanup, remove the pod from the API. In the
1427 # presence of network partitions, this object may still exist after this
1428 # timestamp, until an administrator or automated process can determine the
1429 # resource is fully terminated.
1430 # If not set, graceful deletion of the object has not been requested.
1431 #
1432 # Populated by the system when a graceful deletion is requested.
1433 # Read-only.
1434 # More info:
1435 # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
1436 &quot;ownerReferences&quot;: [ # (Optional)
1437 #
1438 # Cloud Run fully managed: not supported
1439 #
1440 # Cloud Run for Anthos: supported
1441 #
1442 # List of objects that own this object. If ALL objects in the list have
1443 # been deleted, this object will be garbage collected.
1444 { # OwnerReference contains enough information to let you identify an owning
1445 # object. Currently, an owning object must be in the same namespace, so there
1446 # is no namespace field.
1447 &quot;uid&quot;: &quot;A String&quot;, # UID of the referent.
1448 # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
1449 &quot;controller&quot;: True or False, # If true, this reference points to the managing controller.
1450 # +optional
1451 &quot;kind&quot;: &quot;A String&quot;, # Kind of the referent.
1452 # More info:
1453 # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
1454 &quot;blockOwnerDeletion&quot;: True or False, # If true, AND if the owner has the &quot;foregroundDeletion&quot; finalizer, then
1455 # the owner cannot be deleted from the key-value store until this
1456 # reference is removed.
1457 # Defaults to false.
1458 # To set this field, a user needs &quot;delete&quot; permission of the owner,
1459 # otherwise 422 (Unprocessable Entity) will be returned.
1460 # +optional
1461 &quot;apiVersion&quot;: &quot;A String&quot;, # API version of the referent.
1462 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
1463 # More info: http://kubernetes.io/docs/user-guide/identifiers#names
1464 },
1465 ],
1466 },
1467 }</pre>
1468</div>
1469
1470<div class="method">
1471 <code class="details" id="list">list(parent, watch=None, labelSelector=None, resourceVersion=None, includeUninitialized=None, fieldSelector=None, continue=None, limit=None, x__xgafv=None)</code>
1472 <pre>List revisions.
1473
1474Args:
1475 parent: string, The namespace from which the revisions should be listed.
1476For Cloud Run (fully managed), replace {namespace_id} with the project ID
1477or number. (required)
1478 watch: boolean, Flag that indicates that the client expects to watch this resource as well.
1479Not currently used by Cloud Run.
1480 labelSelector: string, Allows to filter resources based on a label. Supported operations are
1481=, !=, exists, in, and notIn.
1482 resourceVersion: string, The baseline resource version from which the list or watch operation should
1483start. Not currently used by Cloud Run.
1484 includeUninitialized: boolean, Not currently used by Cloud Run.
1485 fieldSelector: string, Allows to filter resources based on a specific value for a field name.
1486Send this in a query string format. i.e. &#x27;metadata.name%3Dlorem&#x27;.
1487Not currently used by Cloud Run.
1488 continue: string, Optional encoded string to continue paging.
1489 limit: integer, The maximum number of records that should be returned.
1490 x__xgafv: string, V1 error format.
1491 Allowed values
1492 1 - v1 error format
1493 2 - v2 error format
1494
1495Returns:
1496 An object of the form:
1497
1498 { # ListRevisionsResponse is a list of Revision resources.
1499 &quot;metadata&quot;: { # ListMeta describes metadata that synthetic resources must have, including # Metadata associated with this revision list.
1500 # lists and various status objects. A resource may have only one of
1501 # {ObjectMeta, ListMeta}.
1502 &quot;resourceVersion&quot;: &quot;A String&quot;, # String that identifies the server&#x27;s internal version of this object that
1503 # can be used by clients to determine when objects have changed. Value must
1504 # be treated as opaque by clients and passed unmodified back to the server.
1505 # Populated by the system.
1506 # Read-only.
1507 # More info:
1508 # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
1509 # +optional
1510 &quot;continue&quot;: &quot;A String&quot;, # continue may be set if the user set a limit on the number of items
1511 # returned, and indicates that the server has more data available. The value
1512 # is opaque and may be used to issue another request to the endpoint that
1513 # served this list to retrieve the next set of available objects. Continuing
1514 # a list may not be possible if the server configuration has changed or more
1515 # than a few minutes have passed. The resourceVersion field returned when
1516 # using this continue value will be identical to the value in the first
1517 # response.
1518 &quot;selfLink&quot;: &quot;A String&quot;, # SelfLink is a URL representing this object.
1519 # Populated by the system.
1520 # Read-only.
1521 # +optional
1522 },
1523 &quot;items&quot;: [ # List of Revisions.
1524 { # Revision is an immutable snapshot of code and configuration. A revision
1525 # references a container image. Revisions are created by updates to a
1526 # Configuration.
1527 #
1528 # See also:
1529 # https://github.com/knative/serving/blob/master/docs/spec/overview.md#revision
1530 &quot;status&quot;: { # RevisionStatus communicates the observed state of the Revision (from the # Status communicates the observed state of the Revision (from the
1531 # controller).
1532 # controller).
1533 &quot;conditions&quot;: [ # Conditions communicates information about ongoing/complete
1534 # reconciliation processes that bring the &quot;spec&quot; inline with the observed
1535 # state of the world.
1536 #
1537 # As a Revision is being prepared, it will incrementally
1538 # update conditions. Revision-specific conditions include:
1539 # * &quot;ResourcesAvailable&quot;: True when underlying resources have been
1540 # provisioned.
1541 # * &quot;ContainerHealthy&quot;: True when the Revision readiness check completes.
1542 # * &quot;Active&quot;: True when the Revision may receive traffic.
1543 { # Condition defines a generic condition for a Resource
1544 &quot;message&quot;: &quot;A String&quot;, # Optional. Human readable message indicating details about the current status.
1545 &quot;lastTransitionTime&quot;: &quot;A String&quot;, # Optional. Last time the condition transitioned from one status to another.
1546 &quot;status&quot;: &quot;A String&quot;, # Status of the condition, one of True, False, Unknown.
1547 &quot;severity&quot;: &quot;A String&quot;, # Optional. How to interpret failures of this condition, one of Error, Warning, Info
1548 &quot;reason&quot;: &quot;A String&quot;, # Optional. One-word CamelCase reason for the condition&#x27;s last transition.
1549 &quot;type&quot;: &quot;A String&quot;, # type is used to communicate the status of the reconciliation process.
1550 # See also:
1551 # https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-reporting
1552 # Types common to all resources include:
1553 # * &quot;Ready&quot;: True when the Resource is ready.
1554 },
1555 ],
1556 &quot;observedGeneration&quot;: 42, # ObservedGeneration is the &#x27;Generation&#x27; of the Revision that
1557 # was last processed by the controller.
1558 #
1559 # Clients polling for completed reconciliation should poll until
1560 # observedGeneration = metadata.generation, and the Ready condition&#x27;s status
1561 # is True or False.
1562 &quot;imageDigest&quot;: &quot;A String&quot;, # ImageDigest holds the resolved digest for the image specified
1563 # within .Spec.Container.Image. The digest is resolved during the creation
1564 # of Revision. This field holds the digest value regardless of whether
1565 # a tag or digest was originally specified in the Container object.
1566 &quot;logUrl&quot;: &quot;A String&quot;, # Specifies the generated logging url for this particular revision
1567 # based on the revision url template specified in the controller&#x27;s config.
1568 # +optional
1569 &quot;serviceName&quot;: &quot;A String&quot;, # Not currently used by Cloud Run.
1570 },
1571 &quot;apiVersion&quot;: &quot;A String&quot;, # The API version for this call such as &quot;serving.knative.dev/v1&quot;.
1572 &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).
1573 &quot;volumes&quot;: [
1574 { # Cloud Run fully managed: not supported
1575 #
1576 # Cloud Run for Anthos: supported
1577 #
1578 # Volume represents a named volume in a container.
1579 &quot;configMap&quot;: { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported
1580 #
1581 # Cloud Run for Anthos: supported
1582 #
1583 # Cloud Run for Anthos: supported
1584 #
1585 # Adapts a ConfigMap into a volume.
1586 # The contents of the target ConfigMap&#x27;s Data field will be presented in a
1587 # volume as files using the keys in the Data field as the file names, unless
1588 # the items element is populated with specific mappings of keys to paths.
1589 &quot;optional&quot;: True or False, # (Optional)
1590 #
1591 # Cloud Run fully managed: not supported
1592 #
1593 # Cloud Run for Anthos: supported
1594 #
1595 # Specify whether the Secret or its keys must be defined.
1596 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1597 #
1598 # Cloud Run for Anthos: supported
1599 #
1600 # Name of the config.
1601 &quot;defaultMode&quot;: 42, # (Optional)
1602 #
1603 # Cloud Run fully managed: not supported
1604 #
1605 # Cloud Run for Anthos: supported
1606 #
1607 # Mode bits to use on created files by default. Must be a value between 0 and
1608 # 0777. Defaults to 0644. Directories within the path are not affected by
1609 # this setting. This might be in conflict with other options that affect the
1610 # file mode, like fsGroup, and the result can be other mode bits set.
1611 &quot;items&quot;: [ # (Optional)
1612 #
1613 # Cloud Run fully managed: not supported
1614 #
1615 # Cloud Run for Anthos: supported
1616 #
1617 # 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 { # Cloud Run fully managed: not supported
1624 #
1625 # Cloud Run for Anthos: supported
1626 #
1627 # Maps a string key to a path within a volume.
1628 &quot;key&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1629 #
1630 # Cloud Run for Anthos: supported
1631 #
1632 # The key to project.
1633 &quot;path&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1634 #
1635 # Cloud Run for Anthos: supported
1636 #
1637 # The relative path of the file to map the key to.
1638 # May not be an absolute path.
1639 # May not contain the path element &#x27;..&#x27;.
1640 # May not start with the string &#x27;..&#x27;.
1641 &quot;mode&quot;: 42, # (Optional)
1642 #
1643 # Cloud Run fully managed: not supported
1644 #
1645 # Cloud Run for Anthos: supported
1646 #
1647 # Mode bits to use on this file, must be a value between 0 and 0777. If not
1648 # specified, the volume defaultMode will be used. This might be in conflict
1649 # with other options that affect the file mode, like fsGroup, and the result
1650 # can be other mode bits set.
1651 },
1652 ],
1653 },
1654 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1655 #
1656 # Cloud Run for Anthos: supported
1657 #
1658 # Volume&#x27;s name.
1659 &quot;secret&quot;: { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported
1660 #
1661 # Cloud Run for Anthos: supported
1662 #
1663 # Cloud Run for Anthos: supported
1664 #
1665 # The contents of the target Secret&#x27;s Data field will be presented in a volume
1666 # as files using the keys in the Data field as the file names.
1667 &quot;optional&quot;: True or False, # (Optional)
1668 #
1669 # Cloud Run fully managed: not supported
1670 #
1671 # Cloud Run for Anthos: supported
1672 #
1673 # Specify whether the Secret or its keys must be defined.
1674 &quot;defaultMode&quot;: 42, # (Optional)
1675 #
1676 # Cloud Run fully managed: not supported
1677 #
1678 # Cloud Run for Anthos: supported
1679 #
1680 # Mode bits to use on created files by default. Must be a value between 0 and
1681 # 0777. Defaults to 0644. Directories within the path are not affected by
1682 # this setting. This might be in conflict with other options that affect the
1683 # file mode, like fsGroup, and the result can be other mode bits set.
1684 &quot;secretName&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1685 #
1686 # Cloud Run for Anthos: supported
1687 #
1688 # Name of the secret in the container&#x27;s namespace to use.
1689 &quot;items&quot;: [ # (Optional)
1690 #
1691 # Cloud Run fully managed: not supported
1692 #
1693 # Cloud Run for Anthos: supported
1694 #
1695 # If unspecified, each key-value pair in the Data field of the referenced
1696 # Secret will be projected into the volume as a file whose name is the
1697 # key and content is the value. If specified, the listed keys will be
1698 # projected into the specified paths, and unlisted keys will not be
1699 # present. If a key is specified which is not present in the Secret,
1700 # the volume setup will error unless it is marked optional.
1701 { # Cloud Run fully managed: not supported
1702 #
1703 # Cloud Run for Anthos: supported
1704 #
1705 # Maps a string key to a path within a volume.
1706 &quot;key&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1707 #
1708 # Cloud Run for Anthos: supported
1709 #
1710 # The key to project.
1711 &quot;path&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1712 #
1713 # Cloud Run for Anthos: supported
1714 #
1715 # The relative path of the file to map the key to.
1716 # May not be an absolute path.
1717 # May not contain the path element &#x27;..&#x27;.
1718 # May not start with the string &#x27;..&#x27;.
1719 &quot;mode&quot;: 42, # (Optional)
1720 #
1721 # Cloud Run fully managed: not supported
1722 #
1723 # Cloud Run for Anthos: supported
1724 #
1725 # Mode bits to use on this file, must be a value between 0 and 0777. If not
1726 # specified, the volume defaultMode will be used. This might be in conflict
1727 # with other options that affect the file mode, like fsGroup, and the result
1728 # can be other mode bits set.
1729 },
1730 ],
1731 },
1732 },
1733 ],
1734 &quot;containerConcurrency&quot;: 42, # (Optional)
1735 #
1736 # ContainerConcurrency specifies the maximum allowed in-flight (concurrent)
1737 # requests per container instance of the Revision.
1738 #
1739 # Cloud Run fully managed: supported, defaults to 80
1740 #
1741 # Cloud Run for Anthos: supported, defaults to 0, which means concurrency
1742 # to the application is not limited, and the system decides the
1743 # target concurrency for the autoscaler.
1744 &quot;timeoutSeconds&quot;: 42, # TimeoutSeconds holds the max duration the instance is allowed for
1745 # responding to a request.
1746 # Not currently used by Cloud Run.
1747 &quot;serviceAccountName&quot;: &quot;A String&quot;, # Email address of the IAM service account associated with the revision
1748 # of the service. The service account represents the identity of the
1749 # running revision, and determines what permissions the revision has. If
1750 # not provided, the revision will use the project&#x27;s default service account.
1751 &quot;containers&quot;: [ # Containers holds the single container that defines the unit of execution
1752 # for this Revision. In the context of a Revision, we disallow a number of
1753 # fields on this Container, including: name and lifecycle.
1754 # In Cloud Run, only a single container may be provided.
1755 # The runtime contract is documented here:
1756 # https://github.com/knative/serving/blob/master/docs/runtime-contract.md
1757 { # A single application container.
1758 # This specifies both the container to run, the command to run in the container
1759 # and the arguments to supply to it.
1760 # Note that additional arguments may be supplied by the system to the container
1761 # at runtime.
1762 &quot;volumeMounts&quot;: [ # (Optional)
1763 #
1764 # Cloud Run fully managed: not supported
1765 #
1766 # Cloud Run for Anthos: supported
1767 #
1768 # Pod volumes to mount into the container&#x27;s filesystem.
1769 { # Cloud Run fully managed: not supported
1770 #
1771 # Cloud Run for Anthos: supported
1772 #
1773 # VolumeMount describes a mounting of a Volume within a container.
1774 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1775 #
1776 # Cloud Run for Anthos: supported
1777 #
1778 # This must match the Name of a Volume.
1779 &quot;readOnly&quot;: True or False, # (Optional)
1780 #
1781 # Cloud Run fully managed: not supported
1782 #
1783 # Cloud Run for Anthos: supported
1784 #
1785 # Only true is accepted.
1786 # Defaults to true.
1787 &quot;mountPath&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1788 #
1789 # Cloud Run for Anthos: supported
1790 #
1791 # Path within the container at which the volume should be mounted. Must
1792 # not contain &#x27;:&#x27;.
1793 &quot;subPath&quot;: &quot;A String&quot;, # (Optional)
1794 #
1795 # Cloud Run fully managed: not supported
1796 #
1797 # Cloud Run for Anthos: supported
1798 #
1799 # Path within the volume from which the container&#x27;s volume should be mounted.
1800 # Defaults to &quot;&quot; (volume&#x27;s root).
1801 },
1802 ],
1803 &quot;args&quot;: [ # (Optional)
1804 #
1805 # Cloud Run fully managed: supported
1806 #
1807 # Cloud Run for Anthos: supported
1808 #
1809 # Arguments to the entrypoint.
1810 # The docker image&#x27;s CMD is used if this is not provided.
1811 # Variable references $(VAR_NAME) are expanded using the container&#x27;s
1812 # environment. If a variable cannot be resolved, the reference in the input
1813 # string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
1814 # double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
1815 # regardless of whether the variable exists or not.
1816 # More info:
1817 # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
1818 &quot;A String&quot;,
1819 ],
1820 &quot;workingDir&quot;: &quot;A String&quot;, # (Optional)
1821 #
1822 # Cloud Run fully managed: not supported
1823 #
1824 # Cloud Run for Anthos: supported
1825 #
1826 # Container&#x27;s working directory.
1827 # If not specified, the container runtime&#x27;s default will be used, which
1828 # might be configured in the container image.
1829 &quot;ports&quot;: [ # (Optional)
1830 #
1831 # List of ports to expose from the container. Only a single port can be
1832 # specified. The specified ports must be listening on all interfaces
1833 # (0.0.0.0) within the container to be accessible.
1834 #
1835 # If omitted, a port number will be chosen and passed to the container
1836 # through the PORT environment variable for the container to listen on.
1837 { # ContainerPort represents a network port in a single container.
1838 &quot;containerPort&quot;: 42, # (Optional)
1839 #
1840 # Port number the container listens on.
1841 # This must be a valid port number, 0 &lt; x &lt; 65536.
1842 &quot;protocol&quot;: &quot;A String&quot;, # (Optional)
1843 #
1844 # Cloud Run fully managed: not supported
1845 #
1846 # Cloud Run for Anthos: supported
1847 #
1848 # Protocol for port. Must be &quot;TCP&quot;.
1849 # Defaults to &quot;TCP&quot;.
1850 &quot;name&quot;: &quot;A String&quot;, # (Optional)
1851 #
1852 # Cloud Run fully managed: not supported
1853 #
1854 # Cloud Run for Anthos: supported
1855 #
1856 # If specified, used to specify which protocol to use.
1857 # Allowed values are &quot;http1&quot; and &quot;h2c&quot;.
1858 },
1859 ],
1860 &quot;image&quot;: &quot;A String&quot;, # Cloud Run fully managed: only supports containers from Google Container
1861 # Registry
1862 #
1863 # Cloud Run for Anthos: supported
1864 #
1865 # URL of the Container image.
1866 # More info: https://kubernetes.io/docs/concepts/containers/images
1867 &quot;envFrom&quot;: [ # (Optional)
1868 #
1869 # Cloud Run fully managed: not supported
1870 #
1871 # Cloud Run for Anthos: supported
1872 #
1873 # List of sources to populate environment variables in the container.
1874 # The keys defined within a source must be a C_IDENTIFIER. All invalid keys
1875 # will be reported as an event when the container is starting. When a key
1876 # exists in multiple sources, the value associated with the last source will
1877 # take precedence. Values defined by an Env with a duplicate key will take
1878 # precedence. Cannot be updated.
1879 { # Cloud Run fully managed: not supported
1880 #
1881 # Cloud Run for Anthos: supported
1882 #
1883 # EnvFromSource represents the source of a set of ConfigMaps
1884 &quot;prefix&quot;: &quot;A String&quot;, # (Optional)
1885 #
1886 # Cloud Run fully managed: not supported
1887 #
1888 # Cloud Run for Anthos: supported
1889 #
1890 # An optional identifier to prepend to each key in the ConfigMap. Must be a
1891 # C_IDENTIFIER.
1892 &quot;configMapRef&quot;: { # Cloud Run fully managed: not supported # (Optional)
1893 #
1894 # Cloud Run fully managed: not supported
1895 #
1896 # Cloud Run for Anthos: supported
1897 #
1898 # The ConfigMap to select from
1899 #
1900 # Cloud Run for Anthos: supported
1901 #
1902 # ConfigMapEnvSource selects a ConfigMap to populate the environment
1903 # variables with.
1904 #
1905 # The contents of the target ConfigMap&#x27;s Data field will represent the
1906 # key-value pairs as environment variables.
1907 &quot;localObjectReference&quot;: { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined
1908 # directly into the message. Use the &quot;name&quot; field instead.
1909 #
1910 # Cloud Run for Anthos: supported
1911 #
1912 # LocalObjectReference contains enough information to let you locate the
1913 # referenced object inside the same namespace.
1914 &quot;name&quot;: &quot;A String&quot;, # (Optional)
1915 #
1916 # Cloud Run fully managed: not supported
1917 #
1918 # Cloud Run for Anthos: supported
1919 #
1920 # Name of the referent.
1921 # More info:
1922 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
1923 },
1924 &quot;optional&quot;: True or False, # (Optional)
1925 #
1926 # Cloud Run fully managed: not supported
1927 #
1928 # Cloud Run for Anthos: supported
1929 #
1930 # Specify whether the ConfigMap must be defined
1931 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1932 #
1933 # Cloud Run for Anthos: supported
1934 #
1935 # The ConfigMap to select from.
1936 },
1937 &quot;secretRef&quot;: { # Cloud Run fully managed: not supported # (Optional)
1938 #
1939 # Cloud Run fully managed: not supported
1940 #
1941 # Cloud Run for Anthos: supported
1942 #
1943 # The Secret to select from
1944 #
1945 # Cloud Run for Anthos: supported
1946 #
1947 # SecretEnvSource selects a Secret to populate the environment
1948 # variables with.
1949 #
1950 # The contents of the target Secret&#x27;s Data field will represent the
1951 # key-value pairs as environment variables.
1952 &quot;localObjectReference&quot;: { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined
1953 # directly into the message. Use the &quot;name&quot; field instead.
1954 #
1955 # Cloud Run for Anthos: supported
1956 #
1957 # LocalObjectReference contains enough information to let you locate the
1958 # referenced object inside the same namespace.
1959 &quot;name&quot;: &quot;A String&quot;, # (Optional)
1960 #
1961 # Cloud Run fully managed: not supported
1962 #
1963 # Cloud Run for Anthos: supported
1964 #
1965 # Name of the referent.
1966 # More info:
1967 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
1968 },
1969 &quot;optional&quot;: True or False, # (Optional)
1970 #
1971 # Cloud Run fully managed: not supported
1972 #
1973 # Cloud Run for Anthos: supported
1974 #
1975 # Specify whether the Secret must be defined
1976 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
1977 #
1978 # Cloud Run for Anthos: supported
1979 #
1980 # The Secret to select from.
1981 },
1982 },
1983 ],
1984 &quot;name&quot;: &quot;A String&quot;, # (Optional)
1985 #
1986 # Name of the container specified as a DNS_LABEL.
1987 &quot;command&quot;: [
1988 &quot;A String&quot;,
1989 ],
1990 &quot;terminationMessagePolicy&quot;: &quot;A String&quot;, # (Optional)
1991 #
1992 # Cloud Run fully managed: not supported
1993 #
1994 # Cloud Run for Anthos: supported
1995 #
1996 # Indicate how the termination message should be populated. File will use the
1997 # contents of terminationMessagePath to populate the container status message
1998 # on both success and failure. FallbackToLogsOnError will use the last chunk
1999 # of container log output if the termination message file is empty and the
2000 # container exited with an error. The log output is limited to 2048 bytes or
2001 # 80 lines, whichever is smaller. Defaults to File. Cannot be updated.
2002 &quot;securityContext&quot;: { # Cloud Run fully managed: not supported # (Optional)
2003 #
2004 # Cloud Run fully managed: not supported
2005 #
2006 # Cloud Run for Anthos: supported
2007 #
2008 # Security options the pod should run with.
2009 # More info: https://kubernetes.io/docs/concepts/policy/security-context/
2010 # More info:
2011 # https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
2012 #
2013 # Cloud Run for Anthos: supported
2014 #
2015 # SecurityContext holds security configuration that will be applied to a
2016 # container. Some fields are present in both SecurityContext and
2017 # PodSecurityContext. When both are set, the values in SecurityContext take
2018 # precedence.
2019 &quot;runAsUser&quot;: 42, # (Optional)
2020 #
2021 # Cloud Run fully managed: not supported
2022 #
2023 # Cloud Run for Anthos: supported
2024 #
2025 # The UID to run the entrypoint of the container process.
2026 # Defaults to user specified in image metadata if unspecified.
2027 # May also be set in PodSecurityContext. If set in both SecurityContext and
2028 # PodSecurityContext, the value specified in SecurityContext takes
2029 # precedence.
2030 },
2031 &quot;livenessProbe&quot;: { # Cloud Run fully managed: not supported # (Optional)
2032 #
2033 # Cloud Run fully managed: not supported
2034 #
2035 # Cloud Run for Anthos: supported
2036 #
2037 # Periodic probe of container liveness.
2038 # Container will be restarted if the probe fails.
2039 # More info:
2040 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
2041 #
2042 # Cloud Run for Anthos: supported
2043 #
2044 # Probe describes a health check to be performed against a container to
2045 # determine whether it is alive or ready to receive traffic.
2046 &quot;httpGet&quot;: { # Cloud Run fully managed: not supported # (Optional)
2047 #
2048 # Cloud Run fully managed: not supported
2049 #
2050 # Cloud Run for Anthos: supported
2051 #
2052 # HTTPGet specifies the http request to perform.
2053 #
2054 # A field inlined from the Handler message.
2055 #
2056 # Cloud Run for Anthos: supported
2057 #
2058 # HTTPGetAction describes an action based on HTTP Get requests.
2059 &quot;httpHeaders&quot;: [ # (Optional)
2060 #
2061 # Cloud Run fully managed: not supported
2062 #
2063 # Cloud Run for Anthos: supported
2064 #
2065 # Custom headers to set in the request. HTTP allows repeated headers.
2066 { # Cloud Run fully managed: not supported
2067 #
2068 # Cloud Run for Anthos: supported
2069 #
2070 # HTTPHeader describes a custom header to be used in HTTP probes
2071 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
2072 #
2073 # Cloud Run for Anthos: supported
2074 #
2075 # The header field name
2076 &quot;value&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
2077 #
2078 # Cloud Run for Anthos: supported
2079 #
2080 # The header field value
2081 },
2082 ],
2083 &quot;path&quot;: &quot;A String&quot;, # (Optional)
2084 #
2085 # Cloud Run fully managed: not supported
2086 #
2087 # Cloud Run for Anthos: supported
2088 #
2089 # Path to access on the HTTP server.
2090 &quot;host&quot;: &quot;A String&quot;, # (Optional)
2091 #
2092 # Cloud Run fully managed: not supported
2093 #
2094 # Cloud Run for Anthos: supported
2095 #
2096 # Host name to connect to, defaults to the pod IP. You probably want to set
2097 # &quot;Host&quot; in httpHeaders instead.
2098 &quot;scheme&quot;: &quot;A String&quot;, # (Optional)
2099 #
2100 # Cloud Run fully managed: not supported
2101 #
2102 # Cloud Run for Anthos: supported
2103 #
2104 # Scheme to use for connecting to the host.
2105 # Defaults to HTTP.
2106 },
2107 &quot;failureThreshold&quot;: 42, # (Optional)
2108 #
2109 # Cloud Run fully managed: not supported
2110 #
2111 # Cloud Run for Anthos: supported
2112 #
2113 # Minimum consecutive failures for the probe to be considered failed after
2114 # having succeeded. Defaults to 3. Minimum value is 1.
2115 &quot;exec&quot;: { # Cloud Run fully managed: not supported # (Optional)
2116 #
2117 # Cloud Run fully managed: not supported
2118 #
2119 # Cloud Run for Anthos: supported
2120 #
2121 # One and only one of the following should be specified.
2122 # Exec specifies the action to take.
2123 #
2124 # A field inlined from the Handler message.
2125 #
2126 # Cloud Run for Anthos: supported
2127 #
2128 # ExecAction describes a &quot;run in container&quot; action.
2129 &quot;command&quot;: &quot;A String&quot;, # (Optional)
2130 #
2131 # Cloud Run fully managed: not supported
2132 #
2133 # Cloud Run for Anthos: supported
2134 #
2135 # Command is the command line to execute inside the container, the working
2136 # directory for the command is root (&#x27;/&#x27;) in the container&#x27;s filesystem. The
2137 # command is simply exec&#x27;d, it is not run inside a shell, so traditional
2138 # shell instructions (&#x27;|&#x27;, etc) won&#x27;t work. To use a shell, you need to
2139 # explicitly call out to that shell. Exit status of 0 is treated as
2140 # live/healthy and non-zero is unhealthy.
2141 },
2142 &quot;initialDelaySeconds&quot;: 42, # (Optional)
2143 #
2144 # Cloud Run fully managed: not supported
2145 #
2146 # Cloud Run for Anthos: supported
2147 #
2148 # Number of seconds after the container has started before liveness probes
2149 # are initiated. More info:
2150 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
2151 &quot;timeoutSeconds&quot;: 42, # (Optional)
2152 #
2153 # Cloud Run fully managed: not supported
2154 #
2155 # Cloud Run for Anthos: supported
2156 #
2157 # Number of seconds after which the probe times out.
2158 # Defaults to 1 second. Minimum value is 1.
2159 # More info:
2160 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
2161 &quot;successThreshold&quot;: 42, # (Optional)
2162 #
2163 # Cloud Run fully managed: not supported
2164 #
2165 # Cloud Run for Anthos: supported
2166 #
2167 # Minimum consecutive successes for the probe to be considered successful
2168 # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value
2169 # is 1.
2170 &quot;periodSeconds&quot;: 42, # (Optional)
2171 #
2172 # Cloud Run fully managed: not supported
2173 #
2174 # Cloud Run for Anthos: supported
2175 #
2176 # How often (in seconds) to perform the probe.
2177 # Default to 10 seconds. Minimum value is 1.
2178 &quot;tcpSocket&quot;: { # Cloud Run fully managed: not supported # (Optional)
2179 #
2180 # Cloud Run fully managed: not supported
2181 #
2182 # Cloud Run for Anthos: supported
2183 #
2184 # TCPSocket specifies an action involving a TCP port.
2185 # TCP hooks not yet supported
2186 #
2187 # A field inlined from the Handler message.
2188 #
2189 # Cloud Run for Anthos: supported
2190 #
2191 # TCPSocketAction describes an action based on opening a socket
2192 &quot;port&quot;: 42, # Cloud Run fully managed: not supported
2193 #
2194 # Cloud Run for Anthos: supported
2195 #
2196 # Number or name of the port to access on the container.
2197 # Number must be in the range 1 to 65535.
2198 # Name must be an IANA_SVC_NAME.
2199 #
2200 # This field is currently limited to integer types only because of proto&#x27;s
2201 # inability to properly support the IntOrString golang type.
2202 &quot;host&quot;: &quot;A String&quot;, # (Optional)
2203 #
2204 # Cloud Run fully managed: not supported
2205 #
2206 # Cloud Run for Anthos: supported
2207 #
2208 # Optional: Host name to connect to, defaults to the pod IP.
2209 },
2210 },
2211 &quot;env&quot;: [ # (Optional)
2212 #
2213 # Cloud Run fully managed: supported
2214 #
2215 # Cloud Run for Anthos: supported
2216 #
2217 # List of environment variables to set in the container.
2218 { # EnvVar represents an environment variable present in a Container.
2219 &quot;name&quot;: &quot;A String&quot;, # Name of the environment variable. Must be a C_IDENTIFIER.
2220 &quot;valueFrom&quot;: { # Cloud Run fully managed: not supported # (Optional)
2221 #
2222 # Cloud Run fully managed: not supported
2223 #
2224 # Cloud Run for Anthos: supported
2225 #
2226 # Source for the environment variable&#x27;s value. Cannot be used if value is not
2227 # empty.
2228 #
2229 # Cloud Run for Anthos: supported
2230 #
2231 # EnvVarSource represents a source for the value of an EnvVar.
2232 &quot;secretKeyRef&quot;: { # Cloud Run fully managed: not supported # (Optional)
2233 #
2234 # Cloud Run fully managed: not supported
2235 #
2236 # Cloud Run for Anthos: supported
2237 #
2238 # Selects a key of a secret in the pod&#x27;s namespace
2239 #
2240 # Cloud Run for Anthos: supported
2241 #
2242 # SecretKeySelector selects a key of a Secret.
2243 &quot;key&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
2244 #
2245 # Cloud Run for Anthos: supported
2246 #
2247 # The key of the secret to select from. Must be a valid secret key.
2248 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
2249 #
2250 # Cloud Run for Anthos: supported
2251 #
2252 # The name of the secret in the pod&#x27;s namespace to select from.
2253 &quot;localObjectReference&quot;: { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined
2254 # directly into the message. Use the &quot;name&quot; field instead.
2255 #
2256 # Cloud Run for Anthos: supported
2257 #
2258 # LocalObjectReference contains enough information to let you locate the
2259 # referenced object inside the same namespace.
2260 &quot;name&quot;: &quot;A String&quot;, # (Optional)
2261 #
2262 # Cloud Run fully managed: not supported
2263 #
2264 # Cloud Run for Anthos: supported
2265 #
2266 # Name of the referent.
2267 # More info:
2268 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2269 },
2270 &quot;optional&quot;: True or False, # (Optional)
2271 #
2272 # Cloud Run fully managed: not supported
2273 #
2274 # Cloud Run for Anthos: supported
2275 #
2276 # Specify whether the Secret or its key must be defined
2277 },
2278 &quot;configMapKeyRef&quot;: { # Cloud Run fully managed: not supported # (Optional)
2279 #
2280 # Cloud Run fully managed: not supported
2281 #
2282 # Cloud Run for Anthos: supported
2283 #
2284 # Selects a key of a ConfigMap.
2285 #
2286 # Cloud Run for Anthos: supported
2287 #
2288 # Selects a key from a ConfigMap.
2289 &quot;localObjectReference&quot;: { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined
2290 # directly into the message. Use the &quot;name&quot; field instead.
2291 #
2292 # Cloud Run for Anthos: supported
2293 #
2294 # LocalObjectReference contains enough information to let you locate the
2295 # referenced object inside the same namespace.
2296 &quot;name&quot;: &quot;A String&quot;, # (Optional)
2297 #
2298 # Cloud Run fully managed: not supported
2299 #
2300 # Cloud Run for Anthos: supported
2301 #
2302 # Name of the referent.
2303 # More info:
2304 # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
2305 },
2306 &quot;optional&quot;: True or False, # (Optional)
2307 #
2308 # Cloud Run fully managed: not supported
2309 #
2310 # Cloud Run for Anthos: supported
2311 #
2312 # Specify whether the ConfigMap or its key must be defined
2313 &quot;key&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
2314 #
2315 # Cloud Run for Anthos: supported
2316 #
2317 # The key to select.
2318 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
2319 #
2320 # Cloud Run for Anthos: supported
2321 #
2322 # The ConfigMap to select from.
2323 },
2324 },
2325 &quot;value&quot;: &quot;A String&quot;, # (Optional)
2326 #
2327 # Variable references $(VAR_NAME) are expanded
2328 # using the previous defined environment variables in the container and
2329 # any route environment variables. If a variable cannot be resolved,
2330 # the reference in the input string will be unchanged. The $(VAR_NAME)
2331 # syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped
2332 # references will never be expanded, regardless of whether the variable
2333 # exists or not.
2334 # Defaults to &quot;&quot;.
2335 },
2336 ],
2337 &quot;resources&quot;: { # ResourceRequirements describes the compute resource requirements. # (Optional)
2338 #
2339 # Cloud Run fully managed: supported
2340 #
2341 # Cloud Run for Anthos: supported
2342 #
2343 # Compute Resources required by this container.
2344 # More info:
2345 # https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
2346 &quot;limits&quot;: { # (Optional)
2347 #
2348 # Cloud Run fully managed: Only memory and CPU are supported. Note: The only
2349 # supported value for CPU is &#x27;1&#x27;.
2350 #
2351 # Cloud Run for Anthos: supported
2352 #
2353 # Limits describes the maximum amount of compute resources allowed.
2354 # The values of the map is string form of the &#x27;quantity&#x27; k8s type:
2355 # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
2356 &quot;a_key&quot;: &quot;A String&quot;,
2357 },
2358 &quot;requests&quot;: { # (Optional)
2359 #
2360 # Cloud Run fully managed: Only memory and CPU are supported. Note: The only
2361 # supported value for CPU is &#x27;1&#x27;.
2362 #
2363 # Cloud Run for Anthos: supported
2364 #
2365 # Requests describes the minimum amount of compute resources required.
2366 # If Requests is omitted for a container, it defaults to Limits if that is
2367 # explicitly specified, otherwise to an implementation-defined value.
2368 # The values of the map is string form of the &#x27;quantity&#x27; k8s type:
2369 # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
2370 &quot;a_key&quot;: &quot;A String&quot;,
2371 },
2372 },
2373 &quot;readinessProbe&quot;: { # Cloud Run fully managed: not supported # (Optional)
2374 #
2375 # Cloud Run fully managed: not supported
2376 #
2377 # Cloud Run for Anthos: supported
2378 #
2379 # Periodic probe of container service readiness.
2380 # Container will be removed from service endpoints if the probe fails.
2381 # More info:
2382 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
2383 #
2384 # Cloud Run for Anthos: supported
2385 #
2386 # Probe describes a health check to be performed against a container to
2387 # determine whether it is alive or ready to receive traffic.
2388 &quot;httpGet&quot;: { # Cloud Run fully managed: not supported # (Optional)
2389 #
2390 # Cloud Run fully managed: not supported
2391 #
2392 # Cloud Run for Anthos: supported
2393 #
2394 # HTTPGet specifies the http request to perform.
2395 #
2396 # A field inlined from the Handler message.
2397 #
2398 # Cloud Run for Anthos: supported
2399 #
2400 # HTTPGetAction describes an action based on HTTP Get requests.
2401 &quot;httpHeaders&quot;: [ # (Optional)
2402 #
2403 # Cloud Run fully managed: not supported
2404 #
2405 # Cloud Run for Anthos: supported
2406 #
2407 # Custom headers to set in the request. HTTP allows repeated headers.
2408 { # Cloud Run fully managed: not supported
2409 #
2410 # Cloud Run for Anthos: supported
2411 #
2412 # HTTPHeader describes a custom header to be used in HTTP probes
2413 &quot;name&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
2414 #
2415 # Cloud Run for Anthos: supported
2416 #
2417 # The header field name
2418 &quot;value&quot;: &quot;A String&quot;, # Cloud Run fully managed: not supported
2419 #
2420 # Cloud Run for Anthos: supported
2421 #
2422 # The header field value
2423 },
2424 ],
2425 &quot;path&quot;: &quot;A String&quot;, # (Optional)
2426 #
2427 # Cloud Run fully managed: not supported
2428 #
2429 # Cloud Run for Anthos: supported
2430 #
2431 # Path to access on the HTTP server.
2432 &quot;host&quot;: &quot;A String&quot;, # (Optional)
2433 #
2434 # Cloud Run fully managed: not supported
2435 #
2436 # Cloud Run for Anthos: supported
2437 #
2438 # Host name to connect to, defaults to the pod IP. You probably want to set
2439 # &quot;Host&quot; in httpHeaders instead.
2440 &quot;scheme&quot;: &quot;A String&quot;, # (Optional)
2441 #
2442 # Cloud Run fully managed: not supported
2443 #
2444 # Cloud Run for Anthos: supported
2445 #
2446 # Scheme to use for connecting to the host.
2447 # Defaults to HTTP.
2448 },
2449 &quot;failureThreshold&quot;: 42, # (Optional)
2450 #
2451 # Cloud Run fully managed: not supported
2452 #
2453 # Cloud Run for Anthos: supported
2454 #
2455 # Minimum consecutive failures for the probe to be considered failed after
2456 # having succeeded. Defaults to 3. Minimum value is 1.
2457 &quot;exec&quot;: { # Cloud Run fully managed: not supported # (Optional)
2458 #
2459 # Cloud Run fully managed: not supported
2460 #
2461 # Cloud Run for Anthos: supported
2462 #
2463 # One and only one of the following should be specified.
2464 # Exec specifies the action to take.
2465 #
2466 # A field inlined from the Handler message.
2467 #
2468 # Cloud Run for Anthos: supported
2469 #
2470 # ExecAction describes a &quot;run in container&quot; action.
2471 &quot;command&quot;: &quot;A String&quot;, # (Optional)
2472 #
2473 # Cloud Run fully managed: not supported
2474 #
2475 # Cloud Run for Anthos: supported
2476 #
2477 # Command is the command line to execute inside the container, the working
2478 # directory for the command is root (&#x27;/&#x27;) in the container&#x27;s filesystem. The
2479 # command is simply exec&#x27;d, it is not run inside a shell, so traditional
2480 # shell instructions (&#x27;|&#x27;, etc) won&#x27;t work. To use a shell, you need to
2481 # explicitly call out to that shell. Exit status of 0 is treated as
2482 # live/healthy and non-zero is unhealthy.
2483 },
2484 &quot;initialDelaySeconds&quot;: 42, # (Optional)
2485 #
2486 # Cloud Run fully managed: not supported
2487 #
2488 # Cloud Run for Anthos: supported
2489 #
2490 # Number of seconds after the container has started before liveness probes
2491 # are initiated. More info:
2492 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
2493 &quot;timeoutSeconds&quot;: 42, # (Optional)
2494 #
2495 # Cloud Run fully managed: not supported
2496 #
2497 # Cloud Run for Anthos: supported
2498 #
2499 # Number of seconds after which the probe times out.
2500 # Defaults to 1 second. Minimum value is 1.
2501 # More info:
2502 # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
2503 &quot;successThreshold&quot;: 42, # (Optional)
2504 #
2505 # Cloud Run fully managed: not supported
2506 #
2507 # Cloud Run for Anthos: supported
2508 #
2509 # Minimum consecutive successes for the probe to be considered successful
2510 # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value
2511 # is 1.
2512 &quot;periodSeconds&quot;: 42, # (Optional)
2513 #
2514 # Cloud Run fully managed: not supported
2515 #
2516 # Cloud Run for Anthos: supported
2517 #
2518 # How often (in seconds) to perform the probe.
2519 # Default to 10 seconds. Minimum value is 1.
2520 &quot;tcpSocket&quot;: { # Cloud Run fully managed: not supported # (Optional)
2521 #
2522 # Cloud Run fully managed: not supported
2523 #
2524 # Cloud Run for Anthos: supported
2525 #
2526 # TCPSocket specifies an action involving a TCP port.
2527 # TCP hooks not yet supported
2528 #
2529 # A field inlined from the Handler message.
2530 #
2531 # Cloud Run for Anthos: supported
2532 #
2533 # TCPSocketAction describes an action based on opening a socket
2534 &quot;port&quot;: 42, # Cloud Run fully managed: not supported
2535 #
2536 # Cloud Run for Anthos: supported
2537 #
2538 # Number or name of the port to access on the container.
2539 # Number must be in the range 1 to 65535.
2540 # Name must be an IANA_SVC_NAME.
2541 #
2542 # This field is currently limited to integer types only because of proto&#x27;s
2543 # inability to properly support the IntOrString golang type.
2544 &quot;host&quot;: &quot;A String&quot;, # (Optional)
2545 #
2546 # Cloud Run fully managed: not supported
2547 #
2548 # Cloud Run for Anthos: supported
2549 #
2550 # Optional: Host name to connect to, defaults to the pod IP.
2551 },
2552 },
2553 &quot;imagePullPolicy&quot;: &quot;A String&quot;, # (Optional)
2554 #
2555 # Cloud Run fully managed: not supported
2556 #
2557 # Cloud Run for Anthos: supported
2558 #
2559 # Image pull policy.
2560 # One of Always, Never, IfNotPresent.
2561 # Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
2562 # More info:
2563 # https://kubernetes.io/docs/concepts/containers/images#updating-images
2564 &quot;terminationMessagePath&quot;: &quot;A String&quot;, # (Optional)
2565 #
2566 # Cloud Run fully managed: not supported
2567 #
2568 # Cloud Run for Anthos: supported
2569 #
2570 # Path at which the file to which the container&#x27;s termination
2571 # message will be written is mounted into the container&#x27;s filesystem. Message
2572 # written is intended to be brief final status, such as an assertion failure
2573 # message. Will be truncated by the node if greater than 4096 bytes. The
2574 # total message length across all containers will be limited to 12kb.
2575 # Defaults to /dev/termination-log.
2576 },
2577 ],
2578 },
2579 &quot;kind&quot;: &quot;A String&quot;, # The kind of this resource, in this case &quot;Revision&quot;.
2580 &quot;metadata&quot;: { # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # Metadata associated with this Revision, including name, namespace, labels,
2581 # and annotations.
2582 # persisted resources must have, which includes all objects users must create.
2583 &quot;creationTimestamp&quot;: &quot;A String&quot;, # (Optional)
2584 #
2585 # CreationTimestamp is a timestamp representing the server time when this
2586 # object was created. It is not guaranteed to be set in happens-before order
2587 # across separate operations. Clients may not set this value. It is
2588 # represented in RFC3339 form and is in UTC.
2589 #
2590 # Populated by the system.
2591 # Read-only.
2592 # Null for lists.
2593 # More info:
2594 # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
2595 &quot;labels&quot;: { # (Optional)
2596 #
2597 # Map of string keys and values that can be used to organize and categorize
2598 # (scope and select) objects. May match selectors of replication controllers
2599 # and routes.
2600 # More info: http://kubernetes.io/docs/user-guide/labels
2601 &quot;a_key&quot;: &quot;A String&quot;,
2602 },
2603 &quot;generation&quot;: 42, # (Optional)
2604 #
2605 # A sequence number representing a specific generation of the desired state.
2606 # Populated by the system. Read-only.
2607 &quot;resourceVersion&quot;: &quot;A String&quot;, # (Optional)
2608 #
2609 # An opaque value that represents the internal version of this object that
2610 # can be used by clients to determine when objects have changed. May be used
2611 # for optimistic concurrency, change detection, and the watch operation on a
2612 # resource or set of resources. Clients must treat these values as opaque and
2613 # passed unmodified back to the server. They may only be valid for a
2614 # particular resource or set of resources.
2615 #
2616 # Populated by the system.
2617 # Read-only.
2618 # Value must be treated as opaque by clients and .
2619 # More info:
2620 # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
2621 &quot;selfLink&quot;: &quot;A String&quot;, # (Optional)
2622 #
2623 # SelfLink is a URL representing this object.
2624 # Populated by the system.
2625 # Read-only.
2626 # string selfLink = 4;
2627 &quot;uid&quot;: &quot;A String&quot;, # (Optional)
2628 #
2629 # UID is the unique in time and space value for this object. It is typically
2630 # generated by the server on successful creation of a resource and is not
2631 # allowed to change on PUT operations.
2632 #
2633 # Populated by the system.
2634 # Read-only.
2635 # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
2636 &quot;namespace&quot;: &quot;A String&quot;, # Namespace defines the space within each name must be unique, within a
2637 # Cloud Run region. In Cloud Run the namespace must be equal to either the
2638 # project ID or project number.
2639 &quot;annotations&quot;: { # (Optional)
2640 #
2641 # Annotations is an unstructured key value map stored with a resource that
2642 # may be set by external tools to store and retrieve arbitrary metadata. They
2643 # are not queryable and should be preserved when modifying objects. More
2644 # info: http://kubernetes.io/docs/user-guide/annotations
2645 &quot;a_key&quot;: &quot;A String&quot;,
2646 },
2647 &quot;generateName&quot;: &quot;A String&quot;, # (Optional)
2648 #
2649 # Cloud Run fully managed: not supported
2650 #
2651 # Cloud Run for Anthos: supported
2652 #
2653 # GenerateName is an optional prefix, used by the server, to generate a
2654 # unique name ONLY IF the Name field has not been provided. If this field is
2655 # used, the name returned to the client will be different than the name
2656 # passed. This value will also be combined with a unique suffix. The provided
2657 # value has the same validation rules as the Name field, and may be truncated
2658 # by the length of the suffix required to make the value unique on the
2659 # server.
2660 #
2661 # If this field is specified and the generated name exists, the server will
2662 # NOT return a 409 - instead, it will either return 201 Created or 500 with
2663 # Reason ServerTimeout indicating a unique name could not be found in the
2664 # time allotted, and the client should retry (optionally after the time
2665 # indicated in the Retry-After header).
2666 #
2667 # Applied only if Name is not specified.
2668 # More info:
2669 # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency
2670 # string generateName = 2;
2671 &quot;name&quot;: &quot;A String&quot;, # Name must be unique within a namespace, within a Cloud Run region.
2672 # Is required when creating
2673 # resources, although some resources may allow a client to request the
2674 # generation of an appropriate name automatically. Name is primarily intended
2675 # for creation idempotence and configuration definition. Cannot be updated.
2676 # More info: http://kubernetes.io/docs/user-guide/identifiers#names
2677 # +optional
2678 &quot;deletionGracePeriodSeconds&quot;: 42, # (Optional)
2679 #
2680 # Cloud Run fully managed: not supported
2681 #
2682 # Cloud Run for Anthos: supported
2683 #
2684 # Number of seconds allowed for this object to gracefully terminate before
2685 # it will be removed from the system. Only set when deletionTimestamp is also
2686 # set. May only be shortened. Read-only.
2687 &quot;clusterName&quot;: &quot;A String&quot;, # (Optional)
2688 #
2689 # Cloud Run fully managed: not supported
2690 #
2691 # Cloud Run for Anthos: supported
2692 #
2693 # The name of the cluster which the object belongs to.
2694 # This is used to distinguish resources with same name and namespace in
2695 # different clusters. This field is not set anywhere right now and apiserver
2696 # is going to ignore it if set in create or update request.
2697 &quot;finalizers&quot;: [ # (Optional)
2698 #
2699 # Cloud Run fully managed: not supported
2700 #
2701 # Cloud Run for Anthos: supported
2702 #
2703 # Must be empty before the object is deleted from the registry. Each entry
2704 # is an identifier for the responsible component that will remove the entry
2705 # from the list. If the deletionTimestamp of the object is non-nil, entries
2706 # in this list can only be removed.
2707 # +patchStrategy=merge
2708 &quot;A String&quot;,
2709 ],
2710 &quot;deletionTimestamp&quot;: &quot;A String&quot;, # (Optional)
2711 #
2712 # Cloud Run fully managed: not supported
2713 #
2714 # Cloud Run for Anthos: supported
2715 #
2716 # DeletionTimestamp is RFC 3339 date and time at which this resource will be
2717 # deleted. This field is set by the server when a graceful deletion is
2718 # requested by the user, and is not directly settable by a client. The
2719 # resource is expected to be deleted (no longer visible from resource lists,
2720 # and not reachable by name) after the time in this field, once the
2721 # finalizers list is empty. As long as the finalizers list contains items,
2722 # deletion is blocked. Once the deletionTimestamp is set, this value may not
2723 # be unset or be set further into the future, although it may be shortened or
2724 # the resource may be deleted prior to this time. For example, a user may
2725 # request that a pod is deleted in 30 seconds. The Kubelet will react by
2726 # sending a graceful termination signal to the containers in the pod. After
2727 # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL)
2728 # to the container and after cleanup, remove the pod from the API. In the
2729 # presence of network partitions, this object may still exist after this
2730 # timestamp, until an administrator or automated process can determine the
2731 # resource is fully terminated.
2732 # If not set, graceful deletion of the object has not been requested.
2733 #
2734 # Populated by the system when a graceful deletion is requested.
2735 # Read-only.
2736 # More info:
2737 # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
2738 &quot;ownerReferences&quot;: [ # (Optional)
2739 #
2740 # Cloud Run fully managed: not supported
2741 #
2742 # Cloud Run for Anthos: supported
2743 #
2744 # List of objects that own this object. If ALL objects in the list have
2745 # been deleted, this object will be garbage collected.
2746 { # OwnerReference contains enough information to let you identify an owning
2747 # object. Currently, an owning object must be in the same namespace, so there
2748 # is no namespace field.
2749 &quot;uid&quot;: &quot;A String&quot;, # UID of the referent.
2750 # More info: http://kubernetes.io/docs/user-guide/identifiers#uids
2751 &quot;controller&quot;: True or False, # If true, this reference points to the managing controller.
2752 # +optional
2753 &quot;kind&quot;: &quot;A String&quot;, # Kind of the referent.
2754 # More info:
2755 # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
2756 &quot;blockOwnerDeletion&quot;: True or False, # If true, AND if the owner has the &quot;foregroundDeletion&quot; finalizer, then
2757 # the owner cannot be deleted from the key-value store until this
2758 # reference is removed.
2759 # Defaults to false.
2760 # To set this field, a user needs &quot;delete&quot; permission of the owner,
2761 # otherwise 422 (Unprocessable Entity) will be returned.
2762 # +optional
2763 &quot;apiVersion&quot;: &quot;A String&quot;, # API version of the referent.
2764 &quot;name&quot;: &quot;A String&quot;, # Name of the referent.
2765 # More info: http://kubernetes.io/docs/user-guide/identifiers#names
2766 },
2767 ],
2768 },
2769 },
2770 ],
2771 &quot;apiVersion&quot;: &quot;A String&quot;, # The API version for this call such as &quot;serving.knative.dev/v1&quot;.
2772 &quot;kind&quot;: &quot;A String&quot;, # The kind of this resource, in this case &quot;RevisionList&quot;.
2773 &quot;unreachable&quot;: [ # Locations that could not be reached.
2774 &quot;A String&quot;,
2775 ],
2776 }</pre>
2777</div>
2778
2779</body></html>