Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, 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 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, 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.services.html">services</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
| 78 | <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p> |
| 79 | <p class="firstline">Create a service.</p> |
| 80 | <p class="toc_element"> |
| 81 | <code><a href="#delete">delete(name, apiVersion=None, propagationPolicy=None, kind=None, x__xgafv=None)</a></code></p> |
| 82 | <p class="firstline">Delete a service.</p> |
| 83 | <p class="toc_element"> |
| 84 | <code><a href="#get">get(name, x__xgafv=None)</a></code></p> |
| 85 | <p class="firstline">Get information about a service.</p> |
| 86 | <p class="toc_element"> |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 87 | <code><a href="#list">list(parent, resourceVersion=None, includeUninitialized=None, fieldSelector=None, continue=None, limit=None, watch=None, labelSelector=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 88 | <p class="firstline">List services.</p> |
| 89 | <p class="toc_element"> |
| 90 | <code><a href="#replaceService">replaceService(name, body=None, x__xgafv=None)</a></code></p> |
| 91 | <p class="firstline">Replace a service.</p> |
| 92 | <h3>Method Details</h3> |
| 93 | <div class="method"> |
| 94 | <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code> |
| 95 | <pre>Create a service. |
| 96 | |
| 97 | Args: |
| 98 | parent: string, The namespace in which the service should be created. |
| 99 | For Cloud Run (fully managed), replace {namespace_id} with the project ID |
| 100 | or number. (required) |
| 101 | body: object, The request body. |
| 102 | The object takes the form of: |
| 103 | |
| 104 | { # Service acts as a top-level container that manages a set of Routes and |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 105 | # Configurations which implement a network service. Service exists to provide a |
| 106 | # singular abstraction which can be access controlled, reasoned about, and |
| 107 | # which encapsulates software lifecycle decisions such as rollout policy and |
| 108 | # team resource ownership. Service acts only as an orchestrator of the |
| 109 | # underlying Routes and Configurations (much as a kubernetes Deployment |
| 110 | # orchestrates ReplicaSets). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 111 | # |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 112 | # The Service's controller will track the statuses of its owned Configuration |
| 113 | # and Route, reflecting their statuses and conditions as its own. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 114 | # |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 115 | # See also: |
| 116 | # https://github.com/knative/serving/blob/master/docs/spec/overview.md#service |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 117 | "kind": "A String", # The kind of resource, in this case "Service". |
| 118 | "metadata": { # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # Metadata associated with this Service, including name, namespace, labels, |
| 119 | # and annotations. |
| 120 | # persisted resources must have, which includes all objects users must create. |
| 121 | "annotations": { # (Optional) |
| 122 | # |
| 123 | # Annotations is an unstructured key value map stored with a resource that |
| 124 | # may be set by external tools to store and retrieve arbitrary metadata. They |
| 125 | # are not queryable and should be preserved when modifying objects. More |
| 126 | # info: http://kubernetes.io/docs/user-guide/annotations |
| 127 | "a_key": "A String", |
| 128 | }, |
| 129 | "generateName": "A String", # (Optional) |
| 130 | # |
| 131 | # Cloud Run fully managed: not supported |
| 132 | # |
| 133 | # Cloud Run for Anthos: supported |
| 134 | # |
| 135 | # GenerateName is an optional prefix, used by the server, to generate a |
| 136 | # unique name ONLY IF the Name field has not been provided. If this field is |
| 137 | # used, the name returned to the client will be different than the name |
| 138 | # passed. This value will also be combined with a unique suffix. The provided |
| 139 | # value has the same validation rules as the Name field, and may be truncated |
| 140 | # by the length of the suffix required to make the value unique on the |
| 141 | # server. |
| 142 | # |
| 143 | # If this field is specified and the generated name exists, the server will |
| 144 | # NOT return a 409 - instead, it will either return 201 Created or 500 with |
| 145 | # Reason ServerTimeout indicating a unique name could not be found in the |
| 146 | # time allotted, and the client should retry (optionally after the time |
| 147 | # indicated in the Retry-After header). |
| 148 | # |
| 149 | # Applied only if Name is not specified. |
| 150 | # More info: |
| 151 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency |
| 152 | # string generateName = 2; |
| 153 | "name": "A String", # Name must be unique within a namespace, within a Cloud Run region. |
| 154 | # Is required when creating |
| 155 | # resources, although some resources may allow a client to request the |
| 156 | # generation of an appropriate name automatically. Name is primarily intended |
| 157 | # for creation idempotence and configuration definition. Cannot be updated. |
| 158 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 159 | # +optional |
| 160 | "deletionGracePeriodSeconds": 42, # (Optional) |
| 161 | # |
| 162 | # Cloud Run fully managed: not supported |
| 163 | # |
| 164 | # Cloud Run for Anthos: supported |
| 165 | # |
| 166 | # Number of seconds allowed for this object to gracefully terminate before |
| 167 | # it will be removed from the system. Only set when deletionTimestamp is also |
| 168 | # set. May only be shortened. Read-only. |
| 169 | "clusterName": "A String", # (Optional) |
| 170 | # |
| 171 | # Cloud Run fully managed: not supported |
| 172 | # |
| 173 | # Cloud Run for Anthos: supported |
| 174 | # |
| 175 | # The name of the cluster which the object belongs to. |
| 176 | # This is used to distinguish resources with same name and namespace in |
| 177 | # different clusters. This field is not set anywhere right now and apiserver |
| 178 | # is going to ignore it if set in create or update request. |
| 179 | "finalizers": [ # (Optional) |
| 180 | # |
| 181 | # Cloud Run fully managed: not supported |
| 182 | # |
| 183 | # Cloud Run for Anthos: supported |
| 184 | # |
| 185 | # Must be empty before the object is deleted from the registry. Each entry |
| 186 | # is an identifier for the responsible component that will remove the entry |
| 187 | # from the list. If the deletionTimestamp of the object is non-nil, entries |
| 188 | # in this list can only be removed. |
| 189 | # +patchStrategy=merge |
| 190 | "A String", |
| 191 | ], |
| 192 | "deletionTimestamp": "A String", # (Optional) |
| 193 | # |
| 194 | # Cloud Run fully managed: not supported |
| 195 | # |
| 196 | # Cloud Run for Anthos: supported |
| 197 | # |
| 198 | # DeletionTimestamp is RFC 3339 date and time at which this resource will be |
| 199 | # deleted. This field is set by the server when a graceful deletion is |
| 200 | # requested by the user, and is not directly settable by a client. The |
| 201 | # resource is expected to be deleted (no longer visible from resource lists, |
| 202 | # and not reachable by name) after the time in this field, once the |
| 203 | # finalizers list is empty. As long as the finalizers list contains items, |
| 204 | # deletion is blocked. Once the deletionTimestamp is set, this value may not |
| 205 | # be unset or be set further into the future, although it may be shortened or |
| 206 | # the resource may be deleted prior to this time. For example, a user may |
| 207 | # request that a pod is deleted in 30 seconds. The Kubelet will react by |
| 208 | # sending a graceful termination signal to the containers in the pod. After |
| 209 | # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) |
| 210 | # to the container and after cleanup, remove the pod from the API. In the |
| 211 | # presence of network partitions, this object may still exist after this |
| 212 | # timestamp, until an administrator or automated process can determine the |
| 213 | # resource is fully terminated. |
| 214 | # If not set, graceful deletion of the object has not been requested. |
| 215 | # |
| 216 | # Populated by the system when a graceful deletion is requested. |
| 217 | # Read-only. |
| 218 | # More info: |
| 219 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 220 | "ownerReferences": [ # (Optional) |
| 221 | # |
| 222 | # Cloud Run fully managed: not supported |
| 223 | # |
| 224 | # Cloud Run for Anthos: supported |
| 225 | # |
| 226 | # List of objects that own this object. If ALL objects in the list have |
| 227 | # been deleted, this object will be garbage collected. |
| 228 | { # OwnerReference contains enough information to let you identify an owning |
| 229 | # object. Currently, an owning object must be in the same namespace, so there |
| 230 | # is no namespace field. |
| 231 | "controller": True or False, # If true, this reference points to the managing controller. |
| 232 | # +optional |
| 233 | "kind": "A String", # Kind of the referent. |
| 234 | # More info: |
| 235 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds |
| 236 | "blockOwnerDeletion": True or False, # If true, AND if the owner has the "foregroundDeletion" finalizer, then |
| 237 | # the owner cannot be deleted from the key-value store until this |
| 238 | # reference is removed. |
| 239 | # Defaults to false. |
| 240 | # To set this field, a user needs "delete" permission of the owner, |
| 241 | # otherwise 422 (Unprocessable Entity) will be returned. |
| 242 | # +optional |
| 243 | "apiVersion": "A String", # API version of the referent. |
| 244 | "name": "A String", # Name of the referent. |
| 245 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 246 | "uid": "A String", # UID of the referent. |
| 247 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 248 | }, |
| 249 | ], |
| 250 | "creationTimestamp": "A String", # (Optional) |
| 251 | # |
| 252 | # CreationTimestamp is a timestamp representing the server time when this |
| 253 | # object was created. It is not guaranteed to be set in happens-before order |
| 254 | # across separate operations. Clients may not set this value. It is |
| 255 | # represented in RFC3339 form and is in UTC. |
| 256 | # |
| 257 | # Populated by the system. |
| 258 | # Read-only. |
| 259 | # Null for lists. |
| 260 | # More info: |
| 261 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 262 | "labels": { # (Optional) |
| 263 | # |
| 264 | # Map of string keys and values that can be used to organize and categorize |
| 265 | # (scope and select) objects. May match selectors of replication controllers |
| 266 | # and routes. |
| 267 | # More info: http://kubernetes.io/docs/user-guide/labels |
| 268 | "a_key": "A String", |
| 269 | }, |
| 270 | "generation": 42, # (Optional) |
| 271 | # |
| 272 | # A sequence number representing a specific generation of the desired state. |
| 273 | # Populated by the system. Read-only. |
| 274 | "resourceVersion": "A String", # (Optional) |
| 275 | # |
| 276 | # An opaque value that represents the internal version of this object that |
| 277 | # can be used by clients to determine when objects have changed. May be used |
| 278 | # for optimistic concurrency, change detection, and the watch operation on a |
| 279 | # resource or set of resources. Clients must treat these values as opaque and |
| 280 | # passed unmodified back to the server. They may only be valid for a |
| 281 | # particular resource or set of resources. |
| 282 | # |
| 283 | # Populated by the system. |
| 284 | # Read-only. |
| 285 | # Value must be treated as opaque by clients and . |
| 286 | # More info: |
| 287 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency |
| 288 | "selfLink": "A String", # (Optional) |
| 289 | # |
| 290 | # SelfLink is a URL representing this object. |
| 291 | # Populated by the system. |
| 292 | # Read-only. |
| 293 | # string selfLink = 4; |
| 294 | "uid": "A String", # (Optional) |
| 295 | # |
| 296 | # UID is the unique in time and space value for this object. It is typically |
| 297 | # generated by the server on successful creation of a resource and is not |
| 298 | # allowed to change on PUT operations. |
| 299 | # |
| 300 | # Populated by the system. |
| 301 | # Read-only. |
| 302 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 303 | "namespace": "A String", # Namespace defines the space within each name must be unique, within a |
| 304 | # Cloud Run region. In Cloud Run the namespace must be equal to either the |
| 305 | # project ID or project number. |
| 306 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 307 | "status": { # The current state of the Service. Output only. # Status communicates the observed state of the Service (from the |
| 308 | # controller). |
| 309 | "latestCreatedRevisionName": "A String", # From ConfigurationStatus. |
| 310 | # LatestCreatedRevisionName is the last revision that was created from this |
| 311 | # Service's Configuration. It might not be ready yet, for that use |
| 312 | # LatestReadyRevisionName. |
| 313 | "conditions": [ # Conditions communicates information about ongoing/complete |
| 314 | # reconciliation processes that bring the "spec" inline with the observed |
| 315 | # state of the world. |
| 316 | # Service-specific conditions include: |
| 317 | # * "ConfigurationsReady": true when the underlying Configuration is ready. |
| 318 | # * "RoutesReady": true when the underlying Route is ready. |
| 319 | # * "Ready": true when both the underlying Route and Configuration are |
| 320 | # ready. |
| 321 | { # Condition defines a generic condition for a Resource |
| 322 | "message": "A String", # Optional. Human readable message indicating details about the current status. |
| 323 | "lastTransitionTime": "A String", # Optional. Last time the condition transitioned from one status to another. |
| 324 | "status": "A String", # Status of the condition, one of True, False, Unknown. |
| 325 | "severity": "A String", # Optional. How to interpret failures of this condition, one of Error, Warning, Info |
| 326 | "reason": "A String", # Optional. One-word CamelCase reason for the condition's last transition. |
| 327 | "type": "A String", # type is used to communicate the status of the reconciliation process. |
| 328 | # See also: |
| 329 | # https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-reporting |
| 330 | # Types common to all resources include: |
| 331 | # * "Ready": True when the Resource is ready. |
| 332 | }, |
| 333 | ], |
| 334 | "address": { # Information for connecting over HTTP(s). # From RouteStatus. |
| 335 | # Similar to url, information on where the service is available on HTTP. |
| 336 | "url": "A String", |
| 337 | }, |
| 338 | "observedGeneration": 42, # ObservedGeneration is the 'Generation' of the Route that |
| 339 | # was last processed by the controller. |
| 340 | # |
| 341 | # Clients polling for completed reconciliation should poll until |
| 342 | # observedGeneration = metadata.generation and the Ready condition's status |
| 343 | # is True or False. |
| 344 | "url": "A String", # From RouteStatus. |
| 345 | # URL holds the url that will distribute traffic over the provided traffic |
| 346 | # targets. It generally has the form |
| 347 | # https://{route-hash}-{project-hash}-{cluster-level-suffix}.a.run.app |
| 348 | "traffic": [ # From RouteStatus. |
| 349 | # Traffic holds the configured traffic distribution. |
| 350 | # These entries will always contain RevisionName references. |
| 351 | # When ConfigurationName appears in the spec, this will hold the |
| 352 | # LatestReadyRevisionName that we last observed. |
| 353 | { # TrafficTarget holds a single entry of the routing table for a Route. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 354 | "revisionName": "A String", # RevisionName of a specific revision to which to send this portion of |
| 355 | # traffic. This is mutually exclusive with ConfigurationName. |
| 356 | # |
| 357 | # Providing RevisionName in spec is not currently supported by Cloud Run. |
| 358 | "latestRevision": True or False, # LatestRevision may be optionally provided to indicate that the latest |
| 359 | # ready Revision of the Configuration should be used for this traffic |
| 360 | # target. When provided LatestRevision must be true if RevisionName is |
| 361 | # empty; it must be false when RevisionName is non-empty. |
| 362 | # |
| 363 | # +optional |
| 364 | "tag": "A String", # Tag is optionally used to expose a dedicated url for referencing |
| 365 | # this target exclusively. |
| 366 | # |
| 367 | # Not currently supported in Cloud Run. |
| 368 | # +optional |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 369 | "url": "A String", # Output only. URL displays the URL for accessing tagged traffic targets. URL |
| 370 | # is displayed in status, and is disallowed on spec. URL must contain a |
| 371 | # scheme (e.g. http://) and a hostname, but may not contain anything else |
| 372 | # (e.g. basic auth, url path, etc. |
| 373 | # |
| 374 | # Not currently supported in Cloud Run. |
| 375 | "configurationName": "A String", # ConfigurationName of a configuration to whose latest revision we will |
| 376 | # send this portion of traffic. When the "status.latestReadyRevisionName" |
| 377 | # of the referenced configuration changes, we will automatically migrate |
| 378 | # traffic from the prior "latest ready" revision to the new one. This field |
| 379 | # is never set in Route's status, only its spec. This is mutually exclusive |
| 380 | # with RevisionName. |
| 381 | # |
| 382 | # Cloud Run currently supports a single ConfigurationName. |
| 383 | "percent": 42, # Percent specifies percent of the traffic to this Revision or Configuration. |
| 384 | # This defaults to zero if unspecified. |
| 385 | # |
| 386 | # Cloud Run currently requires 100 percent for a single ConfigurationName |
| 387 | # TrafficTarget entry. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 388 | }, |
| 389 | ], |
| 390 | "latestReadyRevisionName": "A String", # From ConfigurationStatus. |
| 391 | # LatestReadyRevisionName holds the name of the latest Revision stamped out |
| 392 | # from this Service's Configuration that has had its "Ready" condition become |
| 393 | # "True". |
| 394 | }, |
| 395 | "apiVersion": "A String", # The API version for this call such as "serving.knative.dev/v1". |
| 396 | "spec": { # ServiceSpec holds the desired state of the Route (from the client), which # Spec holds the desired state of the Service (from the client). |
| 397 | # is used to manipulate the underlying Route and Configuration(s). |
| 398 | "traffic": [ # Traffic specifies how to distribute traffic over a collection of Knative |
| 399 | # Revisions and Configurations. |
| 400 | { # TrafficTarget holds a single entry of the routing table for a Route. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 401 | "revisionName": "A String", # RevisionName of a specific revision to which to send this portion of |
| 402 | # traffic. This is mutually exclusive with ConfigurationName. |
| 403 | # |
| 404 | # Providing RevisionName in spec is not currently supported by Cloud Run. |
| 405 | "latestRevision": True or False, # LatestRevision may be optionally provided to indicate that the latest |
| 406 | # ready Revision of the Configuration should be used for this traffic |
| 407 | # target. When provided LatestRevision must be true if RevisionName is |
| 408 | # empty; it must be false when RevisionName is non-empty. |
| 409 | # |
| 410 | # +optional |
| 411 | "tag": "A String", # Tag is optionally used to expose a dedicated url for referencing |
| 412 | # this target exclusively. |
| 413 | # |
| 414 | # Not currently supported in Cloud Run. |
| 415 | # +optional |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 416 | "url": "A String", # Output only. URL displays the URL for accessing tagged traffic targets. URL |
| 417 | # is displayed in status, and is disallowed on spec. URL must contain a |
| 418 | # scheme (e.g. http://) and a hostname, but may not contain anything else |
| 419 | # (e.g. basic auth, url path, etc. |
| 420 | # |
| 421 | # Not currently supported in Cloud Run. |
| 422 | "configurationName": "A String", # ConfigurationName of a configuration to whose latest revision we will |
| 423 | # send this portion of traffic. When the "status.latestReadyRevisionName" |
| 424 | # of the referenced configuration changes, we will automatically migrate |
| 425 | # traffic from the prior "latest ready" revision to the new one. This field |
| 426 | # is never set in Route's status, only its spec. This is mutually exclusive |
| 427 | # with RevisionName. |
| 428 | # |
| 429 | # Cloud Run currently supports a single ConfigurationName. |
| 430 | "percent": 42, # Percent specifies percent of the traffic to this Revision or Configuration. |
| 431 | # This defaults to zero if unspecified. |
| 432 | # |
| 433 | # Cloud Run currently requires 100 percent for a single ConfigurationName |
| 434 | # TrafficTarget entry. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 435 | }, |
| 436 | ], |
| 437 | "template": { # RevisionTemplateSpec describes the data a revision should have when created # Template holds the latest specification for the Revision to |
| 438 | # be stamped out. |
| 439 | # from a template. Based on: |
| 440 | # https://github.com/kubernetes/api/blob/e771f807/core/v1/types.go#L3179-L3190 |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 441 | "spec": { # RevisionSpec holds the desired state of the Revision (from the client). # RevisionSpec holds the desired state of the Revision (from the client). |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 442 | "containerConcurrency": 42, # (Optional) |
| 443 | # |
| 444 | # ContainerConcurrency specifies the maximum allowed in-flight (concurrent) |
| 445 | # requests per container instance of the Revision. |
| 446 | # |
| 447 | # Cloud Run fully managed: supported, defaults to 80 |
| 448 | # |
| 449 | # Cloud Run for Anthos: supported, defaults to 0, which means concurrency |
| 450 | # to the application is not limited, and the system decides the |
| 451 | # target concurrency for the autoscaler. |
| 452 | "timeoutSeconds": 42, # TimeoutSeconds holds the max duration the instance is allowed for |
| 453 | # responding to a request. |
| 454 | # Not currently used by Cloud Run. |
| 455 | "serviceAccountName": "A String", # Email address of the IAM service account associated with the revision |
| 456 | # of the service. The service account represents the identity of the |
| 457 | # running revision, and determines what permissions the revision has. If |
| 458 | # not provided, the revision will use the project's default service account. |
| 459 | "containers": [ # Containers holds the single container that defines the unit of execution |
| 460 | # for this Revision. In the context of a Revision, we disallow a number of |
| 461 | # fields on this Container, including: name and lifecycle. |
| 462 | # In Cloud Run, only a single container may be provided. |
| 463 | # The runtime contract is documented here: |
| 464 | # https://github.com/knative/serving/blob/master/docs/runtime-contract.md |
| 465 | { # A single application container. |
| 466 | # This specifies both the container to run, the command to run in the container |
| 467 | # and the arguments to supply to it. |
| 468 | # Note that additional arguments may be supplied by the system to the container |
| 469 | # at runtime. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 470 | "securityContext": { # Cloud Run fully managed: not supported # (Optional) |
| 471 | # |
| 472 | # Cloud Run fully managed: not supported |
| 473 | # |
| 474 | # Cloud Run for Anthos: supported |
| 475 | # |
| 476 | # Security options the pod should run with. |
| 477 | # More info: https://kubernetes.io/docs/concepts/policy/security-context/ |
| 478 | # More info: |
| 479 | # https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ |
| 480 | # |
| 481 | # Cloud Run for Anthos: supported |
| 482 | # |
| 483 | # SecurityContext holds security configuration that will be applied to a |
| 484 | # container. Some fields are present in both SecurityContext and |
| 485 | # PodSecurityContext. When both are set, the values in SecurityContext take |
| 486 | # precedence. |
| 487 | "runAsUser": 42, # (Optional) |
| 488 | # |
| 489 | # Cloud Run fully managed: not supported |
| 490 | # |
| 491 | # Cloud Run for Anthos: supported |
| 492 | # |
| 493 | # The UID to run the entrypoint of the container process. |
| 494 | # Defaults to user specified in image metadata if unspecified. |
| 495 | # May also be set in PodSecurityContext. If set in both SecurityContext and |
| 496 | # PodSecurityContext, the value specified in SecurityContext takes |
| 497 | # precedence. |
| 498 | }, |
| 499 | "livenessProbe": { # Cloud Run fully managed: not supported # (Optional) |
| 500 | # |
| 501 | # Cloud Run fully managed: not supported |
| 502 | # |
| 503 | # Cloud Run for Anthos: supported |
| 504 | # |
| 505 | # Periodic probe of container liveness. |
| 506 | # Container will be restarted if the probe fails. |
| 507 | # More info: |
| 508 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 509 | # |
| 510 | # Cloud Run for Anthos: supported |
| 511 | # |
| 512 | # Probe describes a health check to be performed against a container to |
| 513 | # determine whether it is alive or ready to receive traffic. |
| 514 | "httpGet": { # Cloud Run fully managed: not supported # (Optional) |
| 515 | # |
| 516 | # Cloud Run fully managed: not supported |
| 517 | # |
| 518 | # Cloud Run for Anthos: supported |
| 519 | # |
| 520 | # HTTPGet specifies the http request to perform. |
| 521 | # |
| 522 | # A field inlined from the Handler message. |
| 523 | # |
| 524 | # Cloud Run for Anthos: supported |
| 525 | # |
| 526 | # HTTPGetAction describes an action based on HTTP Get requests. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 527 | "host": "A String", # (Optional) |
| 528 | # |
| 529 | # Cloud Run fully managed: not supported |
| 530 | # |
| 531 | # Cloud Run for Anthos: supported |
| 532 | # |
| 533 | # Host name to connect to, defaults to the pod IP. You probably want to set |
| 534 | # "Host" in httpHeaders instead. |
| 535 | "scheme": "A String", # (Optional) |
| 536 | # |
| 537 | # Cloud Run fully managed: not supported |
| 538 | # |
| 539 | # Cloud Run for Anthos: supported |
| 540 | # |
| 541 | # Scheme to use for connecting to the host. |
| 542 | # Defaults to HTTP. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 543 | "httpHeaders": [ # (Optional) |
| 544 | # |
| 545 | # Cloud Run fully managed: not supported |
| 546 | # |
| 547 | # Cloud Run for Anthos: supported |
| 548 | # |
| 549 | # Custom headers to set in the request. HTTP allows repeated headers. |
| 550 | { # Cloud Run fully managed: not supported |
| 551 | # |
| 552 | # Cloud Run for Anthos: supported |
| 553 | # |
| 554 | # HTTPHeader describes a custom header to be used in HTTP probes |
| 555 | "name": "A String", # Cloud Run fully managed: not supported |
| 556 | # |
| 557 | # Cloud Run for Anthos: supported |
| 558 | # |
| 559 | # The header field name |
| 560 | "value": "A String", # Cloud Run fully managed: not supported |
| 561 | # |
| 562 | # Cloud Run for Anthos: supported |
| 563 | # |
| 564 | # The header field value |
| 565 | }, |
| 566 | ], |
| 567 | "path": "A String", # (Optional) |
| 568 | # |
| 569 | # Cloud Run fully managed: not supported |
| 570 | # |
| 571 | # Cloud Run for Anthos: supported |
| 572 | # |
| 573 | # Path to access on the HTTP server. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 574 | }, |
| 575 | "failureThreshold": 42, # (Optional) |
| 576 | # |
| 577 | # Cloud Run fully managed: not supported |
| 578 | # |
| 579 | # Cloud Run for Anthos: supported |
| 580 | # |
| 581 | # Minimum consecutive failures for the probe to be considered failed after |
| 582 | # having succeeded. Defaults to 3. Minimum value is 1. |
| 583 | "exec": { # Cloud Run fully managed: not supported # (Optional) |
| 584 | # |
| 585 | # Cloud Run fully managed: not supported |
| 586 | # |
| 587 | # Cloud Run for Anthos: supported |
| 588 | # |
| 589 | # One and only one of the following should be specified. |
| 590 | # Exec specifies the action to take. |
| 591 | # |
| 592 | # A field inlined from the Handler message. |
| 593 | # |
| 594 | # Cloud Run for Anthos: supported |
| 595 | # |
| 596 | # ExecAction describes a "run in container" action. |
| 597 | "command": "A String", # (Optional) |
| 598 | # |
| 599 | # Cloud Run fully managed: not supported |
| 600 | # |
| 601 | # Cloud Run for Anthos: supported |
| 602 | # |
| 603 | # Command is the command line to execute inside the container, the working |
| 604 | # directory for the command is root ('/') in the container's filesystem. The |
| 605 | # command is simply exec'd, it is not run inside a shell, so traditional |
| 606 | # shell instructions ('|', etc) won't work. To use a shell, you need to |
| 607 | # explicitly call out to that shell. Exit status of 0 is treated as |
| 608 | # live/healthy and non-zero is unhealthy. |
| 609 | }, |
| 610 | "initialDelaySeconds": 42, # (Optional) |
| 611 | # |
| 612 | # Cloud Run fully managed: not supported |
| 613 | # |
| 614 | # Cloud Run for Anthos: supported |
| 615 | # |
| 616 | # Number of seconds after the container has started before liveness probes |
| 617 | # are initiated. More info: |
| 618 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 619 | "timeoutSeconds": 42, # (Optional) |
| 620 | # |
| 621 | # Cloud Run fully managed: not supported |
| 622 | # |
| 623 | # Cloud Run for Anthos: supported |
| 624 | # |
| 625 | # Number of seconds after which the probe times out. |
| 626 | # Defaults to 1 second. Minimum value is 1. |
| 627 | # More info: |
| 628 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 629 | "successThreshold": 42, # (Optional) |
| 630 | # |
| 631 | # Cloud Run fully managed: not supported |
| 632 | # |
| 633 | # Cloud Run for Anthos: supported |
| 634 | # |
| 635 | # Minimum consecutive successes for the probe to be considered successful |
| 636 | # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value |
| 637 | # is 1. |
| 638 | "periodSeconds": 42, # (Optional) |
| 639 | # |
| 640 | # Cloud Run fully managed: not supported |
| 641 | # |
| 642 | # Cloud Run for Anthos: supported |
| 643 | # |
| 644 | # How often (in seconds) to perform the probe. |
| 645 | # Default to 10 seconds. Minimum value is 1. |
| 646 | "tcpSocket": { # Cloud Run fully managed: not supported # (Optional) |
| 647 | # |
| 648 | # Cloud Run fully managed: not supported |
| 649 | # |
| 650 | # Cloud Run for Anthos: supported |
| 651 | # |
| 652 | # TCPSocket specifies an action involving a TCP port. |
| 653 | # TCP hooks not yet supported |
| 654 | # |
| 655 | # A field inlined from the Handler message. |
| 656 | # |
| 657 | # Cloud Run for Anthos: supported |
| 658 | # |
| 659 | # TCPSocketAction describes an action based on opening a socket |
| 660 | "port": 42, # Cloud Run fully managed: not supported |
| 661 | # |
| 662 | # Cloud Run for Anthos: supported |
| 663 | # |
| 664 | # Number or name of the port to access on the container. |
| 665 | # Number must be in the range 1 to 65535. |
| 666 | # Name must be an IANA_SVC_NAME. |
| 667 | # |
| 668 | # This field is currently limited to integer types only because of proto's |
| 669 | # inability to properly support the IntOrString golang type. |
| 670 | "host": "A String", # (Optional) |
| 671 | # |
| 672 | # Cloud Run fully managed: not supported |
| 673 | # |
| 674 | # Cloud Run for Anthos: supported |
| 675 | # |
| 676 | # Optional: Host name to connect to, defaults to the pod IP. |
| 677 | }, |
| 678 | }, |
| 679 | "env": [ # (Optional) |
| 680 | # |
| 681 | # Cloud Run fully managed: supported |
| 682 | # |
| 683 | # Cloud Run for Anthos: supported |
| 684 | # |
| 685 | # List of environment variables to set in the container. |
| 686 | { # EnvVar represents an environment variable present in a Container. |
| 687 | "name": "A String", # Name of the environment variable. Must be a C_IDENTIFIER. |
| 688 | "valueFrom": { # Cloud Run fully managed: not supported # (Optional) |
| 689 | # |
| 690 | # Cloud Run fully managed: not supported |
| 691 | # |
| 692 | # Cloud Run for Anthos: supported |
| 693 | # |
| 694 | # Source for the environment variable's value. Cannot be used if value is not |
| 695 | # empty. |
| 696 | # |
| 697 | # Cloud Run for Anthos: supported |
| 698 | # |
| 699 | # EnvVarSource represents a source for the value of an EnvVar. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 700 | "configMapKeyRef": { # Cloud Run fully managed: not supported # (Optional) |
| 701 | # |
| 702 | # Cloud Run fully managed: not supported |
| 703 | # |
| 704 | # Cloud Run for Anthos: supported |
| 705 | # |
| 706 | # Selects a key of a ConfigMap. |
| 707 | # |
| 708 | # Cloud Run for Anthos: supported |
| 709 | # |
| 710 | # Selects a key from a ConfigMap. |
| 711 | "optional": True or False, # (Optional) |
| 712 | # |
| 713 | # Cloud Run fully managed: not supported |
| 714 | # |
| 715 | # Cloud Run for Anthos: supported |
| 716 | # |
| 717 | # Specify whether the ConfigMap or its key must be defined |
| 718 | "key": "A String", # Cloud Run fully managed: not supported |
| 719 | # |
| 720 | # Cloud Run for Anthos: supported |
| 721 | # |
| 722 | # The key to select. |
| 723 | "name": "A String", # Cloud Run fully managed: not supported |
| 724 | # |
| 725 | # Cloud Run for Anthos: supported |
| 726 | # |
| 727 | # The ConfigMap to select from. |
| 728 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 729 | # directly into the message. Use the "name" field instead. |
| 730 | # |
| 731 | # Cloud Run for Anthos: supported |
| 732 | # |
| 733 | # LocalObjectReference contains enough information to let you locate the |
| 734 | # referenced object inside the same namespace. |
| 735 | "name": "A String", # (Optional) |
| 736 | # |
| 737 | # Cloud Run fully managed: not supported |
| 738 | # |
| 739 | # Cloud Run for Anthos: supported |
| 740 | # |
| 741 | # Name of the referent. |
| 742 | # More info: |
| 743 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 744 | }, |
| 745 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 746 | "secretKeyRef": { # Cloud Run fully managed: not supported # (Optional) |
| 747 | # |
| 748 | # Cloud Run fully managed: not supported |
| 749 | # |
| 750 | # Cloud Run for Anthos: supported |
| 751 | # |
| 752 | # Selects a key of a secret in the pod's namespace |
| 753 | # |
| 754 | # Cloud Run for Anthos: supported |
| 755 | # |
| 756 | # SecretKeySelector selects a key of a Secret. |
| 757 | "key": "A String", # Cloud Run fully managed: not supported |
| 758 | # |
| 759 | # Cloud Run for Anthos: supported |
| 760 | # |
| 761 | # The key of the secret to select from. Must be a valid secret key. |
| 762 | "name": "A String", # Cloud Run fully managed: not supported |
| 763 | # |
| 764 | # Cloud Run for Anthos: supported |
| 765 | # |
| 766 | # The name of the secret in the pod's namespace to select from. |
| 767 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 768 | # directly into the message. Use the "name" field instead. |
| 769 | # |
| 770 | # Cloud Run for Anthos: supported |
| 771 | # |
| 772 | # LocalObjectReference contains enough information to let you locate the |
| 773 | # referenced object inside the same namespace. |
| 774 | "name": "A String", # (Optional) |
| 775 | # |
| 776 | # Cloud Run fully managed: not supported |
| 777 | # |
| 778 | # Cloud Run for Anthos: supported |
| 779 | # |
| 780 | # Name of the referent. |
| 781 | # More info: |
| 782 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 783 | }, |
| 784 | "optional": True or False, # (Optional) |
| 785 | # |
| 786 | # Cloud Run fully managed: not supported |
| 787 | # |
| 788 | # Cloud Run for Anthos: supported |
| 789 | # |
| 790 | # Specify whether the Secret or its key must be defined |
| 791 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 792 | }, |
| 793 | "value": "A String", # (Optional) |
| 794 | # |
| 795 | # Variable references $(VAR_NAME) are expanded |
| 796 | # using the previous defined environment variables in the container and |
| 797 | # any route environment variables. If a variable cannot be resolved, |
| 798 | # the reference in the input string will be unchanged. The $(VAR_NAME) |
| 799 | # syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped |
| 800 | # references will never be expanded, regardless of whether the variable |
| 801 | # exists or not. |
| 802 | # Defaults to "". |
| 803 | }, |
| 804 | ], |
| 805 | "resources": { # ResourceRequirements describes the compute resource requirements. # (Optional) |
| 806 | # |
| 807 | # Cloud Run fully managed: supported |
| 808 | # |
| 809 | # Cloud Run for Anthos: supported |
| 810 | # |
| 811 | # Compute Resources required by this container. |
| 812 | # More info: |
| 813 | # https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources |
| 814 | "limits": { # (Optional) |
| 815 | # |
| 816 | # Cloud Run fully managed: Only memory and CPU are supported. Note: The only |
| 817 | # supported value for CPU is '1'. |
| 818 | # |
| 819 | # Cloud Run for Anthos: supported |
| 820 | # |
| 821 | # Limits describes the maximum amount of compute resources allowed. |
| 822 | # The values of the map is string form of the 'quantity' k8s type: |
| 823 | # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go |
| 824 | "a_key": "A String", |
| 825 | }, |
| 826 | "requests": { # (Optional) |
| 827 | # |
| 828 | # Cloud Run fully managed: Only memory and CPU are supported. Note: The only |
| 829 | # supported value for CPU is '1'. |
| 830 | # |
| 831 | # Cloud Run for Anthos: supported |
| 832 | # |
| 833 | # Requests describes the minimum amount of compute resources required. |
| 834 | # If Requests is omitted for a container, it defaults to Limits if that is |
| 835 | # explicitly specified, otherwise to an implementation-defined value. |
| 836 | # The values of the map is string form of the 'quantity' k8s type: |
| 837 | # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go |
| 838 | "a_key": "A String", |
| 839 | }, |
| 840 | }, |
| 841 | "readinessProbe": { # Cloud Run fully managed: not supported # (Optional) |
| 842 | # |
| 843 | # Cloud Run fully managed: not supported |
| 844 | # |
| 845 | # Cloud Run for Anthos: supported |
| 846 | # |
| 847 | # Periodic probe of container service readiness. |
| 848 | # Container will be removed from service endpoints if the probe fails. |
| 849 | # More info: |
| 850 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 851 | # |
| 852 | # Cloud Run for Anthos: supported |
| 853 | # |
| 854 | # Probe describes a health check to be performed against a container to |
| 855 | # determine whether it is alive or ready to receive traffic. |
| 856 | "httpGet": { # Cloud Run fully managed: not supported # (Optional) |
| 857 | # |
| 858 | # Cloud Run fully managed: not supported |
| 859 | # |
| 860 | # Cloud Run for Anthos: supported |
| 861 | # |
| 862 | # HTTPGet specifies the http request to perform. |
| 863 | # |
| 864 | # A field inlined from the Handler message. |
| 865 | # |
| 866 | # Cloud Run for Anthos: supported |
| 867 | # |
| 868 | # HTTPGetAction describes an action based on HTTP Get requests. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 869 | "host": "A String", # (Optional) |
| 870 | # |
| 871 | # Cloud Run fully managed: not supported |
| 872 | # |
| 873 | # Cloud Run for Anthos: supported |
| 874 | # |
| 875 | # Host name to connect to, defaults to the pod IP. You probably want to set |
| 876 | # "Host" in httpHeaders instead. |
| 877 | "scheme": "A String", # (Optional) |
| 878 | # |
| 879 | # Cloud Run fully managed: not supported |
| 880 | # |
| 881 | # Cloud Run for Anthos: supported |
| 882 | # |
| 883 | # Scheme to use for connecting to the host. |
| 884 | # Defaults to HTTP. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 885 | "httpHeaders": [ # (Optional) |
| 886 | # |
| 887 | # Cloud Run fully managed: not supported |
| 888 | # |
| 889 | # Cloud Run for Anthos: supported |
| 890 | # |
| 891 | # Custom headers to set in the request. HTTP allows repeated headers. |
| 892 | { # Cloud Run fully managed: not supported |
| 893 | # |
| 894 | # Cloud Run for Anthos: supported |
| 895 | # |
| 896 | # HTTPHeader describes a custom header to be used in HTTP probes |
| 897 | "name": "A String", # Cloud Run fully managed: not supported |
| 898 | # |
| 899 | # Cloud Run for Anthos: supported |
| 900 | # |
| 901 | # The header field name |
| 902 | "value": "A String", # Cloud Run fully managed: not supported |
| 903 | # |
| 904 | # Cloud Run for Anthos: supported |
| 905 | # |
| 906 | # The header field value |
| 907 | }, |
| 908 | ], |
| 909 | "path": "A String", # (Optional) |
| 910 | # |
| 911 | # Cloud Run fully managed: not supported |
| 912 | # |
| 913 | # Cloud Run for Anthos: supported |
| 914 | # |
| 915 | # Path to access on the HTTP server. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 916 | }, |
| 917 | "failureThreshold": 42, # (Optional) |
| 918 | # |
| 919 | # Cloud Run fully managed: not supported |
| 920 | # |
| 921 | # Cloud Run for Anthos: supported |
| 922 | # |
| 923 | # Minimum consecutive failures for the probe to be considered failed after |
| 924 | # having succeeded. Defaults to 3. Minimum value is 1. |
| 925 | "exec": { # Cloud Run fully managed: not supported # (Optional) |
| 926 | # |
| 927 | # Cloud Run fully managed: not supported |
| 928 | # |
| 929 | # Cloud Run for Anthos: supported |
| 930 | # |
| 931 | # One and only one of the following should be specified. |
| 932 | # Exec specifies the action to take. |
| 933 | # |
| 934 | # A field inlined from the Handler message. |
| 935 | # |
| 936 | # Cloud Run for Anthos: supported |
| 937 | # |
| 938 | # ExecAction describes a "run in container" action. |
| 939 | "command": "A String", # (Optional) |
| 940 | # |
| 941 | # Cloud Run fully managed: not supported |
| 942 | # |
| 943 | # Cloud Run for Anthos: supported |
| 944 | # |
| 945 | # Command is the command line to execute inside the container, the working |
| 946 | # directory for the command is root ('/') in the container's filesystem. The |
| 947 | # command is simply exec'd, it is not run inside a shell, so traditional |
| 948 | # shell instructions ('|', etc) won't work. To use a shell, you need to |
| 949 | # explicitly call out to that shell. Exit status of 0 is treated as |
| 950 | # live/healthy and non-zero is unhealthy. |
| 951 | }, |
| 952 | "initialDelaySeconds": 42, # (Optional) |
| 953 | # |
| 954 | # Cloud Run fully managed: not supported |
| 955 | # |
| 956 | # Cloud Run for Anthos: supported |
| 957 | # |
| 958 | # Number of seconds after the container has started before liveness probes |
| 959 | # are initiated. More info: |
| 960 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 961 | "timeoutSeconds": 42, # (Optional) |
| 962 | # |
| 963 | # Cloud Run fully managed: not supported |
| 964 | # |
| 965 | # Cloud Run for Anthos: supported |
| 966 | # |
| 967 | # Number of seconds after which the probe times out. |
| 968 | # Defaults to 1 second. Minimum value is 1. |
| 969 | # More info: |
| 970 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 971 | "successThreshold": 42, # (Optional) |
| 972 | # |
| 973 | # Cloud Run fully managed: not supported |
| 974 | # |
| 975 | # Cloud Run for Anthos: supported |
| 976 | # |
| 977 | # Minimum consecutive successes for the probe to be considered successful |
| 978 | # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value |
| 979 | # is 1. |
| 980 | "periodSeconds": 42, # (Optional) |
| 981 | # |
| 982 | # Cloud Run fully managed: not supported |
| 983 | # |
| 984 | # Cloud Run for Anthos: supported |
| 985 | # |
| 986 | # How often (in seconds) to perform the probe. |
| 987 | # Default to 10 seconds. Minimum value is 1. |
| 988 | "tcpSocket": { # Cloud Run fully managed: not supported # (Optional) |
| 989 | # |
| 990 | # Cloud Run fully managed: not supported |
| 991 | # |
| 992 | # Cloud Run for Anthos: supported |
| 993 | # |
| 994 | # TCPSocket specifies an action involving a TCP port. |
| 995 | # TCP hooks not yet supported |
| 996 | # |
| 997 | # A field inlined from the Handler message. |
| 998 | # |
| 999 | # Cloud Run for Anthos: supported |
| 1000 | # |
| 1001 | # TCPSocketAction describes an action based on opening a socket |
| 1002 | "port": 42, # Cloud Run fully managed: not supported |
| 1003 | # |
| 1004 | # Cloud Run for Anthos: supported |
| 1005 | # |
| 1006 | # Number or name of the port to access on the container. |
| 1007 | # Number must be in the range 1 to 65535. |
| 1008 | # Name must be an IANA_SVC_NAME. |
| 1009 | # |
| 1010 | # This field is currently limited to integer types only because of proto's |
| 1011 | # inability to properly support the IntOrString golang type. |
| 1012 | "host": "A String", # (Optional) |
| 1013 | # |
| 1014 | # Cloud Run fully managed: not supported |
| 1015 | # |
| 1016 | # Cloud Run for Anthos: supported |
| 1017 | # |
| 1018 | # Optional: Host name to connect to, defaults to the pod IP. |
| 1019 | }, |
| 1020 | }, |
| 1021 | "imagePullPolicy": "A String", # (Optional) |
| 1022 | # |
| 1023 | # Cloud Run fully managed: not supported |
| 1024 | # |
| 1025 | # Cloud Run for Anthos: supported |
| 1026 | # |
| 1027 | # Image pull policy. |
| 1028 | # One of Always, Never, IfNotPresent. |
| 1029 | # Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. |
| 1030 | # More info: |
| 1031 | # https://kubernetes.io/docs/concepts/containers/images#updating-images |
| 1032 | "terminationMessagePath": "A String", # (Optional) |
| 1033 | # |
| 1034 | # Cloud Run fully managed: not supported |
| 1035 | # |
| 1036 | # Cloud Run for Anthos: supported |
| 1037 | # |
| 1038 | # Path at which the file to which the container's termination |
| 1039 | # message will be written is mounted into the container's filesystem. Message |
| 1040 | # written is intended to be brief final status, such as an assertion failure |
| 1041 | # message. Will be truncated by the node if greater than 4096 bytes. The |
| 1042 | # total message length across all containers will be limited to 12kb. |
| 1043 | # Defaults to /dev/termination-log. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 1044 | "volumeMounts": [ # (Optional) |
| 1045 | # |
| 1046 | # Cloud Run fully managed: not supported |
| 1047 | # |
| 1048 | # Cloud Run for Anthos: supported |
| 1049 | # |
| 1050 | # Pod volumes to mount into the container's filesystem. |
| 1051 | { # Cloud Run fully managed: not supported |
| 1052 | # |
| 1053 | # Cloud Run for Anthos: supported |
| 1054 | # |
| 1055 | # VolumeMount describes a mounting of a Volume within a container. |
| 1056 | "mountPath": "A String", # Cloud Run fully managed: not supported |
| 1057 | # |
| 1058 | # Cloud Run for Anthos: supported |
| 1059 | # |
| 1060 | # Path within the container at which the volume should be mounted. Must |
| 1061 | # not contain ':'. |
| 1062 | "subPath": "A String", # (Optional) |
| 1063 | # |
| 1064 | # Cloud Run fully managed: not supported |
| 1065 | # |
| 1066 | # Cloud Run for Anthos: supported |
| 1067 | # |
| 1068 | # Path within the volume from which the container's volume should be mounted. |
| 1069 | # Defaults to "" (volume's root). |
| 1070 | "name": "A String", # Cloud Run fully managed: not supported |
| 1071 | # |
| 1072 | # Cloud Run for Anthos: supported |
| 1073 | # |
| 1074 | # This must match the Name of a Volume. |
| 1075 | "readOnly": True or False, # (Optional) |
| 1076 | # |
| 1077 | # Cloud Run fully managed: not supported |
| 1078 | # |
| 1079 | # Cloud Run for Anthos: supported |
| 1080 | # |
| 1081 | # Only true is accepted. |
| 1082 | # Defaults to true. |
| 1083 | }, |
| 1084 | ], |
| 1085 | "args": [ # (Optional) |
| 1086 | # |
| 1087 | # Cloud Run fully managed: supported |
| 1088 | # |
| 1089 | # Cloud Run for Anthos: supported |
| 1090 | # |
| 1091 | # Arguments to the entrypoint. |
| 1092 | # The docker image's CMD is used if this is not provided. |
| 1093 | # Variable references $(VAR_NAME) are expanded using the container's |
| 1094 | # environment. If a variable cannot be resolved, the reference in the input |
| 1095 | # string will be unchanged. The $(VAR_NAME) syntax can be escaped with a |
| 1096 | # double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, |
| 1097 | # regardless of whether the variable exists or not. |
| 1098 | # More info: |
| 1099 | # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell |
| 1100 | "A String", |
| 1101 | ], |
| 1102 | "workingDir": "A String", # (Optional) |
| 1103 | # |
| 1104 | # Cloud Run fully managed: not supported |
| 1105 | # |
| 1106 | # Cloud Run for Anthos: supported |
| 1107 | # |
| 1108 | # Container's working directory. |
| 1109 | # If not specified, the container runtime's default will be used, which |
| 1110 | # might be configured in the container image. |
| 1111 | "ports": [ # (Optional) |
| 1112 | # |
| 1113 | # List of ports to expose from the container. Only a single port can be |
| 1114 | # specified. The specified ports must be listening on all interfaces |
| 1115 | # (0.0.0.0) within the container to be accessible. |
| 1116 | # |
| 1117 | # If omitted, a port number will be chosen and passed to the container |
| 1118 | # through the PORT environment variable for the container to listen on. |
| 1119 | { # ContainerPort represents a network port in a single container. |
| 1120 | "containerPort": 42, # (Optional) |
| 1121 | # |
| 1122 | # Port number the container listens on. |
| 1123 | # This must be a valid port number, 0 < x < 65536. |
| 1124 | "protocol": "A String", # (Optional) |
| 1125 | # |
| 1126 | # Cloud Run fully managed: not supported |
| 1127 | # |
| 1128 | # Cloud Run for Anthos: supported |
| 1129 | # |
| 1130 | # Protocol for port. Must be "TCP". |
| 1131 | # Defaults to "TCP". |
| 1132 | "name": "A String", # (Optional) |
| 1133 | # |
| 1134 | # Cloud Run fully managed: not supported |
| 1135 | # |
| 1136 | # Cloud Run for Anthos: supported |
| 1137 | # |
| 1138 | # If specified, used to specify which protocol to use. |
| 1139 | # Allowed values are "http1" and "h2c". |
| 1140 | }, |
| 1141 | ], |
| 1142 | "image": "A String", # Cloud Run fully managed: only supports containers from Google Container |
| 1143 | # Registry |
| 1144 | # |
| 1145 | # Cloud Run for Anthos: supported |
| 1146 | # |
| 1147 | # URL of the Container image. |
| 1148 | # More info: https://kubernetes.io/docs/concepts/containers/images |
| 1149 | "envFrom": [ # (Optional) |
| 1150 | # |
| 1151 | # Cloud Run fully managed: not supported |
| 1152 | # |
| 1153 | # Cloud Run for Anthos: supported |
| 1154 | # |
| 1155 | # List of sources to populate environment variables in the container. |
| 1156 | # The keys defined within a source must be a C_IDENTIFIER. All invalid keys |
| 1157 | # will be reported as an event when the container is starting. When a key |
| 1158 | # exists in multiple sources, the value associated with the last source will |
| 1159 | # take precedence. Values defined by an Env with a duplicate key will take |
| 1160 | # precedence. Cannot be updated. |
| 1161 | { # Cloud Run fully managed: not supported |
| 1162 | # |
| 1163 | # Cloud Run for Anthos: supported |
| 1164 | # |
| 1165 | # EnvFromSource represents the source of a set of ConfigMaps |
| 1166 | "secretRef": { # Cloud Run fully managed: not supported # (Optional) |
| 1167 | # |
| 1168 | # Cloud Run fully managed: not supported |
| 1169 | # |
| 1170 | # Cloud Run for Anthos: supported |
| 1171 | # |
| 1172 | # The Secret to select from |
| 1173 | # |
| 1174 | # Cloud Run for Anthos: supported |
| 1175 | # |
| 1176 | # SecretEnvSource selects a Secret to populate the environment |
| 1177 | # variables with. |
| 1178 | # |
| 1179 | # The contents of the target Secret's Data field will represent the |
| 1180 | # key-value pairs as environment variables. |
| 1181 | "name": "A String", # Cloud Run fully managed: not supported |
| 1182 | # |
| 1183 | # Cloud Run for Anthos: supported |
| 1184 | # |
| 1185 | # The Secret to select from. |
| 1186 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 1187 | # directly into the message. Use the "name" field instead. |
| 1188 | # |
| 1189 | # Cloud Run for Anthos: supported |
| 1190 | # |
| 1191 | # LocalObjectReference contains enough information to let you locate the |
| 1192 | # referenced object inside the same namespace. |
| 1193 | "name": "A String", # (Optional) |
| 1194 | # |
| 1195 | # Cloud Run fully managed: not supported |
| 1196 | # |
| 1197 | # Cloud Run for Anthos: supported |
| 1198 | # |
| 1199 | # Name of the referent. |
| 1200 | # More info: |
| 1201 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 1202 | }, |
| 1203 | "optional": True or False, # (Optional) |
| 1204 | # |
| 1205 | # Cloud Run fully managed: not supported |
| 1206 | # |
| 1207 | # Cloud Run for Anthos: supported |
| 1208 | # |
| 1209 | # Specify whether the Secret must be defined |
| 1210 | }, |
| 1211 | "prefix": "A String", # (Optional) |
| 1212 | # |
| 1213 | # Cloud Run fully managed: not supported |
| 1214 | # |
| 1215 | # Cloud Run for Anthos: supported |
| 1216 | # |
| 1217 | # An optional identifier to prepend to each key in the ConfigMap. Must be a |
| 1218 | # C_IDENTIFIER. |
| 1219 | "configMapRef": { # Cloud Run fully managed: not supported # (Optional) |
| 1220 | # |
| 1221 | # Cloud Run fully managed: not supported |
| 1222 | # |
| 1223 | # Cloud Run for Anthos: supported |
| 1224 | # |
| 1225 | # The ConfigMap to select from |
| 1226 | # |
| 1227 | # Cloud Run for Anthos: supported |
| 1228 | # |
| 1229 | # ConfigMapEnvSource selects a ConfigMap to populate the environment |
| 1230 | # variables with. |
| 1231 | # |
| 1232 | # The contents of the target ConfigMap's Data field will represent the |
| 1233 | # key-value pairs as environment variables. |
| 1234 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 1235 | # directly into the message. Use the "name" field instead. |
| 1236 | # |
| 1237 | # Cloud Run for Anthos: supported |
| 1238 | # |
| 1239 | # LocalObjectReference contains enough information to let you locate the |
| 1240 | # referenced object inside the same namespace. |
| 1241 | "name": "A String", # (Optional) |
| 1242 | # |
| 1243 | # Cloud Run fully managed: not supported |
| 1244 | # |
| 1245 | # Cloud Run for Anthos: supported |
| 1246 | # |
| 1247 | # Name of the referent. |
| 1248 | # More info: |
| 1249 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 1250 | }, |
| 1251 | "optional": True or False, # (Optional) |
| 1252 | # |
| 1253 | # Cloud Run fully managed: not supported |
| 1254 | # |
| 1255 | # Cloud Run for Anthos: supported |
| 1256 | # |
| 1257 | # Specify whether the ConfigMap must be defined |
| 1258 | "name": "A String", # Cloud Run fully managed: not supported |
| 1259 | # |
| 1260 | # Cloud Run for Anthos: supported |
| 1261 | # |
| 1262 | # The ConfigMap to select from. |
| 1263 | }, |
| 1264 | }, |
| 1265 | ], |
| 1266 | "name": "A String", # (Optional) |
| 1267 | # |
| 1268 | # Name of the container specified as a DNS_LABEL. |
| 1269 | "command": [ |
| 1270 | "A String", |
| 1271 | ], |
| 1272 | "terminationMessagePolicy": "A String", # (Optional) |
| 1273 | # |
| 1274 | # Cloud Run fully managed: not supported |
| 1275 | # |
| 1276 | # Cloud Run for Anthos: supported |
| 1277 | # |
| 1278 | # Indicate how the termination message should be populated. File will use the |
| 1279 | # contents of terminationMessagePath to populate the container status message |
| 1280 | # on both success and failure. FallbackToLogsOnError will use the last chunk |
| 1281 | # of container log output if the termination message file is empty and the |
| 1282 | # container exited with an error. The log output is limited to 2048 bytes or |
| 1283 | # 80 lines, whichever is smaller. Defaults to File. Cannot be updated. |
| 1284 | }, |
| 1285 | ], |
| 1286 | "volumes": [ |
| 1287 | { # Cloud Run fully managed: not supported |
| 1288 | # |
| 1289 | # Cloud Run for Anthos: supported |
| 1290 | # |
| 1291 | # Volume represents a named volume in a container. |
| 1292 | "configMap": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported |
| 1293 | # |
| 1294 | # Cloud Run for Anthos: supported |
| 1295 | # |
| 1296 | # Cloud Run for Anthos: supported |
| 1297 | # |
| 1298 | # Adapts a ConfigMap into a volume. |
| 1299 | # The contents of the target ConfigMap's Data field will be presented in a |
| 1300 | # volume as files using the keys in the Data field as the file names, unless |
| 1301 | # the items element is populated with specific mappings of keys to paths. |
| 1302 | "optional": True or False, # (Optional) |
| 1303 | # |
| 1304 | # Cloud Run fully managed: not supported |
| 1305 | # |
| 1306 | # Cloud Run for Anthos: supported |
| 1307 | # |
| 1308 | # Specify whether the Secret or its keys must be defined. |
| 1309 | "name": "A String", # Cloud Run fully managed: not supported |
| 1310 | # |
| 1311 | # Cloud Run for Anthos: supported |
| 1312 | # |
| 1313 | # Name of the config. |
| 1314 | "defaultMode": 42, # (Optional) |
| 1315 | # |
| 1316 | # Cloud Run fully managed: not supported |
| 1317 | # |
| 1318 | # Cloud Run for Anthos: supported |
| 1319 | # |
| 1320 | # Mode bits to use on created files by default. Must be a value between 0 and |
| 1321 | # 0777. Defaults to 0644. Directories within the path are not affected by |
| 1322 | # this setting. This might be in conflict with other options that affect the |
| 1323 | # file mode, like fsGroup, and the result can be other mode bits set. |
| 1324 | "items": [ # (Optional) |
| 1325 | # |
| 1326 | # Cloud Run fully managed: not supported |
| 1327 | # |
| 1328 | # Cloud Run for Anthos: supported |
| 1329 | # |
| 1330 | # If unspecified, each key-value pair in the Data field of the referenced |
| 1331 | # Secret will be projected into the volume as a file whose name is the |
| 1332 | # key and content is the value. If specified, the listed keys will be |
| 1333 | # projected into the specified paths, and unlisted keys will not be |
| 1334 | # present. If a key is specified which is not present in the Secret, |
| 1335 | # the volume setup will error unless it is marked optional. |
| 1336 | { # Cloud Run fully managed: not supported |
| 1337 | # |
| 1338 | # Cloud Run for Anthos: supported |
| 1339 | # |
| 1340 | # Maps a string key to a path within a volume. |
| 1341 | "key": "A String", # Cloud Run fully managed: not supported |
| 1342 | # |
| 1343 | # Cloud Run for Anthos: supported |
| 1344 | # |
| 1345 | # The key to project. |
| 1346 | "path": "A String", # Cloud Run fully managed: not supported |
| 1347 | # |
| 1348 | # Cloud Run for Anthos: supported |
| 1349 | # |
| 1350 | # The relative path of the file to map the key to. |
| 1351 | # May not be an absolute path. |
| 1352 | # May not contain the path element '..'. |
| 1353 | # May not start with the string '..'. |
| 1354 | "mode": 42, # (Optional) |
| 1355 | # |
| 1356 | # Cloud Run fully managed: not supported |
| 1357 | # |
| 1358 | # Cloud Run for Anthos: supported |
| 1359 | # |
| 1360 | # Mode bits to use on this file, must be a value between 0 and 0777. If not |
| 1361 | # specified, the volume defaultMode will be used. This might be in conflict |
| 1362 | # with other options that affect the file mode, like fsGroup, and the result |
| 1363 | # can be other mode bits set. |
| 1364 | }, |
| 1365 | ], |
| 1366 | }, |
| 1367 | "name": "A String", # Cloud Run fully managed: not supported |
| 1368 | # |
| 1369 | # Cloud Run for Anthos: supported |
| 1370 | # |
| 1371 | # Volume's name. |
| 1372 | "secret": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported |
| 1373 | # |
| 1374 | # Cloud Run for Anthos: supported |
| 1375 | # |
| 1376 | # Cloud Run for Anthos: supported |
| 1377 | # |
| 1378 | # The contents of the target Secret's Data field will be presented in a volume |
| 1379 | # as files using the keys in the Data field as the file names. |
| 1380 | "secretName": "A String", # Cloud Run fully managed: not supported |
| 1381 | # |
| 1382 | # Cloud Run for Anthos: supported |
| 1383 | # |
| 1384 | # Name of the secret in the container's namespace to use. |
| 1385 | "items": [ # (Optional) |
| 1386 | # |
| 1387 | # Cloud Run fully managed: not supported |
| 1388 | # |
| 1389 | # Cloud Run for Anthos: supported |
| 1390 | # |
| 1391 | # If unspecified, each key-value pair in the Data field of the referenced |
| 1392 | # Secret will be projected into the volume as a file whose name is the |
| 1393 | # key and content is the value. If specified, the listed keys will be |
| 1394 | # projected into the specified paths, and unlisted keys will not be |
| 1395 | # present. If a key is specified which is not present in the Secret, |
| 1396 | # the volume setup will error unless it is marked optional. |
| 1397 | { # Cloud Run fully managed: not supported |
| 1398 | # |
| 1399 | # Cloud Run for Anthos: supported |
| 1400 | # |
| 1401 | # Maps a string key to a path within a volume. |
| 1402 | "key": "A String", # Cloud Run fully managed: not supported |
| 1403 | # |
| 1404 | # Cloud Run for Anthos: supported |
| 1405 | # |
| 1406 | # The key to project. |
| 1407 | "path": "A String", # Cloud Run fully managed: not supported |
| 1408 | # |
| 1409 | # Cloud Run for Anthos: supported |
| 1410 | # |
| 1411 | # The relative path of the file to map the key to. |
| 1412 | # May not be an absolute path. |
| 1413 | # May not contain the path element '..'. |
| 1414 | # May not start with the string '..'. |
| 1415 | "mode": 42, # (Optional) |
| 1416 | # |
| 1417 | # Cloud Run fully managed: not supported |
| 1418 | # |
| 1419 | # Cloud Run for Anthos: supported |
| 1420 | # |
| 1421 | # Mode bits to use on this file, must be a value between 0 and 0777. If not |
| 1422 | # specified, the volume defaultMode will be used. This might be in conflict |
| 1423 | # with other options that affect the file mode, like fsGroup, and the result |
| 1424 | # can be other mode bits set. |
| 1425 | }, |
| 1426 | ], |
| 1427 | "optional": True or False, # (Optional) |
| 1428 | # |
| 1429 | # Cloud Run fully managed: not supported |
| 1430 | # |
| 1431 | # Cloud Run for Anthos: supported |
| 1432 | # |
| 1433 | # Specify whether the Secret or its keys must be defined. |
| 1434 | "defaultMode": 42, # (Optional) |
| 1435 | # |
| 1436 | # Cloud Run fully managed: not supported |
| 1437 | # |
| 1438 | # Cloud Run for Anthos: supported |
| 1439 | # |
| 1440 | # Mode bits to use on created files by default. Must be a value between 0 and |
| 1441 | # 0777. Defaults to 0644. Directories within the path are not affected by |
| 1442 | # this setting. This might be in conflict with other options that affect the |
| 1443 | # file mode, like fsGroup, and the result can be other mode bits set. |
| 1444 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1445 | }, |
| 1446 | ], |
| 1447 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 1448 | "metadata": { # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # Optional metadata for this Revision, including labels and annotations. Name |
| 1449 | # will be generated by the Configuration. |
| 1450 | # To set minimum instances for this revision, use the |
| 1451 | # "autoscaling.knative.dev/minScale" annotation key. |
| 1452 | # To set maximum instances for this revision, use the |
| 1453 | # "autoscaling.knative.dev/maxScale" annotation key. |
| 1454 | # To set Cloud SQL connections for the revision, use the |
| 1455 | # "run.googleapis.com/cloudsql-instances" annotation key. |
| 1456 | # persisted resources must have, which includes all objects users must create. |
| 1457 | "annotations": { # (Optional) |
| 1458 | # |
| 1459 | # Annotations is an unstructured key value map stored with a resource that |
| 1460 | # may be set by external tools to store and retrieve arbitrary metadata. They |
| 1461 | # are not queryable and should be preserved when modifying objects. More |
| 1462 | # info: http://kubernetes.io/docs/user-guide/annotations |
| 1463 | "a_key": "A String", |
| 1464 | }, |
| 1465 | "generateName": "A String", # (Optional) |
| 1466 | # |
| 1467 | # Cloud Run fully managed: not supported |
| 1468 | # |
| 1469 | # Cloud Run for Anthos: supported |
| 1470 | # |
| 1471 | # GenerateName is an optional prefix, used by the server, to generate a |
| 1472 | # unique name ONLY IF the Name field has not been provided. If this field is |
| 1473 | # used, the name returned to the client will be different than the name |
| 1474 | # passed. This value will also be combined with a unique suffix. The provided |
| 1475 | # value has the same validation rules as the Name field, and may be truncated |
| 1476 | # by the length of the suffix required to make the value unique on the |
| 1477 | # server. |
| 1478 | # |
| 1479 | # If this field is specified and the generated name exists, the server will |
| 1480 | # NOT return a 409 - instead, it will either return 201 Created or 500 with |
| 1481 | # Reason ServerTimeout indicating a unique name could not be found in the |
| 1482 | # time allotted, and the client should retry (optionally after the time |
| 1483 | # indicated in the Retry-After header). |
| 1484 | # |
| 1485 | # Applied only if Name is not specified. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1486 | # More info: |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 1487 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency |
| 1488 | # string generateName = 2; |
| 1489 | "name": "A String", # Name must be unique within a namespace, within a Cloud Run region. |
| 1490 | # Is required when creating |
| 1491 | # resources, although some resources may allow a client to request the |
| 1492 | # generation of an appropriate name automatically. Name is primarily intended |
| 1493 | # for creation idempotence and configuration definition. Cannot be updated. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1494 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 1495 | # +optional |
| 1496 | "deletionGracePeriodSeconds": 42, # (Optional) |
| 1497 | # |
| 1498 | # Cloud Run fully managed: not supported |
| 1499 | # |
| 1500 | # Cloud Run for Anthos: supported |
| 1501 | # |
| 1502 | # Number of seconds allowed for this object to gracefully terminate before |
| 1503 | # it will be removed from the system. Only set when deletionTimestamp is also |
| 1504 | # set. May only be shortened. Read-only. |
| 1505 | "clusterName": "A String", # (Optional) |
| 1506 | # |
| 1507 | # Cloud Run fully managed: not supported |
| 1508 | # |
| 1509 | # Cloud Run for Anthos: supported |
| 1510 | # |
| 1511 | # The name of the cluster which the object belongs to. |
| 1512 | # This is used to distinguish resources with same name and namespace in |
| 1513 | # different clusters. This field is not set anywhere right now and apiserver |
| 1514 | # is going to ignore it if set in create or update request. |
| 1515 | "finalizers": [ # (Optional) |
| 1516 | # |
| 1517 | # Cloud Run fully managed: not supported |
| 1518 | # |
| 1519 | # Cloud Run for Anthos: supported |
| 1520 | # |
| 1521 | # Must be empty before the object is deleted from the registry. Each entry |
| 1522 | # is an identifier for the responsible component that will remove the entry |
| 1523 | # from the list. If the deletionTimestamp of the object is non-nil, entries |
| 1524 | # in this list can only be removed. |
| 1525 | # +patchStrategy=merge |
| 1526 | "A String", |
| 1527 | ], |
| 1528 | "deletionTimestamp": "A String", # (Optional) |
| 1529 | # |
| 1530 | # Cloud Run fully managed: not supported |
| 1531 | # |
| 1532 | # Cloud Run for Anthos: supported |
| 1533 | # |
| 1534 | # DeletionTimestamp is RFC 3339 date and time at which this resource will be |
| 1535 | # deleted. This field is set by the server when a graceful deletion is |
| 1536 | # requested by the user, and is not directly settable by a client. The |
| 1537 | # resource is expected to be deleted (no longer visible from resource lists, |
| 1538 | # and not reachable by name) after the time in this field, once the |
| 1539 | # finalizers list is empty. As long as the finalizers list contains items, |
| 1540 | # deletion is blocked. Once the deletionTimestamp is set, this value may not |
| 1541 | # be unset or be set further into the future, although it may be shortened or |
| 1542 | # the resource may be deleted prior to this time. For example, a user may |
| 1543 | # request that a pod is deleted in 30 seconds. The Kubelet will react by |
| 1544 | # sending a graceful termination signal to the containers in the pod. After |
| 1545 | # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) |
| 1546 | # to the container and after cleanup, remove the pod from the API. In the |
| 1547 | # presence of network partitions, this object may still exist after this |
| 1548 | # timestamp, until an administrator or automated process can determine the |
| 1549 | # resource is fully terminated. |
| 1550 | # If not set, graceful deletion of the object has not been requested. |
| 1551 | # |
| 1552 | # Populated by the system when a graceful deletion is requested. |
| 1553 | # Read-only. |
| 1554 | # More info: |
| 1555 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 1556 | "ownerReferences": [ # (Optional) |
| 1557 | # |
| 1558 | # Cloud Run fully managed: not supported |
| 1559 | # |
| 1560 | # Cloud Run for Anthos: supported |
| 1561 | # |
| 1562 | # List of objects that own this object. If ALL objects in the list have |
| 1563 | # been deleted, this object will be garbage collected. |
| 1564 | { # OwnerReference contains enough information to let you identify an owning |
| 1565 | # object. Currently, an owning object must be in the same namespace, so there |
| 1566 | # is no namespace field. |
| 1567 | "controller": True or False, # If true, this reference points to the managing controller. |
| 1568 | # +optional |
| 1569 | "kind": "A String", # Kind of the referent. |
| 1570 | # More info: |
| 1571 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds |
| 1572 | "blockOwnerDeletion": True or False, # If true, AND if the owner has the "foregroundDeletion" finalizer, then |
| 1573 | # the owner cannot be deleted from the key-value store until this |
| 1574 | # reference is removed. |
| 1575 | # Defaults to false. |
| 1576 | # To set this field, a user needs "delete" permission of the owner, |
| 1577 | # otherwise 422 (Unprocessable Entity) will be returned. |
| 1578 | # +optional |
| 1579 | "apiVersion": "A String", # API version of the referent. |
| 1580 | "name": "A String", # Name of the referent. |
| 1581 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 1582 | "uid": "A String", # UID of the referent. |
| 1583 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 1584 | }, |
| 1585 | ], |
| 1586 | "creationTimestamp": "A String", # (Optional) |
| 1587 | # |
| 1588 | # CreationTimestamp is a timestamp representing the server time when this |
| 1589 | # object was created. It is not guaranteed to be set in happens-before order |
| 1590 | # across separate operations. Clients may not set this value. It is |
| 1591 | # represented in RFC3339 form and is in UTC. |
| 1592 | # |
| 1593 | # Populated by the system. |
| 1594 | # Read-only. |
| 1595 | # Null for lists. |
| 1596 | # More info: |
| 1597 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 1598 | "labels": { # (Optional) |
| 1599 | # |
| 1600 | # Map of string keys and values that can be used to organize and categorize |
| 1601 | # (scope and select) objects. May match selectors of replication controllers |
| 1602 | # and routes. |
| 1603 | # More info: http://kubernetes.io/docs/user-guide/labels |
| 1604 | "a_key": "A String", |
| 1605 | }, |
| 1606 | "generation": 42, # (Optional) |
| 1607 | # |
| 1608 | # A sequence number representing a specific generation of the desired state. |
| 1609 | # Populated by the system. Read-only. |
| 1610 | "resourceVersion": "A String", # (Optional) |
| 1611 | # |
| 1612 | # An opaque value that represents the internal version of this object that |
| 1613 | # can be used by clients to determine when objects have changed. May be used |
| 1614 | # for optimistic concurrency, change detection, and the watch operation on a |
| 1615 | # resource or set of resources. Clients must treat these values as opaque and |
| 1616 | # passed unmodified back to the server. They may only be valid for a |
| 1617 | # particular resource or set of resources. |
| 1618 | # |
| 1619 | # Populated by the system. |
| 1620 | # Read-only. |
| 1621 | # Value must be treated as opaque by clients and . |
| 1622 | # More info: |
| 1623 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency |
| 1624 | "selfLink": "A String", # (Optional) |
| 1625 | # |
| 1626 | # SelfLink is a URL representing this object. |
| 1627 | # Populated by the system. |
| 1628 | # Read-only. |
| 1629 | # string selfLink = 4; |
| 1630 | "uid": "A String", # (Optional) |
| 1631 | # |
| 1632 | # UID is the unique in time and space value for this object. It is typically |
| 1633 | # generated by the server on successful creation of a resource and is not |
| 1634 | # allowed to change on PUT operations. |
| 1635 | # |
| 1636 | # Populated by the system. |
| 1637 | # Read-only. |
| 1638 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 1639 | "namespace": "A String", # Namespace defines the space within each name must be unique, within a |
| 1640 | # Cloud Run region. In Cloud Run the namespace must be equal to either the |
| 1641 | # project ID or project number. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1642 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 1643 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1644 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 1645 | } |
| 1646 | |
| 1647 | x__xgafv: string, V1 error format. |
| 1648 | Allowed values |
| 1649 | 1 - v1 error format |
| 1650 | 2 - v2 error format |
| 1651 | |
| 1652 | Returns: |
| 1653 | An object of the form: |
| 1654 | |
| 1655 | { # Service acts as a top-level container that manages a set of Routes and |
| 1656 | # Configurations which implement a network service. Service exists to provide a |
| 1657 | # singular abstraction which can be access controlled, reasoned about, and |
| 1658 | # which encapsulates software lifecycle decisions such as rollout policy and |
| 1659 | # team resource ownership. Service acts only as an orchestrator of the |
| 1660 | # underlying Routes and Configurations (much as a kubernetes Deployment |
| 1661 | # orchestrates ReplicaSets). |
| 1662 | # |
| 1663 | # The Service's controller will track the statuses of its owned Configuration |
| 1664 | # and Route, reflecting their statuses and conditions as its own. |
| 1665 | # |
| 1666 | # See also: |
| 1667 | # https://github.com/knative/serving/blob/master/docs/spec/overview.md#service |
| 1668 | "kind": "A String", # The kind of resource, in this case "Service". |
| 1669 | "metadata": { # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # Metadata associated with this Service, including name, namespace, labels, |
| 1670 | # and annotations. |
| 1671 | # persisted resources must have, which includes all objects users must create. |
| 1672 | "annotations": { # (Optional) |
| 1673 | # |
| 1674 | # Annotations is an unstructured key value map stored with a resource that |
| 1675 | # may be set by external tools to store and retrieve arbitrary metadata. They |
| 1676 | # are not queryable and should be preserved when modifying objects. More |
| 1677 | # info: http://kubernetes.io/docs/user-guide/annotations |
| 1678 | "a_key": "A String", |
| 1679 | }, |
| 1680 | "generateName": "A String", # (Optional) |
| 1681 | # |
| 1682 | # Cloud Run fully managed: not supported |
| 1683 | # |
| 1684 | # Cloud Run for Anthos: supported |
| 1685 | # |
| 1686 | # GenerateName is an optional prefix, used by the server, to generate a |
| 1687 | # unique name ONLY IF the Name field has not been provided. If this field is |
| 1688 | # used, the name returned to the client will be different than the name |
| 1689 | # passed. This value will also be combined with a unique suffix. The provided |
| 1690 | # value has the same validation rules as the Name field, and may be truncated |
| 1691 | # by the length of the suffix required to make the value unique on the |
| 1692 | # server. |
| 1693 | # |
| 1694 | # If this field is specified and the generated name exists, the server will |
| 1695 | # NOT return a 409 - instead, it will either return 201 Created or 500 with |
| 1696 | # Reason ServerTimeout indicating a unique name could not be found in the |
| 1697 | # time allotted, and the client should retry (optionally after the time |
| 1698 | # indicated in the Retry-After header). |
| 1699 | # |
| 1700 | # Applied only if Name is not specified. |
| 1701 | # More info: |
| 1702 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency |
| 1703 | # string generateName = 2; |
| 1704 | "name": "A String", # Name must be unique within a namespace, within a Cloud Run region. |
| 1705 | # Is required when creating |
| 1706 | # resources, although some resources may allow a client to request the |
| 1707 | # generation of an appropriate name automatically. Name is primarily intended |
| 1708 | # for creation idempotence and configuration definition. Cannot be updated. |
| 1709 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 1710 | # +optional |
| 1711 | "deletionGracePeriodSeconds": 42, # (Optional) |
| 1712 | # |
| 1713 | # Cloud Run fully managed: not supported |
| 1714 | # |
| 1715 | # Cloud Run for Anthos: supported |
| 1716 | # |
| 1717 | # Number of seconds allowed for this object to gracefully terminate before |
| 1718 | # it will be removed from the system. Only set when deletionTimestamp is also |
| 1719 | # set. May only be shortened. Read-only. |
| 1720 | "clusterName": "A String", # (Optional) |
| 1721 | # |
| 1722 | # Cloud Run fully managed: not supported |
| 1723 | # |
| 1724 | # Cloud Run for Anthos: supported |
| 1725 | # |
| 1726 | # The name of the cluster which the object belongs to. |
| 1727 | # This is used to distinguish resources with same name and namespace in |
| 1728 | # different clusters. This field is not set anywhere right now and apiserver |
| 1729 | # is going to ignore it if set in create or update request. |
| 1730 | "finalizers": [ # (Optional) |
| 1731 | # |
| 1732 | # Cloud Run fully managed: not supported |
| 1733 | # |
| 1734 | # Cloud Run for Anthos: supported |
| 1735 | # |
| 1736 | # Must be empty before the object is deleted from the registry. Each entry |
| 1737 | # is an identifier for the responsible component that will remove the entry |
| 1738 | # from the list. If the deletionTimestamp of the object is non-nil, entries |
| 1739 | # in this list can only be removed. |
| 1740 | # +patchStrategy=merge |
| 1741 | "A String", |
| 1742 | ], |
| 1743 | "deletionTimestamp": "A String", # (Optional) |
| 1744 | # |
| 1745 | # Cloud Run fully managed: not supported |
| 1746 | # |
| 1747 | # Cloud Run for Anthos: supported |
| 1748 | # |
| 1749 | # DeletionTimestamp is RFC 3339 date and time at which this resource will be |
| 1750 | # deleted. This field is set by the server when a graceful deletion is |
| 1751 | # requested by the user, and is not directly settable by a client. The |
| 1752 | # resource is expected to be deleted (no longer visible from resource lists, |
| 1753 | # and not reachable by name) after the time in this field, once the |
| 1754 | # finalizers list is empty. As long as the finalizers list contains items, |
| 1755 | # deletion is blocked. Once the deletionTimestamp is set, this value may not |
| 1756 | # be unset or be set further into the future, although it may be shortened or |
| 1757 | # the resource may be deleted prior to this time. For example, a user may |
| 1758 | # request that a pod is deleted in 30 seconds. The Kubelet will react by |
| 1759 | # sending a graceful termination signal to the containers in the pod. After |
| 1760 | # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) |
| 1761 | # to the container and after cleanup, remove the pod from the API. In the |
| 1762 | # presence of network partitions, this object may still exist after this |
| 1763 | # timestamp, until an administrator or automated process can determine the |
| 1764 | # resource is fully terminated. |
| 1765 | # If not set, graceful deletion of the object has not been requested. |
| 1766 | # |
| 1767 | # Populated by the system when a graceful deletion is requested. |
| 1768 | # Read-only. |
| 1769 | # More info: |
| 1770 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 1771 | "ownerReferences": [ # (Optional) |
| 1772 | # |
| 1773 | # Cloud Run fully managed: not supported |
| 1774 | # |
| 1775 | # Cloud Run for Anthos: supported |
| 1776 | # |
| 1777 | # List of objects that own this object. If ALL objects in the list have |
| 1778 | # been deleted, this object will be garbage collected. |
| 1779 | { # OwnerReference contains enough information to let you identify an owning |
| 1780 | # object. Currently, an owning object must be in the same namespace, so there |
| 1781 | # is no namespace field. |
| 1782 | "controller": True or False, # If true, this reference points to the managing controller. |
| 1783 | # +optional |
| 1784 | "kind": "A String", # Kind of the referent. |
| 1785 | # More info: |
| 1786 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds |
| 1787 | "blockOwnerDeletion": True or False, # If true, AND if the owner has the "foregroundDeletion" finalizer, then |
| 1788 | # the owner cannot be deleted from the key-value store until this |
| 1789 | # reference is removed. |
| 1790 | # Defaults to false. |
| 1791 | # To set this field, a user needs "delete" permission of the owner, |
| 1792 | # otherwise 422 (Unprocessable Entity) will be returned. |
| 1793 | # +optional |
| 1794 | "apiVersion": "A String", # API version of the referent. |
| 1795 | "name": "A String", # Name of the referent. |
| 1796 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 1797 | "uid": "A String", # UID of the referent. |
| 1798 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 1799 | }, |
| 1800 | ], |
| 1801 | "creationTimestamp": "A String", # (Optional) |
| 1802 | # |
| 1803 | # CreationTimestamp is a timestamp representing the server time when this |
| 1804 | # object was created. It is not guaranteed to be set in happens-before order |
| 1805 | # across separate operations. Clients may not set this value. It is |
| 1806 | # represented in RFC3339 form and is in UTC. |
| 1807 | # |
| 1808 | # Populated by the system. |
| 1809 | # Read-only. |
| 1810 | # Null for lists. |
| 1811 | # More info: |
| 1812 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 1813 | "labels": { # (Optional) |
| 1814 | # |
| 1815 | # Map of string keys and values that can be used to organize and categorize |
| 1816 | # (scope and select) objects. May match selectors of replication controllers |
| 1817 | # and routes. |
| 1818 | # More info: http://kubernetes.io/docs/user-guide/labels |
| 1819 | "a_key": "A String", |
| 1820 | }, |
| 1821 | "generation": 42, # (Optional) |
| 1822 | # |
| 1823 | # A sequence number representing a specific generation of the desired state. |
| 1824 | # Populated by the system. Read-only. |
| 1825 | "resourceVersion": "A String", # (Optional) |
| 1826 | # |
| 1827 | # An opaque value that represents the internal version of this object that |
| 1828 | # can be used by clients to determine when objects have changed. May be used |
| 1829 | # for optimistic concurrency, change detection, and the watch operation on a |
| 1830 | # resource or set of resources. Clients must treat these values as opaque and |
| 1831 | # passed unmodified back to the server. They may only be valid for a |
| 1832 | # particular resource or set of resources. |
| 1833 | # |
| 1834 | # Populated by the system. |
| 1835 | # Read-only. |
| 1836 | # Value must be treated as opaque by clients and . |
| 1837 | # More info: |
| 1838 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency |
| 1839 | "selfLink": "A String", # (Optional) |
| 1840 | # |
| 1841 | # SelfLink is a URL representing this object. |
| 1842 | # Populated by the system. |
| 1843 | # Read-only. |
| 1844 | # string selfLink = 4; |
| 1845 | "uid": "A String", # (Optional) |
| 1846 | # |
| 1847 | # UID is the unique in time and space value for this object. It is typically |
| 1848 | # generated by the server on successful creation of a resource and is not |
| 1849 | # allowed to change on PUT operations. |
| 1850 | # |
| 1851 | # Populated by the system. |
| 1852 | # Read-only. |
| 1853 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 1854 | "namespace": "A String", # Namespace defines the space within each name must be unique, within a |
| 1855 | # Cloud Run region. In Cloud Run the namespace must be equal to either the |
| 1856 | # project ID or project number. |
| 1857 | }, |
| 1858 | "status": { # The current state of the Service. Output only. # Status communicates the observed state of the Service (from the |
| 1859 | # controller). |
| 1860 | "latestCreatedRevisionName": "A String", # From ConfigurationStatus. |
| 1861 | # LatestCreatedRevisionName is the last revision that was created from this |
| 1862 | # Service's Configuration. It might not be ready yet, for that use |
| 1863 | # LatestReadyRevisionName. |
| 1864 | "conditions": [ # Conditions communicates information about ongoing/complete |
| 1865 | # reconciliation processes that bring the "spec" inline with the observed |
| 1866 | # state of the world. |
| 1867 | # Service-specific conditions include: |
| 1868 | # * "ConfigurationsReady": true when the underlying Configuration is ready. |
| 1869 | # * "RoutesReady": true when the underlying Route is ready. |
| 1870 | # * "Ready": true when both the underlying Route and Configuration are |
| 1871 | # ready. |
| 1872 | { # Condition defines a generic condition for a Resource |
| 1873 | "message": "A String", # Optional. Human readable message indicating details about the current status. |
| 1874 | "lastTransitionTime": "A String", # Optional. Last time the condition transitioned from one status to another. |
| 1875 | "status": "A String", # Status of the condition, one of True, False, Unknown. |
| 1876 | "severity": "A String", # Optional. How to interpret failures of this condition, one of Error, Warning, Info |
| 1877 | "reason": "A String", # Optional. One-word CamelCase reason for the condition's last transition. |
| 1878 | "type": "A String", # type is used to communicate the status of the reconciliation process. |
| 1879 | # See also: |
| 1880 | # https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-reporting |
| 1881 | # Types common to all resources include: |
| 1882 | # * "Ready": True when the Resource is ready. |
| 1883 | }, |
| 1884 | ], |
| 1885 | "address": { # Information for connecting over HTTP(s). # From RouteStatus. |
| 1886 | # Similar to url, information on where the service is available on HTTP. |
| 1887 | "url": "A String", |
| 1888 | }, |
| 1889 | "observedGeneration": 42, # ObservedGeneration is the 'Generation' of the Route that |
| 1890 | # was last processed by the controller. |
| 1891 | # |
| 1892 | # Clients polling for completed reconciliation should poll until |
| 1893 | # observedGeneration = metadata.generation and the Ready condition's status |
| 1894 | # is True or False. |
| 1895 | "url": "A String", # From RouteStatus. |
| 1896 | # URL holds the url that will distribute traffic over the provided traffic |
| 1897 | # targets. It generally has the form |
| 1898 | # https://{route-hash}-{project-hash}-{cluster-level-suffix}.a.run.app |
| 1899 | "traffic": [ # From RouteStatus. |
| 1900 | # Traffic holds the configured traffic distribution. |
| 1901 | # These entries will always contain RevisionName references. |
| 1902 | # When ConfigurationName appears in the spec, this will hold the |
| 1903 | # LatestReadyRevisionName that we last observed. |
| 1904 | { # TrafficTarget holds a single entry of the routing table for a Route. |
| 1905 | "revisionName": "A String", # RevisionName of a specific revision to which to send this portion of |
| 1906 | # traffic. This is mutually exclusive with ConfigurationName. |
| 1907 | # |
| 1908 | # Providing RevisionName in spec is not currently supported by Cloud Run. |
| 1909 | "latestRevision": True or False, # LatestRevision may be optionally provided to indicate that the latest |
| 1910 | # ready Revision of the Configuration should be used for this traffic |
| 1911 | # target. When provided LatestRevision must be true if RevisionName is |
| 1912 | # empty; it must be false when RevisionName is non-empty. |
| 1913 | # |
| 1914 | # +optional |
| 1915 | "tag": "A String", # Tag is optionally used to expose a dedicated url for referencing |
| 1916 | # this target exclusively. |
| 1917 | # |
| 1918 | # Not currently supported in Cloud Run. |
| 1919 | # +optional |
| 1920 | "url": "A String", # Output only. URL displays the URL for accessing tagged traffic targets. URL |
| 1921 | # is displayed in status, and is disallowed on spec. URL must contain a |
| 1922 | # scheme (e.g. http://) and a hostname, but may not contain anything else |
| 1923 | # (e.g. basic auth, url path, etc. |
| 1924 | # |
| 1925 | # Not currently supported in Cloud Run. |
| 1926 | "configurationName": "A String", # ConfigurationName of a configuration to whose latest revision we will |
| 1927 | # send this portion of traffic. When the "status.latestReadyRevisionName" |
| 1928 | # of the referenced configuration changes, we will automatically migrate |
| 1929 | # traffic from the prior "latest ready" revision to the new one. This field |
| 1930 | # is never set in Route's status, only its spec. This is mutually exclusive |
| 1931 | # with RevisionName. |
| 1932 | # |
| 1933 | # Cloud Run currently supports a single ConfigurationName. |
| 1934 | "percent": 42, # Percent specifies percent of the traffic to this Revision or Configuration. |
| 1935 | # This defaults to zero if unspecified. |
| 1936 | # |
| 1937 | # Cloud Run currently requires 100 percent for a single ConfigurationName |
| 1938 | # TrafficTarget entry. |
| 1939 | }, |
| 1940 | ], |
| 1941 | "latestReadyRevisionName": "A String", # From ConfigurationStatus. |
| 1942 | # LatestReadyRevisionName holds the name of the latest Revision stamped out |
| 1943 | # from this Service's Configuration that has had its "Ready" condition become |
| 1944 | # "True". |
| 1945 | }, |
| 1946 | "apiVersion": "A String", # The API version for this call such as "serving.knative.dev/v1". |
| 1947 | "spec": { # ServiceSpec holds the desired state of the Route (from the client), which # Spec holds the desired state of the Service (from the client). |
| 1948 | # is used to manipulate the underlying Route and Configuration(s). |
| 1949 | "traffic": [ # Traffic specifies how to distribute traffic over a collection of Knative |
| 1950 | # Revisions and Configurations. |
| 1951 | { # TrafficTarget holds a single entry of the routing table for a Route. |
| 1952 | "revisionName": "A String", # RevisionName of a specific revision to which to send this portion of |
| 1953 | # traffic. This is mutually exclusive with ConfigurationName. |
| 1954 | # |
| 1955 | # Providing RevisionName in spec is not currently supported by Cloud Run. |
| 1956 | "latestRevision": True or False, # LatestRevision may be optionally provided to indicate that the latest |
| 1957 | # ready Revision of the Configuration should be used for this traffic |
| 1958 | # target. When provided LatestRevision must be true if RevisionName is |
| 1959 | # empty; it must be false when RevisionName is non-empty. |
| 1960 | # |
| 1961 | # +optional |
| 1962 | "tag": "A String", # Tag is optionally used to expose a dedicated url for referencing |
| 1963 | # this target exclusively. |
| 1964 | # |
| 1965 | # Not currently supported in Cloud Run. |
| 1966 | # +optional |
| 1967 | "url": "A String", # Output only. URL displays the URL for accessing tagged traffic targets. URL |
| 1968 | # is displayed in status, and is disallowed on spec. URL must contain a |
| 1969 | # scheme (e.g. http://) and a hostname, but may not contain anything else |
| 1970 | # (e.g. basic auth, url path, etc. |
| 1971 | # |
| 1972 | # Not currently supported in Cloud Run. |
| 1973 | "configurationName": "A String", # ConfigurationName of a configuration to whose latest revision we will |
| 1974 | # send this portion of traffic. When the "status.latestReadyRevisionName" |
| 1975 | # of the referenced configuration changes, we will automatically migrate |
| 1976 | # traffic from the prior "latest ready" revision to the new one. This field |
| 1977 | # is never set in Route's status, only its spec. This is mutually exclusive |
| 1978 | # with RevisionName. |
| 1979 | # |
| 1980 | # Cloud Run currently supports a single ConfigurationName. |
| 1981 | "percent": 42, # Percent specifies percent of the traffic to this Revision or Configuration. |
| 1982 | # This defaults to zero if unspecified. |
| 1983 | # |
| 1984 | # Cloud Run currently requires 100 percent for a single ConfigurationName |
| 1985 | # TrafficTarget entry. |
| 1986 | }, |
| 1987 | ], |
| 1988 | "template": { # RevisionTemplateSpec describes the data a revision should have when created # Template holds the latest specification for the Revision to |
| 1989 | # be stamped out. |
| 1990 | # from a template. Based on: |
| 1991 | # https://github.com/kubernetes/api/blob/e771f807/core/v1/types.go#L3179-L3190 |
| 1992 | "spec": { # RevisionSpec holds the desired state of the Revision (from the client). # RevisionSpec holds the desired state of the Revision (from the client). |
| 1993 | "containerConcurrency": 42, # (Optional) |
| 1994 | # |
| 1995 | # ContainerConcurrency specifies the maximum allowed in-flight (concurrent) |
| 1996 | # requests per container instance of the Revision. |
| 1997 | # |
| 1998 | # Cloud Run fully managed: supported, defaults to 80 |
| 1999 | # |
| 2000 | # Cloud Run for Anthos: supported, defaults to 0, which means concurrency |
| 2001 | # to the application is not limited, and the system decides the |
| 2002 | # target concurrency for the autoscaler. |
| 2003 | "timeoutSeconds": 42, # TimeoutSeconds holds the max duration the instance is allowed for |
| 2004 | # responding to a request. |
| 2005 | # Not currently used by Cloud Run. |
| 2006 | "serviceAccountName": "A String", # Email address of the IAM service account associated with the revision |
| 2007 | # of the service. The service account represents the identity of the |
| 2008 | # running revision, and determines what permissions the revision has. If |
| 2009 | # not provided, the revision will use the project's default service account. |
| 2010 | "containers": [ # Containers holds the single container that defines the unit of execution |
| 2011 | # for this Revision. In the context of a Revision, we disallow a number of |
| 2012 | # fields on this Container, including: name and lifecycle. |
| 2013 | # In Cloud Run, only a single container may be provided. |
| 2014 | # The runtime contract is documented here: |
| 2015 | # https://github.com/knative/serving/blob/master/docs/runtime-contract.md |
| 2016 | { # A single application container. |
| 2017 | # This specifies both the container to run, the command to run in the container |
| 2018 | # and the arguments to supply to it. |
| 2019 | # Note that additional arguments may be supplied by the system to the container |
| 2020 | # at runtime. |
| 2021 | "securityContext": { # Cloud Run fully managed: not supported # (Optional) |
| 2022 | # |
| 2023 | # Cloud Run fully managed: not supported |
| 2024 | # |
| 2025 | # Cloud Run for Anthos: supported |
| 2026 | # |
| 2027 | # Security options the pod should run with. |
| 2028 | # More info: https://kubernetes.io/docs/concepts/policy/security-context/ |
| 2029 | # More info: |
| 2030 | # https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ |
| 2031 | # |
| 2032 | # Cloud Run for Anthos: supported |
| 2033 | # |
| 2034 | # SecurityContext holds security configuration that will be applied to a |
| 2035 | # container. Some fields are present in both SecurityContext and |
| 2036 | # PodSecurityContext. When both are set, the values in SecurityContext take |
| 2037 | # precedence. |
| 2038 | "runAsUser": 42, # (Optional) |
| 2039 | # |
| 2040 | # Cloud Run fully managed: not supported |
| 2041 | # |
| 2042 | # Cloud Run for Anthos: supported |
| 2043 | # |
| 2044 | # The UID to run the entrypoint of the container process. |
| 2045 | # Defaults to user specified in image metadata if unspecified. |
| 2046 | # May also be set in PodSecurityContext. If set in both SecurityContext and |
| 2047 | # PodSecurityContext, the value specified in SecurityContext takes |
| 2048 | # precedence. |
| 2049 | }, |
| 2050 | "livenessProbe": { # Cloud Run fully managed: not supported # (Optional) |
| 2051 | # |
| 2052 | # Cloud Run fully managed: not supported |
| 2053 | # |
| 2054 | # Cloud Run for Anthos: supported |
| 2055 | # |
| 2056 | # Periodic probe of container liveness. |
| 2057 | # Container will be restarted if the probe fails. |
| 2058 | # More info: |
| 2059 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 2060 | # |
| 2061 | # Cloud Run for Anthos: supported |
| 2062 | # |
| 2063 | # Probe describes a health check to be performed against a container to |
| 2064 | # determine whether it is alive or ready to receive traffic. |
| 2065 | "httpGet": { # Cloud Run fully managed: not supported # (Optional) |
| 2066 | # |
| 2067 | # Cloud Run fully managed: not supported |
| 2068 | # |
| 2069 | # Cloud Run for Anthos: supported |
| 2070 | # |
| 2071 | # HTTPGet specifies the http request to perform. |
| 2072 | # |
| 2073 | # A field inlined from the Handler message. |
| 2074 | # |
| 2075 | # Cloud Run for Anthos: supported |
| 2076 | # |
| 2077 | # HTTPGetAction describes an action based on HTTP Get requests. |
| 2078 | "host": "A String", # (Optional) |
| 2079 | # |
| 2080 | # Cloud Run fully managed: not supported |
| 2081 | # |
| 2082 | # Cloud Run for Anthos: supported |
| 2083 | # |
| 2084 | # Host name to connect to, defaults to the pod IP. You probably want to set |
| 2085 | # "Host" in httpHeaders instead. |
| 2086 | "scheme": "A String", # (Optional) |
| 2087 | # |
| 2088 | # Cloud Run fully managed: not supported |
| 2089 | # |
| 2090 | # Cloud Run for Anthos: supported |
| 2091 | # |
| 2092 | # Scheme to use for connecting to the host. |
| 2093 | # Defaults to HTTP. |
| 2094 | "httpHeaders": [ # (Optional) |
| 2095 | # |
| 2096 | # Cloud Run fully managed: not supported |
| 2097 | # |
| 2098 | # Cloud Run for Anthos: supported |
| 2099 | # |
| 2100 | # Custom headers to set in the request. HTTP allows repeated headers. |
| 2101 | { # Cloud Run fully managed: not supported |
| 2102 | # |
| 2103 | # Cloud Run for Anthos: supported |
| 2104 | # |
| 2105 | # HTTPHeader describes a custom header to be used in HTTP probes |
| 2106 | "name": "A String", # Cloud Run fully managed: not supported |
| 2107 | # |
| 2108 | # Cloud Run for Anthos: supported |
| 2109 | # |
| 2110 | # The header field name |
| 2111 | "value": "A String", # Cloud Run fully managed: not supported |
| 2112 | # |
| 2113 | # Cloud Run for Anthos: supported |
| 2114 | # |
| 2115 | # The header field value |
| 2116 | }, |
| 2117 | ], |
| 2118 | "path": "A String", # (Optional) |
| 2119 | # |
| 2120 | # Cloud Run fully managed: not supported |
| 2121 | # |
| 2122 | # Cloud Run for Anthos: supported |
| 2123 | # |
| 2124 | # Path to access on the HTTP server. |
| 2125 | }, |
| 2126 | "failureThreshold": 42, # (Optional) |
| 2127 | # |
| 2128 | # Cloud Run fully managed: not supported |
| 2129 | # |
| 2130 | # Cloud Run for Anthos: supported |
| 2131 | # |
| 2132 | # Minimum consecutive failures for the probe to be considered failed after |
| 2133 | # having succeeded. Defaults to 3. Minimum value is 1. |
| 2134 | "exec": { # Cloud Run fully managed: not supported # (Optional) |
| 2135 | # |
| 2136 | # Cloud Run fully managed: not supported |
| 2137 | # |
| 2138 | # Cloud Run for Anthos: supported |
| 2139 | # |
| 2140 | # One and only one of the following should be specified. |
| 2141 | # Exec specifies the action to take. |
| 2142 | # |
| 2143 | # A field inlined from the Handler message. |
| 2144 | # |
| 2145 | # Cloud Run for Anthos: supported |
| 2146 | # |
| 2147 | # ExecAction describes a "run in container" action. |
| 2148 | "command": "A String", # (Optional) |
| 2149 | # |
| 2150 | # Cloud Run fully managed: not supported |
| 2151 | # |
| 2152 | # Cloud Run for Anthos: supported |
| 2153 | # |
| 2154 | # Command is the command line to execute inside the container, the working |
| 2155 | # directory for the command is root ('/') in the container's filesystem. The |
| 2156 | # command is simply exec'd, it is not run inside a shell, so traditional |
| 2157 | # shell instructions ('|', etc) won't work. To use a shell, you need to |
| 2158 | # explicitly call out to that shell. Exit status of 0 is treated as |
| 2159 | # live/healthy and non-zero is unhealthy. |
| 2160 | }, |
| 2161 | "initialDelaySeconds": 42, # (Optional) |
| 2162 | # |
| 2163 | # Cloud Run fully managed: not supported |
| 2164 | # |
| 2165 | # Cloud Run for Anthos: supported |
| 2166 | # |
| 2167 | # Number of seconds after the container has started before liveness probes |
| 2168 | # are initiated. More info: |
| 2169 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 2170 | "timeoutSeconds": 42, # (Optional) |
| 2171 | # |
| 2172 | # Cloud Run fully managed: not supported |
| 2173 | # |
| 2174 | # Cloud Run for Anthos: supported |
| 2175 | # |
| 2176 | # Number of seconds after which the probe times out. |
| 2177 | # Defaults to 1 second. Minimum value is 1. |
| 2178 | # More info: |
| 2179 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 2180 | "successThreshold": 42, # (Optional) |
| 2181 | # |
| 2182 | # Cloud Run fully managed: not supported |
| 2183 | # |
| 2184 | # Cloud Run for Anthos: supported |
| 2185 | # |
| 2186 | # Minimum consecutive successes for the probe to be considered successful |
| 2187 | # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value |
| 2188 | # is 1. |
| 2189 | "periodSeconds": 42, # (Optional) |
| 2190 | # |
| 2191 | # Cloud Run fully managed: not supported |
| 2192 | # |
| 2193 | # Cloud Run for Anthos: supported |
| 2194 | # |
| 2195 | # How often (in seconds) to perform the probe. |
| 2196 | # Default to 10 seconds. Minimum value is 1. |
| 2197 | "tcpSocket": { # Cloud Run fully managed: not supported # (Optional) |
| 2198 | # |
| 2199 | # Cloud Run fully managed: not supported |
| 2200 | # |
| 2201 | # Cloud Run for Anthos: supported |
| 2202 | # |
| 2203 | # TCPSocket specifies an action involving a TCP port. |
| 2204 | # TCP hooks not yet supported |
| 2205 | # |
| 2206 | # A field inlined from the Handler message. |
| 2207 | # |
| 2208 | # Cloud Run for Anthos: supported |
| 2209 | # |
| 2210 | # TCPSocketAction describes an action based on opening a socket |
| 2211 | "port": 42, # Cloud Run fully managed: not supported |
| 2212 | # |
| 2213 | # Cloud Run for Anthos: supported |
| 2214 | # |
| 2215 | # Number or name of the port to access on the container. |
| 2216 | # Number must be in the range 1 to 65535. |
| 2217 | # Name must be an IANA_SVC_NAME. |
| 2218 | # |
| 2219 | # This field is currently limited to integer types only because of proto's |
| 2220 | # inability to properly support the IntOrString golang type. |
| 2221 | "host": "A String", # (Optional) |
| 2222 | # |
| 2223 | # Cloud Run fully managed: not supported |
| 2224 | # |
| 2225 | # Cloud Run for Anthos: supported |
| 2226 | # |
| 2227 | # Optional: Host name to connect to, defaults to the pod IP. |
| 2228 | }, |
| 2229 | }, |
| 2230 | "env": [ # (Optional) |
| 2231 | # |
| 2232 | # Cloud Run fully managed: supported |
| 2233 | # |
| 2234 | # Cloud Run for Anthos: supported |
| 2235 | # |
| 2236 | # List of environment variables to set in the container. |
| 2237 | { # EnvVar represents an environment variable present in a Container. |
| 2238 | "name": "A String", # Name of the environment variable. Must be a C_IDENTIFIER. |
| 2239 | "valueFrom": { # Cloud Run fully managed: not supported # (Optional) |
| 2240 | # |
| 2241 | # Cloud Run fully managed: not supported |
| 2242 | # |
| 2243 | # Cloud Run for Anthos: supported |
| 2244 | # |
| 2245 | # Source for the environment variable's value. Cannot be used if value is not |
| 2246 | # empty. |
| 2247 | # |
| 2248 | # Cloud Run for Anthos: supported |
| 2249 | # |
| 2250 | # EnvVarSource represents a source for the value of an EnvVar. |
| 2251 | "configMapKeyRef": { # Cloud Run fully managed: not supported # (Optional) |
| 2252 | # |
| 2253 | # Cloud Run fully managed: not supported |
| 2254 | # |
| 2255 | # Cloud Run for Anthos: supported |
| 2256 | # |
| 2257 | # Selects a key of a ConfigMap. |
| 2258 | # |
| 2259 | # Cloud Run for Anthos: supported |
| 2260 | # |
| 2261 | # Selects a key from a ConfigMap. |
| 2262 | "optional": True or False, # (Optional) |
| 2263 | # |
| 2264 | # Cloud Run fully managed: not supported |
| 2265 | # |
| 2266 | # Cloud Run for Anthos: supported |
| 2267 | # |
| 2268 | # Specify whether the ConfigMap or its key must be defined |
| 2269 | "key": "A String", # Cloud Run fully managed: not supported |
| 2270 | # |
| 2271 | # Cloud Run for Anthos: supported |
| 2272 | # |
| 2273 | # The key to select. |
| 2274 | "name": "A String", # Cloud Run fully managed: not supported |
| 2275 | # |
| 2276 | # Cloud Run for Anthos: supported |
| 2277 | # |
| 2278 | # The ConfigMap to select from. |
| 2279 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 2280 | # directly into the message. Use the "name" field instead. |
| 2281 | # |
| 2282 | # Cloud Run for Anthos: supported |
| 2283 | # |
| 2284 | # LocalObjectReference contains enough information to let you locate the |
| 2285 | # referenced object inside the same namespace. |
| 2286 | "name": "A String", # (Optional) |
| 2287 | # |
| 2288 | # Cloud Run fully managed: not supported |
| 2289 | # |
| 2290 | # Cloud Run for Anthos: supported |
| 2291 | # |
| 2292 | # Name of the referent. |
| 2293 | # More info: |
| 2294 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 2295 | }, |
| 2296 | }, |
| 2297 | "secretKeyRef": { # Cloud Run fully managed: not supported # (Optional) |
| 2298 | # |
| 2299 | # Cloud Run fully managed: not supported |
| 2300 | # |
| 2301 | # Cloud Run for Anthos: supported |
| 2302 | # |
| 2303 | # Selects a key of a secret in the pod's namespace |
| 2304 | # |
| 2305 | # Cloud Run for Anthos: supported |
| 2306 | # |
| 2307 | # SecretKeySelector selects a key of a Secret. |
| 2308 | "key": "A String", # Cloud Run fully managed: not supported |
| 2309 | # |
| 2310 | # Cloud Run for Anthos: supported |
| 2311 | # |
| 2312 | # The key of the secret to select from. Must be a valid secret key. |
| 2313 | "name": "A String", # Cloud Run fully managed: not supported |
| 2314 | # |
| 2315 | # Cloud Run for Anthos: supported |
| 2316 | # |
| 2317 | # The name of the secret in the pod's namespace to select from. |
| 2318 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 2319 | # directly into the message. Use the "name" field instead. |
| 2320 | # |
| 2321 | # Cloud Run for Anthos: supported |
| 2322 | # |
| 2323 | # LocalObjectReference contains enough information to let you locate the |
| 2324 | # referenced object inside the same namespace. |
| 2325 | "name": "A String", # (Optional) |
| 2326 | # |
| 2327 | # Cloud Run fully managed: not supported |
| 2328 | # |
| 2329 | # Cloud Run for Anthos: supported |
| 2330 | # |
| 2331 | # Name of the referent. |
| 2332 | # More info: |
| 2333 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 2334 | }, |
| 2335 | "optional": True or False, # (Optional) |
| 2336 | # |
| 2337 | # Cloud Run fully managed: not supported |
| 2338 | # |
| 2339 | # Cloud Run for Anthos: supported |
| 2340 | # |
| 2341 | # Specify whether the Secret or its key must be defined |
| 2342 | }, |
| 2343 | }, |
| 2344 | "value": "A String", # (Optional) |
| 2345 | # |
| 2346 | # Variable references $(VAR_NAME) are expanded |
| 2347 | # using the previous defined environment variables in the container and |
| 2348 | # any route environment variables. If a variable cannot be resolved, |
| 2349 | # the reference in the input string will be unchanged. The $(VAR_NAME) |
| 2350 | # syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped |
| 2351 | # references will never be expanded, regardless of whether the variable |
| 2352 | # exists or not. |
| 2353 | # Defaults to "". |
| 2354 | }, |
| 2355 | ], |
| 2356 | "resources": { # ResourceRequirements describes the compute resource requirements. # (Optional) |
| 2357 | # |
| 2358 | # Cloud Run fully managed: supported |
| 2359 | # |
| 2360 | # Cloud Run for Anthos: supported |
| 2361 | # |
| 2362 | # Compute Resources required by this container. |
| 2363 | # More info: |
| 2364 | # https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources |
| 2365 | "limits": { # (Optional) |
| 2366 | # |
| 2367 | # Cloud Run fully managed: Only memory and CPU are supported. Note: The only |
| 2368 | # supported value for CPU is '1'. |
| 2369 | # |
| 2370 | # Cloud Run for Anthos: supported |
| 2371 | # |
| 2372 | # Limits describes the maximum amount of compute resources allowed. |
| 2373 | # The values of the map is string form of the 'quantity' k8s type: |
| 2374 | # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go |
| 2375 | "a_key": "A String", |
| 2376 | }, |
| 2377 | "requests": { # (Optional) |
| 2378 | # |
| 2379 | # Cloud Run fully managed: Only memory and CPU are supported. Note: The only |
| 2380 | # supported value for CPU is '1'. |
| 2381 | # |
| 2382 | # Cloud Run for Anthos: supported |
| 2383 | # |
| 2384 | # Requests describes the minimum amount of compute resources required. |
| 2385 | # If Requests is omitted for a container, it defaults to Limits if that is |
| 2386 | # explicitly specified, otherwise to an implementation-defined value. |
| 2387 | # The values of the map is string form of the 'quantity' k8s type: |
| 2388 | # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go |
| 2389 | "a_key": "A String", |
| 2390 | }, |
| 2391 | }, |
| 2392 | "readinessProbe": { # Cloud Run fully managed: not supported # (Optional) |
| 2393 | # |
| 2394 | # Cloud Run fully managed: not supported |
| 2395 | # |
| 2396 | # Cloud Run for Anthos: supported |
| 2397 | # |
| 2398 | # Periodic probe of container service readiness. |
| 2399 | # Container will be removed from service endpoints if the probe fails. |
| 2400 | # More info: |
| 2401 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 2402 | # |
| 2403 | # Cloud Run for Anthos: supported |
| 2404 | # |
| 2405 | # Probe describes a health check to be performed against a container to |
| 2406 | # determine whether it is alive or ready to receive traffic. |
| 2407 | "httpGet": { # Cloud Run fully managed: not supported # (Optional) |
| 2408 | # |
| 2409 | # Cloud Run fully managed: not supported |
| 2410 | # |
| 2411 | # Cloud Run for Anthos: supported |
| 2412 | # |
| 2413 | # HTTPGet specifies the http request to perform. |
| 2414 | # |
| 2415 | # A field inlined from the Handler message. |
| 2416 | # |
| 2417 | # Cloud Run for Anthos: supported |
| 2418 | # |
| 2419 | # HTTPGetAction describes an action based on HTTP Get requests. |
| 2420 | "host": "A String", # (Optional) |
| 2421 | # |
| 2422 | # Cloud Run fully managed: not supported |
| 2423 | # |
| 2424 | # Cloud Run for Anthos: supported |
| 2425 | # |
| 2426 | # Host name to connect to, defaults to the pod IP. You probably want to set |
| 2427 | # "Host" in httpHeaders instead. |
| 2428 | "scheme": "A String", # (Optional) |
| 2429 | # |
| 2430 | # Cloud Run fully managed: not supported |
| 2431 | # |
| 2432 | # Cloud Run for Anthos: supported |
| 2433 | # |
| 2434 | # Scheme to use for connecting to the host. |
| 2435 | # Defaults to HTTP. |
| 2436 | "httpHeaders": [ # (Optional) |
| 2437 | # |
| 2438 | # Cloud Run fully managed: not supported |
| 2439 | # |
| 2440 | # Cloud Run for Anthos: supported |
| 2441 | # |
| 2442 | # Custom headers to set in the request. HTTP allows repeated headers. |
| 2443 | { # Cloud Run fully managed: not supported |
| 2444 | # |
| 2445 | # Cloud Run for Anthos: supported |
| 2446 | # |
| 2447 | # HTTPHeader describes a custom header to be used in HTTP probes |
| 2448 | "name": "A String", # Cloud Run fully managed: not supported |
| 2449 | # |
| 2450 | # Cloud Run for Anthos: supported |
| 2451 | # |
| 2452 | # The header field name |
| 2453 | "value": "A String", # Cloud Run fully managed: not supported |
| 2454 | # |
| 2455 | # Cloud Run for Anthos: supported |
| 2456 | # |
| 2457 | # The header field value |
| 2458 | }, |
| 2459 | ], |
| 2460 | "path": "A String", # (Optional) |
| 2461 | # |
| 2462 | # Cloud Run fully managed: not supported |
| 2463 | # |
| 2464 | # Cloud Run for Anthos: supported |
| 2465 | # |
| 2466 | # Path to access on the HTTP server. |
| 2467 | }, |
| 2468 | "failureThreshold": 42, # (Optional) |
| 2469 | # |
| 2470 | # Cloud Run fully managed: not supported |
| 2471 | # |
| 2472 | # Cloud Run for Anthos: supported |
| 2473 | # |
| 2474 | # Minimum consecutive failures for the probe to be considered failed after |
| 2475 | # having succeeded. Defaults to 3. Minimum value is 1. |
| 2476 | "exec": { # Cloud Run fully managed: not supported # (Optional) |
| 2477 | # |
| 2478 | # Cloud Run fully managed: not supported |
| 2479 | # |
| 2480 | # Cloud Run for Anthos: supported |
| 2481 | # |
| 2482 | # One and only one of the following should be specified. |
| 2483 | # Exec specifies the action to take. |
| 2484 | # |
| 2485 | # A field inlined from the Handler message. |
| 2486 | # |
| 2487 | # Cloud Run for Anthos: supported |
| 2488 | # |
| 2489 | # ExecAction describes a "run in container" action. |
| 2490 | "command": "A String", # (Optional) |
| 2491 | # |
| 2492 | # Cloud Run fully managed: not supported |
| 2493 | # |
| 2494 | # Cloud Run for Anthos: supported |
| 2495 | # |
| 2496 | # Command is the command line to execute inside the container, the working |
| 2497 | # directory for the command is root ('/') in the container's filesystem. The |
| 2498 | # command is simply exec'd, it is not run inside a shell, so traditional |
| 2499 | # shell instructions ('|', etc) won't work. To use a shell, you need to |
| 2500 | # explicitly call out to that shell. Exit status of 0 is treated as |
| 2501 | # live/healthy and non-zero is unhealthy. |
| 2502 | }, |
| 2503 | "initialDelaySeconds": 42, # (Optional) |
| 2504 | # |
| 2505 | # Cloud Run fully managed: not supported |
| 2506 | # |
| 2507 | # Cloud Run for Anthos: supported |
| 2508 | # |
| 2509 | # Number of seconds after the container has started before liveness probes |
| 2510 | # are initiated. More info: |
| 2511 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 2512 | "timeoutSeconds": 42, # (Optional) |
| 2513 | # |
| 2514 | # Cloud Run fully managed: not supported |
| 2515 | # |
| 2516 | # Cloud Run for Anthos: supported |
| 2517 | # |
| 2518 | # Number of seconds after which the probe times out. |
| 2519 | # Defaults to 1 second. Minimum value is 1. |
| 2520 | # More info: |
| 2521 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 2522 | "successThreshold": 42, # (Optional) |
| 2523 | # |
| 2524 | # Cloud Run fully managed: not supported |
| 2525 | # |
| 2526 | # Cloud Run for Anthos: supported |
| 2527 | # |
| 2528 | # Minimum consecutive successes for the probe to be considered successful |
| 2529 | # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value |
| 2530 | # is 1. |
| 2531 | "periodSeconds": 42, # (Optional) |
| 2532 | # |
| 2533 | # Cloud Run fully managed: not supported |
| 2534 | # |
| 2535 | # Cloud Run for Anthos: supported |
| 2536 | # |
| 2537 | # How often (in seconds) to perform the probe. |
| 2538 | # Default to 10 seconds. Minimum value is 1. |
| 2539 | "tcpSocket": { # Cloud Run fully managed: not supported # (Optional) |
| 2540 | # |
| 2541 | # Cloud Run fully managed: not supported |
| 2542 | # |
| 2543 | # Cloud Run for Anthos: supported |
| 2544 | # |
| 2545 | # TCPSocket specifies an action involving a TCP port. |
| 2546 | # TCP hooks not yet supported |
| 2547 | # |
| 2548 | # A field inlined from the Handler message. |
| 2549 | # |
| 2550 | # Cloud Run for Anthos: supported |
| 2551 | # |
| 2552 | # TCPSocketAction describes an action based on opening a socket |
| 2553 | "port": 42, # Cloud Run fully managed: not supported |
| 2554 | # |
| 2555 | # Cloud Run for Anthos: supported |
| 2556 | # |
| 2557 | # Number or name of the port to access on the container. |
| 2558 | # Number must be in the range 1 to 65535. |
| 2559 | # Name must be an IANA_SVC_NAME. |
| 2560 | # |
| 2561 | # This field is currently limited to integer types only because of proto's |
| 2562 | # inability to properly support the IntOrString golang type. |
| 2563 | "host": "A String", # (Optional) |
| 2564 | # |
| 2565 | # Cloud Run fully managed: not supported |
| 2566 | # |
| 2567 | # Cloud Run for Anthos: supported |
| 2568 | # |
| 2569 | # Optional: Host name to connect to, defaults to the pod IP. |
| 2570 | }, |
| 2571 | }, |
| 2572 | "imagePullPolicy": "A String", # (Optional) |
| 2573 | # |
| 2574 | # Cloud Run fully managed: not supported |
| 2575 | # |
| 2576 | # Cloud Run for Anthos: supported |
| 2577 | # |
| 2578 | # Image pull policy. |
| 2579 | # One of Always, Never, IfNotPresent. |
| 2580 | # Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. |
| 2581 | # More info: |
| 2582 | # https://kubernetes.io/docs/concepts/containers/images#updating-images |
| 2583 | "terminationMessagePath": "A String", # (Optional) |
| 2584 | # |
| 2585 | # Cloud Run fully managed: not supported |
| 2586 | # |
| 2587 | # Cloud Run for Anthos: supported |
| 2588 | # |
| 2589 | # Path at which the file to which the container's termination |
| 2590 | # message will be written is mounted into the container's filesystem. Message |
| 2591 | # written is intended to be brief final status, such as an assertion failure |
| 2592 | # message. Will be truncated by the node if greater than 4096 bytes. The |
| 2593 | # total message length across all containers will be limited to 12kb. |
| 2594 | # Defaults to /dev/termination-log. |
| 2595 | "volumeMounts": [ # (Optional) |
| 2596 | # |
| 2597 | # Cloud Run fully managed: not supported |
| 2598 | # |
| 2599 | # Cloud Run for Anthos: supported |
| 2600 | # |
| 2601 | # Pod volumes to mount into the container's filesystem. |
| 2602 | { # Cloud Run fully managed: not supported |
| 2603 | # |
| 2604 | # Cloud Run for Anthos: supported |
| 2605 | # |
| 2606 | # VolumeMount describes a mounting of a Volume within a container. |
| 2607 | "mountPath": "A String", # Cloud Run fully managed: not supported |
| 2608 | # |
| 2609 | # Cloud Run for Anthos: supported |
| 2610 | # |
| 2611 | # Path within the container at which the volume should be mounted. Must |
| 2612 | # not contain ':'. |
| 2613 | "subPath": "A String", # (Optional) |
| 2614 | # |
| 2615 | # Cloud Run fully managed: not supported |
| 2616 | # |
| 2617 | # Cloud Run for Anthos: supported |
| 2618 | # |
| 2619 | # Path within the volume from which the container's volume should be mounted. |
| 2620 | # Defaults to "" (volume's root). |
| 2621 | "name": "A String", # Cloud Run fully managed: not supported |
| 2622 | # |
| 2623 | # Cloud Run for Anthos: supported |
| 2624 | # |
| 2625 | # This must match the Name of a Volume. |
| 2626 | "readOnly": True or False, # (Optional) |
| 2627 | # |
| 2628 | # Cloud Run fully managed: not supported |
| 2629 | # |
| 2630 | # Cloud Run for Anthos: supported |
| 2631 | # |
| 2632 | # Only true is accepted. |
| 2633 | # Defaults to true. |
| 2634 | }, |
| 2635 | ], |
| 2636 | "args": [ # (Optional) |
| 2637 | # |
| 2638 | # Cloud Run fully managed: supported |
| 2639 | # |
| 2640 | # Cloud Run for Anthos: supported |
| 2641 | # |
| 2642 | # Arguments to the entrypoint. |
| 2643 | # The docker image's CMD is used if this is not provided. |
| 2644 | # Variable references $(VAR_NAME) are expanded using the container's |
| 2645 | # environment. If a variable cannot be resolved, the reference in the input |
| 2646 | # string will be unchanged. The $(VAR_NAME) syntax can be escaped with a |
| 2647 | # double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, |
| 2648 | # regardless of whether the variable exists or not. |
| 2649 | # More info: |
| 2650 | # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell |
| 2651 | "A String", |
| 2652 | ], |
| 2653 | "workingDir": "A String", # (Optional) |
| 2654 | # |
| 2655 | # Cloud Run fully managed: not supported |
| 2656 | # |
| 2657 | # Cloud Run for Anthos: supported |
| 2658 | # |
| 2659 | # Container's working directory. |
| 2660 | # If not specified, the container runtime's default will be used, which |
| 2661 | # might be configured in the container image. |
| 2662 | "ports": [ # (Optional) |
| 2663 | # |
| 2664 | # List of ports to expose from the container. Only a single port can be |
| 2665 | # specified. The specified ports must be listening on all interfaces |
| 2666 | # (0.0.0.0) within the container to be accessible. |
| 2667 | # |
| 2668 | # If omitted, a port number will be chosen and passed to the container |
| 2669 | # through the PORT environment variable for the container to listen on. |
| 2670 | { # ContainerPort represents a network port in a single container. |
| 2671 | "containerPort": 42, # (Optional) |
| 2672 | # |
| 2673 | # Port number the container listens on. |
| 2674 | # This must be a valid port number, 0 < x < 65536. |
| 2675 | "protocol": "A String", # (Optional) |
| 2676 | # |
| 2677 | # Cloud Run fully managed: not supported |
| 2678 | # |
| 2679 | # Cloud Run for Anthos: supported |
| 2680 | # |
| 2681 | # Protocol for port. Must be "TCP". |
| 2682 | # Defaults to "TCP". |
| 2683 | "name": "A String", # (Optional) |
| 2684 | # |
| 2685 | # Cloud Run fully managed: not supported |
| 2686 | # |
| 2687 | # Cloud Run for Anthos: supported |
| 2688 | # |
| 2689 | # If specified, used to specify which protocol to use. |
| 2690 | # Allowed values are "http1" and "h2c". |
| 2691 | }, |
| 2692 | ], |
| 2693 | "image": "A String", # Cloud Run fully managed: only supports containers from Google Container |
| 2694 | # Registry |
| 2695 | # |
| 2696 | # Cloud Run for Anthos: supported |
| 2697 | # |
| 2698 | # URL of the Container image. |
| 2699 | # More info: https://kubernetes.io/docs/concepts/containers/images |
| 2700 | "envFrom": [ # (Optional) |
| 2701 | # |
| 2702 | # Cloud Run fully managed: not supported |
| 2703 | # |
| 2704 | # Cloud Run for Anthos: supported |
| 2705 | # |
| 2706 | # List of sources to populate environment variables in the container. |
| 2707 | # The keys defined within a source must be a C_IDENTIFIER. All invalid keys |
| 2708 | # will be reported as an event when the container is starting. When a key |
| 2709 | # exists in multiple sources, the value associated with the last source will |
| 2710 | # take precedence. Values defined by an Env with a duplicate key will take |
| 2711 | # precedence. Cannot be updated. |
| 2712 | { # Cloud Run fully managed: not supported |
| 2713 | # |
| 2714 | # Cloud Run for Anthos: supported |
| 2715 | # |
| 2716 | # EnvFromSource represents the source of a set of ConfigMaps |
| 2717 | "secretRef": { # Cloud Run fully managed: not supported # (Optional) |
| 2718 | # |
| 2719 | # Cloud Run fully managed: not supported |
| 2720 | # |
| 2721 | # Cloud Run for Anthos: supported |
| 2722 | # |
| 2723 | # The Secret to select from |
| 2724 | # |
| 2725 | # Cloud Run for Anthos: supported |
| 2726 | # |
| 2727 | # SecretEnvSource selects a Secret to populate the environment |
| 2728 | # variables with. |
| 2729 | # |
| 2730 | # The contents of the target Secret's Data field will represent the |
| 2731 | # key-value pairs as environment variables. |
| 2732 | "name": "A String", # Cloud Run fully managed: not supported |
| 2733 | # |
| 2734 | # Cloud Run for Anthos: supported |
| 2735 | # |
| 2736 | # The Secret to select from. |
| 2737 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 2738 | # directly into the message. Use the "name" field instead. |
| 2739 | # |
| 2740 | # Cloud Run for Anthos: supported |
| 2741 | # |
| 2742 | # LocalObjectReference contains enough information to let you locate the |
| 2743 | # referenced object inside the same namespace. |
| 2744 | "name": "A String", # (Optional) |
| 2745 | # |
| 2746 | # Cloud Run fully managed: not supported |
| 2747 | # |
| 2748 | # Cloud Run for Anthos: supported |
| 2749 | # |
| 2750 | # Name of the referent. |
| 2751 | # More info: |
| 2752 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 2753 | }, |
| 2754 | "optional": True or False, # (Optional) |
| 2755 | # |
| 2756 | # Cloud Run fully managed: not supported |
| 2757 | # |
| 2758 | # Cloud Run for Anthos: supported |
| 2759 | # |
| 2760 | # Specify whether the Secret must be defined |
| 2761 | }, |
| 2762 | "prefix": "A String", # (Optional) |
| 2763 | # |
| 2764 | # Cloud Run fully managed: not supported |
| 2765 | # |
| 2766 | # Cloud Run for Anthos: supported |
| 2767 | # |
| 2768 | # An optional identifier to prepend to each key in the ConfigMap. Must be a |
| 2769 | # C_IDENTIFIER. |
| 2770 | "configMapRef": { # Cloud Run fully managed: not supported # (Optional) |
| 2771 | # |
| 2772 | # Cloud Run fully managed: not supported |
| 2773 | # |
| 2774 | # Cloud Run for Anthos: supported |
| 2775 | # |
| 2776 | # The ConfigMap to select from |
| 2777 | # |
| 2778 | # Cloud Run for Anthos: supported |
| 2779 | # |
| 2780 | # ConfigMapEnvSource selects a ConfigMap to populate the environment |
| 2781 | # variables with. |
| 2782 | # |
| 2783 | # The contents of the target ConfigMap's Data field will represent the |
| 2784 | # key-value pairs as environment variables. |
| 2785 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 2786 | # directly into the message. Use the "name" field instead. |
| 2787 | # |
| 2788 | # Cloud Run for Anthos: supported |
| 2789 | # |
| 2790 | # LocalObjectReference contains enough information to let you locate the |
| 2791 | # referenced object inside the same namespace. |
| 2792 | "name": "A String", # (Optional) |
| 2793 | # |
| 2794 | # Cloud Run fully managed: not supported |
| 2795 | # |
| 2796 | # Cloud Run for Anthos: supported |
| 2797 | # |
| 2798 | # Name of the referent. |
| 2799 | # More info: |
| 2800 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 2801 | }, |
| 2802 | "optional": True or False, # (Optional) |
| 2803 | # |
| 2804 | # Cloud Run fully managed: not supported |
| 2805 | # |
| 2806 | # Cloud Run for Anthos: supported |
| 2807 | # |
| 2808 | # Specify whether the ConfigMap must be defined |
| 2809 | "name": "A String", # Cloud Run fully managed: not supported |
| 2810 | # |
| 2811 | # Cloud Run for Anthos: supported |
| 2812 | # |
| 2813 | # The ConfigMap to select from. |
| 2814 | }, |
| 2815 | }, |
| 2816 | ], |
| 2817 | "name": "A String", # (Optional) |
| 2818 | # |
| 2819 | # Name of the container specified as a DNS_LABEL. |
| 2820 | "command": [ |
| 2821 | "A String", |
| 2822 | ], |
| 2823 | "terminationMessagePolicy": "A String", # (Optional) |
| 2824 | # |
| 2825 | # Cloud Run fully managed: not supported |
| 2826 | # |
| 2827 | # Cloud Run for Anthos: supported |
| 2828 | # |
| 2829 | # Indicate how the termination message should be populated. File will use the |
| 2830 | # contents of terminationMessagePath to populate the container status message |
| 2831 | # on both success and failure. FallbackToLogsOnError will use the last chunk |
| 2832 | # of container log output if the termination message file is empty and the |
| 2833 | # container exited with an error. The log output is limited to 2048 bytes or |
| 2834 | # 80 lines, whichever is smaller. Defaults to File. Cannot be updated. |
| 2835 | }, |
| 2836 | ], |
| 2837 | "volumes": [ |
| 2838 | { # Cloud Run fully managed: not supported |
| 2839 | # |
| 2840 | # Cloud Run for Anthos: supported |
| 2841 | # |
| 2842 | # Volume represents a named volume in a container. |
| 2843 | "configMap": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported |
| 2844 | # |
| 2845 | # Cloud Run for Anthos: supported |
| 2846 | # |
| 2847 | # Cloud Run for Anthos: supported |
| 2848 | # |
| 2849 | # Adapts a ConfigMap into a volume. |
| 2850 | # The contents of the target ConfigMap's Data field will be presented in a |
| 2851 | # volume as files using the keys in the Data field as the file names, unless |
| 2852 | # the items element is populated with specific mappings of keys to paths. |
| 2853 | "optional": True or False, # (Optional) |
| 2854 | # |
| 2855 | # Cloud Run fully managed: not supported |
| 2856 | # |
| 2857 | # Cloud Run for Anthos: supported |
| 2858 | # |
| 2859 | # Specify whether the Secret or its keys must be defined. |
| 2860 | "name": "A String", # Cloud Run fully managed: not supported |
| 2861 | # |
| 2862 | # Cloud Run for Anthos: supported |
| 2863 | # |
| 2864 | # Name of the config. |
| 2865 | "defaultMode": 42, # (Optional) |
| 2866 | # |
| 2867 | # Cloud Run fully managed: not supported |
| 2868 | # |
| 2869 | # Cloud Run for Anthos: supported |
| 2870 | # |
| 2871 | # Mode bits to use on created files by default. Must be a value between 0 and |
| 2872 | # 0777. Defaults to 0644. Directories within the path are not affected by |
| 2873 | # this setting. This might be in conflict with other options that affect the |
| 2874 | # file mode, like fsGroup, and the result can be other mode bits set. |
| 2875 | "items": [ # (Optional) |
| 2876 | # |
| 2877 | # Cloud Run fully managed: not supported |
| 2878 | # |
| 2879 | # Cloud Run for Anthos: supported |
| 2880 | # |
| 2881 | # If unspecified, each key-value pair in the Data field of the referenced |
| 2882 | # Secret will be projected into the volume as a file whose name is the |
| 2883 | # key and content is the value. If specified, the listed keys will be |
| 2884 | # projected into the specified paths, and unlisted keys will not be |
| 2885 | # present. If a key is specified which is not present in the Secret, |
| 2886 | # the volume setup will error unless it is marked optional. |
| 2887 | { # Cloud Run fully managed: not supported |
| 2888 | # |
| 2889 | # Cloud Run for Anthos: supported |
| 2890 | # |
| 2891 | # Maps a string key to a path within a volume. |
| 2892 | "key": "A String", # Cloud Run fully managed: not supported |
| 2893 | # |
| 2894 | # Cloud Run for Anthos: supported |
| 2895 | # |
| 2896 | # The key to project. |
| 2897 | "path": "A String", # Cloud Run fully managed: not supported |
| 2898 | # |
| 2899 | # Cloud Run for Anthos: supported |
| 2900 | # |
| 2901 | # The relative path of the file to map the key to. |
| 2902 | # May not be an absolute path. |
| 2903 | # May not contain the path element '..'. |
| 2904 | # May not start with the string '..'. |
| 2905 | "mode": 42, # (Optional) |
| 2906 | # |
| 2907 | # Cloud Run fully managed: not supported |
| 2908 | # |
| 2909 | # Cloud Run for Anthos: supported |
| 2910 | # |
| 2911 | # Mode bits to use on this file, must be a value between 0 and 0777. If not |
| 2912 | # specified, the volume defaultMode will be used. This might be in conflict |
| 2913 | # with other options that affect the file mode, like fsGroup, and the result |
| 2914 | # can be other mode bits set. |
| 2915 | }, |
| 2916 | ], |
| 2917 | }, |
| 2918 | "name": "A String", # Cloud Run fully managed: not supported |
| 2919 | # |
| 2920 | # Cloud Run for Anthos: supported |
| 2921 | # |
| 2922 | # Volume's name. |
| 2923 | "secret": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported |
| 2924 | # |
| 2925 | # Cloud Run for Anthos: supported |
| 2926 | # |
| 2927 | # Cloud Run for Anthos: supported |
| 2928 | # |
| 2929 | # The contents of the target Secret's Data field will be presented in a volume |
| 2930 | # as files using the keys in the Data field as the file names. |
| 2931 | "secretName": "A String", # Cloud Run fully managed: not supported |
| 2932 | # |
| 2933 | # Cloud Run for Anthos: supported |
| 2934 | # |
| 2935 | # Name of the secret in the container's namespace to use. |
| 2936 | "items": [ # (Optional) |
| 2937 | # |
| 2938 | # Cloud Run fully managed: not supported |
| 2939 | # |
| 2940 | # Cloud Run for Anthos: supported |
| 2941 | # |
| 2942 | # If unspecified, each key-value pair in the Data field of the referenced |
| 2943 | # Secret will be projected into the volume as a file whose name is the |
| 2944 | # key and content is the value. If specified, the listed keys will be |
| 2945 | # projected into the specified paths, and unlisted keys will not be |
| 2946 | # present. If a key is specified which is not present in the Secret, |
| 2947 | # the volume setup will error unless it is marked optional. |
| 2948 | { # Cloud Run fully managed: not supported |
| 2949 | # |
| 2950 | # Cloud Run for Anthos: supported |
| 2951 | # |
| 2952 | # Maps a string key to a path within a volume. |
| 2953 | "key": "A String", # Cloud Run fully managed: not supported |
| 2954 | # |
| 2955 | # Cloud Run for Anthos: supported |
| 2956 | # |
| 2957 | # The key to project. |
| 2958 | "path": "A String", # Cloud Run fully managed: not supported |
| 2959 | # |
| 2960 | # Cloud Run for Anthos: supported |
| 2961 | # |
| 2962 | # The relative path of the file to map the key to. |
| 2963 | # May not be an absolute path. |
| 2964 | # May not contain the path element '..'. |
| 2965 | # May not start with the string '..'. |
| 2966 | "mode": 42, # (Optional) |
| 2967 | # |
| 2968 | # Cloud Run fully managed: not supported |
| 2969 | # |
| 2970 | # Cloud Run for Anthos: supported |
| 2971 | # |
| 2972 | # Mode bits to use on this file, must be a value between 0 and 0777. If not |
| 2973 | # specified, the volume defaultMode will be used. This might be in conflict |
| 2974 | # with other options that affect the file mode, like fsGroup, and the result |
| 2975 | # can be other mode bits set. |
| 2976 | }, |
| 2977 | ], |
| 2978 | "optional": True or False, # (Optional) |
| 2979 | # |
| 2980 | # Cloud Run fully managed: not supported |
| 2981 | # |
| 2982 | # Cloud Run for Anthos: supported |
| 2983 | # |
| 2984 | # Specify whether the Secret or its keys must be defined. |
| 2985 | "defaultMode": 42, # (Optional) |
| 2986 | # |
| 2987 | # Cloud Run fully managed: not supported |
| 2988 | # |
| 2989 | # Cloud Run for Anthos: supported |
| 2990 | # |
| 2991 | # Mode bits to use on created files by default. Must be a value between 0 and |
| 2992 | # 0777. Defaults to 0644. Directories within the path are not affected by |
| 2993 | # this setting. This might be in conflict with other options that affect the |
| 2994 | # file mode, like fsGroup, and the result can be other mode bits set. |
| 2995 | }, |
| 2996 | }, |
| 2997 | ], |
| 2998 | }, |
| 2999 | "metadata": { # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # Optional metadata for this Revision, including labels and annotations. Name |
| 3000 | # will be generated by the Configuration. |
| 3001 | # To set minimum instances for this revision, use the |
| 3002 | # "autoscaling.knative.dev/minScale" annotation key. |
| 3003 | # To set maximum instances for this revision, use the |
| 3004 | # "autoscaling.knative.dev/maxScale" annotation key. |
| 3005 | # To set Cloud SQL connections for the revision, use the |
| 3006 | # "run.googleapis.com/cloudsql-instances" annotation key. |
| 3007 | # persisted resources must have, which includes all objects users must create. |
| 3008 | "annotations": { # (Optional) |
| 3009 | # |
| 3010 | # Annotations is an unstructured key value map stored with a resource that |
| 3011 | # may be set by external tools to store and retrieve arbitrary metadata. They |
| 3012 | # are not queryable and should be preserved when modifying objects. More |
| 3013 | # info: http://kubernetes.io/docs/user-guide/annotations |
| 3014 | "a_key": "A String", |
| 3015 | }, |
| 3016 | "generateName": "A String", # (Optional) |
| 3017 | # |
| 3018 | # Cloud Run fully managed: not supported |
| 3019 | # |
| 3020 | # Cloud Run for Anthos: supported |
| 3021 | # |
| 3022 | # GenerateName is an optional prefix, used by the server, to generate a |
| 3023 | # unique name ONLY IF the Name field has not been provided. If this field is |
| 3024 | # used, the name returned to the client will be different than the name |
| 3025 | # passed. This value will also be combined with a unique suffix. The provided |
| 3026 | # value has the same validation rules as the Name field, and may be truncated |
| 3027 | # by the length of the suffix required to make the value unique on the |
| 3028 | # server. |
| 3029 | # |
| 3030 | # If this field is specified and the generated name exists, the server will |
| 3031 | # NOT return a 409 - instead, it will either return 201 Created or 500 with |
| 3032 | # Reason ServerTimeout indicating a unique name could not be found in the |
| 3033 | # time allotted, and the client should retry (optionally after the time |
| 3034 | # indicated in the Retry-After header). |
| 3035 | # |
| 3036 | # Applied only if Name is not specified. |
| 3037 | # More info: |
| 3038 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency |
| 3039 | # string generateName = 2; |
| 3040 | "name": "A String", # Name must be unique within a namespace, within a Cloud Run region. |
| 3041 | # Is required when creating |
| 3042 | # resources, although some resources may allow a client to request the |
| 3043 | # generation of an appropriate name automatically. Name is primarily intended |
| 3044 | # for creation idempotence and configuration definition. Cannot be updated. |
| 3045 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 3046 | # +optional |
| 3047 | "deletionGracePeriodSeconds": 42, # (Optional) |
| 3048 | # |
| 3049 | # Cloud Run fully managed: not supported |
| 3050 | # |
| 3051 | # Cloud Run for Anthos: supported |
| 3052 | # |
| 3053 | # Number of seconds allowed for this object to gracefully terminate before |
| 3054 | # it will be removed from the system. Only set when deletionTimestamp is also |
| 3055 | # set. May only be shortened. Read-only. |
| 3056 | "clusterName": "A String", # (Optional) |
| 3057 | # |
| 3058 | # Cloud Run fully managed: not supported |
| 3059 | # |
| 3060 | # Cloud Run for Anthos: supported |
| 3061 | # |
| 3062 | # The name of the cluster which the object belongs to. |
| 3063 | # This is used to distinguish resources with same name and namespace in |
| 3064 | # different clusters. This field is not set anywhere right now and apiserver |
| 3065 | # is going to ignore it if set in create or update request. |
| 3066 | "finalizers": [ # (Optional) |
| 3067 | # |
| 3068 | # Cloud Run fully managed: not supported |
| 3069 | # |
| 3070 | # Cloud Run for Anthos: supported |
| 3071 | # |
| 3072 | # Must be empty before the object is deleted from the registry. Each entry |
| 3073 | # is an identifier for the responsible component that will remove the entry |
| 3074 | # from the list. If the deletionTimestamp of the object is non-nil, entries |
| 3075 | # in this list can only be removed. |
| 3076 | # +patchStrategy=merge |
| 3077 | "A String", |
| 3078 | ], |
| 3079 | "deletionTimestamp": "A String", # (Optional) |
| 3080 | # |
| 3081 | # Cloud Run fully managed: not supported |
| 3082 | # |
| 3083 | # Cloud Run for Anthos: supported |
| 3084 | # |
| 3085 | # DeletionTimestamp is RFC 3339 date and time at which this resource will be |
| 3086 | # deleted. This field is set by the server when a graceful deletion is |
| 3087 | # requested by the user, and is not directly settable by a client. The |
| 3088 | # resource is expected to be deleted (no longer visible from resource lists, |
| 3089 | # and not reachable by name) after the time in this field, once the |
| 3090 | # finalizers list is empty. As long as the finalizers list contains items, |
| 3091 | # deletion is blocked. Once the deletionTimestamp is set, this value may not |
| 3092 | # be unset or be set further into the future, although it may be shortened or |
| 3093 | # the resource may be deleted prior to this time. For example, a user may |
| 3094 | # request that a pod is deleted in 30 seconds. The Kubelet will react by |
| 3095 | # sending a graceful termination signal to the containers in the pod. After |
| 3096 | # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) |
| 3097 | # to the container and after cleanup, remove the pod from the API. In the |
| 3098 | # presence of network partitions, this object may still exist after this |
| 3099 | # timestamp, until an administrator or automated process can determine the |
| 3100 | # resource is fully terminated. |
| 3101 | # If not set, graceful deletion of the object has not been requested. |
| 3102 | # |
| 3103 | # Populated by the system when a graceful deletion is requested. |
| 3104 | # Read-only. |
| 3105 | # More info: |
| 3106 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 3107 | "ownerReferences": [ # (Optional) |
| 3108 | # |
| 3109 | # Cloud Run fully managed: not supported |
| 3110 | # |
| 3111 | # Cloud Run for Anthos: supported |
| 3112 | # |
| 3113 | # List of objects that own this object. If ALL objects in the list have |
| 3114 | # been deleted, this object will be garbage collected. |
| 3115 | { # OwnerReference contains enough information to let you identify an owning |
| 3116 | # object. Currently, an owning object must be in the same namespace, so there |
| 3117 | # is no namespace field. |
| 3118 | "controller": True or False, # If true, this reference points to the managing controller. |
| 3119 | # +optional |
| 3120 | "kind": "A String", # Kind of the referent. |
| 3121 | # More info: |
| 3122 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds |
| 3123 | "blockOwnerDeletion": True or False, # If true, AND if the owner has the "foregroundDeletion" finalizer, then |
| 3124 | # the owner cannot be deleted from the key-value store until this |
| 3125 | # reference is removed. |
| 3126 | # Defaults to false. |
| 3127 | # To set this field, a user needs "delete" permission of the owner, |
| 3128 | # otherwise 422 (Unprocessable Entity) will be returned. |
| 3129 | # +optional |
| 3130 | "apiVersion": "A String", # API version of the referent. |
| 3131 | "name": "A String", # Name of the referent. |
| 3132 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 3133 | "uid": "A String", # UID of the referent. |
| 3134 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 3135 | }, |
| 3136 | ], |
| 3137 | "creationTimestamp": "A String", # (Optional) |
| 3138 | # |
| 3139 | # CreationTimestamp is a timestamp representing the server time when this |
| 3140 | # object was created. It is not guaranteed to be set in happens-before order |
| 3141 | # across separate operations. Clients may not set this value. It is |
| 3142 | # represented in RFC3339 form and is in UTC. |
| 3143 | # |
| 3144 | # Populated by the system. |
| 3145 | # Read-only. |
| 3146 | # Null for lists. |
| 3147 | # More info: |
| 3148 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 3149 | "labels": { # (Optional) |
| 3150 | # |
| 3151 | # Map of string keys and values that can be used to organize and categorize |
| 3152 | # (scope and select) objects. May match selectors of replication controllers |
| 3153 | # and routes. |
| 3154 | # More info: http://kubernetes.io/docs/user-guide/labels |
| 3155 | "a_key": "A String", |
| 3156 | }, |
| 3157 | "generation": 42, # (Optional) |
| 3158 | # |
| 3159 | # A sequence number representing a specific generation of the desired state. |
| 3160 | # Populated by the system. Read-only. |
| 3161 | "resourceVersion": "A String", # (Optional) |
| 3162 | # |
| 3163 | # An opaque value that represents the internal version of this object that |
| 3164 | # can be used by clients to determine when objects have changed. May be used |
| 3165 | # for optimistic concurrency, change detection, and the watch operation on a |
| 3166 | # resource or set of resources. Clients must treat these values as opaque and |
| 3167 | # passed unmodified back to the server. They may only be valid for a |
| 3168 | # particular resource or set of resources. |
| 3169 | # |
| 3170 | # Populated by the system. |
| 3171 | # Read-only. |
| 3172 | # Value must be treated as opaque by clients and . |
| 3173 | # More info: |
| 3174 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency |
| 3175 | "selfLink": "A String", # (Optional) |
| 3176 | # |
| 3177 | # SelfLink is a URL representing this object. |
| 3178 | # Populated by the system. |
| 3179 | # Read-only. |
| 3180 | # string selfLink = 4; |
| 3181 | "uid": "A String", # (Optional) |
| 3182 | # |
| 3183 | # UID is the unique in time and space value for this object. It is typically |
| 3184 | # generated by the server on successful creation of a resource and is not |
| 3185 | # allowed to change on PUT operations. |
| 3186 | # |
| 3187 | # Populated by the system. |
| 3188 | # Read-only. |
| 3189 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 3190 | "namespace": "A String", # Namespace defines the space within each name must be unique, within a |
| 3191 | # Cloud Run region. In Cloud Run the namespace must be equal to either the |
| 3192 | # project ID or project number. |
| 3193 | }, |
| 3194 | }, |
| 3195 | }, |
| 3196 | }</pre> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 3197 | </div> |
| 3198 | |
| 3199 | <div class="method"> |
| 3200 | <code class="details" id="delete">delete(name, apiVersion=None, propagationPolicy=None, kind=None, x__xgafv=None)</code> |
| 3201 | <pre>Delete a service. |
| 3202 | This will cause the Service to stop serving traffic and will delete the |
| 3203 | child entities like Routes, Configurations and Revisions. |
| 3204 | |
| 3205 | Args: |
| 3206 | name: string, The name of the service to delete. |
| 3207 | For Cloud Run (fully managed), replace {namespace_id} with the project ID |
| 3208 | or number. (required) |
| 3209 | apiVersion: string, Cloud Run currently ignores this parameter. |
| 3210 | propagationPolicy: string, Specifies the propagation policy of delete. Cloud Run currently ignores |
| 3211 | this setting, and deletes in the background. Please see |
| 3212 | kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for |
| 3213 | more information. |
| 3214 | kind: string, Cloud Run currently ignores this parameter. |
| 3215 | x__xgafv: string, V1 error format. |
| 3216 | Allowed values |
| 3217 | 1 - v1 error format |
| 3218 | 2 - v2 error format |
| 3219 | |
| 3220 | Returns: |
| 3221 | An object of the form: |
| 3222 | |
| 3223 | { # Status is a return value for calls that don't return other objects |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 3224 | "details": { # StatusDetails is a set of additional properties that MAY be set by the # Extended data associated with the reason. Each reason may define its |
| 3225 | # own extended details. This field is optional and the data returned |
| 3226 | # is not guaranteed to conform to any schema except that defined by |
| 3227 | # the reason type. |
| 3228 | # +optional |
| 3229 | # server to provide additional information about a response. The Reason |
| 3230 | # field of a Status object defines what attributes will be set. Clients |
| 3231 | # must ignore fields that do not match the defined type of each attribute, |
| 3232 | # and should assume that any attribute may be empty, invalid, or under |
| 3233 | # defined. |
| 3234 | "name": "A String", # The name attribute of the resource associated with the status StatusReason |
| 3235 | # (when there is a single name which can be described). |
| 3236 | # +optional |
| 3237 | "uid": "A String", # UID of the resource. |
| 3238 | # (when there is a single resource which can be described). |
| 3239 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 3240 | # +optional |
| 3241 | "group": "A String", # The group attribute of the resource associated with the status |
| 3242 | # StatusReason. +optional |
| 3243 | "causes": [ # The Causes array includes more details associated with the StatusReason |
| 3244 | # failure. Not all StatusReasons may provide detailed causes. |
| 3245 | # +optional |
| 3246 | { # StatusCause provides more information about an api.Status failure, including |
| 3247 | # cases when multiple errors are encountered. |
| 3248 | "message": "A String", # A human-readable description of the cause of the error. This field may be |
| 3249 | # presented as-is to a reader. |
| 3250 | # +optional |
| 3251 | "reason": "A String", # A machine-readable description of the cause of the error. If this value is |
| 3252 | # empty there is no information available. |
| 3253 | # +optional |
| 3254 | "field": "A String", # The field of the resource that has caused this error, as named by its JSON |
| 3255 | # serialization. May include dot and postfix notation for nested attributes. |
| 3256 | # Arrays are zero-indexed. Fields may appear more than once in an array of |
| 3257 | # causes due to fields having multiple errors. |
| 3258 | # Optional. |
| 3259 | # |
| 3260 | # Examples: |
| 3261 | # "name" - the field "name" on the current resource |
| 3262 | # "items[0].name" - the field "name" on the first array entry in "items" |
| 3263 | # +optional |
| 3264 | }, |
| 3265 | ], |
| 3266 | "kind": "A String", # The kind attribute of the resource associated with the status StatusReason. |
| 3267 | # On some operations may differ from the requested resource Kind. |
| 3268 | # More info: |
| 3269 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds |
| 3270 | # +optional |
| 3271 | "retryAfterSeconds": 42, # If specified, the time in seconds before the operation should be retried. |
| 3272 | # Some errors may indicate the client must take an alternate action - for |
| 3273 | # those errors this field may indicate how long to wait before taking the |
| 3274 | # alternate action. +optional |
| 3275 | }, |
| 3276 | "reason": "A String", # A machine-readable description of why this operation is in the |
| 3277 | # "Failure" status. If this value is empty there |
| 3278 | # is no information available. A Reason clarifies an HTTP status |
| 3279 | # code but does not override it. |
| 3280 | # +optional |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 3281 | "metadata": { # ListMeta describes metadata that synthetic resources must have, including # Standard list metadata. |
| 3282 | # More info: |
| 3283 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds |
| 3284 | # +optional |
| 3285 | # lists and various status objects. A resource may have only one of |
| 3286 | # {ObjectMeta, ListMeta}. |
| 3287 | "selfLink": "A String", # SelfLink is a URL representing this object. |
| 3288 | # Populated by the system. |
| 3289 | # Read-only. |
| 3290 | # +optional |
| 3291 | "resourceVersion": "A String", # String that identifies the server's internal version of this object that |
| 3292 | # can be used by clients to determine when objects have changed. Value must |
| 3293 | # be treated as opaque by clients and passed unmodified back to the server. |
| 3294 | # Populated by the system. |
| 3295 | # Read-only. |
| 3296 | # More info: |
| 3297 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency |
| 3298 | # +optional |
| 3299 | "continue": "A String", # continue may be set if the user set a limit on the number of items |
| 3300 | # returned, and indicates that the server has more data available. The value |
| 3301 | # is opaque and may be used to issue another request to the endpoint that |
| 3302 | # served this list to retrieve the next set of available objects. Continuing |
| 3303 | # a list may not be possible if the server configuration has changed or more |
| 3304 | # than a few minutes have passed. The resourceVersion field returned when |
| 3305 | # using this continue value will be identical to the value in the first |
| 3306 | # response. |
| 3307 | }, |
| 3308 | "code": 42, # Suggested HTTP return code for this status, 0 if not set. |
| 3309 | # +optional |
| 3310 | "message": "A String", # A human-readable description of the status of this operation. |
| 3311 | # +optional |
| 3312 | "status": "A String", # Status of the operation. |
| 3313 | # One of: "Success" or "Failure". |
| 3314 | # More info: |
| 3315 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status |
| 3316 | # +optional |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 3317 | }</pre> |
| 3318 | </div> |
| 3319 | |
| 3320 | <div class="method"> |
| 3321 | <code class="details" id="get">get(name, x__xgafv=None)</code> |
| 3322 | <pre>Get information about a service. |
| 3323 | |
| 3324 | Args: |
| 3325 | name: string, The name of the service to retrieve. |
| 3326 | For Cloud Run (fully managed), replace {namespace_id} with the project ID |
| 3327 | or number. (required) |
| 3328 | x__xgafv: string, V1 error format. |
| 3329 | Allowed values |
| 3330 | 1 - v1 error format |
| 3331 | 2 - v2 error format |
| 3332 | |
| 3333 | Returns: |
| 3334 | An object of the form: |
| 3335 | |
| 3336 | { # Service acts as a top-level container that manages a set of Routes and |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 3337 | # Configurations which implement a network service. Service exists to provide a |
| 3338 | # singular abstraction which can be access controlled, reasoned about, and |
| 3339 | # which encapsulates software lifecycle decisions such as rollout policy and |
| 3340 | # team resource ownership. Service acts only as an orchestrator of the |
| 3341 | # underlying Routes and Configurations (much as a kubernetes Deployment |
| 3342 | # orchestrates ReplicaSets). |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 3343 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 3344 | # The Service's controller will track the statuses of its owned Configuration |
| 3345 | # and Route, reflecting their statuses and conditions as its own. |
| 3346 | # |
| 3347 | # See also: |
| 3348 | # https://github.com/knative/serving/blob/master/docs/spec/overview.md#service |
| 3349 | "kind": "A String", # The kind of resource, in this case "Service". |
| 3350 | "metadata": { # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # Metadata associated with this Service, including name, namespace, labels, |
| 3351 | # and annotations. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 3352 | # persisted resources must have, which includes all objects users must create. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 3353 | "annotations": { # (Optional) |
| 3354 | # |
| 3355 | # Annotations is an unstructured key value map stored with a resource that |
| 3356 | # may be set by external tools to store and retrieve arbitrary metadata. They |
| 3357 | # are not queryable and should be preserved when modifying objects. More |
| 3358 | # info: http://kubernetes.io/docs/user-guide/annotations |
| 3359 | "a_key": "A String", |
| 3360 | }, |
| 3361 | "generateName": "A String", # (Optional) |
| 3362 | # |
| 3363 | # Cloud Run fully managed: not supported |
| 3364 | # |
| 3365 | # Cloud Run for Anthos: supported |
| 3366 | # |
| 3367 | # GenerateName is an optional prefix, used by the server, to generate a |
| 3368 | # unique name ONLY IF the Name field has not been provided. If this field is |
| 3369 | # used, the name returned to the client will be different than the name |
| 3370 | # passed. This value will also be combined with a unique suffix. The provided |
| 3371 | # value has the same validation rules as the Name field, and may be truncated |
| 3372 | # by the length of the suffix required to make the value unique on the |
| 3373 | # server. |
| 3374 | # |
| 3375 | # If this field is specified and the generated name exists, the server will |
| 3376 | # NOT return a 409 - instead, it will either return 201 Created or 500 with |
| 3377 | # Reason ServerTimeout indicating a unique name could not be found in the |
| 3378 | # time allotted, and the client should retry (optionally after the time |
| 3379 | # indicated in the Retry-After header). |
| 3380 | # |
| 3381 | # Applied only if Name is not specified. |
| 3382 | # More info: |
| 3383 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency |
| 3384 | # string generateName = 2; |
| 3385 | "name": "A String", # Name must be unique within a namespace, within a Cloud Run region. |
| 3386 | # Is required when creating |
| 3387 | # resources, although some resources may allow a client to request the |
| 3388 | # generation of an appropriate name automatically. Name is primarily intended |
| 3389 | # for creation idempotence and configuration definition. Cannot be updated. |
| 3390 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 3391 | # +optional |
| 3392 | "deletionGracePeriodSeconds": 42, # (Optional) |
| 3393 | # |
| 3394 | # Cloud Run fully managed: not supported |
| 3395 | # |
| 3396 | # Cloud Run for Anthos: supported |
| 3397 | # |
| 3398 | # Number of seconds allowed for this object to gracefully terminate before |
| 3399 | # it will be removed from the system. Only set when deletionTimestamp is also |
| 3400 | # set. May only be shortened. Read-only. |
| 3401 | "clusterName": "A String", # (Optional) |
| 3402 | # |
| 3403 | # Cloud Run fully managed: not supported |
| 3404 | # |
| 3405 | # Cloud Run for Anthos: supported |
| 3406 | # |
| 3407 | # The name of the cluster which the object belongs to. |
| 3408 | # This is used to distinguish resources with same name and namespace in |
| 3409 | # different clusters. This field is not set anywhere right now and apiserver |
| 3410 | # is going to ignore it if set in create or update request. |
| 3411 | "finalizers": [ # (Optional) |
| 3412 | # |
| 3413 | # Cloud Run fully managed: not supported |
| 3414 | # |
| 3415 | # Cloud Run for Anthos: supported |
| 3416 | # |
| 3417 | # Must be empty before the object is deleted from the registry. Each entry |
| 3418 | # is an identifier for the responsible component that will remove the entry |
| 3419 | # from the list. If the deletionTimestamp of the object is non-nil, entries |
| 3420 | # in this list can only be removed. |
| 3421 | # +patchStrategy=merge |
| 3422 | "A String", |
| 3423 | ], |
| 3424 | "deletionTimestamp": "A String", # (Optional) |
| 3425 | # |
| 3426 | # Cloud Run fully managed: not supported |
| 3427 | # |
| 3428 | # Cloud Run for Anthos: supported |
| 3429 | # |
| 3430 | # DeletionTimestamp is RFC 3339 date and time at which this resource will be |
| 3431 | # deleted. This field is set by the server when a graceful deletion is |
| 3432 | # requested by the user, and is not directly settable by a client. The |
| 3433 | # resource is expected to be deleted (no longer visible from resource lists, |
| 3434 | # and not reachable by name) after the time in this field, once the |
| 3435 | # finalizers list is empty. As long as the finalizers list contains items, |
| 3436 | # deletion is blocked. Once the deletionTimestamp is set, this value may not |
| 3437 | # be unset or be set further into the future, although it may be shortened or |
| 3438 | # the resource may be deleted prior to this time. For example, a user may |
| 3439 | # request that a pod is deleted in 30 seconds. The Kubelet will react by |
| 3440 | # sending a graceful termination signal to the containers in the pod. After |
| 3441 | # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) |
| 3442 | # to the container and after cleanup, remove the pod from the API. In the |
| 3443 | # presence of network partitions, this object may still exist after this |
| 3444 | # timestamp, until an administrator or automated process can determine the |
| 3445 | # resource is fully terminated. |
| 3446 | # If not set, graceful deletion of the object has not been requested. |
| 3447 | # |
| 3448 | # Populated by the system when a graceful deletion is requested. |
| 3449 | # Read-only. |
| 3450 | # More info: |
| 3451 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 3452 | "ownerReferences": [ # (Optional) |
| 3453 | # |
| 3454 | # Cloud Run fully managed: not supported |
| 3455 | # |
| 3456 | # Cloud Run for Anthos: supported |
| 3457 | # |
| 3458 | # List of objects that own this object. If ALL objects in the list have |
| 3459 | # been deleted, this object will be garbage collected. |
| 3460 | { # OwnerReference contains enough information to let you identify an owning |
| 3461 | # object. Currently, an owning object must be in the same namespace, so there |
| 3462 | # is no namespace field. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 3463 | "controller": True or False, # If true, this reference points to the managing controller. |
| 3464 | # +optional |
| 3465 | "kind": "A String", # Kind of the referent. |
| 3466 | # More info: |
| 3467 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds |
| 3468 | "blockOwnerDeletion": True or False, # If true, AND if the owner has the "foregroundDeletion" finalizer, then |
| 3469 | # the owner cannot be deleted from the key-value store until this |
| 3470 | # reference is removed. |
| 3471 | # Defaults to false. |
| 3472 | # To set this field, a user needs "delete" permission of the owner, |
| 3473 | # otherwise 422 (Unprocessable Entity) will be returned. |
| 3474 | # +optional |
| 3475 | "apiVersion": "A String", # API version of the referent. |
| 3476 | "name": "A String", # Name of the referent. |
| 3477 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 3478 | "uid": "A String", # UID of the referent. |
| 3479 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 3480 | }, |
| 3481 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 3482 | "creationTimestamp": "A String", # (Optional) |
| 3483 | # |
| 3484 | # CreationTimestamp is a timestamp representing the server time when this |
| 3485 | # object was created. It is not guaranteed to be set in happens-before order |
| 3486 | # across separate operations. Clients may not set this value. It is |
| 3487 | # represented in RFC3339 form and is in UTC. |
| 3488 | # |
| 3489 | # Populated by the system. |
| 3490 | # Read-only. |
| 3491 | # Null for lists. |
| 3492 | # More info: |
| 3493 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 3494 | "labels": { # (Optional) |
| 3495 | # |
| 3496 | # Map of string keys and values that can be used to organize and categorize |
| 3497 | # (scope and select) objects. May match selectors of replication controllers |
| 3498 | # and routes. |
| 3499 | # More info: http://kubernetes.io/docs/user-guide/labels |
| 3500 | "a_key": "A String", |
| 3501 | }, |
| 3502 | "generation": 42, # (Optional) |
| 3503 | # |
| 3504 | # A sequence number representing a specific generation of the desired state. |
| 3505 | # Populated by the system. Read-only. |
| 3506 | "resourceVersion": "A String", # (Optional) |
| 3507 | # |
| 3508 | # An opaque value that represents the internal version of this object that |
| 3509 | # can be used by clients to determine when objects have changed. May be used |
| 3510 | # for optimistic concurrency, change detection, and the watch operation on a |
| 3511 | # resource or set of resources. Clients must treat these values as opaque and |
| 3512 | # passed unmodified back to the server. They may only be valid for a |
| 3513 | # particular resource or set of resources. |
| 3514 | # |
| 3515 | # Populated by the system. |
| 3516 | # Read-only. |
| 3517 | # Value must be treated as opaque by clients and . |
| 3518 | # More info: |
| 3519 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency |
| 3520 | "selfLink": "A String", # (Optional) |
| 3521 | # |
| 3522 | # SelfLink is a URL representing this object. |
| 3523 | # Populated by the system. |
| 3524 | # Read-only. |
| 3525 | # string selfLink = 4; |
| 3526 | "uid": "A String", # (Optional) |
| 3527 | # |
| 3528 | # UID is the unique in time and space value for this object. It is typically |
| 3529 | # generated by the server on successful creation of a resource and is not |
| 3530 | # allowed to change on PUT operations. |
| 3531 | # |
| 3532 | # Populated by the system. |
| 3533 | # Read-only. |
| 3534 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 3535 | "namespace": "A String", # Namespace defines the space within each name must be unique, within a |
| 3536 | # Cloud Run region. In Cloud Run the namespace must be equal to either the |
| 3537 | # project ID or project number. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 3538 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 3539 | "status": { # The current state of the Service. Output only. # Status communicates the observed state of the Service (from the |
| 3540 | # controller). |
| 3541 | "latestCreatedRevisionName": "A String", # From ConfigurationStatus. |
| 3542 | # LatestCreatedRevisionName is the last revision that was created from this |
| 3543 | # Service's Configuration. It might not be ready yet, for that use |
| 3544 | # LatestReadyRevisionName. |
| 3545 | "conditions": [ # Conditions communicates information about ongoing/complete |
| 3546 | # reconciliation processes that bring the "spec" inline with the observed |
| 3547 | # state of the world. |
| 3548 | # Service-specific conditions include: |
| 3549 | # * "ConfigurationsReady": true when the underlying Configuration is ready. |
| 3550 | # * "RoutesReady": true when the underlying Route is ready. |
| 3551 | # * "Ready": true when both the underlying Route and Configuration are |
| 3552 | # ready. |
| 3553 | { # Condition defines a generic condition for a Resource |
| 3554 | "message": "A String", # Optional. Human readable message indicating details about the current status. |
| 3555 | "lastTransitionTime": "A String", # Optional. Last time the condition transitioned from one status to another. |
| 3556 | "status": "A String", # Status of the condition, one of True, False, Unknown. |
| 3557 | "severity": "A String", # Optional. How to interpret failures of this condition, one of Error, Warning, Info |
| 3558 | "reason": "A String", # Optional. One-word CamelCase reason for the condition's last transition. |
| 3559 | "type": "A String", # type is used to communicate the status of the reconciliation process. |
| 3560 | # See also: |
| 3561 | # https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-reporting |
| 3562 | # Types common to all resources include: |
| 3563 | # * "Ready": True when the Resource is ready. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 3564 | }, |
| 3565 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 3566 | "address": { # Information for connecting over HTTP(s). # From RouteStatus. |
| 3567 | # Similar to url, information on where the service is available on HTTP. |
| 3568 | "url": "A String", |
| 3569 | }, |
| 3570 | "observedGeneration": 42, # ObservedGeneration is the 'Generation' of the Route that |
| 3571 | # was last processed by the controller. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 3572 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 3573 | # Clients polling for completed reconciliation should poll until |
| 3574 | # observedGeneration = metadata.generation and the Ready condition's status |
| 3575 | # is True or False. |
| 3576 | "url": "A String", # From RouteStatus. |
| 3577 | # URL holds the url that will distribute traffic over the provided traffic |
| 3578 | # targets. It generally has the form |
| 3579 | # https://{route-hash}-{project-hash}-{cluster-level-suffix}.a.run.app |
| 3580 | "traffic": [ # From RouteStatus. |
| 3581 | # Traffic holds the configured traffic distribution. |
| 3582 | # These entries will always contain RevisionName references. |
| 3583 | # When ConfigurationName appears in the spec, this will hold the |
| 3584 | # LatestReadyRevisionName that we last observed. |
| 3585 | { # TrafficTarget holds a single entry of the routing table for a Route. |
| 3586 | "revisionName": "A String", # RevisionName of a specific revision to which to send this portion of |
| 3587 | # traffic. This is mutually exclusive with ConfigurationName. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 3588 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 3589 | # Providing RevisionName in spec is not currently supported by Cloud Run. |
| 3590 | "latestRevision": True or False, # LatestRevision may be optionally provided to indicate that the latest |
| 3591 | # ready Revision of the Configuration should be used for this traffic |
| 3592 | # target. When provided LatestRevision must be true if RevisionName is |
| 3593 | # empty; it must be false when RevisionName is non-empty. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 3594 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 3595 | # +optional |
| 3596 | "tag": "A String", # Tag is optionally used to expose a dedicated url for referencing |
| 3597 | # this target exclusively. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 3598 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 3599 | # Not currently supported in Cloud Run. |
| 3600 | # +optional |
| 3601 | "url": "A String", # Output only. URL displays the URL for accessing tagged traffic targets. URL |
| 3602 | # is displayed in status, and is disallowed on spec. URL must contain a |
| 3603 | # scheme (e.g. http://) and a hostname, but may not contain anything else |
| 3604 | # (e.g. basic auth, url path, etc. |
| 3605 | # |
| 3606 | # Not currently supported in Cloud Run. |
| 3607 | "configurationName": "A String", # ConfigurationName of a configuration to whose latest revision we will |
| 3608 | # send this portion of traffic. When the "status.latestReadyRevisionName" |
| 3609 | # of the referenced configuration changes, we will automatically migrate |
| 3610 | # traffic from the prior "latest ready" revision to the new one. This field |
| 3611 | # is never set in Route's status, only its spec. This is mutually exclusive |
| 3612 | # with RevisionName. |
| 3613 | # |
| 3614 | # Cloud Run currently supports a single ConfigurationName. |
| 3615 | "percent": 42, # Percent specifies percent of the traffic to this Revision or Configuration. |
| 3616 | # This defaults to zero if unspecified. |
| 3617 | # |
| 3618 | # Cloud Run currently requires 100 percent for a single ConfigurationName |
| 3619 | # TrafficTarget entry. |
| 3620 | }, |
| 3621 | ], |
| 3622 | "latestReadyRevisionName": "A String", # From ConfigurationStatus. |
| 3623 | # LatestReadyRevisionName holds the name of the latest Revision stamped out |
| 3624 | # from this Service's Configuration that has had its "Ready" condition become |
| 3625 | # "True". |
| 3626 | }, |
| 3627 | "apiVersion": "A String", # The API version for this call such as "serving.knative.dev/v1". |
| 3628 | "spec": { # ServiceSpec holds the desired state of the Route (from the client), which # Spec holds the desired state of the Service (from the client). |
| 3629 | # is used to manipulate the underlying Route and Configuration(s). |
| 3630 | "traffic": [ # Traffic specifies how to distribute traffic over a collection of Knative |
| 3631 | # Revisions and Configurations. |
| 3632 | { # TrafficTarget holds a single entry of the routing table for a Route. |
| 3633 | "revisionName": "A String", # RevisionName of a specific revision to which to send this portion of |
| 3634 | # traffic. This is mutually exclusive with ConfigurationName. |
| 3635 | # |
| 3636 | # Providing RevisionName in spec is not currently supported by Cloud Run. |
| 3637 | "latestRevision": True or False, # LatestRevision may be optionally provided to indicate that the latest |
| 3638 | # ready Revision of the Configuration should be used for this traffic |
| 3639 | # target. When provided LatestRevision must be true if RevisionName is |
| 3640 | # empty; it must be false when RevisionName is non-empty. |
| 3641 | # |
| 3642 | # +optional |
| 3643 | "tag": "A String", # Tag is optionally used to expose a dedicated url for referencing |
| 3644 | # this target exclusively. |
| 3645 | # |
| 3646 | # Not currently supported in Cloud Run. |
| 3647 | # +optional |
| 3648 | "url": "A String", # Output only. URL displays the URL for accessing tagged traffic targets. URL |
| 3649 | # is displayed in status, and is disallowed on spec. URL must contain a |
| 3650 | # scheme (e.g. http://) and a hostname, but may not contain anything else |
| 3651 | # (e.g. basic auth, url path, etc. |
| 3652 | # |
| 3653 | # Not currently supported in Cloud Run. |
| 3654 | "configurationName": "A String", # ConfigurationName of a configuration to whose latest revision we will |
| 3655 | # send this portion of traffic. When the "status.latestReadyRevisionName" |
| 3656 | # of the referenced configuration changes, we will automatically migrate |
| 3657 | # traffic from the prior "latest ready" revision to the new one. This field |
| 3658 | # is never set in Route's status, only its spec. This is mutually exclusive |
| 3659 | # with RevisionName. |
| 3660 | # |
| 3661 | # Cloud Run currently supports a single ConfigurationName. |
| 3662 | "percent": 42, # Percent specifies percent of the traffic to this Revision or Configuration. |
| 3663 | # This defaults to zero if unspecified. |
| 3664 | # |
| 3665 | # Cloud Run currently requires 100 percent for a single ConfigurationName |
| 3666 | # TrafficTarget entry. |
| 3667 | }, |
| 3668 | ], |
| 3669 | "template": { # RevisionTemplateSpec describes the data a revision should have when created # Template holds the latest specification for the Revision to |
| 3670 | # be stamped out. |
| 3671 | # from a template. Based on: |
| 3672 | # https://github.com/kubernetes/api/blob/e771f807/core/v1/types.go#L3179-L3190 |
| 3673 | "spec": { # RevisionSpec holds the desired state of the Revision (from the client). # RevisionSpec holds the desired state of the Revision (from the client). |
| 3674 | "containerConcurrency": 42, # (Optional) |
| 3675 | # |
| 3676 | # ContainerConcurrency specifies the maximum allowed in-flight (concurrent) |
| 3677 | # requests per container instance of the Revision. |
| 3678 | # |
| 3679 | # Cloud Run fully managed: supported, defaults to 80 |
| 3680 | # |
| 3681 | # Cloud Run for Anthos: supported, defaults to 0, which means concurrency |
| 3682 | # to the application is not limited, and the system decides the |
| 3683 | # target concurrency for the autoscaler. |
| 3684 | "timeoutSeconds": 42, # TimeoutSeconds holds the max duration the instance is allowed for |
| 3685 | # responding to a request. |
| 3686 | # Not currently used by Cloud Run. |
| 3687 | "serviceAccountName": "A String", # Email address of the IAM service account associated with the revision |
| 3688 | # of the service. The service account represents the identity of the |
| 3689 | # running revision, and determines what permissions the revision has. If |
| 3690 | # not provided, the revision will use the project's default service account. |
| 3691 | "containers": [ # Containers holds the single container that defines the unit of execution |
| 3692 | # for this Revision. In the context of a Revision, we disallow a number of |
| 3693 | # fields on this Container, including: name and lifecycle. |
| 3694 | # In Cloud Run, only a single container may be provided. |
| 3695 | # The runtime contract is documented here: |
| 3696 | # https://github.com/knative/serving/blob/master/docs/runtime-contract.md |
| 3697 | { # A single application container. |
| 3698 | # This specifies both the container to run, the command to run in the container |
| 3699 | # and the arguments to supply to it. |
| 3700 | # Note that additional arguments may be supplied by the system to the container |
| 3701 | # at runtime. |
| 3702 | "securityContext": { # Cloud Run fully managed: not supported # (Optional) |
| 3703 | # |
| 3704 | # Cloud Run fully managed: not supported |
| 3705 | # |
| 3706 | # Cloud Run for Anthos: supported |
| 3707 | # |
| 3708 | # Security options the pod should run with. |
| 3709 | # More info: https://kubernetes.io/docs/concepts/policy/security-context/ |
| 3710 | # More info: |
| 3711 | # https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ |
| 3712 | # |
| 3713 | # Cloud Run for Anthos: supported |
| 3714 | # |
| 3715 | # SecurityContext holds security configuration that will be applied to a |
| 3716 | # container. Some fields are present in both SecurityContext and |
| 3717 | # PodSecurityContext. When both are set, the values in SecurityContext take |
| 3718 | # precedence. |
| 3719 | "runAsUser": 42, # (Optional) |
| 3720 | # |
| 3721 | # Cloud Run fully managed: not supported |
| 3722 | # |
| 3723 | # Cloud Run for Anthos: supported |
| 3724 | # |
| 3725 | # The UID to run the entrypoint of the container process. |
| 3726 | # Defaults to user specified in image metadata if unspecified. |
| 3727 | # May also be set in PodSecurityContext. If set in both SecurityContext and |
| 3728 | # PodSecurityContext, the value specified in SecurityContext takes |
| 3729 | # precedence. |
| 3730 | }, |
| 3731 | "livenessProbe": { # Cloud Run fully managed: not supported # (Optional) |
| 3732 | # |
| 3733 | # Cloud Run fully managed: not supported |
| 3734 | # |
| 3735 | # Cloud Run for Anthos: supported |
| 3736 | # |
| 3737 | # Periodic probe of container liveness. |
| 3738 | # Container will be restarted if the probe fails. |
| 3739 | # More info: |
| 3740 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 3741 | # |
| 3742 | # Cloud Run for Anthos: supported |
| 3743 | # |
| 3744 | # Probe describes a health check to be performed against a container to |
| 3745 | # determine whether it is alive or ready to receive traffic. |
| 3746 | "httpGet": { # Cloud Run fully managed: not supported # (Optional) |
| 3747 | # |
| 3748 | # Cloud Run fully managed: not supported |
| 3749 | # |
| 3750 | # Cloud Run for Anthos: supported |
| 3751 | # |
| 3752 | # HTTPGet specifies the http request to perform. |
| 3753 | # |
| 3754 | # A field inlined from the Handler message. |
| 3755 | # |
| 3756 | # Cloud Run for Anthos: supported |
| 3757 | # |
| 3758 | # HTTPGetAction describes an action based on HTTP Get requests. |
| 3759 | "host": "A String", # (Optional) |
| 3760 | # |
| 3761 | # Cloud Run fully managed: not supported |
| 3762 | # |
| 3763 | # Cloud Run for Anthos: supported |
| 3764 | # |
| 3765 | # Host name to connect to, defaults to the pod IP. You probably want to set |
| 3766 | # "Host" in httpHeaders instead. |
| 3767 | "scheme": "A String", # (Optional) |
| 3768 | # |
| 3769 | # Cloud Run fully managed: not supported |
| 3770 | # |
| 3771 | # Cloud Run for Anthos: supported |
| 3772 | # |
| 3773 | # Scheme to use for connecting to the host. |
| 3774 | # Defaults to HTTP. |
| 3775 | "httpHeaders": [ # (Optional) |
| 3776 | # |
| 3777 | # Cloud Run fully managed: not supported |
| 3778 | # |
| 3779 | # Cloud Run for Anthos: supported |
| 3780 | # |
| 3781 | # Custom headers to set in the request. HTTP allows repeated headers. |
| 3782 | { # Cloud Run fully managed: not supported |
| 3783 | # |
| 3784 | # Cloud Run for Anthos: supported |
| 3785 | # |
| 3786 | # HTTPHeader describes a custom header to be used in HTTP probes |
| 3787 | "name": "A String", # Cloud Run fully managed: not supported |
| 3788 | # |
| 3789 | # Cloud Run for Anthos: supported |
| 3790 | # |
| 3791 | # The header field name |
| 3792 | "value": "A String", # Cloud Run fully managed: not supported |
| 3793 | # |
| 3794 | # Cloud Run for Anthos: supported |
| 3795 | # |
| 3796 | # The header field value |
| 3797 | }, |
| 3798 | ], |
| 3799 | "path": "A String", # (Optional) |
| 3800 | # |
| 3801 | # Cloud Run fully managed: not supported |
| 3802 | # |
| 3803 | # Cloud Run for Anthos: supported |
| 3804 | # |
| 3805 | # Path to access on the HTTP server. |
| 3806 | }, |
| 3807 | "failureThreshold": 42, # (Optional) |
| 3808 | # |
| 3809 | # Cloud Run fully managed: not supported |
| 3810 | # |
| 3811 | # Cloud Run for Anthos: supported |
| 3812 | # |
| 3813 | # Minimum consecutive failures for the probe to be considered failed after |
| 3814 | # having succeeded. Defaults to 3. Minimum value is 1. |
| 3815 | "exec": { # Cloud Run fully managed: not supported # (Optional) |
| 3816 | # |
| 3817 | # Cloud Run fully managed: not supported |
| 3818 | # |
| 3819 | # Cloud Run for Anthos: supported |
| 3820 | # |
| 3821 | # One and only one of the following should be specified. |
| 3822 | # Exec specifies the action to take. |
| 3823 | # |
| 3824 | # A field inlined from the Handler message. |
| 3825 | # |
| 3826 | # Cloud Run for Anthos: supported |
| 3827 | # |
| 3828 | # ExecAction describes a "run in container" action. |
| 3829 | "command": "A String", # (Optional) |
| 3830 | # |
| 3831 | # Cloud Run fully managed: not supported |
| 3832 | # |
| 3833 | # Cloud Run for Anthos: supported |
| 3834 | # |
| 3835 | # Command is the command line to execute inside the container, the working |
| 3836 | # directory for the command is root ('/') in the container's filesystem. The |
| 3837 | # command is simply exec'd, it is not run inside a shell, so traditional |
| 3838 | # shell instructions ('|', etc) won't work. To use a shell, you need to |
| 3839 | # explicitly call out to that shell. Exit status of 0 is treated as |
| 3840 | # live/healthy and non-zero is unhealthy. |
| 3841 | }, |
| 3842 | "initialDelaySeconds": 42, # (Optional) |
| 3843 | # |
| 3844 | # Cloud Run fully managed: not supported |
| 3845 | # |
| 3846 | # Cloud Run for Anthos: supported |
| 3847 | # |
| 3848 | # Number of seconds after the container has started before liveness probes |
| 3849 | # are initiated. More info: |
| 3850 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 3851 | "timeoutSeconds": 42, # (Optional) |
| 3852 | # |
| 3853 | # Cloud Run fully managed: not supported |
| 3854 | # |
| 3855 | # Cloud Run for Anthos: supported |
| 3856 | # |
| 3857 | # Number of seconds after which the probe times out. |
| 3858 | # Defaults to 1 second. Minimum value is 1. |
| 3859 | # More info: |
| 3860 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 3861 | "successThreshold": 42, # (Optional) |
| 3862 | # |
| 3863 | # Cloud Run fully managed: not supported |
| 3864 | # |
| 3865 | # Cloud Run for Anthos: supported |
| 3866 | # |
| 3867 | # Minimum consecutive successes for the probe to be considered successful |
| 3868 | # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value |
| 3869 | # is 1. |
| 3870 | "periodSeconds": 42, # (Optional) |
| 3871 | # |
| 3872 | # Cloud Run fully managed: not supported |
| 3873 | # |
| 3874 | # Cloud Run for Anthos: supported |
| 3875 | # |
| 3876 | # How often (in seconds) to perform the probe. |
| 3877 | # Default to 10 seconds. Minimum value is 1. |
| 3878 | "tcpSocket": { # Cloud Run fully managed: not supported # (Optional) |
| 3879 | # |
| 3880 | # Cloud Run fully managed: not supported |
| 3881 | # |
| 3882 | # Cloud Run for Anthos: supported |
| 3883 | # |
| 3884 | # TCPSocket specifies an action involving a TCP port. |
| 3885 | # TCP hooks not yet supported |
| 3886 | # |
| 3887 | # A field inlined from the Handler message. |
| 3888 | # |
| 3889 | # Cloud Run for Anthos: supported |
| 3890 | # |
| 3891 | # TCPSocketAction describes an action based on opening a socket |
| 3892 | "port": 42, # Cloud Run fully managed: not supported |
| 3893 | # |
| 3894 | # Cloud Run for Anthos: supported |
| 3895 | # |
| 3896 | # Number or name of the port to access on the container. |
| 3897 | # Number must be in the range 1 to 65535. |
| 3898 | # Name must be an IANA_SVC_NAME. |
| 3899 | # |
| 3900 | # This field is currently limited to integer types only because of proto's |
| 3901 | # inability to properly support the IntOrString golang type. |
| 3902 | "host": "A String", # (Optional) |
| 3903 | # |
| 3904 | # Cloud Run fully managed: not supported |
| 3905 | # |
| 3906 | # Cloud Run for Anthos: supported |
| 3907 | # |
| 3908 | # Optional: Host name to connect to, defaults to the pod IP. |
| 3909 | }, |
| 3910 | }, |
| 3911 | "env": [ # (Optional) |
| 3912 | # |
| 3913 | # Cloud Run fully managed: supported |
| 3914 | # |
| 3915 | # Cloud Run for Anthos: supported |
| 3916 | # |
| 3917 | # List of environment variables to set in the container. |
| 3918 | { # EnvVar represents an environment variable present in a Container. |
| 3919 | "name": "A String", # Name of the environment variable. Must be a C_IDENTIFIER. |
| 3920 | "valueFrom": { # Cloud Run fully managed: not supported # (Optional) |
| 3921 | # |
| 3922 | # Cloud Run fully managed: not supported |
| 3923 | # |
| 3924 | # Cloud Run for Anthos: supported |
| 3925 | # |
| 3926 | # Source for the environment variable's value. Cannot be used if value is not |
| 3927 | # empty. |
| 3928 | # |
| 3929 | # Cloud Run for Anthos: supported |
| 3930 | # |
| 3931 | # EnvVarSource represents a source for the value of an EnvVar. |
| 3932 | "configMapKeyRef": { # Cloud Run fully managed: not supported # (Optional) |
| 3933 | # |
| 3934 | # Cloud Run fully managed: not supported |
| 3935 | # |
| 3936 | # Cloud Run for Anthos: supported |
| 3937 | # |
| 3938 | # Selects a key of a ConfigMap. |
| 3939 | # |
| 3940 | # Cloud Run for Anthos: supported |
| 3941 | # |
| 3942 | # Selects a key from a ConfigMap. |
| 3943 | "optional": True or False, # (Optional) |
| 3944 | # |
| 3945 | # Cloud Run fully managed: not supported |
| 3946 | # |
| 3947 | # Cloud Run for Anthos: supported |
| 3948 | # |
| 3949 | # Specify whether the ConfigMap or its key must be defined |
| 3950 | "key": "A String", # Cloud Run fully managed: not supported |
| 3951 | # |
| 3952 | # Cloud Run for Anthos: supported |
| 3953 | # |
| 3954 | # The key to select. |
| 3955 | "name": "A String", # Cloud Run fully managed: not supported |
| 3956 | # |
| 3957 | # Cloud Run for Anthos: supported |
| 3958 | # |
| 3959 | # The ConfigMap to select from. |
| 3960 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 3961 | # directly into the message. Use the "name" field instead. |
| 3962 | # |
| 3963 | # Cloud Run for Anthos: supported |
| 3964 | # |
| 3965 | # LocalObjectReference contains enough information to let you locate the |
| 3966 | # referenced object inside the same namespace. |
| 3967 | "name": "A String", # (Optional) |
| 3968 | # |
| 3969 | # Cloud Run fully managed: not supported |
| 3970 | # |
| 3971 | # Cloud Run for Anthos: supported |
| 3972 | # |
| 3973 | # Name of the referent. |
| 3974 | # More info: |
| 3975 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 3976 | }, |
| 3977 | }, |
| 3978 | "secretKeyRef": { # Cloud Run fully managed: not supported # (Optional) |
| 3979 | # |
| 3980 | # Cloud Run fully managed: not supported |
| 3981 | # |
| 3982 | # Cloud Run for Anthos: supported |
| 3983 | # |
| 3984 | # Selects a key of a secret in the pod's namespace |
| 3985 | # |
| 3986 | # Cloud Run for Anthos: supported |
| 3987 | # |
| 3988 | # SecretKeySelector selects a key of a Secret. |
| 3989 | "key": "A String", # Cloud Run fully managed: not supported |
| 3990 | # |
| 3991 | # Cloud Run for Anthos: supported |
| 3992 | # |
| 3993 | # The key of the secret to select from. Must be a valid secret key. |
| 3994 | "name": "A String", # Cloud Run fully managed: not supported |
| 3995 | # |
| 3996 | # Cloud Run for Anthos: supported |
| 3997 | # |
| 3998 | # The name of the secret in the pod's namespace to select from. |
| 3999 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 4000 | # directly into the message. Use the "name" field instead. |
| 4001 | # |
| 4002 | # Cloud Run for Anthos: supported |
| 4003 | # |
| 4004 | # LocalObjectReference contains enough information to let you locate the |
| 4005 | # referenced object inside the same namespace. |
| 4006 | "name": "A String", # (Optional) |
| 4007 | # |
| 4008 | # Cloud Run fully managed: not supported |
| 4009 | # |
| 4010 | # Cloud Run for Anthos: supported |
| 4011 | # |
| 4012 | # Name of the referent. |
| 4013 | # More info: |
| 4014 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 4015 | }, |
| 4016 | "optional": True or False, # (Optional) |
| 4017 | # |
| 4018 | # Cloud Run fully managed: not supported |
| 4019 | # |
| 4020 | # Cloud Run for Anthos: supported |
| 4021 | # |
| 4022 | # Specify whether the Secret or its key must be defined |
| 4023 | }, |
| 4024 | }, |
| 4025 | "value": "A String", # (Optional) |
| 4026 | # |
| 4027 | # Variable references $(VAR_NAME) are expanded |
| 4028 | # using the previous defined environment variables in the container and |
| 4029 | # any route environment variables. If a variable cannot be resolved, |
| 4030 | # the reference in the input string will be unchanged. The $(VAR_NAME) |
| 4031 | # syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped |
| 4032 | # references will never be expanded, regardless of whether the variable |
| 4033 | # exists or not. |
| 4034 | # Defaults to "". |
| 4035 | }, |
| 4036 | ], |
| 4037 | "resources": { # ResourceRequirements describes the compute resource requirements. # (Optional) |
| 4038 | # |
| 4039 | # Cloud Run fully managed: supported |
| 4040 | # |
| 4041 | # Cloud Run for Anthos: supported |
| 4042 | # |
| 4043 | # Compute Resources required by this container. |
| 4044 | # More info: |
| 4045 | # https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources |
| 4046 | "limits": { # (Optional) |
| 4047 | # |
| 4048 | # Cloud Run fully managed: Only memory and CPU are supported. Note: The only |
| 4049 | # supported value for CPU is '1'. |
| 4050 | # |
| 4051 | # Cloud Run for Anthos: supported |
| 4052 | # |
| 4053 | # Limits describes the maximum amount of compute resources allowed. |
| 4054 | # The values of the map is string form of the 'quantity' k8s type: |
| 4055 | # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go |
| 4056 | "a_key": "A String", |
| 4057 | }, |
| 4058 | "requests": { # (Optional) |
| 4059 | # |
| 4060 | # Cloud Run fully managed: Only memory and CPU are supported. Note: The only |
| 4061 | # supported value for CPU is '1'. |
| 4062 | # |
| 4063 | # Cloud Run for Anthos: supported |
| 4064 | # |
| 4065 | # Requests describes the minimum amount of compute resources required. |
| 4066 | # If Requests is omitted for a container, it defaults to Limits if that is |
| 4067 | # explicitly specified, otherwise to an implementation-defined value. |
| 4068 | # The values of the map is string form of the 'quantity' k8s type: |
| 4069 | # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go |
| 4070 | "a_key": "A String", |
| 4071 | }, |
| 4072 | }, |
| 4073 | "readinessProbe": { # Cloud Run fully managed: not supported # (Optional) |
| 4074 | # |
| 4075 | # Cloud Run fully managed: not supported |
| 4076 | # |
| 4077 | # Cloud Run for Anthos: supported |
| 4078 | # |
| 4079 | # Periodic probe of container service readiness. |
| 4080 | # Container will be removed from service endpoints if the probe fails. |
| 4081 | # More info: |
| 4082 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 4083 | # |
| 4084 | # Cloud Run for Anthos: supported |
| 4085 | # |
| 4086 | # Probe describes a health check to be performed against a container to |
| 4087 | # determine whether it is alive or ready to receive traffic. |
| 4088 | "httpGet": { # Cloud Run fully managed: not supported # (Optional) |
| 4089 | # |
| 4090 | # Cloud Run fully managed: not supported |
| 4091 | # |
| 4092 | # Cloud Run for Anthos: supported |
| 4093 | # |
| 4094 | # HTTPGet specifies the http request to perform. |
| 4095 | # |
| 4096 | # A field inlined from the Handler message. |
| 4097 | # |
| 4098 | # Cloud Run for Anthos: supported |
| 4099 | # |
| 4100 | # HTTPGetAction describes an action based on HTTP Get requests. |
| 4101 | "host": "A String", # (Optional) |
| 4102 | # |
| 4103 | # Cloud Run fully managed: not supported |
| 4104 | # |
| 4105 | # Cloud Run for Anthos: supported |
| 4106 | # |
| 4107 | # Host name to connect to, defaults to the pod IP. You probably want to set |
| 4108 | # "Host" in httpHeaders instead. |
| 4109 | "scheme": "A String", # (Optional) |
| 4110 | # |
| 4111 | # Cloud Run fully managed: not supported |
| 4112 | # |
| 4113 | # Cloud Run for Anthos: supported |
| 4114 | # |
| 4115 | # Scheme to use for connecting to the host. |
| 4116 | # Defaults to HTTP. |
| 4117 | "httpHeaders": [ # (Optional) |
| 4118 | # |
| 4119 | # Cloud Run fully managed: not supported |
| 4120 | # |
| 4121 | # Cloud Run for Anthos: supported |
| 4122 | # |
| 4123 | # Custom headers to set in the request. HTTP allows repeated headers. |
| 4124 | { # Cloud Run fully managed: not supported |
| 4125 | # |
| 4126 | # Cloud Run for Anthos: supported |
| 4127 | # |
| 4128 | # HTTPHeader describes a custom header to be used in HTTP probes |
| 4129 | "name": "A String", # Cloud Run fully managed: not supported |
| 4130 | # |
| 4131 | # Cloud Run for Anthos: supported |
| 4132 | # |
| 4133 | # The header field name |
| 4134 | "value": "A String", # Cloud Run fully managed: not supported |
| 4135 | # |
| 4136 | # Cloud Run for Anthos: supported |
| 4137 | # |
| 4138 | # The header field value |
| 4139 | }, |
| 4140 | ], |
| 4141 | "path": "A String", # (Optional) |
| 4142 | # |
| 4143 | # Cloud Run fully managed: not supported |
| 4144 | # |
| 4145 | # Cloud Run for Anthos: supported |
| 4146 | # |
| 4147 | # Path to access on the HTTP server. |
| 4148 | }, |
| 4149 | "failureThreshold": 42, # (Optional) |
| 4150 | # |
| 4151 | # Cloud Run fully managed: not supported |
| 4152 | # |
| 4153 | # Cloud Run for Anthos: supported |
| 4154 | # |
| 4155 | # Minimum consecutive failures for the probe to be considered failed after |
| 4156 | # having succeeded. Defaults to 3. Minimum value is 1. |
| 4157 | "exec": { # Cloud Run fully managed: not supported # (Optional) |
| 4158 | # |
| 4159 | # Cloud Run fully managed: not supported |
| 4160 | # |
| 4161 | # Cloud Run for Anthos: supported |
| 4162 | # |
| 4163 | # One and only one of the following should be specified. |
| 4164 | # Exec specifies the action to take. |
| 4165 | # |
| 4166 | # A field inlined from the Handler message. |
| 4167 | # |
| 4168 | # Cloud Run for Anthos: supported |
| 4169 | # |
| 4170 | # ExecAction describes a "run in container" action. |
| 4171 | "command": "A String", # (Optional) |
| 4172 | # |
| 4173 | # Cloud Run fully managed: not supported |
| 4174 | # |
| 4175 | # Cloud Run for Anthos: supported |
| 4176 | # |
| 4177 | # Command is the command line to execute inside the container, the working |
| 4178 | # directory for the command is root ('/') in the container's filesystem. The |
| 4179 | # command is simply exec'd, it is not run inside a shell, so traditional |
| 4180 | # shell instructions ('|', etc) won't work. To use a shell, you need to |
| 4181 | # explicitly call out to that shell. Exit status of 0 is treated as |
| 4182 | # live/healthy and non-zero is unhealthy. |
| 4183 | }, |
| 4184 | "initialDelaySeconds": 42, # (Optional) |
| 4185 | # |
| 4186 | # Cloud Run fully managed: not supported |
| 4187 | # |
| 4188 | # Cloud Run for Anthos: supported |
| 4189 | # |
| 4190 | # Number of seconds after the container has started before liveness probes |
| 4191 | # are initiated. More info: |
| 4192 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 4193 | "timeoutSeconds": 42, # (Optional) |
| 4194 | # |
| 4195 | # Cloud Run fully managed: not supported |
| 4196 | # |
| 4197 | # Cloud Run for Anthos: supported |
| 4198 | # |
| 4199 | # Number of seconds after which the probe times out. |
| 4200 | # Defaults to 1 second. Minimum value is 1. |
| 4201 | # More info: |
| 4202 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 4203 | "successThreshold": 42, # (Optional) |
| 4204 | # |
| 4205 | # Cloud Run fully managed: not supported |
| 4206 | # |
| 4207 | # Cloud Run for Anthos: supported |
| 4208 | # |
| 4209 | # Minimum consecutive successes for the probe to be considered successful |
| 4210 | # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value |
| 4211 | # is 1. |
| 4212 | "periodSeconds": 42, # (Optional) |
| 4213 | # |
| 4214 | # Cloud Run fully managed: not supported |
| 4215 | # |
| 4216 | # Cloud Run for Anthos: supported |
| 4217 | # |
| 4218 | # How often (in seconds) to perform the probe. |
| 4219 | # Default to 10 seconds. Minimum value is 1. |
| 4220 | "tcpSocket": { # Cloud Run fully managed: not supported # (Optional) |
| 4221 | # |
| 4222 | # Cloud Run fully managed: not supported |
| 4223 | # |
| 4224 | # Cloud Run for Anthos: supported |
| 4225 | # |
| 4226 | # TCPSocket specifies an action involving a TCP port. |
| 4227 | # TCP hooks not yet supported |
| 4228 | # |
| 4229 | # A field inlined from the Handler message. |
| 4230 | # |
| 4231 | # Cloud Run for Anthos: supported |
| 4232 | # |
| 4233 | # TCPSocketAction describes an action based on opening a socket |
| 4234 | "port": 42, # Cloud Run fully managed: not supported |
| 4235 | # |
| 4236 | # Cloud Run for Anthos: supported |
| 4237 | # |
| 4238 | # Number or name of the port to access on the container. |
| 4239 | # Number must be in the range 1 to 65535. |
| 4240 | # Name must be an IANA_SVC_NAME. |
| 4241 | # |
| 4242 | # This field is currently limited to integer types only because of proto's |
| 4243 | # inability to properly support the IntOrString golang type. |
| 4244 | "host": "A String", # (Optional) |
| 4245 | # |
| 4246 | # Cloud Run fully managed: not supported |
| 4247 | # |
| 4248 | # Cloud Run for Anthos: supported |
| 4249 | # |
| 4250 | # Optional: Host name to connect to, defaults to the pod IP. |
| 4251 | }, |
| 4252 | }, |
| 4253 | "imagePullPolicy": "A String", # (Optional) |
| 4254 | # |
| 4255 | # Cloud Run fully managed: not supported |
| 4256 | # |
| 4257 | # Cloud Run for Anthos: supported |
| 4258 | # |
| 4259 | # Image pull policy. |
| 4260 | # One of Always, Never, IfNotPresent. |
| 4261 | # Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. |
| 4262 | # More info: |
| 4263 | # https://kubernetes.io/docs/concepts/containers/images#updating-images |
| 4264 | "terminationMessagePath": "A String", # (Optional) |
| 4265 | # |
| 4266 | # Cloud Run fully managed: not supported |
| 4267 | # |
| 4268 | # Cloud Run for Anthos: supported |
| 4269 | # |
| 4270 | # Path at which the file to which the container's termination |
| 4271 | # message will be written is mounted into the container's filesystem. Message |
| 4272 | # written is intended to be brief final status, such as an assertion failure |
| 4273 | # message. Will be truncated by the node if greater than 4096 bytes. The |
| 4274 | # total message length across all containers will be limited to 12kb. |
| 4275 | # Defaults to /dev/termination-log. |
| 4276 | "volumeMounts": [ # (Optional) |
| 4277 | # |
| 4278 | # Cloud Run fully managed: not supported |
| 4279 | # |
| 4280 | # Cloud Run for Anthos: supported |
| 4281 | # |
| 4282 | # Pod volumes to mount into the container's filesystem. |
| 4283 | { # Cloud Run fully managed: not supported |
| 4284 | # |
| 4285 | # Cloud Run for Anthos: supported |
| 4286 | # |
| 4287 | # VolumeMount describes a mounting of a Volume within a container. |
| 4288 | "mountPath": "A String", # Cloud Run fully managed: not supported |
| 4289 | # |
| 4290 | # Cloud Run for Anthos: supported |
| 4291 | # |
| 4292 | # Path within the container at which the volume should be mounted. Must |
| 4293 | # not contain ':'. |
| 4294 | "subPath": "A String", # (Optional) |
| 4295 | # |
| 4296 | # Cloud Run fully managed: not supported |
| 4297 | # |
| 4298 | # Cloud Run for Anthos: supported |
| 4299 | # |
| 4300 | # Path within the volume from which the container's volume should be mounted. |
| 4301 | # Defaults to "" (volume's root). |
| 4302 | "name": "A String", # Cloud Run fully managed: not supported |
| 4303 | # |
| 4304 | # Cloud Run for Anthos: supported |
| 4305 | # |
| 4306 | # This must match the Name of a Volume. |
| 4307 | "readOnly": True or False, # (Optional) |
| 4308 | # |
| 4309 | # Cloud Run fully managed: not supported |
| 4310 | # |
| 4311 | # Cloud Run for Anthos: supported |
| 4312 | # |
| 4313 | # Only true is accepted. |
| 4314 | # Defaults to true. |
| 4315 | }, |
| 4316 | ], |
| 4317 | "args": [ # (Optional) |
| 4318 | # |
| 4319 | # Cloud Run fully managed: supported |
| 4320 | # |
| 4321 | # Cloud Run for Anthos: supported |
| 4322 | # |
| 4323 | # Arguments to the entrypoint. |
| 4324 | # The docker image's CMD is used if this is not provided. |
| 4325 | # Variable references $(VAR_NAME) are expanded using the container's |
| 4326 | # environment. If a variable cannot be resolved, the reference in the input |
| 4327 | # string will be unchanged. The $(VAR_NAME) syntax can be escaped with a |
| 4328 | # double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, |
| 4329 | # regardless of whether the variable exists or not. |
| 4330 | # More info: |
| 4331 | # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell |
| 4332 | "A String", |
| 4333 | ], |
| 4334 | "workingDir": "A String", # (Optional) |
| 4335 | # |
| 4336 | # Cloud Run fully managed: not supported |
| 4337 | # |
| 4338 | # Cloud Run for Anthos: supported |
| 4339 | # |
| 4340 | # Container's working directory. |
| 4341 | # If not specified, the container runtime's default will be used, which |
| 4342 | # might be configured in the container image. |
| 4343 | "ports": [ # (Optional) |
| 4344 | # |
| 4345 | # List of ports to expose from the container. Only a single port can be |
| 4346 | # specified. The specified ports must be listening on all interfaces |
| 4347 | # (0.0.0.0) within the container to be accessible. |
| 4348 | # |
| 4349 | # If omitted, a port number will be chosen and passed to the container |
| 4350 | # through the PORT environment variable for the container to listen on. |
| 4351 | { # ContainerPort represents a network port in a single container. |
| 4352 | "containerPort": 42, # (Optional) |
| 4353 | # |
| 4354 | # Port number the container listens on. |
| 4355 | # This must be a valid port number, 0 < x < 65536. |
| 4356 | "protocol": "A String", # (Optional) |
| 4357 | # |
| 4358 | # Cloud Run fully managed: not supported |
| 4359 | # |
| 4360 | # Cloud Run for Anthos: supported |
| 4361 | # |
| 4362 | # Protocol for port. Must be "TCP". |
| 4363 | # Defaults to "TCP". |
| 4364 | "name": "A String", # (Optional) |
| 4365 | # |
| 4366 | # Cloud Run fully managed: not supported |
| 4367 | # |
| 4368 | # Cloud Run for Anthos: supported |
| 4369 | # |
| 4370 | # If specified, used to specify which protocol to use. |
| 4371 | # Allowed values are "http1" and "h2c". |
| 4372 | }, |
| 4373 | ], |
| 4374 | "image": "A String", # Cloud Run fully managed: only supports containers from Google Container |
| 4375 | # Registry |
| 4376 | # |
| 4377 | # Cloud Run for Anthos: supported |
| 4378 | # |
| 4379 | # URL of the Container image. |
| 4380 | # More info: https://kubernetes.io/docs/concepts/containers/images |
| 4381 | "envFrom": [ # (Optional) |
| 4382 | # |
| 4383 | # Cloud Run fully managed: not supported |
| 4384 | # |
| 4385 | # Cloud Run for Anthos: supported |
| 4386 | # |
| 4387 | # List of sources to populate environment variables in the container. |
| 4388 | # The keys defined within a source must be a C_IDENTIFIER. All invalid keys |
| 4389 | # will be reported as an event when the container is starting. When a key |
| 4390 | # exists in multiple sources, the value associated with the last source will |
| 4391 | # take precedence. Values defined by an Env with a duplicate key will take |
| 4392 | # precedence. Cannot be updated. |
| 4393 | { # Cloud Run fully managed: not supported |
| 4394 | # |
| 4395 | # Cloud Run for Anthos: supported |
| 4396 | # |
| 4397 | # EnvFromSource represents the source of a set of ConfigMaps |
| 4398 | "secretRef": { # Cloud Run fully managed: not supported # (Optional) |
| 4399 | # |
| 4400 | # Cloud Run fully managed: not supported |
| 4401 | # |
| 4402 | # Cloud Run for Anthos: supported |
| 4403 | # |
| 4404 | # The Secret to select from |
| 4405 | # |
| 4406 | # Cloud Run for Anthos: supported |
| 4407 | # |
| 4408 | # SecretEnvSource selects a Secret to populate the environment |
| 4409 | # variables with. |
| 4410 | # |
| 4411 | # The contents of the target Secret's Data field will represent the |
| 4412 | # key-value pairs as environment variables. |
| 4413 | "name": "A String", # Cloud Run fully managed: not supported |
| 4414 | # |
| 4415 | # Cloud Run for Anthos: supported |
| 4416 | # |
| 4417 | # The Secret to select from. |
| 4418 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 4419 | # directly into the message. Use the "name" field instead. |
| 4420 | # |
| 4421 | # Cloud Run for Anthos: supported |
| 4422 | # |
| 4423 | # LocalObjectReference contains enough information to let you locate the |
| 4424 | # referenced object inside the same namespace. |
| 4425 | "name": "A String", # (Optional) |
| 4426 | # |
| 4427 | # Cloud Run fully managed: not supported |
| 4428 | # |
| 4429 | # Cloud Run for Anthos: supported |
| 4430 | # |
| 4431 | # Name of the referent. |
| 4432 | # More info: |
| 4433 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 4434 | }, |
| 4435 | "optional": True or False, # (Optional) |
| 4436 | # |
| 4437 | # Cloud Run fully managed: not supported |
| 4438 | # |
| 4439 | # Cloud Run for Anthos: supported |
| 4440 | # |
| 4441 | # Specify whether the Secret must be defined |
| 4442 | }, |
| 4443 | "prefix": "A String", # (Optional) |
| 4444 | # |
| 4445 | # Cloud Run fully managed: not supported |
| 4446 | # |
| 4447 | # Cloud Run for Anthos: supported |
| 4448 | # |
| 4449 | # An optional identifier to prepend to each key in the ConfigMap. Must be a |
| 4450 | # C_IDENTIFIER. |
| 4451 | "configMapRef": { # Cloud Run fully managed: not supported # (Optional) |
| 4452 | # |
| 4453 | # Cloud Run fully managed: not supported |
| 4454 | # |
| 4455 | # Cloud Run for Anthos: supported |
| 4456 | # |
| 4457 | # The ConfigMap to select from |
| 4458 | # |
| 4459 | # Cloud Run for Anthos: supported |
| 4460 | # |
| 4461 | # ConfigMapEnvSource selects a ConfigMap to populate the environment |
| 4462 | # variables with. |
| 4463 | # |
| 4464 | # The contents of the target ConfigMap's Data field will represent the |
| 4465 | # key-value pairs as environment variables. |
| 4466 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 4467 | # directly into the message. Use the "name" field instead. |
| 4468 | # |
| 4469 | # Cloud Run for Anthos: supported |
| 4470 | # |
| 4471 | # LocalObjectReference contains enough information to let you locate the |
| 4472 | # referenced object inside the same namespace. |
| 4473 | "name": "A String", # (Optional) |
| 4474 | # |
| 4475 | # Cloud Run fully managed: not supported |
| 4476 | # |
| 4477 | # Cloud Run for Anthos: supported |
| 4478 | # |
| 4479 | # Name of the referent. |
| 4480 | # More info: |
| 4481 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 4482 | }, |
| 4483 | "optional": True or False, # (Optional) |
| 4484 | # |
| 4485 | # Cloud Run fully managed: not supported |
| 4486 | # |
| 4487 | # Cloud Run for Anthos: supported |
| 4488 | # |
| 4489 | # Specify whether the ConfigMap must be defined |
| 4490 | "name": "A String", # Cloud Run fully managed: not supported |
| 4491 | # |
| 4492 | # Cloud Run for Anthos: supported |
| 4493 | # |
| 4494 | # The ConfigMap to select from. |
| 4495 | }, |
| 4496 | }, |
| 4497 | ], |
| 4498 | "name": "A String", # (Optional) |
| 4499 | # |
| 4500 | # Name of the container specified as a DNS_LABEL. |
| 4501 | "command": [ |
| 4502 | "A String", |
| 4503 | ], |
| 4504 | "terminationMessagePolicy": "A String", # (Optional) |
| 4505 | # |
| 4506 | # Cloud Run fully managed: not supported |
| 4507 | # |
| 4508 | # Cloud Run for Anthos: supported |
| 4509 | # |
| 4510 | # Indicate how the termination message should be populated. File will use the |
| 4511 | # contents of terminationMessagePath to populate the container status message |
| 4512 | # on both success and failure. FallbackToLogsOnError will use the last chunk |
| 4513 | # of container log output if the termination message file is empty and the |
| 4514 | # container exited with an error. The log output is limited to 2048 bytes or |
| 4515 | # 80 lines, whichever is smaller. Defaults to File. Cannot be updated. |
| 4516 | }, |
| 4517 | ], |
| 4518 | "volumes": [ |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 4519 | { # Cloud Run fully managed: not supported |
| 4520 | # |
| 4521 | # Cloud Run for Anthos: supported |
| 4522 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 4523 | # Volume represents a named volume in a container. |
| 4524 | "configMap": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported |
| 4525 | # |
| 4526 | # Cloud Run for Anthos: supported |
| 4527 | # |
| 4528 | # Cloud Run for Anthos: supported |
| 4529 | # |
| 4530 | # Adapts a ConfigMap into a volume. |
| 4531 | # The contents of the target ConfigMap's Data field will be presented in a |
| 4532 | # volume as files using the keys in the Data field as the file names, unless |
| 4533 | # the items element is populated with specific mappings of keys to paths. |
| 4534 | "optional": True or False, # (Optional) |
| 4535 | # |
| 4536 | # Cloud Run fully managed: not supported |
| 4537 | # |
| 4538 | # Cloud Run for Anthos: supported |
| 4539 | # |
| 4540 | # Specify whether the Secret or its keys must be defined. |
| 4541 | "name": "A String", # Cloud Run fully managed: not supported |
| 4542 | # |
| 4543 | # Cloud Run for Anthos: supported |
| 4544 | # |
| 4545 | # Name of the config. |
| 4546 | "defaultMode": 42, # (Optional) |
| 4547 | # |
| 4548 | # Cloud Run fully managed: not supported |
| 4549 | # |
| 4550 | # Cloud Run for Anthos: supported |
| 4551 | # |
| 4552 | # Mode bits to use on created files by default. Must be a value between 0 and |
| 4553 | # 0777. Defaults to 0644. Directories within the path are not affected by |
| 4554 | # this setting. This might be in conflict with other options that affect the |
| 4555 | # file mode, like fsGroup, and the result can be other mode bits set. |
| 4556 | "items": [ # (Optional) |
| 4557 | # |
| 4558 | # Cloud Run fully managed: not supported |
| 4559 | # |
| 4560 | # Cloud Run for Anthos: supported |
| 4561 | # |
| 4562 | # If unspecified, each key-value pair in the Data field of the referenced |
| 4563 | # Secret will be projected into the volume as a file whose name is the |
| 4564 | # key and content is the value. If specified, the listed keys will be |
| 4565 | # projected into the specified paths, and unlisted keys will not be |
| 4566 | # present. If a key is specified which is not present in the Secret, |
| 4567 | # the volume setup will error unless it is marked optional. |
| 4568 | { # Cloud Run fully managed: not supported |
| 4569 | # |
| 4570 | # Cloud Run for Anthos: supported |
| 4571 | # |
| 4572 | # Maps a string key to a path within a volume. |
| 4573 | "key": "A String", # Cloud Run fully managed: not supported |
| 4574 | # |
| 4575 | # Cloud Run for Anthos: supported |
| 4576 | # |
| 4577 | # The key to project. |
| 4578 | "path": "A String", # Cloud Run fully managed: not supported |
| 4579 | # |
| 4580 | # Cloud Run for Anthos: supported |
| 4581 | # |
| 4582 | # The relative path of the file to map the key to. |
| 4583 | # May not be an absolute path. |
| 4584 | # May not contain the path element '..'. |
| 4585 | # May not start with the string '..'. |
| 4586 | "mode": 42, # (Optional) |
| 4587 | # |
| 4588 | # Cloud Run fully managed: not supported |
| 4589 | # |
| 4590 | # Cloud Run for Anthos: supported |
| 4591 | # |
| 4592 | # Mode bits to use on this file, must be a value between 0 and 0777. If not |
| 4593 | # specified, the volume defaultMode will be used. This might be in conflict |
| 4594 | # with other options that affect the file mode, like fsGroup, and the result |
| 4595 | # can be other mode bits set. |
| 4596 | }, |
| 4597 | ], |
| 4598 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 4599 | "name": "A String", # Cloud Run fully managed: not supported |
| 4600 | # |
| 4601 | # Cloud Run for Anthos: supported |
| 4602 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 4603 | # Volume's name. |
| 4604 | "secret": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 4605 | # |
| 4606 | # Cloud Run for Anthos: supported |
| 4607 | # |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 4608 | # Cloud Run for Anthos: supported |
| 4609 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 4610 | # The contents of the target Secret's Data field will be presented in a volume |
| 4611 | # as files using the keys in the Data field as the file names. |
| 4612 | "secretName": "A String", # Cloud Run fully managed: not supported |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 4613 | # |
| 4614 | # Cloud Run for Anthos: supported |
| 4615 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 4616 | # Name of the secret in the container's namespace to use. |
| 4617 | "items": [ # (Optional) |
| 4618 | # |
| 4619 | # Cloud Run fully managed: not supported |
| 4620 | # |
| 4621 | # Cloud Run for Anthos: supported |
| 4622 | # |
| 4623 | # If unspecified, each key-value pair in the Data field of the referenced |
| 4624 | # Secret will be projected into the volume as a file whose name is the |
| 4625 | # key and content is the value. If specified, the listed keys will be |
| 4626 | # projected into the specified paths, and unlisted keys will not be |
| 4627 | # present. If a key is specified which is not present in the Secret, |
| 4628 | # the volume setup will error unless it is marked optional. |
| 4629 | { # Cloud Run fully managed: not supported |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 4630 | # |
| 4631 | # Cloud Run for Anthos: supported |
| 4632 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 4633 | # Maps a string key to a path within a volume. |
| 4634 | "key": "A String", # Cloud Run fully managed: not supported |
| 4635 | # |
| 4636 | # Cloud Run for Anthos: supported |
| 4637 | # |
| 4638 | # The key to project. |
| 4639 | "path": "A String", # Cloud Run fully managed: not supported |
| 4640 | # |
| 4641 | # Cloud Run for Anthos: supported |
| 4642 | # |
| 4643 | # The relative path of the file to map the key to. |
| 4644 | # May not be an absolute path. |
| 4645 | # May not contain the path element '..'. |
| 4646 | # May not start with the string '..'. |
| 4647 | "mode": 42, # (Optional) |
| 4648 | # |
| 4649 | # Cloud Run fully managed: not supported |
| 4650 | # |
| 4651 | # Cloud Run for Anthos: supported |
| 4652 | # |
| 4653 | # Mode bits to use on this file, must be a value between 0 and 0777. If not |
| 4654 | # specified, the volume defaultMode will be used. This might be in conflict |
| 4655 | # with other options that affect the file mode, like fsGroup, and the result |
| 4656 | # can be other mode bits set. |
| 4657 | }, |
| 4658 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 4659 | "optional": True or False, # (Optional) |
| 4660 | # |
| 4661 | # Cloud Run fully managed: not supported |
| 4662 | # |
| 4663 | # Cloud Run for Anthos: supported |
| 4664 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 4665 | # Specify whether the Secret or its keys must be defined. |
| 4666 | "defaultMode": 42, # (Optional) |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 4667 | # |
| 4668 | # Cloud Run fully managed: not supported |
| 4669 | # |
| 4670 | # Cloud Run for Anthos: supported |
| 4671 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 4672 | # Mode bits to use on created files by default. Must be a value between 0 and |
| 4673 | # 0777. Defaults to 0644. Directories within the path are not affected by |
| 4674 | # this setting. This might be in conflict with other options that affect the |
| 4675 | # file mode, like fsGroup, and the result can be other mode bits set. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 4676 | }, |
| 4677 | }, |
| 4678 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 4679 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 4680 | "metadata": { # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # Optional metadata for this Revision, including labels and annotations. Name |
| 4681 | # will be generated by the Configuration. |
| 4682 | # To set minimum instances for this revision, use the |
| 4683 | # "autoscaling.knative.dev/minScale" annotation key. |
| 4684 | # To set maximum instances for this revision, use the |
| 4685 | # "autoscaling.knative.dev/maxScale" annotation key. |
| 4686 | # To set Cloud SQL connections for the revision, use the |
| 4687 | # "run.googleapis.com/cloudsql-instances" annotation key. |
| 4688 | # persisted resources must have, which includes all objects users must create. |
| 4689 | "annotations": { # (Optional) |
| 4690 | # |
| 4691 | # Annotations is an unstructured key value map stored with a resource that |
| 4692 | # may be set by external tools to store and retrieve arbitrary metadata. They |
| 4693 | # are not queryable and should be preserved when modifying objects. More |
| 4694 | # info: http://kubernetes.io/docs/user-guide/annotations |
| 4695 | "a_key": "A String", |
| 4696 | }, |
| 4697 | "generateName": "A String", # (Optional) |
| 4698 | # |
| 4699 | # Cloud Run fully managed: not supported |
| 4700 | # |
| 4701 | # Cloud Run for Anthos: supported |
| 4702 | # |
| 4703 | # GenerateName is an optional prefix, used by the server, to generate a |
| 4704 | # unique name ONLY IF the Name field has not been provided. If this field is |
| 4705 | # used, the name returned to the client will be different than the name |
| 4706 | # passed. This value will also be combined with a unique suffix. The provided |
| 4707 | # value has the same validation rules as the Name field, and may be truncated |
| 4708 | # by the length of the suffix required to make the value unique on the |
| 4709 | # server. |
| 4710 | # |
| 4711 | # If this field is specified and the generated name exists, the server will |
| 4712 | # NOT return a 409 - instead, it will either return 201 Created or 500 with |
| 4713 | # Reason ServerTimeout indicating a unique name could not be found in the |
| 4714 | # time allotted, and the client should retry (optionally after the time |
| 4715 | # indicated in the Retry-After header). |
| 4716 | # |
| 4717 | # Applied only if Name is not specified. |
| 4718 | # More info: |
| 4719 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency |
| 4720 | # string generateName = 2; |
| 4721 | "name": "A String", # Name must be unique within a namespace, within a Cloud Run region. |
| 4722 | # Is required when creating |
| 4723 | # resources, although some resources may allow a client to request the |
| 4724 | # generation of an appropriate name automatically. Name is primarily intended |
| 4725 | # for creation idempotence and configuration definition. Cannot be updated. |
| 4726 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 4727 | # +optional |
| 4728 | "deletionGracePeriodSeconds": 42, # (Optional) |
| 4729 | # |
| 4730 | # Cloud Run fully managed: not supported |
| 4731 | # |
| 4732 | # Cloud Run for Anthos: supported |
| 4733 | # |
| 4734 | # Number of seconds allowed for this object to gracefully terminate before |
| 4735 | # it will be removed from the system. Only set when deletionTimestamp is also |
| 4736 | # set. May only be shortened. Read-only. |
| 4737 | "clusterName": "A String", # (Optional) |
| 4738 | # |
| 4739 | # Cloud Run fully managed: not supported |
| 4740 | # |
| 4741 | # Cloud Run for Anthos: supported |
| 4742 | # |
| 4743 | # The name of the cluster which the object belongs to. |
| 4744 | # This is used to distinguish resources with same name and namespace in |
| 4745 | # different clusters. This field is not set anywhere right now and apiserver |
| 4746 | # is going to ignore it if set in create or update request. |
| 4747 | "finalizers": [ # (Optional) |
| 4748 | # |
| 4749 | # Cloud Run fully managed: not supported |
| 4750 | # |
| 4751 | # Cloud Run for Anthos: supported |
| 4752 | # |
| 4753 | # Must be empty before the object is deleted from the registry. Each entry |
| 4754 | # is an identifier for the responsible component that will remove the entry |
| 4755 | # from the list. If the deletionTimestamp of the object is non-nil, entries |
| 4756 | # in this list can only be removed. |
| 4757 | # +patchStrategy=merge |
| 4758 | "A String", |
| 4759 | ], |
| 4760 | "deletionTimestamp": "A String", # (Optional) |
| 4761 | # |
| 4762 | # Cloud Run fully managed: not supported |
| 4763 | # |
| 4764 | # Cloud Run for Anthos: supported |
| 4765 | # |
| 4766 | # DeletionTimestamp is RFC 3339 date and time at which this resource will be |
| 4767 | # deleted. This field is set by the server when a graceful deletion is |
| 4768 | # requested by the user, and is not directly settable by a client. The |
| 4769 | # resource is expected to be deleted (no longer visible from resource lists, |
| 4770 | # and not reachable by name) after the time in this field, once the |
| 4771 | # finalizers list is empty. As long as the finalizers list contains items, |
| 4772 | # deletion is blocked. Once the deletionTimestamp is set, this value may not |
| 4773 | # be unset or be set further into the future, although it may be shortened or |
| 4774 | # the resource may be deleted prior to this time. For example, a user may |
| 4775 | # request that a pod is deleted in 30 seconds. The Kubelet will react by |
| 4776 | # sending a graceful termination signal to the containers in the pod. After |
| 4777 | # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) |
| 4778 | # to the container and after cleanup, remove the pod from the API. In the |
| 4779 | # presence of network partitions, this object may still exist after this |
| 4780 | # timestamp, until an administrator or automated process can determine the |
| 4781 | # resource is fully terminated. |
| 4782 | # If not set, graceful deletion of the object has not been requested. |
| 4783 | # |
| 4784 | # Populated by the system when a graceful deletion is requested. |
| 4785 | # Read-only. |
| 4786 | # More info: |
| 4787 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 4788 | "ownerReferences": [ # (Optional) |
| 4789 | # |
| 4790 | # Cloud Run fully managed: not supported |
| 4791 | # |
| 4792 | # Cloud Run for Anthos: supported |
| 4793 | # |
| 4794 | # List of objects that own this object. If ALL objects in the list have |
| 4795 | # been deleted, this object will be garbage collected. |
| 4796 | { # OwnerReference contains enough information to let you identify an owning |
| 4797 | # object. Currently, an owning object must be in the same namespace, so there |
| 4798 | # is no namespace field. |
| 4799 | "controller": True or False, # If true, this reference points to the managing controller. |
| 4800 | # +optional |
| 4801 | "kind": "A String", # Kind of the referent. |
| 4802 | # More info: |
| 4803 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds |
| 4804 | "blockOwnerDeletion": True or False, # If true, AND if the owner has the "foregroundDeletion" finalizer, then |
| 4805 | # the owner cannot be deleted from the key-value store until this |
| 4806 | # reference is removed. |
| 4807 | # Defaults to false. |
| 4808 | # To set this field, a user needs "delete" permission of the owner, |
| 4809 | # otherwise 422 (Unprocessable Entity) will be returned. |
| 4810 | # +optional |
| 4811 | "apiVersion": "A String", # API version of the referent. |
| 4812 | "name": "A String", # Name of the referent. |
| 4813 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 4814 | "uid": "A String", # UID of the referent. |
| 4815 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 4816 | }, |
| 4817 | ], |
| 4818 | "creationTimestamp": "A String", # (Optional) |
| 4819 | # |
| 4820 | # CreationTimestamp is a timestamp representing the server time when this |
| 4821 | # object was created. It is not guaranteed to be set in happens-before order |
| 4822 | # across separate operations. Clients may not set this value. It is |
| 4823 | # represented in RFC3339 form and is in UTC. |
| 4824 | # |
| 4825 | # Populated by the system. |
| 4826 | # Read-only. |
| 4827 | # Null for lists. |
| 4828 | # More info: |
| 4829 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 4830 | "labels": { # (Optional) |
| 4831 | # |
| 4832 | # Map of string keys and values that can be used to organize and categorize |
| 4833 | # (scope and select) objects. May match selectors of replication controllers |
| 4834 | # and routes. |
| 4835 | # More info: http://kubernetes.io/docs/user-guide/labels |
| 4836 | "a_key": "A String", |
| 4837 | }, |
| 4838 | "generation": 42, # (Optional) |
| 4839 | # |
| 4840 | # A sequence number representing a specific generation of the desired state. |
| 4841 | # Populated by the system. Read-only. |
| 4842 | "resourceVersion": "A String", # (Optional) |
| 4843 | # |
| 4844 | # An opaque value that represents the internal version of this object that |
| 4845 | # can be used by clients to determine when objects have changed. May be used |
| 4846 | # for optimistic concurrency, change detection, and the watch operation on a |
| 4847 | # resource or set of resources. Clients must treat these values as opaque and |
| 4848 | # passed unmodified back to the server. They may only be valid for a |
| 4849 | # particular resource or set of resources. |
| 4850 | # |
| 4851 | # Populated by the system. |
| 4852 | # Read-only. |
| 4853 | # Value must be treated as opaque by clients and . |
| 4854 | # More info: |
| 4855 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency |
| 4856 | "selfLink": "A String", # (Optional) |
| 4857 | # |
| 4858 | # SelfLink is a URL representing this object. |
| 4859 | # Populated by the system. |
| 4860 | # Read-only. |
| 4861 | # string selfLink = 4; |
| 4862 | "uid": "A String", # (Optional) |
| 4863 | # |
| 4864 | # UID is the unique in time and space value for this object. It is typically |
| 4865 | # generated by the server on successful creation of a resource and is not |
| 4866 | # allowed to change on PUT operations. |
| 4867 | # |
| 4868 | # Populated by the system. |
| 4869 | # Read-only. |
| 4870 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 4871 | "namespace": "A String", # Namespace defines the space within each name must be unique, within a |
| 4872 | # Cloud Run region. In Cloud Run the namespace must be equal to either the |
| 4873 | # project ID or project number. |
| 4874 | }, |
| 4875 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 4876 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 4877 | }</pre> |
| 4878 | </div> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 4879 | |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 4880 | <div class="method"> |
| 4881 | <code class="details" id="list">list(parent, resourceVersion=None, includeUninitialized=None, fieldSelector=None, continue=None, limit=None, watch=None, labelSelector=None, x__xgafv=None)</code> |
| 4882 | <pre>List services. |
| 4883 | |
| 4884 | Args: |
| 4885 | parent: string, The namespace from which the services should be listed. |
| 4886 | For Cloud Run (fully managed), replace {namespace_id} with the project ID |
| 4887 | or number. (required) |
| 4888 | resourceVersion: string, The baseline resource version from which the list or watch operation should |
| 4889 | start. Not currently used by Cloud Run. |
| 4890 | includeUninitialized: boolean, Not currently used by Cloud Run. |
| 4891 | fieldSelector: string, Allows to filter resources based on a specific value for a field name. |
| 4892 | Send this in a query string format. i.e. 'metadata.name%3Dlorem'. |
| 4893 | Not currently used by Cloud Run. |
| 4894 | continue: string, Optional encoded string to continue paging. |
| 4895 | limit: integer, The maximum number of records that should be returned. |
| 4896 | watch: boolean, Flag that indicates that the client expects to watch this resource as well. |
| 4897 | Not currently used by Cloud Run. |
| 4898 | labelSelector: string, Allows to filter resources based on a label. Supported operations are |
| 4899 | =, !=, exists, in, and notIn. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 4900 | x__xgafv: string, V1 error format. |
| 4901 | Allowed values |
| 4902 | 1 - v1 error format |
| 4903 | 2 - v2 error format |
| 4904 | |
| 4905 | Returns: |
| 4906 | An object of the form: |
| 4907 | |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 4908 | { # A list of Service resources. |
| 4909 | "apiVersion": "A String", # The API version for this call such as "serving.knative.dev/v1". |
| 4910 | "kind": "A String", # The kind of this resource, in this case "ServiceList". |
| 4911 | "unreachable": [ # Locations that could not be reached. |
| 4912 | "A String", |
| 4913 | ], |
| 4914 | "metadata": { # ListMeta describes metadata that synthetic resources must have, including # Metadata associated with this Service list. |
| 4915 | # lists and various status objects. A resource may have only one of |
| 4916 | # {ObjectMeta, ListMeta}. |
| 4917 | "selfLink": "A String", # SelfLink is a URL representing this object. |
| 4918 | # Populated by the system. |
| 4919 | # Read-only. |
| 4920 | # +optional |
| 4921 | "resourceVersion": "A String", # String that identifies the server's internal version of this object that |
| 4922 | # can be used by clients to determine when objects have changed. Value must |
| 4923 | # be treated as opaque by clients and passed unmodified back to the server. |
| 4924 | # Populated by the system. |
| 4925 | # Read-only. |
| 4926 | # More info: |
| 4927 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency |
| 4928 | # +optional |
| 4929 | "continue": "A String", # continue may be set if the user set a limit on the number of items |
| 4930 | # returned, and indicates that the server has more data available. The value |
| 4931 | # is opaque and may be used to issue another request to the endpoint that |
| 4932 | # served this list to retrieve the next set of available objects. Continuing |
| 4933 | # a list may not be possible if the server configuration has changed or more |
| 4934 | # than a few minutes have passed. The resourceVersion field returned when |
| 4935 | # using this continue value will be identical to the value in the first |
| 4936 | # response. |
| 4937 | }, |
| 4938 | "items": [ # List of Services. |
| 4939 | { # Service acts as a top-level container that manages a set of Routes and |
| 4940 | # Configurations which implement a network service. Service exists to provide a |
| 4941 | # singular abstraction which can be access controlled, reasoned about, and |
| 4942 | # which encapsulates software lifecycle decisions such as rollout policy and |
| 4943 | # team resource ownership. Service acts only as an orchestrator of the |
| 4944 | # underlying Routes and Configurations (much as a kubernetes Deployment |
| 4945 | # orchestrates ReplicaSets). |
| 4946 | # |
| 4947 | # The Service's controller will track the statuses of its owned Configuration |
| 4948 | # and Route, reflecting their statuses and conditions as its own. |
| 4949 | # |
| 4950 | # See also: |
| 4951 | # https://github.com/knative/serving/blob/master/docs/spec/overview.md#service |
| 4952 | "kind": "A String", # The kind of resource, in this case "Service". |
| 4953 | "metadata": { # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # Metadata associated with this Service, including name, namespace, labels, |
| 4954 | # and annotations. |
| 4955 | # persisted resources must have, which includes all objects users must create. |
| 4956 | "annotations": { # (Optional) |
| 4957 | # |
| 4958 | # Annotations is an unstructured key value map stored with a resource that |
| 4959 | # may be set by external tools to store and retrieve arbitrary metadata. They |
| 4960 | # are not queryable and should be preserved when modifying objects. More |
| 4961 | # info: http://kubernetes.io/docs/user-guide/annotations |
| 4962 | "a_key": "A String", |
| 4963 | }, |
| 4964 | "generateName": "A String", # (Optional) |
| 4965 | # |
| 4966 | # Cloud Run fully managed: not supported |
| 4967 | # |
| 4968 | # Cloud Run for Anthos: supported |
| 4969 | # |
| 4970 | # GenerateName is an optional prefix, used by the server, to generate a |
| 4971 | # unique name ONLY IF the Name field has not been provided. If this field is |
| 4972 | # used, the name returned to the client will be different than the name |
| 4973 | # passed. This value will also be combined with a unique suffix. The provided |
| 4974 | # value has the same validation rules as the Name field, and may be truncated |
| 4975 | # by the length of the suffix required to make the value unique on the |
| 4976 | # server. |
| 4977 | # |
| 4978 | # If this field is specified and the generated name exists, the server will |
| 4979 | # NOT return a 409 - instead, it will either return 201 Created or 500 with |
| 4980 | # Reason ServerTimeout indicating a unique name could not be found in the |
| 4981 | # time allotted, and the client should retry (optionally after the time |
| 4982 | # indicated in the Retry-After header). |
| 4983 | # |
| 4984 | # Applied only if Name is not specified. |
| 4985 | # More info: |
| 4986 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency |
| 4987 | # string generateName = 2; |
| 4988 | "name": "A String", # Name must be unique within a namespace, within a Cloud Run region. |
| 4989 | # Is required when creating |
| 4990 | # resources, although some resources may allow a client to request the |
| 4991 | # generation of an appropriate name automatically. Name is primarily intended |
| 4992 | # for creation idempotence and configuration definition. Cannot be updated. |
| 4993 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 4994 | # +optional |
| 4995 | "deletionGracePeriodSeconds": 42, # (Optional) |
| 4996 | # |
| 4997 | # Cloud Run fully managed: not supported |
| 4998 | # |
| 4999 | # Cloud Run for Anthos: supported |
| 5000 | # |
| 5001 | # Number of seconds allowed for this object to gracefully terminate before |
| 5002 | # it will be removed from the system. Only set when deletionTimestamp is also |
| 5003 | # set. May only be shortened. Read-only. |
| 5004 | "clusterName": "A String", # (Optional) |
| 5005 | # |
| 5006 | # Cloud Run fully managed: not supported |
| 5007 | # |
| 5008 | # Cloud Run for Anthos: supported |
| 5009 | # |
| 5010 | # The name of the cluster which the object belongs to. |
| 5011 | # This is used to distinguish resources with same name and namespace in |
| 5012 | # different clusters. This field is not set anywhere right now and apiserver |
| 5013 | # is going to ignore it if set in create or update request. |
| 5014 | "finalizers": [ # (Optional) |
| 5015 | # |
| 5016 | # Cloud Run fully managed: not supported |
| 5017 | # |
| 5018 | # Cloud Run for Anthos: supported |
| 5019 | # |
| 5020 | # Must be empty before the object is deleted from the registry. Each entry |
| 5021 | # is an identifier for the responsible component that will remove the entry |
| 5022 | # from the list. If the deletionTimestamp of the object is non-nil, entries |
| 5023 | # in this list can only be removed. |
| 5024 | # +patchStrategy=merge |
| 5025 | "A String", |
| 5026 | ], |
| 5027 | "deletionTimestamp": "A String", # (Optional) |
| 5028 | # |
| 5029 | # Cloud Run fully managed: not supported |
| 5030 | # |
| 5031 | # Cloud Run for Anthos: supported |
| 5032 | # |
| 5033 | # DeletionTimestamp is RFC 3339 date and time at which this resource will be |
| 5034 | # deleted. This field is set by the server when a graceful deletion is |
| 5035 | # requested by the user, and is not directly settable by a client. The |
| 5036 | # resource is expected to be deleted (no longer visible from resource lists, |
| 5037 | # and not reachable by name) after the time in this field, once the |
| 5038 | # finalizers list is empty. As long as the finalizers list contains items, |
| 5039 | # deletion is blocked. Once the deletionTimestamp is set, this value may not |
| 5040 | # be unset or be set further into the future, although it may be shortened or |
| 5041 | # the resource may be deleted prior to this time. For example, a user may |
| 5042 | # request that a pod is deleted in 30 seconds. The Kubelet will react by |
| 5043 | # sending a graceful termination signal to the containers in the pod. After |
| 5044 | # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) |
| 5045 | # to the container and after cleanup, remove the pod from the API. In the |
| 5046 | # presence of network partitions, this object may still exist after this |
| 5047 | # timestamp, until an administrator or automated process can determine the |
| 5048 | # resource is fully terminated. |
| 5049 | # If not set, graceful deletion of the object has not been requested. |
| 5050 | # |
| 5051 | # Populated by the system when a graceful deletion is requested. |
| 5052 | # Read-only. |
| 5053 | # More info: |
| 5054 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 5055 | "ownerReferences": [ # (Optional) |
| 5056 | # |
| 5057 | # Cloud Run fully managed: not supported |
| 5058 | # |
| 5059 | # Cloud Run for Anthos: supported |
| 5060 | # |
| 5061 | # List of objects that own this object. If ALL objects in the list have |
| 5062 | # been deleted, this object will be garbage collected. |
| 5063 | { # OwnerReference contains enough information to let you identify an owning |
| 5064 | # object. Currently, an owning object must be in the same namespace, so there |
| 5065 | # is no namespace field. |
| 5066 | "controller": True or False, # If true, this reference points to the managing controller. |
| 5067 | # +optional |
| 5068 | "kind": "A String", # Kind of the referent. |
| 5069 | # More info: |
| 5070 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds |
| 5071 | "blockOwnerDeletion": True or False, # If true, AND if the owner has the "foregroundDeletion" finalizer, then |
| 5072 | # the owner cannot be deleted from the key-value store until this |
| 5073 | # reference is removed. |
| 5074 | # Defaults to false. |
| 5075 | # To set this field, a user needs "delete" permission of the owner, |
| 5076 | # otherwise 422 (Unprocessable Entity) will be returned. |
| 5077 | # +optional |
| 5078 | "apiVersion": "A String", # API version of the referent. |
| 5079 | "name": "A String", # Name of the referent. |
| 5080 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 5081 | "uid": "A String", # UID of the referent. |
| 5082 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 5083 | }, |
| 5084 | ], |
| 5085 | "creationTimestamp": "A String", # (Optional) |
| 5086 | # |
| 5087 | # CreationTimestamp is a timestamp representing the server time when this |
| 5088 | # object was created. It is not guaranteed to be set in happens-before order |
| 5089 | # across separate operations. Clients may not set this value. It is |
| 5090 | # represented in RFC3339 form and is in UTC. |
| 5091 | # |
| 5092 | # Populated by the system. |
| 5093 | # Read-only. |
| 5094 | # Null for lists. |
| 5095 | # More info: |
| 5096 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 5097 | "labels": { # (Optional) |
| 5098 | # |
| 5099 | # Map of string keys and values that can be used to organize and categorize |
| 5100 | # (scope and select) objects. May match selectors of replication controllers |
| 5101 | # and routes. |
| 5102 | # More info: http://kubernetes.io/docs/user-guide/labels |
| 5103 | "a_key": "A String", |
| 5104 | }, |
| 5105 | "generation": 42, # (Optional) |
| 5106 | # |
| 5107 | # A sequence number representing a specific generation of the desired state. |
| 5108 | # Populated by the system. Read-only. |
| 5109 | "resourceVersion": "A String", # (Optional) |
| 5110 | # |
| 5111 | # An opaque value that represents the internal version of this object that |
| 5112 | # can be used by clients to determine when objects have changed. May be used |
| 5113 | # for optimistic concurrency, change detection, and the watch operation on a |
| 5114 | # resource or set of resources. Clients must treat these values as opaque and |
| 5115 | # passed unmodified back to the server. They may only be valid for a |
| 5116 | # particular resource or set of resources. |
| 5117 | # |
| 5118 | # Populated by the system. |
| 5119 | # Read-only. |
| 5120 | # Value must be treated as opaque by clients and . |
| 5121 | # More info: |
| 5122 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency |
| 5123 | "selfLink": "A String", # (Optional) |
| 5124 | # |
| 5125 | # SelfLink is a URL representing this object. |
| 5126 | # Populated by the system. |
| 5127 | # Read-only. |
| 5128 | # string selfLink = 4; |
| 5129 | "uid": "A String", # (Optional) |
| 5130 | # |
| 5131 | # UID is the unique in time and space value for this object. It is typically |
| 5132 | # generated by the server on successful creation of a resource and is not |
| 5133 | # allowed to change on PUT operations. |
| 5134 | # |
| 5135 | # Populated by the system. |
| 5136 | # Read-only. |
| 5137 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 5138 | "namespace": "A String", # Namespace defines the space within each name must be unique, within a |
| 5139 | # Cloud Run region. In Cloud Run the namespace must be equal to either the |
| 5140 | # project ID or project number. |
| 5141 | }, |
| 5142 | "status": { # The current state of the Service. Output only. # Status communicates the observed state of the Service (from the |
| 5143 | # controller). |
| 5144 | "latestCreatedRevisionName": "A String", # From ConfigurationStatus. |
| 5145 | # LatestCreatedRevisionName is the last revision that was created from this |
| 5146 | # Service's Configuration. It might not be ready yet, for that use |
| 5147 | # LatestReadyRevisionName. |
| 5148 | "conditions": [ # Conditions communicates information about ongoing/complete |
| 5149 | # reconciliation processes that bring the "spec" inline with the observed |
| 5150 | # state of the world. |
| 5151 | # Service-specific conditions include: |
| 5152 | # * "ConfigurationsReady": true when the underlying Configuration is ready. |
| 5153 | # * "RoutesReady": true when the underlying Route is ready. |
| 5154 | # * "Ready": true when both the underlying Route and Configuration are |
| 5155 | # ready. |
| 5156 | { # Condition defines a generic condition for a Resource |
| 5157 | "message": "A String", # Optional. Human readable message indicating details about the current status. |
| 5158 | "lastTransitionTime": "A String", # Optional. Last time the condition transitioned from one status to another. |
| 5159 | "status": "A String", # Status of the condition, one of True, False, Unknown. |
| 5160 | "severity": "A String", # Optional. How to interpret failures of this condition, one of Error, Warning, Info |
| 5161 | "reason": "A String", # Optional. One-word CamelCase reason for the condition's last transition. |
| 5162 | "type": "A String", # type is used to communicate the status of the reconciliation process. |
| 5163 | # See also: |
| 5164 | # https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-reporting |
| 5165 | # Types common to all resources include: |
| 5166 | # * "Ready": True when the Resource is ready. |
| 5167 | }, |
| 5168 | ], |
| 5169 | "address": { # Information for connecting over HTTP(s). # From RouteStatus. |
| 5170 | # Similar to url, information on where the service is available on HTTP. |
| 5171 | "url": "A String", |
| 5172 | }, |
| 5173 | "observedGeneration": 42, # ObservedGeneration is the 'Generation' of the Route that |
| 5174 | # was last processed by the controller. |
| 5175 | # |
| 5176 | # Clients polling for completed reconciliation should poll until |
| 5177 | # observedGeneration = metadata.generation and the Ready condition's status |
| 5178 | # is True or False. |
| 5179 | "url": "A String", # From RouteStatus. |
| 5180 | # URL holds the url that will distribute traffic over the provided traffic |
| 5181 | # targets. It generally has the form |
| 5182 | # https://{route-hash}-{project-hash}-{cluster-level-suffix}.a.run.app |
| 5183 | "traffic": [ # From RouteStatus. |
| 5184 | # Traffic holds the configured traffic distribution. |
| 5185 | # These entries will always contain RevisionName references. |
| 5186 | # When ConfigurationName appears in the spec, this will hold the |
| 5187 | # LatestReadyRevisionName that we last observed. |
| 5188 | { # TrafficTarget holds a single entry of the routing table for a Route. |
| 5189 | "revisionName": "A String", # RevisionName of a specific revision to which to send this portion of |
| 5190 | # traffic. This is mutually exclusive with ConfigurationName. |
| 5191 | # |
| 5192 | # Providing RevisionName in spec is not currently supported by Cloud Run. |
| 5193 | "latestRevision": True or False, # LatestRevision may be optionally provided to indicate that the latest |
| 5194 | # ready Revision of the Configuration should be used for this traffic |
| 5195 | # target. When provided LatestRevision must be true if RevisionName is |
| 5196 | # empty; it must be false when RevisionName is non-empty. |
| 5197 | # |
| 5198 | # +optional |
| 5199 | "tag": "A String", # Tag is optionally used to expose a dedicated url for referencing |
| 5200 | # this target exclusively. |
| 5201 | # |
| 5202 | # Not currently supported in Cloud Run. |
| 5203 | # +optional |
| 5204 | "url": "A String", # Output only. URL displays the URL for accessing tagged traffic targets. URL |
| 5205 | # is displayed in status, and is disallowed on spec. URL must contain a |
| 5206 | # scheme (e.g. http://) and a hostname, but may not contain anything else |
| 5207 | # (e.g. basic auth, url path, etc. |
| 5208 | # |
| 5209 | # Not currently supported in Cloud Run. |
| 5210 | "configurationName": "A String", # ConfigurationName of a configuration to whose latest revision we will |
| 5211 | # send this portion of traffic. When the "status.latestReadyRevisionName" |
| 5212 | # of the referenced configuration changes, we will automatically migrate |
| 5213 | # traffic from the prior "latest ready" revision to the new one. This field |
| 5214 | # is never set in Route's status, only its spec. This is mutually exclusive |
| 5215 | # with RevisionName. |
| 5216 | # |
| 5217 | # Cloud Run currently supports a single ConfigurationName. |
| 5218 | "percent": 42, # Percent specifies percent of the traffic to this Revision or Configuration. |
| 5219 | # This defaults to zero if unspecified. |
| 5220 | # |
| 5221 | # Cloud Run currently requires 100 percent for a single ConfigurationName |
| 5222 | # TrafficTarget entry. |
| 5223 | }, |
| 5224 | ], |
| 5225 | "latestReadyRevisionName": "A String", # From ConfigurationStatus. |
| 5226 | # LatestReadyRevisionName holds the name of the latest Revision stamped out |
| 5227 | # from this Service's Configuration that has had its "Ready" condition become |
| 5228 | # "True". |
| 5229 | }, |
| 5230 | "apiVersion": "A String", # The API version for this call such as "serving.knative.dev/v1". |
| 5231 | "spec": { # ServiceSpec holds the desired state of the Route (from the client), which # Spec holds the desired state of the Service (from the client). |
| 5232 | # is used to manipulate the underlying Route and Configuration(s). |
| 5233 | "traffic": [ # Traffic specifies how to distribute traffic over a collection of Knative |
| 5234 | # Revisions and Configurations. |
| 5235 | { # TrafficTarget holds a single entry of the routing table for a Route. |
| 5236 | "revisionName": "A String", # RevisionName of a specific revision to which to send this portion of |
| 5237 | # traffic. This is mutually exclusive with ConfigurationName. |
| 5238 | # |
| 5239 | # Providing RevisionName in spec is not currently supported by Cloud Run. |
| 5240 | "latestRevision": True or False, # LatestRevision may be optionally provided to indicate that the latest |
| 5241 | # ready Revision of the Configuration should be used for this traffic |
| 5242 | # target. When provided LatestRevision must be true if RevisionName is |
| 5243 | # empty; it must be false when RevisionName is non-empty. |
| 5244 | # |
| 5245 | # +optional |
| 5246 | "tag": "A String", # Tag is optionally used to expose a dedicated url for referencing |
| 5247 | # this target exclusively. |
| 5248 | # |
| 5249 | # Not currently supported in Cloud Run. |
| 5250 | # +optional |
| 5251 | "url": "A String", # Output only. URL displays the URL for accessing tagged traffic targets. URL |
| 5252 | # is displayed in status, and is disallowed on spec. URL must contain a |
| 5253 | # scheme (e.g. http://) and a hostname, but may not contain anything else |
| 5254 | # (e.g. basic auth, url path, etc. |
| 5255 | # |
| 5256 | # Not currently supported in Cloud Run. |
| 5257 | "configurationName": "A String", # ConfigurationName of a configuration to whose latest revision we will |
| 5258 | # send this portion of traffic. When the "status.latestReadyRevisionName" |
| 5259 | # of the referenced configuration changes, we will automatically migrate |
| 5260 | # traffic from the prior "latest ready" revision to the new one. This field |
| 5261 | # is never set in Route's status, only its spec. This is mutually exclusive |
| 5262 | # with RevisionName. |
| 5263 | # |
| 5264 | # Cloud Run currently supports a single ConfigurationName. |
| 5265 | "percent": 42, # Percent specifies percent of the traffic to this Revision or Configuration. |
| 5266 | # This defaults to zero if unspecified. |
| 5267 | # |
| 5268 | # Cloud Run currently requires 100 percent for a single ConfigurationName |
| 5269 | # TrafficTarget entry. |
| 5270 | }, |
| 5271 | ], |
| 5272 | "template": { # RevisionTemplateSpec describes the data a revision should have when created # Template holds the latest specification for the Revision to |
| 5273 | # be stamped out. |
| 5274 | # from a template. Based on: |
| 5275 | # https://github.com/kubernetes/api/blob/e771f807/core/v1/types.go#L3179-L3190 |
| 5276 | "spec": { # RevisionSpec holds the desired state of the Revision (from the client). # RevisionSpec holds the desired state of the Revision (from the client). |
| 5277 | "containerConcurrency": 42, # (Optional) |
| 5278 | # |
| 5279 | # ContainerConcurrency specifies the maximum allowed in-flight (concurrent) |
| 5280 | # requests per container instance of the Revision. |
| 5281 | # |
| 5282 | # Cloud Run fully managed: supported, defaults to 80 |
| 5283 | # |
| 5284 | # Cloud Run for Anthos: supported, defaults to 0, which means concurrency |
| 5285 | # to the application is not limited, and the system decides the |
| 5286 | # target concurrency for the autoscaler. |
| 5287 | "timeoutSeconds": 42, # TimeoutSeconds holds the max duration the instance is allowed for |
| 5288 | # responding to a request. |
| 5289 | # Not currently used by Cloud Run. |
| 5290 | "serviceAccountName": "A String", # Email address of the IAM service account associated with the revision |
| 5291 | # of the service. The service account represents the identity of the |
| 5292 | # running revision, and determines what permissions the revision has. If |
| 5293 | # not provided, the revision will use the project's default service account. |
| 5294 | "containers": [ # Containers holds the single container that defines the unit of execution |
| 5295 | # for this Revision. In the context of a Revision, we disallow a number of |
| 5296 | # fields on this Container, including: name and lifecycle. |
| 5297 | # In Cloud Run, only a single container may be provided. |
| 5298 | # The runtime contract is documented here: |
| 5299 | # https://github.com/knative/serving/blob/master/docs/runtime-contract.md |
| 5300 | { # A single application container. |
| 5301 | # This specifies both the container to run, the command to run in the container |
| 5302 | # and the arguments to supply to it. |
| 5303 | # Note that additional arguments may be supplied by the system to the container |
| 5304 | # at runtime. |
| 5305 | "securityContext": { # Cloud Run fully managed: not supported # (Optional) |
| 5306 | # |
| 5307 | # Cloud Run fully managed: not supported |
| 5308 | # |
| 5309 | # Cloud Run for Anthos: supported |
| 5310 | # |
| 5311 | # Security options the pod should run with. |
| 5312 | # More info: https://kubernetes.io/docs/concepts/policy/security-context/ |
| 5313 | # More info: |
| 5314 | # https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ |
| 5315 | # |
| 5316 | # Cloud Run for Anthos: supported |
| 5317 | # |
| 5318 | # SecurityContext holds security configuration that will be applied to a |
| 5319 | # container. Some fields are present in both SecurityContext and |
| 5320 | # PodSecurityContext. When both are set, the values in SecurityContext take |
| 5321 | # precedence. |
| 5322 | "runAsUser": 42, # (Optional) |
| 5323 | # |
| 5324 | # Cloud Run fully managed: not supported |
| 5325 | # |
| 5326 | # Cloud Run for Anthos: supported |
| 5327 | # |
| 5328 | # The UID to run the entrypoint of the container process. |
| 5329 | # Defaults to user specified in image metadata if unspecified. |
| 5330 | # May also be set in PodSecurityContext. If set in both SecurityContext and |
| 5331 | # PodSecurityContext, the value specified in SecurityContext takes |
| 5332 | # precedence. |
| 5333 | }, |
| 5334 | "livenessProbe": { # Cloud Run fully managed: not supported # (Optional) |
| 5335 | # |
| 5336 | # Cloud Run fully managed: not supported |
| 5337 | # |
| 5338 | # Cloud Run for Anthos: supported |
| 5339 | # |
| 5340 | # Periodic probe of container liveness. |
| 5341 | # Container will be restarted if the probe fails. |
| 5342 | # More info: |
| 5343 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 5344 | # |
| 5345 | # Cloud Run for Anthos: supported |
| 5346 | # |
| 5347 | # Probe describes a health check to be performed against a container to |
| 5348 | # determine whether it is alive or ready to receive traffic. |
| 5349 | "httpGet": { # Cloud Run fully managed: not supported # (Optional) |
| 5350 | # |
| 5351 | # Cloud Run fully managed: not supported |
| 5352 | # |
| 5353 | # Cloud Run for Anthos: supported |
| 5354 | # |
| 5355 | # HTTPGet specifies the http request to perform. |
| 5356 | # |
| 5357 | # A field inlined from the Handler message. |
| 5358 | # |
| 5359 | # Cloud Run for Anthos: supported |
| 5360 | # |
| 5361 | # HTTPGetAction describes an action based on HTTP Get requests. |
| 5362 | "host": "A String", # (Optional) |
| 5363 | # |
| 5364 | # Cloud Run fully managed: not supported |
| 5365 | # |
| 5366 | # Cloud Run for Anthos: supported |
| 5367 | # |
| 5368 | # Host name to connect to, defaults to the pod IP. You probably want to set |
| 5369 | # "Host" in httpHeaders instead. |
| 5370 | "scheme": "A String", # (Optional) |
| 5371 | # |
| 5372 | # Cloud Run fully managed: not supported |
| 5373 | # |
| 5374 | # Cloud Run for Anthos: supported |
| 5375 | # |
| 5376 | # Scheme to use for connecting to the host. |
| 5377 | # Defaults to HTTP. |
| 5378 | "httpHeaders": [ # (Optional) |
| 5379 | # |
| 5380 | # Cloud Run fully managed: not supported |
| 5381 | # |
| 5382 | # Cloud Run for Anthos: supported |
| 5383 | # |
| 5384 | # Custom headers to set in the request. HTTP allows repeated headers. |
| 5385 | { # Cloud Run fully managed: not supported |
| 5386 | # |
| 5387 | # Cloud Run for Anthos: supported |
| 5388 | # |
| 5389 | # HTTPHeader describes a custom header to be used in HTTP probes |
| 5390 | "name": "A String", # Cloud Run fully managed: not supported |
| 5391 | # |
| 5392 | # Cloud Run for Anthos: supported |
| 5393 | # |
| 5394 | # The header field name |
| 5395 | "value": "A String", # Cloud Run fully managed: not supported |
| 5396 | # |
| 5397 | # Cloud Run for Anthos: supported |
| 5398 | # |
| 5399 | # The header field value |
| 5400 | }, |
| 5401 | ], |
| 5402 | "path": "A String", # (Optional) |
| 5403 | # |
| 5404 | # Cloud Run fully managed: not supported |
| 5405 | # |
| 5406 | # Cloud Run for Anthos: supported |
| 5407 | # |
| 5408 | # Path to access on the HTTP server. |
| 5409 | }, |
| 5410 | "failureThreshold": 42, # (Optional) |
| 5411 | # |
| 5412 | # Cloud Run fully managed: not supported |
| 5413 | # |
| 5414 | # Cloud Run for Anthos: supported |
| 5415 | # |
| 5416 | # Minimum consecutive failures for the probe to be considered failed after |
| 5417 | # having succeeded. Defaults to 3. Minimum value is 1. |
| 5418 | "exec": { # Cloud Run fully managed: not supported # (Optional) |
| 5419 | # |
| 5420 | # Cloud Run fully managed: not supported |
| 5421 | # |
| 5422 | # Cloud Run for Anthos: supported |
| 5423 | # |
| 5424 | # One and only one of the following should be specified. |
| 5425 | # Exec specifies the action to take. |
| 5426 | # |
| 5427 | # A field inlined from the Handler message. |
| 5428 | # |
| 5429 | # Cloud Run for Anthos: supported |
| 5430 | # |
| 5431 | # ExecAction describes a "run in container" action. |
| 5432 | "command": "A String", # (Optional) |
| 5433 | # |
| 5434 | # Cloud Run fully managed: not supported |
| 5435 | # |
| 5436 | # Cloud Run for Anthos: supported |
| 5437 | # |
| 5438 | # Command is the command line to execute inside the container, the working |
| 5439 | # directory for the command is root ('/') in the container's filesystem. The |
| 5440 | # command is simply exec'd, it is not run inside a shell, so traditional |
| 5441 | # shell instructions ('|', etc) won't work. To use a shell, you need to |
| 5442 | # explicitly call out to that shell. Exit status of 0 is treated as |
| 5443 | # live/healthy and non-zero is unhealthy. |
| 5444 | }, |
| 5445 | "initialDelaySeconds": 42, # (Optional) |
| 5446 | # |
| 5447 | # Cloud Run fully managed: not supported |
| 5448 | # |
| 5449 | # Cloud Run for Anthos: supported |
| 5450 | # |
| 5451 | # Number of seconds after the container has started before liveness probes |
| 5452 | # are initiated. More info: |
| 5453 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 5454 | "timeoutSeconds": 42, # (Optional) |
| 5455 | # |
| 5456 | # Cloud Run fully managed: not supported |
| 5457 | # |
| 5458 | # Cloud Run for Anthos: supported |
| 5459 | # |
| 5460 | # Number of seconds after which the probe times out. |
| 5461 | # Defaults to 1 second. Minimum value is 1. |
| 5462 | # More info: |
| 5463 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 5464 | "successThreshold": 42, # (Optional) |
| 5465 | # |
| 5466 | # Cloud Run fully managed: not supported |
| 5467 | # |
| 5468 | # Cloud Run for Anthos: supported |
| 5469 | # |
| 5470 | # Minimum consecutive successes for the probe to be considered successful |
| 5471 | # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value |
| 5472 | # is 1. |
| 5473 | "periodSeconds": 42, # (Optional) |
| 5474 | # |
| 5475 | # Cloud Run fully managed: not supported |
| 5476 | # |
| 5477 | # Cloud Run for Anthos: supported |
| 5478 | # |
| 5479 | # How often (in seconds) to perform the probe. |
| 5480 | # Default to 10 seconds. Minimum value is 1. |
| 5481 | "tcpSocket": { # Cloud Run fully managed: not supported # (Optional) |
| 5482 | # |
| 5483 | # Cloud Run fully managed: not supported |
| 5484 | # |
| 5485 | # Cloud Run for Anthos: supported |
| 5486 | # |
| 5487 | # TCPSocket specifies an action involving a TCP port. |
| 5488 | # TCP hooks not yet supported |
| 5489 | # |
| 5490 | # A field inlined from the Handler message. |
| 5491 | # |
| 5492 | # Cloud Run for Anthos: supported |
| 5493 | # |
| 5494 | # TCPSocketAction describes an action based on opening a socket |
| 5495 | "port": 42, # Cloud Run fully managed: not supported |
| 5496 | # |
| 5497 | # Cloud Run for Anthos: supported |
| 5498 | # |
| 5499 | # Number or name of the port to access on the container. |
| 5500 | # Number must be in the range 1 to 65535. |
| 5501 | # Name must be an IANA_SVC_NAME. |
| 5502 | # |
| 5503 | # This field is currently limited to integer types only because of proto's |
| 5504 | # inability to properly support the IntOrString golang type. |
| 5505 | "host": "A String", # (Optional) |
| 5506 | # |
| 5507 | # Cloud Run fully managed: not supported |
| 5508 | # |
| 5509 | # Cloud Run for Anthos: supported |
| 5510 | # |
| 5511 | # Optional: Host name to connect to, defaults to the pod IP. |
| 5512 | }, |
| 5513 | }, |
| 5514 | "env": [ # (Optional) |
| 5515 | # |
| 5516 | # Cloud Run fully managed: supported |
| 5517 | # |
| 5518 | # Cloud Run for Anthos: supported |
| 5519 | # |
| 5520 | # List of environment variables to set in the container. |
| 5521 | { # EnvVar represents an environment variable present in a Container. |
| 5522 | "name": "A String", # Name of the environment variable. Must be a C_IDENTIFIER. |
| 5523 | "valueFrom": { # Cloud Run fully managed: not supported # (Optional) |
| 5524 | # |
| 5525 | # Cloud Run fully managed: not supported |
| 5526 | # |
| 5527 | # Cloud Run for Anthos: supported |
| 5528 | # |
| 5529 | # Source for the environment variable's value. Cannot be used if value is not |
| 5530 | # empty. |
| 5531 | # |
| 5532 | # Cloud Run for Anthos: supported |
| 5533 | # |
| 5534 | # EnvVarSource represents a source for the value of an EnvVar. |
| 5535 | "configMapKeyRef": { # Cloud Run fully managed: not supported # (Optional) |
| 5536 | # |
| 5537 | # Cloud Run fully managed: not supported |
| 5538 | # |
| 5539 | # Cloud Run for Anthos: supported |
| 5540 | # |
| 5541 | # Selects a key of a ConfigMap. |
| 5542 | # |
| 5543 | # Cloud Run for Anthos: supported |
| 5544 | # |
| 5545 | # Selects a key from a ConfigMap. |
| 5546 | "optional": True or False, # (Optional) |
| 5547 | # |
| 5548 | # Cloud Run fully managed: not supported |
| 5549 | # |
| 5550 | # Cloud Run for Anthos: supported |
| 5551 | # |
| 5552 | # Specify whether the ConfigMap or its key must be defined |
| 5553 | "key": "A String", # Cloud Run fully managed: not supported |
| 5554 | # |
| 5555 | # Cloud Run for Anthos: supported |
| 5556 | # |
| 5557 | # The key to select. |
| 5558 | "name": "A String", # Cloud Run fully managed: not supported |
| 5559 | # |
| 5560 | # Cloud Run for Anthos: supported |
| 5561 | # |
| 5562 | # The ConfigMap to select from. |
| 5563 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 5564 | # directly into the message. Use the "name" field instead. |
| 5565 | # |
| 5566 | # Cloud Run for Anthos: supported |
| 5567 | # |
| 5568 | # LocalObjectReference contains enough information to let you locate the |
| 5569 | # referenced object inside the same namespace. |
| 5570 | "name": "A String", # (Optional) |
| 5571 | # |
| 5572 | # Cloud Run fully managed: not supported |
| 5573 | # |
| 5574 | # Cloud Run for Anthos: supported |
| 5575 | # |
| 5576 | # Name of the referent. |
| 5577 | # More info: |
| 5578 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 5579 | }, |
| 5580 | }, |
| 5581 | "secretKeyRef": { # Cloud Run fully managed: not supported # (Optional) |
| 5582 | # |
| 5583 | # Cloud Run fully managed: not supported |
| 5584 | # |
| 5585 | # Cloud Run for Anthos: supported |
| 5586 | # |
| 5587 | # Selects a key of a secret in the pod's namespace |
| 5588 | # |
| 5589 | # Cloud Run for Anthos: supported |
| 5590 | # |
| 5591 | # SecretKeySelector selects a key of a Secret. |
| 5592 | "key": "A String", # Cloud Run fully managed: not supported |
| 5593 | # |
| 5594 | # Cloud Run for Anthos: supported |
| 5595 | # |
| 5596 | # The key of the secret to select from. Must be a valid secret key. |
| 5597 | "name": "A String", # Cloud Run fully managed: not supported |
| 5598 | # |
| 5599 | # Cloud Run for Anthos: supported |
| 5600 | # |
| 5601 | # The name of the secret in the pod's namespace to select from. |
| 5602 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 5603 | # directly into the message. Use the "name" field instead. |
| 5604 | # |
| 5605 | # Cloud Run for Anthos: supported |
| 5606 | # |
| 5607 | # LocalObjectReference contains enough information to let you locate the |
| 5608 | # referenced object inside the same namespace. |
| 5609 | "name": "A String", # (Optional) |
| 5610 | # |
| 5611 | # Cloud Run fully managed: not supported |
| 5612 | # |
| 5613 | # Cloud Run for Anthos: supported |
| 5614 | # |
| 5615 | # Name of the referent. |
| 5616 | # More info: |
| 5617 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 5618 | }, |
| 5619 | "optional": True or False, # (Optional) |
| 5620 | # |
| 5621 | # Cloud Run fully managed: not supported |
| 5622 | # |
| 5623 | # Cloud Run for Anthos: supported |
| 5624 | # |
| 5625 | # Specify whether the Secret or its key must be defined |
| 5626 | }, |
| 5627 | }, |
| 5628 | "value": "A String", # (Optional) |
| 5629 | # |
| 5630 | # Variable references $(VAR_NAME) are expanded |
| 5631 | # using the previous defined environment variables in the container and |
| 5632 | # any route environment variables. If a variable cannot be resolved, |
| 5633 | # the reference in the input string will be unchanged. The $(VAR_NAME) |
| 5634 | # syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped |
| 5635 | # references will never be expanded, regardless of whether the variable |
| 5636 | # exists or not. |
| 5637 | # Defaults to "". |
| 5638 | }, |
| 5639 | ], |
| 5640 | "resources": { # ResourceRequirements describes the compute resource requirements. # (Optional) |
| 5641 | # |
| 5642 | # Cloud Run fully managed: supported |
| 5643 | # |
| 5644 | # Cloud Run for Anthos: supported |
| 5645 | # |
| 5646 | # Compute Resources required by this container. |
| 5647 | # More info: |
| 5648 | # https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources |
| 5649 | "limits": { # (Optional) |
| 5650 | # |
| 5651 | # Cloud Run fully managed: Only memory and CPU are supported. Note: The only |
| 5652 | # supported value for CPU is '1'. |
| 5653 | # |
| 5654 | # Cloud Run for Anthos: supported |
| 5655 | # |
| 5656 | # Limits describes the maximum amount of compute resources allowed. |
| 5657 | # The values of the map is string form of the 'quantity' k8s type: |
| 5658 | # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go |
| 5659 | "a_key": "A String", |
| 5660 | }, |
| 5661 | "requests": { # (Optional) |
| 5662 | # |
| 5663 | # Cloud Run fully managed: Only memory and CPU are supported. Note: The only |
| 5664 | # supported value for CPU is '1'. |
| 5665 | # |
| 5666 | # Cloud Run for Anthos: supported |
| 5667 | # |
| 5668 | # Requests describes the minimum amount of compute resources required. |
| 5669 | # If Requests is omitted for a container, it defaults to Limits if that is |
| 5670 | # explicitly specified, otherwise to an implementation-defined value. |
| 5671 | # The values of the map is string form of the 'quantity' k8s type: |
| 5672 | # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go |
| 5673 | "a_key": "A String", |
| 5674 | }, |
| 5675 | }, |
| 5676 | "readinessProbe": { # Cloud Run fully managed: not supported # (Optional) |
| 5677 | # |
| 5678 | # Cloud Run fully managed: not supported |
| 5679 | # |
| 5680 | # Cloud Run for Anthos: supported |
| 5681 | # |
| 5682 | # Periodic probe of container service readiness. |
| 5683 | # Container will be removed from service endpoints if the probe fails. |
| 5684 | # More info: |
| 5685 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 5686 | # |
| 5687 | # Cloud Run for Anthos: supported |
| 5688 | # |
| 5689 | # Probe describes a health check to be performed against a container to |
| 5690 | # determine whether it is alive or ready to receive traffic. |
| 5691 | "httpGet": { # Cloud Run fully managed: not supported # (Optional) |
| 5692 | # |
| 5693 | # Cloud Run fully managed: not supported |
| 5694 | # |
| 5695 | # Cloud Run for Anthos: supported |
| 5696 | # |
| 5697 | # HTTPGet specifies the http request to perform. |
| 5698 | # |
| 5699 | # A field inlined from the Handler message. |
| 5700 | # |
| 5701 | # Cloud Run for Anthos: supported |
| 5702 | # |
| 5703 | # HTTPGetAction describes an action based on HTTP Get requests. |
| 5704 | "host": "A String", # (Optional) |
| 5705 | # |
| 5706 | # Cloud Run fully managed: not supported |
| 5707 | # |
| 5708 | # Cloud Run for Anthos: supported |
| 5709 | # |
| 5710 | # Host name to connect to, defaults to the pod IP. You probably want to set |
| 5711 | # "Host" in httpHeaders instead. |
| 5712 | "scheme": "A String", # (Optional) |
| 5713 | # |
| 5714 | # Cloud Run fully managed: not supported |
| 5715 | # |
| 5716 | # Cloud Run for Anthos: supported |
| 5717 | # |
| 5718 | # Scheme to use for connecting to the host. |
| 5719 | # Defaults to HTTP. |
| 5720 | "httpHeaders": [ # (Optional) |
| 5721 | # |
| 5722 | # Cloud Run fully managed: not supported |
| 5723 | # |
| 5724 | # Cloud Run for Anthos: supported |
| 5725 | # |
| 5726 | # Custom headers to set in the request. HTTP allows repeated headers. |
| 5727 | { # Cloud Run fully managed: not supported |
| 5728 | # |
| 5729 | # Cloud Run for Anthos: supported |
| 5730 | # |
| 5731 | # HTTPHeader describes a custom header to be used in HTTP probes |
| 5732 | "name": "A String", # Cloud Run fully managed: not supported |
| 5733 | # |
| 5734 | # Cloud Run for Anthos: supported |
| 5735 | # |
| 5736 | # The header field name |
| 5737 | "value": "A String", # Cloud Run fully managed: not supported |
| 5738 | # |
| 5739 | # Cloud Run for Anthos: supported |
| 5740 | # |
| 5741 | # The header field value |
| 5742 | }, |
| 5743 | ], |
| 5744 | "path": "A String", # (Optional) |
| 5745 | # |
| 5746 | # Cloud Run fully managed: not supported |
| 5747 | # |
| 5748 | # Cloud Run for Anthos: supported |
| 5749 | # |
| 5750 | # Path to access on the HTTP server. |
| 5751 | }, |
| 5752 | "failureThreshold": 42, # (Optional) |
| 5753 | # |
| 5754 | # Cloud Run fully managed: not supported |
| 5755 | # |
| 5756 | # Cloud Run for Anthos: supported |
| 5757 | # |
| 5758 | # Minimum consecutive failures for the probe to be considered failed after |
| 5759 | # having succeeded. Defaults to 3. Minimum value is 1. |
| 5760 | "exec": { # Cloud Run fully managed: not supported # (Optional) |
| 5761 | # |
| 5762 | # Cloud Run fully managed: not supported |
| 5763 | # |
| 5764 | # Cloud Run for Anthos: supported |
| 5765 | # |
| 5766 | # One and only one of the following should be specified. |
| 5767 | # Exec specifies the action to take. |
| 5768 | # |
| 5769 | # A field inlined from the Handler message. |
| 5770 | # |
| 5771 | # Cloud Run for Anthos: supported |
| 5772 | # |
| 5773 | # ExecAction describes a "run in container" action. |
| 5774 | "command": "A String", # (Optional) |
| 5775 | # |
| 5776 | # Cloud Run fully managed: not supported |
| 5777 | # |
| 5778 | # Cloud Run for Anthos: supported |
| 5779 | # |
| 5780 | # Command is the command line to execute inside the container, the working |
| 5781 | # directory for the command is root ('/') in the container's filesystem. The |
| 5782 | # command is simply exec'd, it is not run inside a shell, so traditional |
| 5783 | # shell instructions ('|', etc) won't work. To use a shell, you need to |
| 5784 | # explicitly call out to that shell. Exit status of 0 is treated as |
| 5785 | # live/healthy and non-zero is unhealthy. |
| 5786 | }, |
| 5787 | "initialDelaySeconds": 42, # (Optional) |
| 5788 | # |
| 5789 | # Cloud Run fully managed: not supported |
| 5790 | # |
| 5791 | # Cloud Run for Anthos: supported |
| 5792 | # |
| 5793 | # Number of seconds after the container has started before liveness probes |
| 5794 | # are initiated. More info: |
| 5795 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 5796 | "timeoutSeconds": 42, # (Optional) |
| 5797 | # |
| 5798 | # Cloud Run fully managed: not supported |
| 5799 | # |
| 5800 | # Cloud Run for Anthos: supported |
| 5801 | # |
| 5802 | # Number of seconds after which the probe times out. |
| 5803 | # Defaults to 1 second. Minimum value is 1. |
| 5804 | # More info: |
| 5805 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 5806 | "successThreshold": 42, # (Optional) |
| 5807 | # |
| 5808 | # Cloud Run fully managed: not supported |
| 5809 | # |
| 5810 | # Cloud Run for Anthos: supported |
| 5811 | # |
| 5812 | # Minimum consecutive successes for the probe to be considered successful |
| 5813 | # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value |
| 5814 | # is 1. |
| 5815 | "periodSeconds": 42, # (Optional) |
| 5816 | # |
| 5817 | # Cloud Run fully managed: not supported |
| 5818 | # |
| 5819 | # Cloud Run for Anthos: supported |
| 5820 | # |
| 5821 | # How often (in seconds) to perform the probe. |
| 5822 | # Default to 10 seconds. Minimum value is 1. |
| 5823 | "tcpSocket": { # Cloud Run fully managed: not supported # (Optional) |
| 5824 | # |
| 5825 | # Cloud Run fully managed: not supported |
| 5826 | # |
| 5827 | # Cloud Run for Anthos: supported |
| 5828 | # |
| 5829 | # TCPSocket specifies an action involving a TCP port. |
| 5830 | # TCP hooks not yet supported |
| 5831 | # |
| 5832 | # A field inlined from the Handler message. |
| 5833 | # |
| 5834 | # Cloud Run for Anthos: supported |
| 5835 | # |
| 5836 | # TCPSocketAction describes an action based on opening a socket |
| 5837 | "port": 42, # Cloud Run fully managed: not supported |
| 5838 | # |
| 5839 | # Cloud Run for Anthos: supported |
| 5840 | # |
| 5841 | # Number or name of the port to access on the container. |
| 5842 | # Number must be in the range 1 to 65535. |
| 5843 | # Name must be an IANA_SVC_NAME. |
| 5844 | # |
| 5845 | # This field is currently limited to integer types only because of proto's |
| 5846 | # inability to properly support the IntOrString golang type. |
| 5847 | "host": "A String", # (Optional) |
| 5848 | # |
| 5849 | # Cloud Run fully managed: not supported |
| 5850 | # |
| 5851 | # Cloud Run for Anthos: supported |
| 5852 | # |
| 5853 | # Optional: Host name to connect to, defaults to the pod IP. |
| 5854 | }, |
| 5855 | }, |
| 5856 | "imagePullPolicy": "A String", # (Optional) |
| 5857 | # |
| 5858 | # Cloud Run fully managed: not supported |
| 5859 | # |
| 5860 | # Cloud Run for Anthos: supported |
| 5861 | # |
| 5862 | # Image pull policy. |
| 5863 | # One of Always, Never, IfNotPresent. |
| 5864 | # Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. |
| 5865 | # More info: |
| 5866 | # https://kubernetes.io/docs/concepts/containers/images#updating-images |
| 5867 | "terminationMessagePath": "A String", # (Optional) |
| 5868 | # |
| 5869 | # Cloud Run fully managed: not supported |
| 5870 | # |
| 5871 | # Cloud Run for Anthos: supported |
| 5872 | # |
| 5873 | # Path at which the file to which the container's termination |
| 5874 | # message will be written is mounted into the container's filesystem. Message |
| 5875 | # written is intended to be brief final status, such as an assertion failure |
| 5876 | # message. Will be truncated by the node if greater than 4096 bytes. The |
| 5877 | # total message length across all containers will be limited to 12kb. |
| 5878 | # Defaults to /dev/termination-log. |
| 5879 | "volumeMounts": [ # (Optional) |
| 5880 | # |
| 5881 | # Cloud Run fully managed: not supported |
| 5882 | # |
| 5883 | # Cloud Run for Anthos: supported |
| 5884 | # |
| 5885 | # Pod volumes to mount into the container's filesystem. |
| 5886 | { # Cloud Run fully managed: not supported |
| 5887 | # |
| 5888 | # Cloud Run for Anthos: supported |
| 5889 | # |
| 5890 | # VolumeMount describes a mounting of a Volume within a container. |
| 5891 | "mountPath": "A String", # Cloud Run fully managed: not supported |
| 5892 | # |
| 5893 | # Cloud Run for Anthos: supported |
| 5894 | # |
| 5895 | # Path within the container at which the volume should be mounted. Must |
| 5896 | # not contain ':'. |
| 5897 | "subPath": "A String", # (Optional) |
| 5898 | # |
| 5899 | # Cloud Run fully managed: not supported |
| 5900 | # |
| 5901 | # Cloud Run for Anthos: supported |
| 5902 | # |
| 5903 | # Path within the volume from which the container's volume should be mounted. |
| 5904 | # Defaults to "" (volume's root). |
| 5905 | "name": "A String", # Cloud Run fully managed: not supported |
| 5906 | # |
| 5907 | # Cloud Run for Anthos: supported |
| 5908 | # |
| 5909 | # This must match the Name of a Volume. |
| 5910 | "readOnly": True or False, # (Optional) |
| 5911 | # |
| 5912 | # Cloud Run fully managed: not supported |
| 5913 | # |
| 5914 | # Cloud Run for Anthos: supported |
| 5915 | # |
| 5916 | # Only true is accepted. |
| 5917 | # Defaults to true. |
| 5918 | }, |
| 5919 | ], |
| 5920 | "args": [ # (Optional) |
| 5921 | # |
| 5922 | # Cloud Run fully managed: supported |
| 5923 | # |
| 5924 | # Cloud Run for Anthos: supported |
| 5925 | # |
| 5926 | # Arguments to the entrypoint. |
| 5927 | # The docker image's CMD is used if this is not provided. |
| 5928 | # Variable references $(VAR_NAME) are expanded using the container's |
| 5929 | # environment. If a variable cannot be resolved, the reference in the input |
| 5930 | # string will be unchanged. The $(VAR_NAME) syntax can be escaped with a |
| 5931 | # double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, |
| 5932 | # regardless of whether the variable exists or not. |
| 5933 | # More info: |
| 5934 | # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell |
| 5935 | "A String", |
| 5936 | ], |
| 5937 | "workingDir": "A String", # (Optional) |
| 5938 | # |
| 5939 | # Cloud Run fully managed: not supported |
| 5940 | # |
| 5941 | # Cloud Run for Anthos: supported |
| 5942 | # |
| 5943 | # Container's working directory. |
| 5944 | # If not specified, the container runtime's default will be used, which |
| 5945 | # might be configured in the container image. |
| 5946 | "ports": [ # (Optional) |
| 5947 | # |
| 5948 | # List of ports to expose from the container. Only a single port can be |
| 5949 | # specified. The specified ports must be listening on all interfaces |
| 5950 | # (0.0.0.0) within the container to be accessible. |
| 5951 | # |
| 5952 | # If omitted, a port number will be chosen and passed to the container |
| 5953 | # through the PORT environment variable for the container to listen on. |
| 5954 | { # ContainerPort represents a network port in a single container. |
| 5955 | "containerPort": 42, # (Optional) |
| 5956 | # |
| 5957 | # Port number the container listens on. |
| 5958 | # This must be a valid port number, 0 < x < 65536. |
| 5959 | "protocol": "A String", # (Optional) |
| 5960 | # |
| 5961 | # Cloud Run fully managed: not supported |
| 5962 | # |
| 5963 | # Cloud Run for Anthos: supported |
| 5964 | # |
| 5965 | # Protocol for port. Must be "TCP". |
| 5966 | # Defaults to "TCP". |
| 5967 | "name": "A String", # (Optional) |
| 5968 | # |
| 5969 | # Cloud Run fully managed: not supported |
| 5970 | # |
| 5971 | # Cloud Run for Anthos: supported |
| 5972 | # |
| 5973 | # If specified, used to specify which protocol to use. |
| 5974 | # Allowed values are "http1" and "h2c". |
| 5975 | }, |
| 5976 | ], |
| 5977 | "image": "A String", # Cloud Run fully managed: only supports containers from Google Container |
| 5978 | # Registry |
| 5979 | # |
| 5980 | # Cloud Run for Anthos: supported |
| 5981 | # |
| 5982 | # URL of the Container image. |
| 5983 | # More info: https://kubernetes.io/docs/concepts/containers/images |
| 5984 | "envFrom": [ # (Optional) |
| 5985 | # |
| 5986 | # Cloud Run fully managed: not supported |
| 5987 | # |
| 5988 | # Cloud Run for Anthos: supported |
| 5989 | # |
| 5990 | # List of sources to populate environment variables in the container. |
| 5991 | # The keys defined within a source must be a C_IDENTIFIER. All invalid keys |
| 5992 | # will be reported as an event when the container is starting. When a key |
| 5993 | # exists in multiple sources, the value associated with the last source will |
| 5994 | # take precedence. Values defined by an Env with a duplicate key will take |
| 5995 | # precedence. Cannot be updated. |
| 5996 | { # Cloud Run fully managed: not supported |
| 5997 | # |
| 5998 | # Cloud Run for Anthos: supported |
| 5999 | # |
| 6000 | # EnvFromSource represents the source of a set of ConfigMaps |
| 6001 | "secretRef": { # Cloud Run fully managed: not supported # (Optional) |
| 6002 | # |
| 6003 | # Cloud Run fully managed: not supported |
| 6004 | # |
| 6005 | # Cloud Run for Anthos: supported |
| 6006 | # |
| 6007 | # The Secret to select from |
| 6008 | # |
| 6009 | # Cloud Run for Anthos: supported |
| 6010 | # |
| 6011 | # SecretEnvSource selects a Secret to populate the environment |
| 6012 | # variables with. |
| 6013 | # |
| 6014 | # The contents of the target Secret's Data field will represent the |
| 6015 | # key-value pairs as environment variables. |
| 6016 | "name": "A String", # Cloud Run fully managed: not supported |
| 6017 | # |
| 6018 | # Cloud Run for Anthos: supported |
| 6019 | # |
| 6020 | # The Secret to select from. |
| 6021 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 6022 | # directly into the message. Use the "name" field instead. |
| 6023 | # |
| 6024 | # Cloud Run for Anthos: supported |
| 6025 | # |
| 6026 | # LocalObjectReference contains enough information to let you locate the |
| 6027 | # referenced object inside the same namespace. |
| 6028 | "name": "A String", # (Optional) |
| 6029 | # |
| 6030 | # Cloud Run fully managed: not supported |
| 6031 | # |
| 6032 | # Cloud Run for Anthos: supported |
| 6033 | # |
| 6034 | # Name of the referent. |
| 6035 | # More info: |
| 6036 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 6037 | }, |
| 6038 | "optional": True or False, # (Optional) |
| 6039 | # |
| 6040 | # Cloud Run fully managed: not supported |
| 6041 | # |
| 6042 | # Cloud Run for Anthos: supported |
| 6043 | # |
| 6044 | # Specify whether the Secret must be defined |
| 6045 | }, |
| 6046 | "prefix": "A String", # (Optional) |
| 6047 | # |
| 6048 | # Cloud Run fully managed: not supported |
| 6049 | # |
| 6050 | # Cloud Run for Anthos: supported |
| 6051 | # |
| 6052 | # An optional identifier to prepend to each key in the ConfigMap. Must be a |
| 6053 | # C_IDENTIFIER. |
| 6054 | "configMapRef": { # Cloud Run fully managed: not supported # (Optional) |
| 6055 | # |
| 6056 | # Cloud Run fully managed: not supported |
| 6057 | # |
| 6058 | # Cloud Run for Anthos: supported |
| 6059 | # |
| 6060 | # The ConfigMap to select from |
| 6061 | # |
| 6062 | # Cloud Run for Anthos: supported |
| 6063 | # |
| 6064 | # ConfigMapEnvSource selects a ConfigMap to populate the environment |
| 6065 | # variables with. |
| 6066 | # |
| 6067 | # The contents of the target ConfigMap's Data field will represent the |
| 6068 | # key-value pairs as environment variables. |
| 6069 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 6070 | # directly into the message. Use the "name" field instead. |
| 6071 | # |
| 6072 | # Cloud Run for Anthos: supported |
| 6073 | # |
| 6074 | # LocalObjectReference contains enough information to let you locate the |
| 6075 | # referenced object inside the same namespace. |
| 6076 | "name": "A String", # (Optional) |
| 6077 | # |
| 6078 | # Cloud Run fully managed: not supported |
| 6079 | # |
| 6080 | # Cloud Run for Anthos: supported |
| 6081 | # |
| 6082 | # Name of the referent. |
| 6083 | # More info: |
| 6084 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 6085 | }, |
| 6086 | "optional": True or False, # (Optional) |
| 6087 | # |
| 6088 | # Cloud Run fully managed: not supported |
| 6089 | # |
| 6090 | # Cloud Run for Anthos: supported |
| 6091 | # |
| 6092 | # Specify whether the ConfigMap must be defined |
| 6093 | "name": "A String", # Cloud Run fully managed: not supported |
| 6094 | # |
| 6095 | # Cloud Run for Anthos: supported |
| 6096 | # |
| 6097 | # The ConfigMap to select from. |
| 6098 | }, |
| 6099 | }, |
| 6100 | ], |
| 6101 | "name": "A String", # (Optional) |
| 6102 | # |
| 6103 | # Name of the container specified as a DNS_LABEL. |
| 6104 | "command": [ |
| 6105 | "A String", |
| 6106 | ], |
| 6107 | "terminationMessagePolicy": "A String", # (Optional) |
| 6108 | # |
| 6109 | # Cloud Run fully managed: not supported |
| 6110 | # |
| 6111 | # Cloud Run for Anthos: supported |
| 6112 | # |
| 6113 | # Indicate how the termination message should be populated. File will use the |
| 6114 | # contents of terminationMessagePath to populate the container status message |
| 6115 | # on both success and failure. FallbackToLogsOnError will use the last chunk |
| 6116 | # of container log output if the termination message file is empty and the |
| 6117 | # container exited with an error. The log output is limited to 2048 bytes or |
| 6118 | # 80 lines, whichever is smaller. Defaults to File. Cannot be updated. |
| 6119 | }, |
| 6120 | ], |
| 6121 | "volumes": [ |
| 6122 | { # Cloud Run fully managed: not supported |
| 6123 | # |
| 6124 | # Cloud Run for Anthos: supported |
| 6125 | # |
| 6126 | # Volume represents a named volume in a container. |
| 6127 | "configMap": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported |
| 6128 | # |
| 6129 | # Cloud Run for Anthos: supported |
| 6130 | # |
| 6131 | # Cloud Run for Anthos: supported |
| 6132 | # |
| 6133 | # Adapts a ConfigMap into a volume. |
| 6134 | # The contents of the target ConfigMap's Data field will be presented in a |
| 6135 | # volume as files using the keys in the Data field as the file names, unless |
| 6136 | # the items element is populated with specific mappings of keys to paths. |
| 6137 | "optional": True or False, # (Optional) |
| 6138 | # |
| 6139 | # Cloud Run fully managed: not supported |
| 6140 | # |
| 6141 | # Cloud Run for Anthos: supported |
| 6142 | # |
| 6143 | # Specify whether the Secret or its keys must be defined. |
| 6144 | "name": "A String", # Cloud Run fully managed: not supported |
| 6145 | # |
| 6146 | # Cloud Run for Anthos: supported |
| 6147 | # |
| 6148 | # Name of the config. |
| 6149 | "defaultMode": 42, # (Optional) |
| 6150 | # |
| 6151 | # Cloud Run fully managed: not supported |
| 6152 | # |
| 6153 | # Cloud Run for Anthos: supported |
| 6154 | # |
| 6155 | # Mode bits to use on created files by default. Must be a value between 0 and |
| 6156 | # 0777. Defaults to 0644. Directories within the path are not affected by |
| 6157 | # this setting. This might be in conflict with other options that affect the |
| 6158 | # file mode, like fsGroup, and the result can be other mode bits set. |
| 6159 | "items": [ # (Optional) |
| 6160 | # |
| 6161 | # Cloud Run fully managed: not supported |
| 6162 | # |
| 6163 | # Cloud Run for Anthos: supported |
| 6164 | # |
| 6165 | # If unspecified, each key-value pair in the Data field of the referenced |
| 6166 | # Secret will be projected into the volume as a file whose name is the |
| 6167 | # key and content is the value. If specified, the listed keys will be |
| 6168 | # projected into the specified paths, and unlisted keys will not be |
| 6169 | # present. If a key is specified which is not present in the Secret, |
| 6170 | # the volume setup will error unless it is marked optional. |
| 6171 | { # Cloud Run fully managed: not supported |
| 6172 | # |
| 6173 | # Cloud Run for Anthos: supported |
| 6174 | # |
| 6175 | # Maps a string key to a path within a volume. |
| 6176 | "key": "A String", # Cloud Run fully managed: not supported |
| 6177 | # |
| 6178 | # Cloud Run for Anthos: supported |
| 6179 | # |
| 6180 | # The key to project. |
| 6181 | "path": "A String", # Cloud Run fully managed: not supported |
| 6182 | # |
| 6183 | # Cloud Run for Anthos: supported |
| 6184 | # |
| 6185 | # The relative path of the file to map the key to. |
| 6186 | # May not be an absolute path. |
| 6187 | # May not contain the path element '..'. |
| 6188 | # May not start with the string '..'. |
| 6189 | "mode": 42, # (Optional) |
| 6190 | # |
| 6191 | # Cloud Run fully managed: not supported |
| 6192 | # |
| 6193 | # Cloud Run for Anthos: supported |
| 6194 | # |
| 6195 | # Mode bits to use on this file, must be a value between 0 and 0777. If not |
| 6196 | # specified, the volume defaultMode will be used. This might be in conflict |
| 6197 | # with other options that affect the file mode, like fsGroup, and the result |
| 6198 | # can be other mode bits set. |
| 6199 | }, |
| 6200 | ], |
| 6201 | }, |
| 6202 | "name": "A String", # Cloud Run fully managed: not supported |
| 6203 | # |
| 6204 | # Cloud Run for Anthos: supported |
| 6205 | # |
| 6206 | # Volume's name. |
| 6207 | "secret": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported |
| 6208 | # |
| 6209 | # Cloud Run for Anthos: supported |
| 6210 | # |
| 6211 | # Cloud Run for Anthos: supported |
| 6212 | # |
| 6213 | # The contents of the target Secret's Data field will be presented in a volume |
| 6214 | # as files using the keys in the Data field as the file names. |
| 6215 | "secretName": "A String", # Cloud Run fully managed: not supported |
| 6216 | # |
| 6217 | # Cloud Run for Anthos: supported |
| 6218 | # |
| 6219 | # Name of the secret in the container's namespace to use. |
| 6220 | "items": [ # (Optional) |
| 6221 | # |
| 6222 | # Cloud Run fully managed: not supported |
| 6223 | # |
| 6224 | # Cloud Run for Anthos: supported |
| 6225 | # |
| 6226 | # If unspecified, each key-value pair in the Data field of the referenced |
| 6227 | # Secret will be projected into the volume as a file whose name is the |
| 6228 | # key and content is the value. If specified, the listed keys will be |
| 6229 | # projected into the specified paths, and unlisted keys will not be |
| 6230 | # present. If a key is specified which is not present in the Secret, |
| 6231 | # the volume setup will error unless it is marked optional. |
| 6232 | { # Cloud Run fully managed: not supported |
| 6233 | # |
| 6234 | # Cloud Run for Anthos: supported |
| 6235 | # |
| 6236 | # Maps a string key to a path within a volume. |
| 6237 | "key": "A String", # Cloud Run fully managed: not supported |
| 6238 | # |
| 6239 | # Cloud Run for Anthos: supported |
| 6240 | # |
| 6241 | # The key to project. |
| 6242 | "path": "A String", # Cloud Run fully managed: not supported |
| 6243 | # |
| 6244 | # Cloud Run for Anthos: supported |
| 6245 | # |
| 6246 | # The relative path of the file to map the key to. |
| 6247 | # May not be an absolute path. |
| 6248 | # May not contain the path element '..'. |
| 6249 | # May not start with the string '..'. |
| 6250 | "mode": 42, # (Optional) |
| 6251 | # |
| 6252 | # Cloud Run fully managed: not supported |
| 6253 | # |
| 6254 | # Cloud Run for Anthos: supported |
| 6255 | # |
| 6256 | # Mode bits to use on this file, must be a value between 0 and 0777. If not |
| 6257 | # specified, the volume defaultMode will be used. This might be in conflict |
| 6258 | # with other options that affect the file mode, like fsGroup, and the result |
| 6259 | # can be other mode bits set. |
| 6260 | }, |
| 6261 | ], |
| 6262 | "optional": True or False, # (Optional) |
| 6263 | # |
| 6264 | # Cloud Run fully managed: not supported |
| 6265 | # |
| 6266 | # Cloud Run for Anthos: supported |
| 6267 | # |
| 6268 | # Specify whether the Secret or its keys must be defined. |
| 6269 | "defaultMode": 42, # (Optional) |
| 6270 | # |
| 6271 | # Cloud Run fully managed: not supported |
| 6272 | # |
| 6273 | # Cloud Run for Anthos: supported |
| 6274 | # |
| 6275 | # Mode bits to use on created files by default. Must be a value between 0 and |
| 6276 | # 0777. Defaults to 0644. Directories within the path are not affected by |
| 6277 | # this setting. This might be in conflict with other options that affect the |
| 6278 | # file mode, like fsGroup, and the result can be other mode bits set. |
| 6279 | }, |
| 6280 | }, |
| 6281 | ], |
| 6282 | }, |
| 6283 | "metadata": { # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # Optional metadata for this Revision, including labels and annotations. Name |
| 6284 | # will be generated by the Configuration. |
| 6285 | # To set minimum instances for this revision, use the |
| 6286 | # "autoscaling.knative.dev/minScale" annotation key. |
| 6287 | # To set maximum instances for this revision, use the |
| 6288 | # "autoscaling.knative.dev/maxScale" annotation key. |
| 6289 | # To set Cloud SQL connections for the revision, use the |
| 6290 | # "run.googleapis.com/cloudsql-instances" annotation key. |
| 6291 | # persisted resources must have, which includes all objects users must create. |
| 6292 | "annotations": { # (Optional) |
| 6293 | # |
| 6294 | # Annotations is an unstructured key value map stored with a resource that |
| 6295 | # may be set by external tools to store and retrieve arbitrary metadata. They |
| 6296 | # are not queryable and should be preserved when modifying objects. More |
| 6297 | # info: http://kubernetes.io/docs/user-guide/annotations |
| 6298 | "a_key": "A String", |
| 6299 | }, |
| 6300 | "generateName": "A String", # (Optional) |
| 6301 | # |
| 6302 | # Cloud Run fully managed: not supported |
| 6303 | # |
| 6304 | # Cloud Run for Anthos: supported |
| 6305 | # |
| 6306 | # GenerateName is an optional prefix, used by the server, to generate a |
| 6307 | # unique name ONLY IF the Name field has not been provided. If this field is |
| 6308 | # used, the name returned to the client will be different than the name |
| 6309 | # passed. This value will also be combined with a unique suffix. The provided |
| 6310 | # value has the same validation rules as the Name field, and may be truncated |
| 6311 | # by the length of the suffix required to make the value unique on the |
| 6312 | # server. |
| 6313 | # |
| 6314 | # If this field is specified and the generated name exists, the server will |
| 6315 | # NOT return a 409 - instead, it will either return 201 Created or 500 with |
| 6316 | # Reason ServerTimeout indicating a unique name could not be found in the |
| 6317 | # time allotted, and the client should retry (optionally after the time |
| 6318 | # indicated in the Retry-After header). |
| 6319 | # |
| 6320 | # Applied only if Name is not specified. |
| 6321 | # More info: |
| 6322 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency |
| 6323 | # string generateName = 2; |
| 6324 | "name": "A String", # Name must be unique within a namespace, within a Cloud Run region. |
| 6325 | # Is required when creating |
| 6326 | # resources, although some resources may allow a client to request the |
| 6327 | # generation of an appropriate name automatically. Name is primarily intended |
| 6328 | # for creation idempotence and configuration definition. Cannot be updated. |
| 6329 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 6330 | # +optional |
| 6331 | "deletionGracePeriodSeconds": 42, # (Optional) |
| 6332 | # |
| 6333 | # Cloud Run fully managed: not supported |
| 6334 | # |
| 6335 | # Cloud Run for Anthos: supported |
| 6336 | # |
| 6337 | # Number of seconds allowed for this object to gracefully terminate before |
| 6338 | # it will be removed from the system. Only set when deletionTimestamp is also |
| 6339 | # set. May only be shortened. Read-only. |
| 6340 | "clusterName": "A String", # (Optional) |
| 6341 | # |
| 6342 | # Cloud Run fully managed: not supported |
| 6343 | # |
| 6344 | # Cloud Run for Anthos: supported |
| 6345 | # |
| 6346 | # The name of the cluster which the object belongs to. |
| 6347 | # This is used to distinguish resources with same name and namespace in |
| 6348 | # different clusters. This field is not set anywhere right now and apiserver |
| 6349 | # is going to ignore it if set in create or update request. |
| 6350 | "finalizers": [ # (Optional) |
| 6351 | # |
| 6352 | # Cloud Run fully managed: not supported |
| 6353 | # |
| 6354 | # Cloud Run for Anthos: supported |
| 6355 | # |
| 6356 | # Must be empty before the object is deleted from the registry. Each entry |
| 6357 | # is an identifier for the responsible component that will remove the entry |
| 6358 | # from the list. If the deletionTimestamp of the object is non-nil, entries |
| 6359 | # in this list can only be removed. |
| 6360 | # +patchStrategy=merge |
| 6361 | "A String", |
| 6362 | ], |
| 6363 | "deletionTimestamp": "A String", # (Optional) |
| 6364 | # |
| 6365 | # Cloud Run fully managed: not supported |
| 6366 | # |
| 6367 | # Cloud Run for Anthos: supported |
| 6368 | # |
| 6369 | # DeletionTimestamp is RFC 3339 date and time at which this resource will be |
| 6370 | # deleted. This field is set by the server when a graceful deletion is |
| 6371 | # requested by the user, and is not directly settable by a client. The |
| 6372 | # resource is expected to be deleted (no longer visible from resource lists, |
| 6373 | # and not reachable by name) after the time in this field, once the |
| 6374 | # finalizers list is empty. As long as the finalizers list contains items, |
| 6375 | # deletion is blocked. Once the deletionTimestamp is set, this value may not |
| 6376 | # be unset or be set further into the future, although it may be shortened or |
| 6377 | # the resource may be deleted prior to this time. For example, a user may |
| 6378 | # request that a pod is deleted in 30 seconds. The Kubelet will react by |
| 6379 | # sending a graceful termination signal to the containers in the pod. After |
| 6380 | # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) |
| 6381 | # to the container and after cleanup, remove the pod from the API. In the |
| 6382 | # presence of network partitions, this object may still exist after this |
| 6383 | # timestamp, until an administrator or automated process can determine the |
| 6384 | # resource is fully terminated. |
| 6385 | # If not set, graceful deletion of the object has not been requested. |
| 6386 | # |
| 6387 | # Populated by the system when a graceful deletion is requested. |
| 6388 | # Read-only. |
| 6389 | # More info: |
| 6390 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 6391 | "ownerReferences": [ # (Optional) |
| 6392 | # |
| 6393 | # Cloud Run fully managed: not supported |
| 6394 | # |
| 6395 | # Cloud Run for Anthos: supported |
| 6396 | # |
| 6397 | # List of objects that own this object. If ALL objects in the list have |
| 6398 | # been deleted, this object will be garbage collected. |
| 6399 | { # OwnerReference contains enough information to let you identify an owning |
| 6400 | # object. Currently, an owning object must be in the same namespace, so there |
| 6401 | # is no namespace field. |
| 6402 | "controller": True or False, # If true, this reference points to the managing controller. |
| 6403 | # +optional |
| 6404 | "kind": "A String", # Kind of the referent. |
| 6405 | # More info: |
| 6406 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds |
| 6407 | "blockOwnerDeletion": True or False, # If true, AND if the owner has the "foregroundDeletion" finalizer, then |
| 6408 | # the owner cannot be deleted from the key-value store until this |
| 6409 | # reference is removed. |
| 6410 | # Defaults to false. |
| 6411 | # To set this field, a user needs "delete" permission of the owner, |
| 6412 | # otherwise 422 (Unprocessable Entity) will be returned. |
| 6413 | # +optional |
| 6414 | "apiVersion": "A String", # API version of the referent. |
| 6415 | "name": "A String", # Name of the referent. |
| 6416 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 6417 | "uid": "A String", # UID of the referent. |
| 6418 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 6419 | }, |
| 6420 | ], |
| 6421 | "creationTimestamp": "A String", # (Optional) |
| 6422 | # |
| 6423 | # CreationTimestamp is a timestamp representing the server time when this |
| 6424 | # object was created. It is not guaranteed to be set in happens-before order |
| 6425 | # across separate operations. Clients may not set this value. It is |
| 6426 | # represented in RFC3339 form and is in UTC. |
| 6427 | # |
| 6428 | # Populated by the system. |
| 6429 | # Read-only. |
| 6430 | # Null for lists. |
| 6431 | # More info: |
| 6432 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 6433 | "labels": { # (Optional) |
| 6434 | # |
| 6435 | # Map of string keys and values that can be used to organize and categorize |
| 6436 | # (scope and select) objects. May match selectors of replication controllers |
| 6437 | # and routes. |
| 6438 | # More info: http://kubernetes.io/docs/user-guide/labels |
| 6439 | "a_key": "A String", |
| 6440 | }, |
| 6441 | "generation": 42, # (Optional) |
| 6442 | # |
| 6443 | # A sequence number representing a specific generation of the desired state. |
| 6444 | # Populated by the system. Read-only. |
| 6445 | "resourceVersion": "A String", # (Optional) |
| 6446 | # |
| 6447 | # An opaque value that represents the internal version of this object that |
| 6448 | # can be used by clients to determine when objects have changed. May be used |
| 6449 | # for optimistic concurrency, change detection, and the watch operation on a |
| 6450 | # resource or set of resources. Clients must treat these values as opaque and |
| 6451 | # passed unmodified back to the server. They may only be valid for a |
| 6452 | # particular resource or set of resources. |
| 6453 | # |
| 6454 | # Populated by the system. |
| 6455 | # Read-only. |
| 6456 | # Value must be treated as opaque by clients and . |
| 6457 | # More info: |
| 6458 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency |
| 6459 | "selfLink": "A String", # (Optional) |
| 6460 | # |
| 6461 | # SelfLink is a URL representing this object. |
| 6462 | # Populated by the system. |
| 6463 | # Read-only. |
| 6464 | # string selfLink = 4; |
| 6465 | "uid": "A String", # (Optional) |
| 6466 | # |
| 6467 | # UID is the unique in time and space value for this object. It is typically |
| 6468 | # generated by the server on successful creation of a resource and is not |
| 6469 | # allowed to change on PUT operations. |
| 6470 | # |
| 6471 | # Populated by the system. |
| 6472 | # Read-only. |
| 6473 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 6474 | "namespace": "A String", # Namespace defines the space within each name must be unique, within a |
| 6475 | # Cloud Run region. In Cloud Run the namespace must be equal to either the |
| 6476 | # project ID or project number. |
| 6477 | }, |
| 6478 | }, |
| 6479 | }, |
| 6480 | }, |
| 6481 | ], |
| 6482 | }</pre> |
| 6483 | </div> |
| 6484 | |
| 6485 | <div class="method"> |
| 6486 | <code class="details" id="replaceService">replaceService(name, body=None, x__xgafv=None)</code> |
| 6487 | <pre>Replace a service. |
| 6488 | |
| 6489 | Only the spec and metadata labels and annotations are modifiable. After |
| 6490 | the Update request, Cloud Run will work to make the 'status' |
| 6491 | match the requested 'spec'. |
| 6492 | |
| 6493 | May provide metadata.resourceVersion to enforce update from last read for |
| 6494 | optimistic concurrency control. |
| 6495 | |
| 6496 | Args: |
| 6497 | name: string, The name of the service being replaced. |
| 6498 | For Cloud Run (fully managed), replace {namespace_id} with the project ID |
| 6499 | or number. (required) |
| 6500 | body: object, The request body. |
| 6501 | The object takes the form of: |
| 6502 | |
| 6503 | { # Service acts as a top-level container that manages a set of Routes and |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 6504 | # Configurations which implement a network service. Service exists to provide a |
| 6505 | # singular abstraction which can be access controlled, reasoned about, and |
| 6506 | # which encapsulates software lifecycle decisions such as rollout policy and |
| 6507 | # team resource ownership. Service acts only as an orchestrator of the |
| 6508 | # underlying Routes and Configurations (much as a kubernetes Deployment |
| 6509 | # orchestrates ReplicaSets). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 6510 | # |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 6511 | # The Service's controller will track the statuses of its owned Configuration |
| 6512 | # and Route, reflecting their statuses and conditions as its own. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 6513 | # |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 6514 | # See also: |
| 6515 | # https://github.com/knative/serving/blob/master/docs/spec/overview.md#service |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 6516 | "kind": "A String", # The kind of resource, in this case "Service". |
| 6517 | "metadata": { # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # Metadata associated with this Service, including name, namespace, labels, |
| 6518 | # and annotations. |
| 6519 | # persisted resources must have, which includes all objects users must create. |
| 6520 | "annotations": { # (Optional) |
| 6521 | # |
| 6522 | # Annotations is an unstructured key value map stored with a resource that |
| 6523 | # may be set by external tools to store and retrieve arbitrary metadata. They |
| 6524 | # are not queryable and should be preserved when modifying objects. More |
| 6525 | # info: http://kubernetes.io/docs/user-guide/annotations |
| 6526 | "a_key": "A String", |
| 6527 | }, |
| 6528 | "generateName": "A String", # (Optional) |
| 6529 | # |
| 6530 | # Cloud Run fully managed: not supported |
| 6531 | # |
| 6532 | # Cloud Run for Anthos: supported |
| 6533 | # |
| 6534 | # GenerateName is an optional prefix, used by the server, to generate a |
| 6535 | # unique name ONLY IF the Name field has not been provided. If this field is |
| 6536 | # used, the name returned to the client will be different than the name |
| 6537 | # passed. This value will also be combined with a unique suffix. The provided |
| 6538 | # value has the same validation rules as the Name field, and may be truncated |
| 6539 | # by the length of the suffix required to make the value unique on the |
| 6540 | # server. |
| 6541 | # |
| 6542 | # If this field is specified and the generated name exists, the server will |
| 6543 | # NOT return a 409 - instead, it will either return 201 Created or 500 with |
| 6544 | # Reason ServerTimeout indicating a unique name could not be found in the |
| 6545 | # time allotted, and the client should retry (optionally after the time |
| 6546 | # indicated in the Retry-After header). |
| 6547 | # |
| 6548 | # Applied only if Name is not specified. |
| 6549 | # More info: |
| 6550 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency |
| 6551 | # string generateName = 2; |
| 6552 | "name": "A String", # Name must be unique within a namespace, within a Cloud Run region. |
| 6553 | # Is required when creating |
| 6554 | # resources, although some resources may allow a client to request the |
| 6555 | # generation of an appropriate name automatically. Name is primarily intended |
| 6556 | # for creation idempotence and configuration definition. Cannot be updated. |
| 6557 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 6558 | # +optional |
| 6559 | "deletionGracePeriodSeconds": 42, # (Optional) |
| 6560 | # |
| 6561 | # Cloud Run fully managed: not supported |
| 6562 | # |
| 6563 | # Cloud Run for Anthos: supported |
| 6564 | # |
| 6565 | # Number of seconds allowed for this object to gracefully terminate before |
| 6566 | # it will be removed from the system. Only set when deletionTimestamp is also |
| 6567 | # set. May only be shortened. Read-only. |
| 6568 | "clusterName": "A String", # (Optional) |
| 6569 | # |
| 6570 | # Cloud Run fully managed: not supported |
| 6571 | # |
| 6572 | # Cloud Run for Anthos: supported |
| 6573 | # |
| 6574 | # The name of the cluster which the object belongs to. |
| 6575 | # This is used to distinguish resources with same name and namespace in |
| 6576 | # different clusters. This field is not set anywhere right now and apiserver |
| 6577 | # is going to ignore it if set in create or update request. |
| 6578 | "finalizers": [ # (Optional) |
| 6579 | # |
| 6580 | # Cloud Run fully managed: not supported |
| 6581 | # |
| 6582 | # Cloud Run for Anthos: supported |
| 6583 | # |
| 6584 | # Must be empty before the object is deleted from the registry. Each entry |
| 6585 | # is an identifier for the responsible component that will remove the entry |
| 6586 | # from the list. If the deletionTimestamp of the object is non-nil, entries |
| 6587 | # in this list can only be removed. |
| 6588 | # +patchStrategy=merge |
| 6589 | "A String", |
| 6590 | ], |
| 6591 | "deletionTimestamp": "A String", # (Optional) |
| 6592 | # |
| 6593 | # Cloud Run fully managed: not supported |
| 6594 | # |
| 6595 | # Cloud Run for Anthos: supported |
| 6596 | # |
| 6597 | # DeletionTimestamp is RFC 3339 date and time at which this resource will be |
| 6598 | # deleted. This field is set by the server when a graceful deletion is |
| 6599 | # requested by the user, and is not directly settable by a client. The |
| 6600 | # resource is expected to be deleted (no longer visible from resource lists, |
| 6601 | # and not reachable by name) after the time in this field, once the |
| 6602 | # finalizers list is empty. As long as the finalizers list contains items, |
| 6603 | # deletion is blocked. Once the deletionTimestamp is set, this value may not |
| 6604 | # be unset or be set further into the future, although it may be shortened or |
| 6605 | # the resource may be deleted prior to this time. For example, a user may |
| 6606 | # request that a pod is deleted in 30 seconds. The Kubelet will react by |
| 6607 | # sending a graceful termination signal to the containers in the pod. After |
| 6608 | # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) |
| 6609 | # to the container and after cleanup, remove the pod from the API. In the |
| 6610 | # presence of network partitions, this object may still exist after this |
| 6611 | # timestamp, until an administrator or automated process can determine the |
| 6612 | # resource is fully terminated. |
| 6613 | # If not set, graceful deletion of the object has not been requested. |
| 6614 | # |
| 6615 | # Populated by the system when a graceful deletion is requested. |
| 6616 | # Read-only. |
| 6617 | # More info: |
| 6618 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 6619 | "ownerReferences": [ # (Optional) |
| 6620 | # |
| 6621 | # Cloud Run fully managed: not supported |
| 6622 | # |
| 6623 | # Cloud Run for Anthos: supported |
| 6624 | # |
| 6625 | # List of objects that own this object. If ALL objects in the list have |
| 6626 | # been deleted, this object will be garbage collected. |
| 6627 | { # OwnerReference contains enough information to let you identify an owning |
| 6628 | # object. Currently, an owning object must be in the same namespace, so there |
| 6629 | # is no namespace field. |
| 6630 | "controller": True or False, # If true, this reference points to the managing controller. |
| 6631 | # +optional |
| 6632 | "kind": "A String", # Kind of the referent. |
| 6633 | # More info: |
| 6634 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds |
| 6635 | "blockOwnerDeletion": True or False, # If true, AND if the owner has the "foregroundDeletion" finalizer, then |
| 6636 | # the owner cannot be deleted from the key-value store until this |
| 6637 | # reference is removed. |
| 6638 | # Defaults to false. |
| 6639 | # To set this field, a user needs "delete" permission of the owner, |
| 6640 | # otherwise 422 (Unprocessable Entity) will be returned. |
| 6641 | # +optional |
| 6642 | "apiVersion": "A String", # API version of the referent. |
| 6643 | "name": "A String", # Name of the referent. |
| 6644 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 6645 | "uid": "A String", # UID of the referent. |
| 6646 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 6647 | }, |
| 6648 | ], |
| 6649 | "creationTimestamp": "A String", # (Optional) |
| 6650 | # |
| 6651 | # CreationTimestamp is a timestamp representing the server time when this |
| 6652 | # object was created. It is not guaranteed to be set in happens-before order |
| 6653 | # across separate operations. Clients may not set this value. It is |
| 6654 | # represented in RFC3339 form and is in UTC. |
| 6655 | # |
| 6656 | # Populated by the system. |
| 6657 | # Read-only. |
| 6658 | # Null for lists. |
| 6659 | # More info: |
| 6660 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 6661 | "labels": { # (Optional) |
| 6662 | # |
| 6663 | # Map of string keys and values that can be used to organize and categorize |
| 6664 | # (scope and select) objects. May match selectors of replication controllers |
| 6665 | # and routes. |
| 6666 | # More info: http://kubernetes.io/docs/user-guide/labels |
| 6667 | "a_key": "A String", |
| 6668 | }, |
| 6669 | "generation": 42, # (Optional) |
| 6670 | # |
| 6671 | # A sequence number representing a specific generation of the desired state. |
| 6672 | # Populated by the system. Read-only. |
| 6673 | "resourceVersion": "A String", # (Optional) |
| 6674 | # |
| 6675 | # An opaque value that represents the internal version of this object that |
| 6676 | # can be used by clients to determine when objects have changed. May be used |
| 6677 | # for optimistic concurrency, change detection, and the watch operation on a |
| 6678 | # resource or set of resources. Clients must treat these values as opaque and |
| 6679 | # passed unmodified back to the server. They may only be valid for a |
| 6680 | # particular resource or set of resources. |
| 6681 | # |
| 6682 | # Populated by the system. |
| 6683 | # Read-only. |
| 6684 | # Value must be treated as opaque by clients and . |
| 6685 | # More info: |
| 6686 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency |
| 6687 | "selfLink": "A String", # (Optional) |
| 6688 | # |
| 6689 | # SelfLink is a URL representing this object. |
| 6690 | # Populated by the system. |
| 6691 | # Read-only. |
| 6692 | # string selfLink = 4; |
| 6693 | "uid": "A String", # (Optional) |
| 6694 | # |
| 6695 | # UID is the unique in time and space value for this object. It is typically |
| 6696 | # generated by the server on successful creation of a resource and is not |
| 6697 | # allowed to change on PUT operations. |
| 6698 | # |
| 6699 | # Populated by the system. |
| 6700 | # Read-only. |
| 6701 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 6702 | "namespace": "A String", # Namespace defines the space within each name must be unique, within a |
| 6703 | # Cloud Run region. In Cloud Run the namespace must be equal to either the |
| 6704 | # project ID or project number. |
| 6705 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 6706 | "status": { # The current state of the Service. Output only. # Status communicates the observed state of the Service (from the |
| 6707 | # controller). |
| 6708 | "latestCreatedRevisionName": "A String", # From ConfigurationStatus. |
| 6709 | # LatestCreatedRevisionName is the last revision that was created from this |
| 6710 | # Service's Configuration. It might not be ready yet, for that use |
| 6711 | # LatestReadyRevisionName. |
| 6712 | "conditions": [ # Conditions communicates information about ongoing/complete |
| 6713 | # reconciliation processes that bring the "spec" inline with the observed |
| 6714 | # state of the world. |
| 6715 | # Service-specific conditions include: |
| 6716 | # * "ConfigurationsReady": true when the underlying Configuration is ready. |
| 6717 | # * "RoutesReady": true when the underlying Route is ready. |
| 6718 | # * "Ready": true when both the underlying Route and Configuration are |
| 6719 | # ready. |
| 6720 | { # Condition defines a generic condition for a Resource |
| 6721 | "message": "A String", # Optional. Human readable message indicating details about the current status. |
| 6722 | "lastTransitionTime": "A String", # Optional. Last time the condition transitioned from one status to another. |
| 6723 | "status": "A String", # Status of the condition, one of True, False, Unknown. |
| 6724 | "severity": "A String", # Optional. How to interpret failures of this condition, one of Error, Warning, Info |
| 6725 | "reason": "A String", # Optional. One-word CamelCase reason for the condition's last transition. |
| 6726 | "type": "A String", # type is used to communicate the status of the reconciliation process. |
| 6727 | # See also: |
| 6728 | # https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-reporting |
| 6729 | # Types common to all resources include: |
| 6730 | # * "Ready": True when the Resource is ready. |
| 6731 | }, |
| 6732 | ], |
| 6733 | "address": { # Information for connecting over HTTP(s). # From RouteStatus. |
| 6734 | # Similar to url, information on where the service is available on HTTP. |
| 6735 | "url": "A String", |
| 6736 | }, |
| 6737 | "observedGeneration": 42, # ObservedGeneration is the 'Generation' of the Route that |
| 6738 | # was last processed by the controller. |
| 6739 | # |
| 6740 | # Clients polling for completed reconciliation should poll until |
| 6741 | # observedGeneration = metadata.generation and the Ready condition's status |
| 6742 | # is True or False. |
| 6743 | "url": "A String", # From RouteStatus. |
| 6744 | # URL holds the url that will distribute traffic over the provided traffic |
| 6745 | # targets. It generally has the form |
| 6746 | # https://{route-hash}-{project-hash}-{cluster-level-suffix}.a.run.app |
| 6747 | "traffic": [ # From RouteStatus. |
| 6748 | # Traffic holds the configured traffic distribution. |
| 6749 | # These entries will always contain RevisionName references. |
| 6750 | # When ConfigurationName appears in the spec, this will hold the |
| 6751 | # LatestReadyRevisionName that we last observed. |
| 6752 | { # TrafficTarget holds a single entry of the routing table for a Route. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 6753 | "revisionName": "A String", # RevisionName of a specific revision to which to send this portion of |
| 6754 | # traffic. This is mutually exclusive with ConfigurationName. |
| 6755 | # |
| 6756 | # Providing RevisionName in spec is not currently supported by Cloud Run. |
| 6757 | "latestRevision": True or False, # LatestRevision may be optionally provided to indicate that the latest |
| 6758 | # ready Revision of the Configuration should be used for this traffic |
| 6759 | # target. When provided LatestRevision must be true if RevisionName is |
| 6760 | # empty; it must be false when RevisionName is non-empty. |
| 6761 | # |
| 6762 | # +optional |
| 6763 | "tag": "A String", # Tag is optionally used to expose a dedicated url for referencing |
| 6764 | # this target exclusively. |
| 6765 | # |
| 6766 | # Not currently supported in Cloud Run. |
| 6767 | # +optional |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 6768 | "url": "A String", # Output only. URL displays the URL for accessing tagged traffic targets. URL |
| 6769 | # is displayed in status, and is disallowed on spec. URL must contain a |
| 6770 | # scheme (e.g. http://) and a hostname, but may not contain anything else |
| 6771 | # (e.g. basic auth, url path, etc. |
| 6772 | # |
| 6773 | # Not currently supported in Cloud Run. |
| 6774 | "configurationName": "A String", # ConfigurationName of a configuration to whose latest revision we will |
| 6775 | # send this portion of traffic. When the "status.latestReadyRevisionName" |
| 6776 | # of the referenced configuration changes, we will automatically migrate |
| 6777 | # traffic from the prior "latest ready" revision to the new one. This field |
| 6778 | # is never set in Route's status, only its spec. This is mutually exclusive |
| 6779 | # with RevisionName. |
| 6780 | # |
| 6781 | # Cloud Run currently supports a single ConfigurationName. |
| 6782 | "percent": 42, # Percent specifies percent of the traffic to this Revision or Configuration. |
| 6783 | # This defaults to zero if unspecified. |
| 6784 | # |
| 6785 | # Cloud Run currently requires 100 percent for a single ConfigurationName |
| 6786 | # TrafficTarget entry. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 6787 | }, |
| 6788 | ], |
| 6789 | "latestReadyRevisionName": "A String", # From ConfigurationStatus. |
| 6790 | # LatestReadyRevisionName holds the name of the latest Revision stamped out |
| 6791 | # from this Service's Configuration that has had its "Ready" condition become |
| 6792 | # "True". |
| 6793 | }, |
| 6794 | "apiVersion": "A String", # The API version for this call such as "serving.knative.dev/v1". |
| 6795 | "spec": { # ServiceSpec holds the desired state of the Route (from the client), which # Spec holds the desired state of the Service (from the client). |
| 6796 | # is used to manipulate the underlying Route and Configuration(s). |
| 6797 | "traffic": [ # Traffic specifies how to distribute traffic over a collection of Knative |
| 6798 | # Revisions and Configurations. |
| 6799 | { # TrafficTarget holds a single entry of the routing table for a Route. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 6800 | "revisionName": "A String", # RevisionName of a specific revision to which to send this portion of |
| 6801 | # traffic. This is mutually exclusive with ConfigurationName. |
| 6802 | # |
| 6803 | # Providing RevisionName in spec is not currently supported by Cloud Run. |
| 6804 | "latestRevision": True or False, # LatestRevision may be optionally provided to indicate that the latest |
| 6805 | # ready Revision of the Configuration should be used for this traffic |
| 6806 | # target. When provided LatestRevision must be true if RevisionName is |
| 6807 | # empty; it must be false when RevisionName is non-empty. |
| 6808 | # |
| 6809 | # +optional |
| 6810 | "tag": "A String", # Tag is optionally used to expose a dedicated url for referencing |
| 6811 | # this target exclusively. |
| 6812 | # |
| 6813 | # Not currently supported in Cloud Run. |
| 6814 | # +optional |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 6815 | "url": "A String", # Output only. URL displays the URL for accessing tagged traffic targets. URL |
| 6816 | # is displayed in status, and is disallowed on spec. URL must contain a |
| 6817 | # scheme (e.g. http://) and a hostname, but may not contain anything else |
| 6818 | # (e.g. basic auth, url path, etc. |
| 6819 | # |
| 6820 | # Not currently supported in Cloud Run. |
| 6821 | "configurationName": "A String", # ConfigurationName of a configuration to whose latest revision we will |
| 6822 | # send this portion of traffic. When the "status.latestReadyRevisionName" |
| 6823 | # of the referenced configuration changes, we will automatically migrate |
| 6824 | # traffic from the prior "latest ready" revision to the new one. This field |
| 6825 | # is never set in Route's status, only its spec. This is mutually exclusive |
| 6826 | # with RevisionName. |
| 6827 | # |
| 6828 | # Cloud Run currently supports a single ConfigurationName. |
| 6829 | "percent": 42, # Percent specifies percent of the traffic to this Revision or Configuration. |
| 6830 | # This defaults to zero if unspecified. |
| 6831 | # |
| 6832 | # Cloud Run currently requires 100 percent for a single ConfigurationName |
| 6833 | # TrafficTarget entry. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 6834 | }, |
| 6835 | ], |
| 6836 | "template": { # RevisionTemplateSpec describes the data a revision should have when created # Template holds the latest specification for the Revision to |
| 6837 | # be stamped out. |
| 6838 | # from a template. Based on: |
| 6839 | # https://github.com/kubernetes/api/blob/e771f807/core/v1/types.go#L3179-L3190 |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 6840 | "spec": { # RevisionSpec holds the desired state of the Revision (from the client). # RevisionSpec holds the desired state of the Revision (from the client). |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 6841 | "containerConcurrency": 42, # (Optional) |
| 6842 | # |
| 6843 | # ContainerConcurrency specifies the maximum allowed in-flight (concurrent) |
| 6844 | # requests per container instance of the Revision. |
| 6845 | # |
| 6846 | # Cloud Run fully managed: supported, defaults to 80 |
| 6847 | # |
| 6848 | # Cloud Run for Anthos: supported, defaults to 0, which means concurrency |
| 6849 | # to the application is not limited, and the system decides the |
| 6850 | # target concurrency for the autoscaler. |
| 6851 | "timeoutSeconds": 42, # TimeoutSeconds holds the max duration the instance is allowed for |
| 6852 | # responding to a request. |
| 6853 | # Not currently used by Cloud Run. |
| 6854 | "serviceAccountName": "A String", # Email address of the IAM service account associated with the revision |
| 6855 | # of the service. The service account represents the identity of the |
| 6856 | # running revision, and determines what permissions the revision has. If |
| 6857 | # not provided, the revision will use the project's default service account. |
| 6858 | "containers": [ # Containers holds the single container that defines the unit of execution |
| 6859 | # for this Revision. In the context of a Revision, we disallow a number of |
| 6860 | # fields on this Container, including: name and lifecycle. |
| 6861 | # In Cloud Run, only a single container may be provided. |
| 6862 | # The runtime contract is documented here: |
| 6863 | # https://github.com/knative/serving/blob/master/docs/runtime-contract.md |
| 6864 | { # A single application container. |
| 6865 | # This specifies both the container to run, the command to run in the container |
| 6866 | # and the arguments to supply to it. |
| 6867 | # Note that additional arguments may be supplied by the system to the container |
| 6868 | # at runtime. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 6869 | "securityContext": { # Cloud Run fully managed: not supported # (Optional) |
| 6870 | # |
| 6871 | # Cloud Run fully managed: not supported |
| 6872 | # |
| 6873 | # Cloud Run for Anthos: supported |
| 6874 | # |
| 6875 | # Security options the pod should run with. |
| 6876 | # More info: https://kubernetes.io/docs/concepts/policy/security-context/ |
| 6877 | # More info: |
| 6878 | # https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ |
| 6879 | # |
| 6880 | # Cloud Run for Anthos: supported |
| 6881 | # |
| 6882 | # SecurityContext holds security configuration that will be applied to a |
| 6883 | # container. Some fields are present in both SecurityContext and |
| 6884 | # PodSecurityContext. When both are set, the values in SecurityContext take |
| 6885 | # precedence. |
| 6886 | "runAsUser": 42, # (Optional) |
| 6887 | # |
| 6888 | # Cloud Run fully managed: not supported |
| 6889 | # |
| 6890 | # Cloud Run for Anthos: supported |
| 6891 | # |
| 6892 | # The UID to run the entrypoint of the container process. |
| 6893 | # Defaults to user specified in image metadata if unspecified. |
| 6894 | # May also be set in PodSecurityContext. If set in both SecurityContext and |
| 6895 | # PodSecurityContext, the value specified in SecurityContext takes |
| 6896 | # precedence. |
| 6897 | }, |
| 6898 | "livenessProbe": { # Cloud Run fully managed: not supported # (Optional) |
| 6899 | # |
| 6900 | # Cloud Run fully managed: not supported |
| 6901 | # |
| 6902 | # Cloud Run for Anthos: supported |
| 6903 | # |
| 6904 | # Periodic probe of container liveness. |
| 6905 | # Container will be restarted if the probe fails. |
| 6906 | # More info: |
| 6907 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 6908 | # |
| 6909 | # Cloud Run for Anthos: supported |
| 6910 | # |
| 6911 | # Probe describes a health check to be performed against a container to |
| 6912 | # determine whether it is alive or ready to receive traffic. |
| 6913 | "httpGet": { # Cloud Run fully managed: not supported # (Optional) |
| 6914 | # |
| 6915 | # Cloud Run fully managed: not supported |
| 6916 | # |
| 6917 | # Cloud Run for Anthos: supported |
| 6918 | # |
| 6919 | # HTTPGet specifies the http request to perform. |
| 6920 | # |
| 6921 | # A field inlined from the Handler message. |
| 6922 | # |
| 6923 | # Cloud Run for Anthos: supported |
| 6924 | # |
| 6925 | # HTTPGetAction describes an action based on HTTP Get requests. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 6926 | "host": "A String", # (Optional) |
| 6927 | # |
| 6928 | # Cloud Run fully managed: not supported |
| 6929 | # |
| 6930 | # Cloud Run for Anthos: supported |
| 6931 | # |
| 6932 | # Host name to connect to, defaults to the pod IP. You probably want to set |
| 6933 | # "Host" in httpHeaders instead. |
| 6934 | "scheme": "A String", # (Optional) |
| 6935 | # |
| 6936 | # Cloud Run fully managed: not supported |
| 6937 | # |
| 6938 | # Cloud Run for Anthos: supported |
| 6939 | # |
| 6940 | # Scheme to use for connecting to the host. |
| 6941 | # Defaults to HTTP. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 6942 | "httpHeaders": [ # (Optional) |
| 6943 | # |
| 6944 | # Cloud Run fully managed: not supported |
| 6945 | # |
| 6946 | # Cloud Run for Anthos: supported |
| 6947 | # |
| 6948 | # Custom headers to set in the request. HTTP allows repeated headers. |
| 6949 | { # Cloud Run fully managed: not supported |
| 6950 | # |
| 6951 | # Cloud Run for Anthos: supported |
| 6952 | # |
| 6953 | # HTTPHeader describes a custom header to be used in HTTP probes |
| 6954 | "name": "A String", # Cloud Run fully managed: not supported |
| 6955 | # |
| 6956 | # Cloud Run for Anthos: supported |
| 6957 | # |
| 6958 | # The header field name |
| 6959 | "value": "A String", # Cloud Run fully managed: not supported |
| 6960 | # |
| 6961 | # Cloud Run for Anthos: supported |
| 6962 | # |
| 6963 | # The header field value |
| 6964 | }, |
| 6965 | ], |
| 6966 | "path": "A String", # (Optional) |
| 6967 | # |
| 6968 | # Cloud Run fully managed: not supported |
| 6969 | # |
| 6970 | # Cloud Run for Anthos: supported |
| 6971 | # |
| 6972 | # Path to access on the HTTP server. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 6973 | }, |
| 6974 | "failureThreshold": 42, # (Optional) |
| 6975 | # |
| 6976 | # Cloud Run fully managed: not supported |
| 6977 | # |
| 6978 | # Cloud Run for Anthos: supported |
| 6979 | # |
| 6980 | # Minimum consecutive failures for the probe to be considered failed after |
| 6981 | # having succeeded. Defaults to 3. Minimum value is 1. |
| 6982 | "exec": { # Cloud Run fully managed: not supported # (Optional) |
| 6983 | # |
| 6984 | # Cloud Run fully managed: not supported |
| 6985 | # |
| 6986 | # Cloud Run for Anthos: supported |
| 6987 | # |
| 6988 | # One and only one of the following should be specified. |
| 6989 | # Exec specifies the action to take. |
| 6990 | # |
| 6991 | # A field inlined from the Handler message. |
| 6992 | # |
| 6993 | # Cloud Run for Anthos: supported |
| 6994 | # |
| 6995 | # ExecAction describes a "run in container" action. |
| 6996 | "command": "A String", # (Optional) |
| 6997 | # |
| 6998 | # Cloud Run fully managed: not supported |
| 6999 | # |
| 7000 | # Cloud Run for Anthos: supported |
| 7001 | # |
| 7002 | # Command is the command line to execute inside the container, the working |
| 7003 | # directory for the command is root ('/') in the container's filesystem. The |
| 7004 | # command is simply exec'd, it is not run inside a shell, so traditional |
| 7005 | # shell instructions ('|', etc) won't work. To use a shell, you need to |
| 7006 | # explicitly call out to that shell. Exit status of 0 is treated as |
| 7007 | # live/healthy and non-zero is unhealthy. |
| 7008 | }, |
| 7009 | "initialDelaySeconds": 42, # (Optional) |
| 7010 | # |
| 7011 | # Cloud Run fully managed: not supported |
| 7012 | # |
| 7013 | # Cloud Run for Anthos: supported |
| 7014 | # |
| 7015 | # Number of seconds after the container has started before liveness probes |
| 7016 | # are initiated. More info: |
| 7017 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 7018 | "timeoutSeconds": 42, # (Optional) |
| 7019 | # |
| 7020 | # Cloud Run fully managed: not supported |
| 7021 | # |
| 7022 | # Cloud Run for Anthos: supported |
| 7023 | # |
| 7024 | # Number of seconds after which the probe times out. |
| 7025 | # Defaults to 1 second. Minimum value is 1. |
| 7026 | # More info: |
| 7027 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 7028 | "successThreshold": 42, # (Optional) |
| 7029 | # |
| 7030 | # Cloud Run fully managed: not supported |
| 7031 | # |
| 7032 | # Cloud Run for Anthos: supported |
| 7033 | # |
| 7034 | # Minimum consecutive successes for the probe to be considered successful |
| 7035 | # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value |
| 7036 | # is 1. |
| 7037 | "periodSeconds": 42, # (Optional) |
| 7038 | # |
| 7039 | # Cloud Run fully managed: not supported |
| 7040 | # |
| 7041 | # Cloud Run for Anthos: supported |
| 7042 | # |
| 7043 | # How often (in seconds) to perform the probe. |
| 7044 | # Default to 10 seconds. Minimum value is 1. |
| 7045 | "tcpSocket": { # Cloud Run fully managed: not supported # (Optional) |
| 7046 | # |
| 7047 | # Cloud Run fully managed: not supported |
| 7048 | # |
| 7049 | # Cloud Run for Anthos: supported |
| 7050 | # |
| 7051 | # TCPSocket specifies an action involving a TCP port. |
| 7052 | # TCP hooks not yet supported |
| 7053 | # |
| 7054 | # A field inlined from the Handler message. |
| 7055 | # |
| 7056 | # Cloud Run for Anthos: supported |
| 7057 | # |
| 7058 | # TCPSocketAction describes an action based on opening a socket |
| 7059 | "port": 42, # Cloud Run fully managed: not supported |
| 7060 | # |
| 7061 | # Cloud Run for Anthos: supported |
| 7062 | # |
| 7063 | # Number or name of the port to access on the container. |
| 7064 | # Number must be in the range 1 to 65535. |
| 7065 | # Name must be an IANA_SVC_NAME. |
| 7066 | # |
| 7067 | # This field is currently limited to integer types only because of proto's |
| 7068 | # inability to properly support the IntOrString golang type. |
| 7069 | "host": "A String", # (Optional) |
| 7070 | # |
| 7071 | # Cloud Run fully managed: not supported |
| 7072 | # |
| 7073 | # Cloud Run for Anthos: supported |
| 7074 | # |
| 7075 | # Optional: Host name to connect to, defaults to the pod IP. |
| 7076 | }, |
| 7077 | }, |
| 7078 | "env": [ # (Optional) |
| 7079 | # |
| 7080 | # Cloud Run fully managed: supported |
| 7081 | # |
| 7082 | # Cloud Run for Anthos: supported |
| 7083 | # |
| 7084 | # List of environment variables to set in the container. |
| 7085 | { # EnvVar represents an environment variable present in a Container. |
| 7086 | "name": "A String", # Name of the environment variable. Must be a C_IDENTIFIER. |
| 7087 | "valueFrom": { # Cloud Run fully managed: not supported # (Optional) |
| 7088 | # |
| 7089 | # Cloud Run fully managed: not supported |
| 7090 | # |
| 7091 | # Cloud Run for Anthos: supported |
| 7092 | # |
| 7093 | # Source for the environment variable's value. Cannot be used if value is not |
| 7094 | # empty. |
| 7095 | # |
| 7096 | # Cloud Run for Anthos: supported |
| 7097 | # |
| 7098 | # EnvVarSource represents a source for the value of an EnvVar. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 7099 | "configMapKeyRef": { # Cloud Run fully managed: not supported # (Optional) |
| 7100 | # |
| 7101 | # Cloud Run fully managed: not supported |
| 7102 | # |
| 7103 | # Cloud Run for Anthos: supported |
| 7104 | # |
| 7105 | # Selects a key of a ConfigMap. |
| 7106 | # |
| 7107 | # Cloud Run for Anthos: supported |
| 7108 | # |
| 7109 | # Selects a key from a ConfigMap. |
| 7110 | "optional": True or False, # (Optional) |
| 7111 | # |
| 7112 | # Cloud Run fully managed: not supported |
| 7113 | # |
| 7114 | # Cloud Run for Anthos: supported |
| 7115 | # |
| 7116 | # Specify whether the ConfigMap or its key must be defined |
| 7117 | "key": "A String", # Cloud Run fully managed: not supported |
| 7118 | # |
| 7119 | # Cloud Run for Anthos: supported |
| 7120 | # |
| 7121 | # The key to select. |
| 7122 | "name": "A String", # Cloud Run fully managed: not supported |
| 7123 | # |
| 7124 | # Cloud Run for Anthos: supported |
| 7125 | # |
| 7126 | # The ConfigMap to select from. |
| 7127 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 7128 | # directly into the message. Use the "name" field instead. |
| 7129 | # |
| 7130 | # Cloud Run for Anthos: supported |
| 7131 | # |
| 7132 | # LocalObjectReference contains enough information to let you locate the |
| 7133 | # referenced object inside the same namespace. |
| 7134 | "name": "A String", # (Optional) |
| 7135 | # |
| 7136 | # Cloud Run fully managed: not supported |
| 7137 | # |
| 7138 | # Cloud Run for Anthos: supported |
| 7139 | # |
| 7140 | # Name of the referent. |
| 7141 | # More info: |
| 7142 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 7143 | }, |
| 7144 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 7145 | "secretKeyRef": { # Cloud Run fully managed: not supported # (Optional) |
| 7146 | # |
| 7147 | # Cloud Run fully managed: not supported |
| 7148 | # |
| 7149 | # Cloud Run for Anthos: supported |
| 7150 | # |
| 7151 | # Selects a key of a secret in the pod's namespace |
| 7152 | # |
| 7153 | # Cloud Run for Anthos: supported |
| 7154 | # |
| 7155 | # SecretKeySelector selects a key of a Secret. |
| 7156 | "key": "A String", # Cloud Run fully managed: not supported |
| 7157 | # |
| 7158 | # Cloud Run for Anthos: supported |
| 7159 | # |
| 7160 | # The key of the secret to select from. Must be a valid secret key. |
| 7161 | "name": "A String", # Cloud Run fully managed: not supported |
| 7162 | # |
| 7163 | # Cloud Run for Anthos: supported |
| 7164 | # |
| 7165 | # The name of the secret in the pod's namespace to select from. |
| 7166 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 7167 | # directly into the message. Use the "name" field instead. |
| 7168 | # |
| 7169 | # Cloud Run for Anthos: supported |
| 7170 | # |
| 7171 | # LocalObjectReference contains enough information to let you locate the |
| 7172 | # referenced object inside the same namespace. |
| 7173 | "name": "A String", # (Optional) |
| 7174 | # |
| 7175 | # Cloud Run fully managed: not supported |
| 7176 | # |
| 7177 | # Cloud Run for Anthos: supported |
| 7178 | # |
| 7179 | # Name of the referent. |
| 7180 | # More info: |
| 7181 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 7182 | }, |
| 7183 | "optional": True or False, # (Optional) |
| 7184 | # |
| 7185 | # Cloud Run fully managed: not supported |
| 7186 | # |
| 7187 | # Cloud Run for Anthos: supported |
| 7188 | # |
| 7189 | # Specify whether the Secret or its key must be defined |
| 7190 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 7191 | }, |
| 7192 | "value": "A String", # (Optional) |
| 7193 | # |
| 7194 | # Variable references $(VAR_NAME) are expanded |
| 7195 | # using the previous defined environment variables in the container and |
| 7196 | # any route environment variables. If a variable cannot be resolved, |
| 7197 | # the reference in the input string will be unchanged. The $(VAR_NAME) |
| 7198 | # syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped |
| 7199 | # references will never be expanded, regardless of whether the variable |
| 7200 | # exists or not. |
| 7201 | # Defaults to "". |
| 7202 | }, |
| 7203 | ], |
| 7204 | "resources": { # ResourceRequirements describes the compute resource requirements. # (Optional) |
| 7205 | # |
| 7206 | # Cloud Run fully managed: supported |
| 7207 | # |
| 7208 | # Cloud Run for Anthos: supported |
| 7209 | # |
| 7210 | # Compute Resources required by this container. |
| 7211 | # More info: |
| 7212 | # https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources |
| 7213 | "limits": { # (Optional) |
| 7214 | # |
| 7215 | # Cloud Run fully managed: Only memory and CPU are supported. Note: The only |
| 7216 | # supported value for CPU is '1'. |
| 7217 | # |
| 7218 | # Cloud Run for Anthos: supported |
| 7219 | # |
| 7220 | # Limits describes the maximum amount of compute resources allowed. |
| 7221 | # The values of the map is string form of the 'quantity' k8s type: |
| 7222 | # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go |
| 7223 | "a_key": "A String", |
| 7224 | }, |
| 7225 | "requests": { # (Optional) |
| 7226 | # |
| 7227 | # Cloud Run fully managed: Only memory and CPU are supported. Note: The only |
| 7228 | # supported value for CPU is '1'. |
| 7229 | # |
| 7230 | # Cloud Run for Anthos: supported |
| 7231 | # |
| 7232 | # Requests describes the minimum amount of compute resources required. |
| 7233 | # If Requests is omitted for a container, it defaults to Limits if that is |
| 7234 | # explicitly specified, otherwise to an implementation-defined value. |
| 7235 | # The values of the map is string form of the 'quantity' k8s type: |
| 7236 | # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go |
| 7237 | "a_key": "A String", |
| 7238 | }, |
| 7239 | }, |
| 7240 | "readinessProbe": { # Cloud Run fully managed: not supported # (Optional) |
| 7241 | # |
| 7242 | # Cloud Run fully managed: not supported |
| 7243 | # |
| 7244 | # Cloud Run for Anthos: supported |
| 7245 | # |
| 7246 | # Periodic probe of container service readiness. |
| 7247 | # Container will be removed from service endpoints if the probe fails. |
| 7248 | # More info: |
| 7249 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 7250 | # |
| 7251 | # Cloud Run for Anthos: supported |
| 7252 | # |
| 7253 | # Probe describes a health check to be performed against a container to |
| 7254 | # determine whether it is alive or ready to receive traffic. |
| 7255 | "httpGet": { # Cloud Run fully managed: not supported # (Optional) |
| 7256 | # |
| 7257 | # Cloud Run fully managed: not supported |
| 7258 | # |
| 7259 | # Cloud Run for Anthos: supported |
| 7260 | # |
| 7261 | # HTTPGet specifies the http request to perform. |
| 7262 | # |
| 7263 | # A field inlined from the Handler message. |
| 7264 | # |
| 7265 | # Cloud Run for Anthos: supported |
| 7266 | # |
| 7267 | # HTTPGetAction describes an action based on HTTP Get requests. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 7268 | "host": "A String", # (Optional) |
| 7269 | # |
| 7270 | # Cloud Run fully managed: not supported |
| 7271 | # |
| 7272 | # Cloud Run for Anthos: supported |
| 7273 | # |
| 7274 | # Host name to connect to, defaults to the pod IP. You probably want to set |
| 7275 | # "Host" in httpHeaders instead. |
| 7276 | "scheme": "A String", # (Optional) |
| 7277 | # |
| 7278 | # Cloud Run fully managed: not supported |
| 7279 | # |
| 7280 | # Cloud Run for Anthos: supported |
| 7281 | # |
| 7282 | # Scheme to use for connecting to the host. |
| 7283 | # Defaults to HTTP. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 7284 | "httpHeaders": [ # (Optional) |
| 7285 | # |
| 7286 | # Cloud Run fully managed: not supported |
| 7287 | # |
| 7288 | # Cloud Run for Anthos: supported |
| 7289 | # |
| 7290 | # Custom headers to set in the request. HTTP allows repeated headers. |
| 7291 | { # Cloud Run fully managed: not supported |
| 7292 | # |
| 7293 | # Cloud Run for Anthos: supported |
| 7294 | # |
| 7295 | # HTTPHeader describes a custom header to be used in HTTP probes |
| 7296 | "name": "A String", # Cloud Run fully managed: not supported |
| 7297 | # |
| 7298 | # Cloud Run for Anthos: supported |
| 7299 | # |
| 7300 | # The header field name |
| 7301 | "value": "A String", # Cloud Run fully managed: not supported |
| 7302 | # |
| 7303 | # Cloud Run for Anthos: supported |
| 7304 | # |
| 7305 | # The header field value |
| 7306 | }, |
| 7307 | ], |
| 7308 | "path": "A String", # (Optional) |
| 7309 | # |
| 7310 | # Cloud Run fully managed: not supported |
| 7311 | # |
| 7312 | # Cloud Run for Anthos: supported |
| 7313 | # |
| 7314 | # Path to access on the HTTP server. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 7315 | }, |
| 7316 | "failureThreshold": 42, # (Optional) |
| 7317 | # |
| 7318 | # Cloud Run fully managed: not supported |
| 7319 | # |
| 7320 | # Cloud Run for Anthos: supported |
| 7321 | # |
| 7322 | # Minimum consecutive failures for the probe to be considered failed after |
| 7323 | # having succeeded. Defaults to 3. Minimum value is 1. |
| 7324 | "exec": { # Cloud Run fully managed: not supported # (Optional) |
| 7325 | # |
| 7326 | # Cloud Run fully managed: not supported |
| 7327 | # |
| 7328 | # Cloud Run for Anthos: supported |
| 7329 | # |
| 7330 | # One and only one of the following should be specified. |
| 7331 | # Exec specifies the action to take. |
| 7332 | # |
| 7333 | # A field inlined from the Handler message. |
| 7334 | # |
| 7335 | # Cloud Run for Anthos: supported |
| 7336 | # |
| 7337 | # ExecAction describes a "run in container" action. |
| 7338 | "command": "A String", # (Optional) |
| 7339 | # |
| 7340 | # Cloud Run fully managed: not supported |
| 7341 | # |
| 7342 | # Cloud Run for Anthos: supported |
| 7343 | # |
| 7344 | # Command is the command line to execute inside the container, the working |
| 7345 | # directory for the command is root ('/') in the container's filesystem. The |
| 7346 | # command is simply exec'd, it is not run inside a shell, so traditional |
| 7347 | # shell instructions ('|', etc) won't work. To use a shell, you need to |
| 7348 | # explicitly call out to that shell. Exit status of 0 is treated as |
| 7349 | # live/healthy and non-zero is unhealthy. |
| 7350 | }, |
| 7351 | "initialDelaySeconds": 42, # (Optional) |
| 7352 | # |
| 7353 | # Cloud Run fully managed: not supported |
| 7354 | # |
| 7355 | # Cloud Run for Anthos: supported |
| 7356 | # |
| 7357 | # Number of seconds after the container has started before liveness probes |
| 7358 | # are initiated. More info: |
| 7359 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 7360 | "timeoutSeconds": 42, # (Optional) |
| 7361 | # |
| 7362 | # Cloud Run fully managed: not supported |
| 7363 | # |
| 7364 | # Cloud Run for Anthos: supported |
| 7365 | # |
| 7366 | # Number of seconds after which the probe times out. |
| 7367 | # Defaults to 1 second. Minimum value is 1. |
| 7368 | # More info: |
| 7369 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 7370 | "successThreshold": 42, # (Optional) |
| 7371 | # |
| 7372 | # Cloud Run fully managed: not supported |
| 7373 | # |
| 7374 | # Cloud Run for Anthos: supported |
| 7375 | # |
| 7376 | # Minimum consecutive successes for the probe to be considered successful |
| 7377 | # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value |
| 7378 | # is 1. |
| 7379 | "periodSeconds": 42, # (Optional) |
| 7380 | # |
| 7381 | # Cloud Run fully managed: not supported |
| 7382 | # |
| 7383 | # Cloud Run for Anthos: supported |
| 7384 | # |
| 7385 | # How often (in seconds) to perform the probe. |
| 7386 | # Default to 10 seconds. Minimum value is 1. |
| 7387 | "tcpSocket": { # Cloud Run fully managed: not supported # (Optional) |
| 7388 | # |
| 7389 | # Cloud Run fully managed: not supported |
| 7390 | # |
| 7391 | # Cloud Run for Anthos: supported |
| 7392 | # |
| 7393 | # TCPSocket specifies an action involving a TCP port. |
| 7394 | # TCP hooks not yet supported |
| 7395 | # |
| 7396 | # A field inlined from the Handler message. |
| 7397 | # |
| 7398 | # Cloud Run for Anthos: supported |
| 7399 | # |
| 7400 | # TCPSocketAction describes an action based on opening a socket |
| 7401 | "port": 42, # Cloud Run fully managed: not supported |
| 7402 | # |
| 7403 | # Cloud Run for Anthos: supported |
| 7404 | # |
| 7405 | # Number or name of the port to access on the container. |
| 7406 | # Number must be in the range 1 to 65535. |
| 7407 | # Name must be an IANA_SVC_NAME. |
| 7408 | # |
| 7409 | # This field is currently limited to integer types only because of proto's |
| 7410 | # inability to properly support the IntOrString golang type. |
| 7411 | "host": "A String", # (Optional) |
| 7412 | # |
| 7413 | # Cloud Run fully managed: not supported |
| 7414 | # |
| 7415 | # Cloud Run for Anthos: supported |
| 7416 | # |
| 7417 | # Optional: Host name to connect to, defaults to the pod IP. |
| 7418 | }, |
| 7419 | }, |
| 7420 | "imagePullPolicy": "A String", # (Optional) |
| 7421 | # |
| 7422 | # Cloud Run fully managed: not supported |
| 7423 | # |
| 7424 | # Cloud Run for Anthos: supported |
| 7425 | # |
| 7426 | # Image pull policy. |
| 7427 | # One of Always, Never, IfNotPresent. |
| 7428 | # Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. |
| 7429 | # More info: |
| 7430 | # https://kubernetes.io/docs/concepts/containers/images#updating-images |
| 7431 | "terminationMessagePath": "A String", # (Optional) |
| 7432 | # |
| 7433 | # Cloud Run fully managed: not supported |
| 7434 | # |
| 7435 | # Cloud Run for Anthos: supported |
| 7436 | # |
| 7437 | # Path at which the file to which the container's termination |
| 7438 | # message will be written is mounted into the container's filesystem. Message |
| 7439 | # written is intended to be brief final status, such as an assertion failure |
| 7440 | # message. Will be truncated by the node if greater than 4096 bytes. The |
| 7441 | # total message length across all containers will be limited to 12kb. |
| 7442 | # Defaults to /dev/termination-log. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 7443 | "volumeMounts": [ # (Optional) |
| 7444 | # |
| 7445 | # Cloud Run fully managed: not supported |
| 7446 | # |
| 7447 | # Cloud Run for Anthos: supported |
| 7448 | # |
| 7449 | # Pod volumes to mount into the container's filesystem. |
| 7450 | { # Cloud Run fully managed: not supported |
| 7451 | # |
| 7452 | # Cloud Run for Anthos: supported |
| 7453 | # |
| 7454 | # VolumeMount describes a mounting of a Volume within a container. |
| 7455 | "mountPath": "A String", # Cloud Run fully managed: not supported |
| 7456 | # |
| 7457 | # Cloud Run for Anthos: supported |
| 7458 | # |
| 7459 | # Path within the container at which the volume should be mounted. Must |
| 7460 | # not contain ':'. |
| 7461 | "subPath": "A String", # (Optional) |
| 7462 | # |
| 7463 | # Cloud Run fully managed: not supported |
| 7464 | # |
| 7465 | # Cloud Run for Anthos: supported |
| 7466 | # |
| 7467 | # Path within the volume from which the container's volume should be mounted. |
| 7468 | # Defaults to "" (volume's root). |
| 7469 | "name": "A String", # Cloud Run fully managed: not supported |
| 7470 | # |
| 7471 | # Cloud Run for Anthos: supported |
| 7472 | # |
| 7473 | # This must match the Name of a Volume. |
| 7474 | "readOnly": True or False, # (Optional) |
| 7475 | # |
| 7476 | # Cloud Run fully managed: not supported |
| 7477 | # |
| 7478 | # Cloud Run for Anthos: supported |
| 7479 | # |
| 7480 | # Only true is accepted. |
| 7481 | # Defaults to true. |
| 7482 | }, |
| 7483 | ], |
| 7484 | "args": [ # (Optional) |
| 7485 | # |
| 7486 | # Cloud Run fully managed: supported |
| 7487 | # |
| 7488 | # Cloud Run for Anthos: supported |
| 7489 | # |
| 7490 | # Arguments to the entrypoint. |
| 7491 | # The docker image's CMD is used if this is not provided. |
| 7492 | # Variable references $(VAR_NAME) are expanded using the container's |
| 7493 | # environment. If a variable cannot be resolved, the reference in the input |
| 7494 | # string will be unchanged. The $(VAR_NAME) syntax can be escaped with a |
| 7495 | # double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, |
| 7496 | # regardless of whether the variable exists or not. |
| 7497 | # More info: |
| 7498 | # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell |
| 7499 | "A String", |
| 7500 | ], |
| 7501 | "workingDir": "A String", # (Optional) |
| 7502 | # |
| 7503 | # Cloud Run fully managed: not supported |
| 7504 | # |
| 7505 | # Cloud Run for Anthos: supported |
| 7506 | # |
| 7507 | # Container's working directory. |
| 7508 | # If not specified, the container runtime's default will be used, which |
| 7509 | # might be configured in the container image. |
| 7510 | "ports": [ # (Optional) |
| 7511 | # |
| 7512 | # List of ports to expose from the container. Only a single port can be |
| 7513 | # specified. The specified ports must be listening on all interfaces |
| 7514 | # (0.0.0.0) within the container to be accessible. |
| 7515 | # |
| 7516 | # If omitted, a port number will be chosen and passed to the container |
| 7517 | # through the PORT environment variable for the container to listen on. |
| 7518 | { # ContainerPort represents a network port in a single container. |
| 7519 | "containerPort": 42, # (Optional) |
| 7520 | # |
| 7521 | # Port number the container listens on. |
| 7522 | # This must be a valid port number, 0 < x < 65536. |
| 7523 | "protocol": "A String", # (Optional) |
| 7524 | # |
| 7525 | # Cloud Run fully managed: not supported |
| 7526 | # |
| 7527 | # Cloud Run for Anthos: supported |
| 7528 | # |
| 7529 | # Protocol for port. Must be "TCP". |
| 7530 | # Defaults to "TCP". |
| 7531 | "name": "A String", # (Optional) |
| 7532 | # |
| 7533 | # Cloud Run fully managed: not supported |
| 7534 | # |
| 7535 | # Cloud Run for Anthos: supported |
| 7536 | # |
| 7537 | # If specified, used to specify which protocol to use. |
| 7538 | # Allowed values are "http1" and "h2c". |
| 7539 | }, |
| 7540 | ], |
| 7541 | "image": "A String", # Cloud Run fully managed: only supports containers from Google Container |
| 7542 | # Registry |
| 7543 | # |
| 7544 | # Cloud Run for Anthos: supported |
| 7545 | # |
| 7546 | # URL of the Container image. |
| 7547 | # More info: https://kubernetes.io/docs/concepts/containers/images |
| 7548 | "envFrom": [ # (Optional) |
| 7549 | # |
| 7550 | # Cloud Run fully managed: not supported |
| 7551 | # |
| 7552 | # Cloud Run for Anthos: supported |
| 7553 | # |
| 7554 | # List of sources to populate environment variables in the container. |
| 7555 | # The keys defined within a source must be a C_IDENTIFIER. All invalid keys |
| 7556 | # will be reported as an event when the container is starting. When a key |
| 7557 | # exists in multiple sources, the value associated with the last source will |
| 7558 | # take precedence. Values defined by an Env with a duplicate key will take |
| 7559 | # precedence. Cannot be updated. |
| 7560 | { # Cloud Run fully managed: not supported |
| 7561 | # |
| 7562 | # Cloud Run for Anthos: supported |
| 7563 | # |
| 7564 | # EnvFromSource represents the source of a set of ConfigMaps |
| 7565 | "secretRef": { # Cloud Run fully managed: not supported # (Optional) |
| 7566 | # |
| 7567 | # Cloud Run fully managed: not supported |
| 7568 | # |
| 7569 | # Cloud Run for Anthos: supported |
| 7570 | # |
| 7571 | # The Secret to select from |
| 7572 | # |
| 7573 | # Cloud Run for Anthos: supported |
| 7574 | # |
| 7575 | # SecretEnvSource selects a Secret to populate the environment |
| 7576 | # variables with. |
| 7577 | # |
| 7578 | # The contents of the target Secret's Data field will represent the |
| 7579 | # key-value pairs as environment variables. |
| 7580 | "name": "A String", # Cloud Run fully managed: not supported |
| 7581 | # |
| 7582 | # Cloud Run for Anthos: supported |
| 7583 | # |
| 7584 | # The Secret to select from. |
| 7585 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 7586 | # directly into the message. Use the "name" field instead. |
| 7587 | # |
| 7588 | # Cloud Run for Anthos: supported |
| 7589 | # |
| 7590 | # LocalObjectReference contains enough information to let you locate the |
| 7591 | # referenced object inside the same namespace. |
| 7592 | "name": "A String", # (Optional) |
| 7593 | # |
| 7594 | # Cloud Run fully managed: not supported |
| 7595 | # |
| 7596 | # Cloud Run for Anthos: supported |
| 7597 | # |
| 7598 | # Name of the referent. |
| 7599 | # More info: |
| 7600 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 7601 | }, |
| 7602 | "optional": True or False, # (Optional) |
| 7603 | # |
| 7604 | # Cloud Run fully managed: not supported |
| 7605 | # |
| 7606 | # Cloud Run for Anthos: supported |
| 7607 | # |
| 7608 | # Specify whether the Secret must be defined |
| 7609 | }, |
| 7610 | "prefix": "A String", # (Optional) |
| 7611 | # |
| 7612 | # Cloud Run fully managed: not supported |
| 7613 | # |
| 7614 | # Cloud Run for Anthos: supported |
| 7615 | # |
| 7616 | # An optional identifier to prepend to each key in the ConfigMap. Must be a |
| 7617 | # C_IDENTIFIER. |
| 7618 | "configMapRef": { # Cloud Run fully managed: not supported # (Optional) |
| 7619 | # |
| 7620 | # Cloud Run fully managed: not supported |
| 7621 | # |
| 7622 | # Cloud Run for Anthos: supported |
| 7623 | # |
| 7624 | # The ConfigMap to select from |
| 7625 | # |
| 7626 | # Cloud Run for Anthos: supported |
| 7627 | # |
| 7628 | # ConfigMapEnvSource selects a ConfigMap to populate the environment |
| 7629 | # variables with. |
| 7630 | # |
| 7631 | # The contents of the target ConfigMap's Data field will represent the |
| 7632 | # key-value pairs as environment variables. |
| 7633 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 7634 | # directly into the message. Use the "name" field instead. |
| 7635 | # |
| 7636 | # Cloud Run for Anthos: supported |
| 7637 | # |
| 7638 | # LocalObjectReference contains enough information to let you locate the |
| 7639 | # referenced object inside the same namespace. |
| 7640 | "name": "A String", # (Optional) |
| 7641 | # |
| 7642 | # Cloud Run fully managed: not supported |
| 7643 | # |
| 7644 | # Cloud Run for Anthos: supported |
| 7645 | # |
| 7646 | # Name of the referent. |
| 7647 | # More info: |
| 7648 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 7649 | }, |
| 7650 | "optional": True or False, # (Optional) |
| 7651 | # |
| 7652 | # Cloud Run fully managed: not supported |
| 7653 | # |
| 7654 | # Cloud Run for Anthos: supported |
| 7655 | # |
| 7656 | # Specify whether the ConfigMap must be defined |
| 7657 | "name": "A String", # Cloud Run fully managed: not supported |
| 7658 | # |
| 7659 | # Cloud Run for Anthos: supported |
| 7660 | # |
| 7661 | # The ConfigMap to select from. |
| 7662 | }, |
| 7663 | }, |
| 7664 | ], |
| 7665 | "name": "A String", # (Optional) |
| 7666 | # |
| 7667 | # Name of the container specified as a DNS_LABEL. |
| 7668 | "command": [ |
| 7669 | "A String", |
| 7670 | ], |
| 7671 | "terminationMessagePolicy": "A String", # (Optional) |
| 7672 | # |
| 7673 | # Cloud Run fully managed: not supported |
| 7674 | # |
| 7675 | # Cloud Run for Anthos: supported |
| 7676 | # |
| 7677 | # Indicate how the termination message should be populated. File will use the |
| 7678 | # contents of terminationMessagePath to populate the container status message |
| 7679 | # on both success and failure. FallbackToLogsOnError will use the last chunk |
| 7680 | # of container log output if the termination message file is empty and the |
| 7681 | # container exited with an error. The log output is limited to 2048 bytes or |
| 7682 | # 80 lines, whichever is smaller. Defaults to File. Cannot be updated. |
| 7683 | }, |
| 7684 | ], |
| 7685 | "volumes": [ |
| 7686 | { # Cloud Run fully managed: not supported |
| 7687 | # |
| 7688 | # Cloud Run for Anthos: supported |
| 7689 | # |
| 7690 | # Volume represents a named volume in a container. |
| 7691 | "configMap": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported |
| 7692 | # |
| 7693 | # Cloud Run for Anthos: supported |
| 7694 | # |
| 7695 | # Cloud Run for Anthos: supported |
| 7696 | # |
| 7697 | # Adapts a ConfigMap into a volume. |
| 7698 | # The contents of the target ConfigMap's Data field will be presented in a |
| 7699 | # volume as files using the keys in the Data field as the file names, unless |
| 7700 | # the items element is populated with specific mappings of keys to paths. |
| 7701 | "optional": True or False, # (Optional) |
| 7702 | # |
| 7703 | # Cloud Run fully managed: not supported |
| 7704 | # |
| 7705 | # Cloud Run for Anthos: supported |
| 7706 | # |
| 7707 | # Specify whether the Secret or its keys must be defined. |
| 7708 | "name": "A String", # Cloud Run fully managed: not supported |
| 7709 | # |
| 7710 | # Cloud Run for Anthos: supported |
| 7711 | # |
| 7712 | # Name of the config. |
| 7713 | "defaultMode": 42, # (Optional) |
| 7714 | # |
| 7715 | # Cloud Run fully managed: not supported |
| 7716 | # |
| 7717 | # Cloud Run for Anthos: supported |
| 7718 | # |
| 7719 | # Mode bits to use on created files by default. Must be a value between 0 and |
| 7720 | # 0777. Defaults to 0644. Directories within the path are not affected by |
| 7721 | # this setting. This might be in conflict with other options that affect the |
| 7722 | # file mode, like fsGroup, and the result can be other mode bits set. |
| 7723 | "items": [ # (Optional) |
| 7724 | # |
| 7725 | # Cloud Run fully managed: not supported |
| 7726 | # |
| 7727 | # Cloud Run for Anthos: supported |
| 7728 | # |
| 7729 | # If unspecified, each key-value pair in the Data field of the referenced |
| 7730 | # Secret will be projected into the volume as a file whose name is the |
| 7731 | # key and content is the value. If specified, the listed keys will be |
| 7732 | # projected into the specified paths, and unlisted keys will not be |
| 7733 | # present. If a key is specified which is not present in the Secret, |
| 7734 | # the volume setup will error unless it is marked optional. |
| 7735 | { # Cloud Run fully managed: not supported |
| 7736 | # |
| 7737 | # Cloud Run for Anthos: supported |
| 7738 | # |
| 7739 | # Maps a string key to a path within a volume. |
| 7740 | "key": "A String", # Cloud Run fully managed: not supported |
| 7741 | # |
| 7742 | # Cloud Run for Anthos: supported |
| 7743 | # |
| 7744 | # The key to project. |
| 7745 | "path": "A String", # Cloud Run fully managed: not supported |
| 7746 | # |
| 7747 | # Cloud Run for Anthos: supported |
| 7748 | # |
| 7749 | # The relative path of the file to map the key to. |
| 7750 | # May not be an absolute path. |
| 7751 | # May not contain the path element '..'. |
| 7752 | # May not start with the string '..'. |
| 7753 | "mode": 42, # (Optional) |
| 7754 | # |
| 7755 | # Cloud Run fully managed: not supported |
| 7756 | # |
| 7757 | # Cloud Run for Anthos: supported |
| 7758 | # |
| 7759 | # Mode bits to use on this file, must be a value between 0 and 0777. If not |
| 7760 | # specified, the volume defaultMode will be used. This might be in conflict |
| 7761 | # with other options that affect the file mode, like fsGroup, and the result |
| 7762 | # can be other mode bits set. |
| 7763 | }, |
| 7764 | ], |
| 7765 | }, |
| 7766 | "name": "A String", # Cloud Run fully managed: not supported |
| 7767 | # |
| 7768 | # Cloud Run for Anthos: supported |
| 7769 | # |
| 7770 | # Volume's name. |
| 7771 | "secret": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported |
| 7772 | # |
| 7773 | # Cloud Run for Anthos: supported |
| 7774 | # |
| 7775 | # Cloud Run for Anthos: supported |
| 7776 | # |
| 7777 | # The contents of the target Secret's Data field will be presented in a volume |
| 7778 | # as files using the keys in the Data field as the file names. |
| 7779 | "secretName": "A String", # Cloud Run fully managed: not supported |
| 7780 | # |
| 7781 | # Cloud Run for Anthos: supported |
| 7782 | # |
| 7783 | # Name of the secret in the container's namespace to use. |
| 7784 | "items": [ # (Optional) |
| 7785 | # |
| 7786 | # Cloud Run fully managed: not supported |
| 7787 | # |
| 7788 | # Cloud Run for Anthos: supported |
| 7789 | # |
| 7790 | # If unspecified, each key-value pair in the Data field of the referenced |
| 7791 | # Secret will be projected into the volume as a file whose name is the |
| 7792 | # key and content is the value. If specified, the listed keys will be |
| 7793 | # projected into the specified paths, and unlisted keys will not be |
| 7794 | # present. If a key is specified which is not present in the Secret, |
| 7795 | # the volume setup will error unless it is marked optional. |
| 7796 | { # Cloud Run fully managed: not supported |
| 7797 | # |
| 7798 | # Cloud Run for Anthos: supported |
| 7799 | # |
| 7800 | # Maps a string key to a path within a volume. |
| 7801 | "key": "A String", # Cloud Run fully managed: not supported |
| 7802 | # |
| 7803 | # Cloud Run for Anthos: supported |
| 7804 | # |
| 7805 | # The key to project. |
| 7806 | "path": "A String", # Cloud Run fully managed: not supported |
| 7807 | # |
| 7808 | # Cloud Run for Anthos: supported |
| 7809 | # |
| 7810 | # The relative path of the file to map the key to. |
| 7811 | # May not be an absolute path. |
| 7812 | # May not contain the path element '..'. |
| 7813 | # May not start with the string '..'. |
| 7814 | "mode": 42, # (Optional) |
| 7815 | # |
| 7816 | # Cloud Run fully managed: not supported |
| 7817 | # |
| 7818 | # Cloud Run for Anthos: supported |
| 7819 | # |
| 7820 | # Mode bits to use on this file, must be a value between 0 and 0777. If not |
| 7821 | # specified, the volume defaultMode will be used. This might be in conflict |
| 7822 | # with other options that affect the file mode, like fsGroup, and the result |
| 7823 | # can be other mode bits set. |
| 7824 | }, |
| 7825 | ], |
| 7826 | "optional": True or False, # (Optional) |
| 7827 | # |
| 7828 | # Cloud Run fully managed: not supported |
| 7829 | # |
| 7830 | # Cloud Run for Anthos: supported |
| 7831 | # |
| 7832 | # Specify whether the Secret or its keys must be defined. |
| 7833 | "defaultMode": 42, # (Optional) |
| 7834 | # |
| 7835 | # Cloud Run fully managed: not supported |
| 7836 | # |
| 7837 | # Cloud Run for Anthos: supported |
| 7838 | # |
| 7839 | # Mode bits to use on created files by default. Must be a value between 0 and |
| 7840 | # 0777. Defaults to 0644. Directories within the path are not affected by |
| 7841 | # this setting. This might be in conflict with other options that affect the |
| 7842 | # file mode, like fsGroup, and the result can be other mode bits set. |
| 7843 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 7844 | }, |
| 7845 | ], |
| 7846 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 7847 | "metadata": { # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # Optional metadata for this Revision, including labels and annotations. Name |
| 7848 | # will be generated by the Configuration. |
| 7849 | # To set minimum instances for this revision, use the |
| 7850 | # "autoscaling.knative.dev/minScale" annotation key. |
| 7851 | # To set maximum instances for this revision, use the |
| 7852 | # "autoscaling.knative.dev/maxScale" annotation key. |
| 7853 | # To set Cloud SQL connections for the revision, use the |
| 7854 | # "run.googleapis.com/cloudsql-instances" annotation key. |
| 7855 | # persisted resources must have, which includes all objects users must create. |
| 7856 | "annotations": { # (Optional) |
| 7857 | # |
| 7858 | # Annotations is an unstructured key value map stored with a resource that |
| 7859 | # may be set by external tools to store and retrieve arbitrary metadata. They |
| 7860 | # are not queryable and should be preserved when modifying objects. More |
| 7861 | # info: http://kubernetes.io/docs/user-guide/annotations |
| 7862 | "a_key": "A String", |
| 7863 | }, |
| 7864 | "generateName": "A String", # (Optional) |
| 7865 | # |
| 7866 | # Cloud Run fully managed: not supported |
| 7867 | # |
| 7868 | # Cloud Run for Anthos: supported |
| 7869 | # |
| 7870 | # GenerateName is an optional prefix, used by the server, to generate a |
| 7871 | # unique name ONLY IF the Name field has not been provided. If this field is |
| 7872 | # used, the name returned to the client will be different than the name |
| 7873 | # passed. This value will also be combined with a unique suffix. The provided |
| 7874 | # value has the same validation rules as the Name field, and may be truncated |
| 7875 | # by the length of the suffix required to make the value unique on the |
| 7876 | # server. |
| 7877 | # |
| 7878 | # If this field is specified and the generated name exists, the server will |
| 7879 | # NOT return a 409 - instead, it will either return 201 Created or 500 with |
| 7880 | # Reason ServerTimeout indicating a unique name could not be found in the |
| 7881 | # time allotted, and the client should retry (optionally after the time |
| 7882 | # indicated in the Retry-After header). |
| 7883 | # |
| 7884 | # Applied only if Name is not specified. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 7885 | # More info: |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 7886 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency |
| 7887 | # string generateName = 2; |
| 7888 | "name": "A String", # Name must be unique within a namespace, within a Cloud Run region. |
| 7889 | # Is required when creating |
| 7890 | # resources, although some resources may allow a client to request the |
| 7891 | # generation of an appropriate name automatically. Name is primarily intended |
| 7892 | # for creation idempotence and configuration definition. Cannot be updated. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 7893 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 7894 | # +optional |
| 7895 | "deletionGracePeriodSeconds": 42, # (Optional) |
| 7896 | # |
| 7897 | # Cloud Run fully managed: not supported |
| 7898 | # |
| 7899 | # Cloud Run for Anthos: supported |
| 7900 | # |
| 7901 | # Number of seconds allowed for this object to gracefully terminate before |
| 7902 | # it will be removed from the system. Only set when deletionTimestamp is also |
| 7903 | # set. May only be shortened. Read-only. |
| 7904 | "clusterName": "A String", # (Optional) |
| 7905 | # |
| 7906 | # Cloud Run fully managed: not supported |
| 7907 | # |
| 7908 | # Cloud Run for Anthos: supported |
| 7909 | # |
| 7910 | # The name of the cluster which the object belongs to. |
| 7911 | # This is used to distinguish resources with same name and namespace in |
| 7912 | # different clusters. This field is not set anywhere right now and apiserver |
| 7913 | # is going to ignore it if set in create or update request. |
| 7914 | "finalizers": [ # (Optional) |
| 7915 | # |
| 7916 | # Cloud Run fully managed: not supported |
| 7917 | # |
| 7918 | # Cloud Run for Anthos: supported |
| 7919 | # |
| 7920 | # Must be empty before the object is deleted from the registry. Each entry |
| 7921 | # is an identifier for the responsible component that will remove the entry |
| 7922 | # from the list. If the deletionTimestamp of the object is non-nil, entries |
| 7923 | # in this list can only be removed. |
| 7924 | # +patchStrategy=merge |
| 7925 | "A String", |
| 7926 | ], |
| 7927 | "deletionTimestamp": "A String", # (Optional) |
| 7928 | # |
| 7929 | # Cloud Run fully managed: not supported |
| 7930 | # |
| 7931 | # Cloud Run for Anthos: supported |
| 7932 | # |
| 7933 | # DeletionTimestamp is RFC 3339 date and time at which this resource will be |
| 7934 | # deleted. This field is set by the server when a graceful deletion is |
| 7935 | # requested by the user, and is not directly settable by a client. The |
| 7936 | # resource is expected to be deleted (no longer visible from resource lists, |
| 7937 | # and not reachable by name) after the time in this field, once the |
| 7938 | # finalizers list is empty. As long as the finalizers list contains items, |
| 7939 | # deletion is blocked. Once the deletionTimestamp is set, this value may not |
| 7940 | # be unset or be set further into the future, although it may be shortened or |
| 7941 | # the resource may be deleted prior to this time. For example, a user may |
| 7942 | # request that a pod is deleted in 30 seconds. The Kubelet will react by |
| 7943 | # sending a graceful termination signal to the containers in the pod. After |
| 7944 | # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) |
| 7945 | # to the container and after cleanup, remove the pod from the API. In the |
| 7946 | # presence of network partitions, this object may still exist after this |
| 7947 | # timestamp, until an administrator or automated process can determine the |
| 7948 | # resource is fully terminated. |
| 7949 | # If not set, graceful deletion of the object has not been requested. |
| 7950 | # |
| 7951 | # Populated by the system when a graceful deletion is requested. |
| 7952 | # Read-only. |
| 7953 | # More info: |
| 7954 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 7955 | "ownerReferences": [ # (Optional) |
| 7956 | # |
| 7957 | # Cloud Run fully managed: not supported |
| 7958 | # |
| 7959 | # Cloud Run for Anthos: supported |
| 7960 | # |
| 7961 | # List of objects that own this object. If ALL objects in the list have |
| 7962 | # been deleted, this object will be garbage collected. |
| 7963 | { # OwnerReference contains enough information to let you identify an owning |
| 7964 | # object. Currently, an owning object must be in the same namespace, so there |
| 7965 | # is no namespace field. |
| 7966 | "controller": True or False, # If true, this reference points to the managing controller. |
| 7967 | # +optional |
| 7968 | "kind": "A String", # Kind of the referent. |
| 7969 | # More info: |
| 7970 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds |
| 7971 | "blockOwnerDeletion": True or False, # If true, AND if the owner has the "foregroundDeletion" finalizer, then |
| 7972 | # the owner cannot be deleted from the key-value store until this |
| 7973 | # reference is removed. |
| 7974 | # Defaults to false. |
| 7975 | # To set this field, a user needs "delete" permission of the owner, |
| 7976 | # otherwise 422 (Unprocessable Entity) will be returned. |
| 7977 | # +optional |
| 7978 | "apiVersion": "A String", # API version of the referent. |
| 7979 | "name": "A String", # Name of the referent. |
| 7980 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 7981 | "uid": "A String", # UID of the referent. |
| 7982 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 7983 | }, |
| 7984 | ], |
| 7985 | "creationTimestamp": "A String", # (Optional) |
| 7986 | # |
| 7987 | # CreationTimestamp is a timestamp representing the server time when this |
| 7988 | # object was created. It is not guaranteed to be set in happens-before order |
| 7989 | # across separate operations. Clients may not set this value. It is |
| 7990 | # represented in RFC3339 form and is in UTC. |
| 7991 | # |
| 7992 | # Populated by the system. |
| 7993 | # Read-only. |
| 7994 | # Null for lists. |
| 7995 | # More info: |
| 7996 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 7997 | "labels": { # (Optional) |
| 7998 | # |
| 7999 | # Map of string keys and values that can be used to organize and categorize |
| 8000 | # (scope and select) objects. May match selectors of replication controllers |
| 8001 | # and routes. |
| 8002 | # More info: http://kubernetes.io/docs/user-guide/labels |
| 8003 | "a_key": "A String", |
| 8004 | }, |
| 8005 | "generation": 42, # (Optional) |
| 8006 | # |
| 8007 | # A sequence number representing a specific generation of the desired state. |
| 8008 | # Populated by the system. Read-only. |
| 8009 | "resourceVersion": "A String", # (Optional) |
| 8010 | # |
| 8011 | # An opaque value that represents the internal version of this object that |
| 8012 | # can be used by clients to determine when objects have changed. May be used |
| 8013 | # for optimistic concurrency, change detection, and the watch operation on a |
| 8014 | # resource or set of resources. Clients must treat these values as opaque and |
| 8015 | # passed unmodified back to the server. They may only be valid for a |
| 8016 | # particular resource or set of resources. |
| 8017 | # |
| 8018 | # Populated by the system. |
| 8019 | # Read-only. |
| 8020 | # Value must be treated as opaque by clients and . |
| 8021 | # More info: |
| 8022 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency |
| 8023 | "selfLink": "A String", # (Optional) |
| 8024 | # |
| 8025 | # SelfLink is a URL representing this object. |
| 8026 | # Populated by the system. |
| 8027 | # Read-only. |
| 8028 | # string selfLink = 4; |
| 8029 | "uid": "A String", # (Optional) |
| 8030 | # |
| 8031 | # UID is the unique in time and space value for this object. It is typically |
| 8032 | # generated by the server on successful creation of a resource and is not |
| 8033 | # allowed to change on PUT operations. |
| 8034 | # |
| 8035 | # Populated by the system. |
| 8036 | # Read-only. |
| 8037 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 8038 | "namespace": "A String", # Namespace defines the space within each name must be unique, within a |
| 8039 | # Cloud Run region. In Cloud Run the namespace must be equal to either the |
| 8040 | # project ID or project number. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 8041 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 8042 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 8043 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 8044 | } |
| 8045 | |
| 8046 | x__xgafv: string, V1 error format. |
| 8047 | Allowed values |
| 8048 | 1 - v1 error format |
| 8049 | 2 - v2 error format |
| 8050 | |
| 8051 | Returns: |
| 8052 | An object of the form: |
| 8053 | |
| 8054 | { # Service acts as a top-level container that manages a set of Routes and |
| 8055 | # Configurations which implement a network service. Service exists to provide a |
| 8056 | # singular abstraction which can be access controlled, reasoned about, and |
| 8057 | # which encapsulates software lifecycle decisions such as rollout policy and |
| 8058 | # team resource ownership. Service acts only as an orchestrator of the |
| 8059 | # underlying Routes and Configurations (much as a kubernetes Deployment |
| 8060 | # orchestrates ReplicaSets). |
| 8061 | # |
| 8062 | # The Service's controller will track the statuses of its owned Configuration |
| 8063 | # and Route, reflecting their statuses and conditions as its own. |
| 8064 | # |
| 8065 | # See also: |
| 8066 | # https://github.com/knative/serving/blob/master/docs/spec/overview.md#service |
| 8067 | "kind": "A String", # The kind of resource, in this case "Service". |
| 8068 | "metadata": { # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # Metadata associated with this Service, including name, namespace, labels, |
| 8069 | # and annotations. |
| 8070 | # persisted resources must have, which includes all objects users must create. |
| 8071 | "annotations": { # (Optional) |
| 8072 | # |
| 8073 | # Annotations is an unstructured key value map stored with a resource that |
| 8074 | # may be set by external tools to store and retrieve arbitrary metadata. They |
| 8075 | # are not queryable and should be preserved when modifying objects. More |
| 8076 | # info: http://kubernetes.io/docs/user-guide/annotations |
| 8077 | "a_key": "A String", |
| 8078 | }, |
| 8079 | "generateName": "A String", # (Optional) |
| 8080 | # |
| 8081 | # Cloud Run fully managed: not supported |
| 8082 | # |
| 8083 | # Cloud Run for Anthos: supported |
| 8084 | # |
| 8085 | # GenerateName is an optional prefix, used by the server, to generate a |
| 8086 | # unique name ONLY IF the Name field has not been provided. If this field is |
| 8087 | # used, the name returned to the client will be different than the name |
| 8088 | # passed. This value will also be combined with a unique suffix. The provided |
| 8089 | # value has the same validation rules as the Name field, and may be truncated |
| 8090 | # by the length of the suffix required to make the value unique on the |
| 8091 | # server. |
| 8092 | # |
| 8093 | # If this field is specified and the generated name exists, the server will |
| 8094 | # NOT return a 409 - instead, it will either return 201 Created or 500 with |
| 8095 | # Reason ServerTimeout indicating a unique name could not be found in the |
| 8096 | # time allotted, and the client should retry (optionally after the time |
| 8097 | # indicated in the Retry-After header). |
| 8098 | # |
| 8099 | # Applied only if Name is not specified. |
| 8100 | # More info: |
| 8101 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency |
| 8102 | # string generateName = 2; |
| 8103 | "name": "A String", # Name must be unique within a namespace, within a Cloud Run region. |
| 8104 | # Is required when creating |
| 8105 | # resources, although some resources may allow a client to request the |
| 8106 | # generation of an appropriate name automatically. Name is primarily intended |
| 8107 | # for creation idempotence and configuration definition. Cannot be updated. |
| 8108 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 8109 | # +optional |
| 8110 | "deletionGracePeriodSeconds": 42, # (Optional) |
| 8111 | # |
| 8112 | # Cloud Run fully managed: not supported |
| 8113 | # |
| 8114 | # Cloud Run for Anthos: supported |
| 8115 | # |
| 8116 | # Number of seconds allowed for this object to gracefully terminate before |
| 8117 | # it will be removed from the system. Only set when deletionTimestamp is also |
| 8118 | # set. May only be shortened. Read-only. |
| 8119 | "clusterName": "A String", # (Optional) |
| 8120 | # |
| 8121 | # Cloud Run fully managed: not supported |
| 8122 | # |
| 8123 | # Cloud Run for Anthos: supported |
| 8124 | # |
| 8125 | # The name of the cluster which the object belongs to. |
| 8126 | # This is used to distinguish resources with same name and namespace in |
| 8127 | # different clusters. This field is not set anywhere right now and apiserver |
| 8128 | # is going to ignore it if set in create or update request. |
| 8129 | "finalizers": [ # (Optional) |
| 8130 | # |
| 8131 | # Cloud Run fully managed: not supported |
| 8132 | # |
| 8133 | # Cloud Run for Anthos: supported |
| 8134 | # |
| 8135 | # Must be empty before the object is deleted from the registry. Each entry |
| 8136 | # is an identifier for the responsible component that will remove the entry |
| 8137 | # from the list. If the deletionTimestamp of the object is non-nil, entries |
| 8138 | # in this list can only be removed. |
| 8139 | # +patchStrategy=merge |
| 8140 | "A String", |
| 8141 | ], |
| 8142 | "deletionTimestamp": "A String", # (Optional) |
| 8143 | # |
| 8144 | # Cloud Run fully managed: not supported |
| 8145 | # |
| 8146 | # Cloud Run for Anthos: supported |
| 8147 | # |
| 8148 | # DeletionTimestamp is RFC 3339 date and time at which this resource will be |
| 8149 | # deleted. This field is set by the server when a graceful deletion is |
| 8150 | # requested by the user, and is not directly settable by a client. The |
| 8151 | # resource is expected to be deleted (no longer visible from resource lists, |
| 8152 | # and not reachable by name) after the time in this field, once the |
| 8153 | # finalizers list is empty. As long as the finalizers list contains items, |
| 8154 | # deletion is blocked. Once the deletionTimestamp is set, this value may not |
| 8155 | # be unset or be set further into the future, although it may be shortened or |
| 8156 | # the resource may be deleted prior to this time. For example, a user may |
| 8157 | # request that a pod is deleted in 30 seconds. The Kubelet will react by |
| 8158 | # sending a graceful termination signal to the containers in the pod. After |
| 8159 | # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) |
| 8160 | # to the container and after cleanup, remove the pod from the API. In the |
| 8161 | # presence of network partitions, this object may still exist after this |
| 8162 | # timestamp, until an administrator or automated process can determine the |
| 8163 | # resource is fully terminated. |
| 8164 | # If not set, graceful deletion of the object has not been requested. |
| 8165 | # |
| 8166 | # Populated by the system when a graceful deletion is requested. |
| 8167 | # Read-only. |
| 8168 | # More info: |
| 8169 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 8170 | "ownerReferences": [ # (Optional) |
| 8171 | # |
| 8172 | # Cloud Run fully managed: not supported |
| 8173 | # |
| 8174 | # Cloud Run for Anthos: supported |
| 8175 | # |
| 8176 | # List of objects that own this object. If ALL objects in the list have |
| 8177 | # been deleted, this object will be garbage collected. |
| 8178 | { # OwnerReference contains enough information to let you identify an owning |
| 8179 | # object. Currently, an owning object must be in the same namespace, so there |
| 8180 | # is no namespace field. |
| 8181 | "controller": True or False, # If true, this reference points to the managing controller. |
| 8182 | # +optional |
| 8183 | "kind": "A String", # Kind of the referent. |
| 8184 | # More info: |
| 8185 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds |
| 8186 | "blockOwnerDeletion": True or False, # If true, AND if the owner has the "foregroundDeletion" finalizer, then |
| 8187 | # the owner cannot be deleted from the key-value store until this |
| 8188 | # reference is removed. |
| 8189 | # Defaults to false. |
| 8190 | # To set this field, a user needs "delete" permission of the owner, |
| 8191 | # otherwise 422 (Unprocessable Entity) will be returned. |
| 8192 | # +optional |
| 8193 | "apiVersion": "A String", # API version of the referent. |
| 8194 | "name": "A String", # Name of the referent. |
| 8195 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 8196 | "uid": "A String", # UID of the referent. |
| 8197 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 8198 | }, |
| 8199 | ], |
| 8200 | "creationTimestamp": "A String", # (Optional) |
| 8201 | # |
| 8202 | # CreationTimestamp is a timestamp representing the server time when this |
| 8203 | # object was created. It is not guaranteed to be set in happens-before order |
| 8204 | # across separate operations. Clients may not set this value. It is |
| 8205 | # represented in RFC3339 form and is in UTC. |
| 8206 | # |
| 8207 | # Populated by the system. |
| 8208 | # Read-only. |
| 8209 | # Null for lists. |
| 8210 | # More info: |
| 8211 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 8212 | "labels": { # (Optional) |
| 8213 | # |
| 8214 | # Map of string keys and values that can be used to organize and categorize |
| 8215 | # (scope and select) objects. May match selectors of replication controllers |
| 8216 | # and routes. |
| 8217 | # More info: http://kubernetes.io/docs/user-guide/labels |
| 8218 | "a_key": "A String", |
| 8219 | }, |
| 8220 | "generation": 42, # (Optional) |
| 8221 | # |
| 8222 | # A sequence number representing a specific generation of the desired state. |
| 8223 | # Populated by the system. Read-only. |
| 8224 | "resourceVersion": "A String", # (Optional) |
| 8225 | # |
| 8226 | # An opaque value that represents the internal version of this object that |
| 8227 | # can be used by clients to determine when objects have changed. May be used |
| 8228 | # for optimistic concurrency, change detection, and the watch operation on a |
| 8229 | # resource or set of resources. Clients must treat these values as opaque and |
| 8230 | # passed unmodified back to the server. They may only be valid for a |
| 8231 | # particular resource or set of resources. |
| 8232 | # |
| 8233 | # Populated by the system. |
| 8234 | # Read-only. |
| 8235 | # Value must be treated as opaque by clients and . |
| 8236 | # More info: |
| 8237 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency |
| 8238 | "selfLink": "A String", # (Optional) |
| 8239 | # |
| 8240 | # SelfLink is a URL representing this object. |
| 8241 | # Populated by the system. |
| 8242 | # Read-only. |
| 8243 | # string selfLink = 4; |
| 8244 | "uid": "A String", # (Optional) |
| 8245 | # |
| 8246 | # UID is the unique in time and space value for this object. It is typically |
| 8247 | # generated by the server on successful creation of a resource and is not |
| 8248 | # allowed to change on PUT operations. |
| 8249 | # |
| 8250 | # Populated by the system. |
| 8251 | # Read-only. |
| 8252 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 8253 | "namespace": "A String", # Namespace defines the space within each name must be unique, within a |
| 8254 | # Cloud Run region. In Cloud Run the namespace must be equal to either the |
| 8255 | # project ID or project number. |
| 8256 | }, |
| 8257 | "status": { # The current state of the Service. Output only. # Status communicates the observed state of the Service (from the |
| 8258 | # controller). |
| 8259 | "latestCreatedRevisionName": "A String", # From ConfigurationStatus. |
| 8260 | # LatestCreatedRevisionName is the last revision that was created from this |
| 8261 | # Service's Configuration. It might not be ready yet, for that use |
| 8262 | # LatestReadyRevisionName. |
| 8263 | "conditions": [ # Conditions communicates information about ongoing/complete |
| 8264 | # reconciliation processes that bring the "spec" inline with the observed |
| 8265 | # state of the world. |
| 8266 | # Service-specific conditions include: |
| 8267 | # * "ConfigurationsReady": true when the underlying Configuration is ready. |
| 8268 | # * "RoutesReady": true when the underlying Route is ready. |
| 8269 | # * "Ready": true when both the underlying Route and Configuration are |
| 8270 | # ready. |
| 8271 | { # Condition defines a generic condition for a Resource |
| 8272 | "message": "A String", # Optional. Human readable message indicating details about the current status. |
| 8273 | "lastTransitionTime": "A String", # Optional. Last time the condition transitioned from one status to another. |
| 8274 | "status": "A String", # Status of the condition, one of True, False, Unknown. |
| 8275 | "severity": "A String", # Optional. How to interpret failures of this condition, one of Error, Warning, Info |
| 8276 | "reason": "A String", # Optional. One-word CamelCase reason for the condition's last transition. |
| 8277 | "type": "A String", # type is used to communicate the status of the reconciliation process. |
| 8278 | # See also: |
| 8279 | # https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-reporting |
| 8280 | # Types common to all resources include: |
| 8281 | # * "Ready": True when the Resource is ready. |
| 8282 | }, |
| 8283 | ], |
| 8284 | "address": { # Information for connecting over HTTP(s). # From RouteStatus. |
| 8285 | # Similar to url, information on where the service is available on HTTP. |
| 8286 | "url": "A String", |
| 8287 | }, |
| 8288 | "observedGeneration": 42, # ObservedGeneration is the 'Generation' of the Route that |
| 8289 | # was last processed by the controller. |
| 8290 | # |
| 8291 | # Clients polling for completed reconciliation should poll until |
| 8292 | # observedGeneration = metadata.generation and the Ready condition's status |
| 8293 | # is True or False. |
| 8294 | "url": "A String", # From RouteStatus. |
| 8295 | # URL holds the url that will distribute traffic over the provided traffic |
| 8296 | # targets. It generally has the form |
| 8297 | # https://{route-hash}-{project-hash}-{cluster-level-suffix}.a.run.app |
| 8298 | "traffic": [ # From RouteStatus. |
| 8299 | # Traffic holds the configured traffic distribution. |
| 8300 | # These entries will always contain RevisionName references. |
| 8301 | # When ConfigurationName appears in the spec, this will hold the |
| 8302 | # LatestReadyRevisionName that we last observed. |
| 8303 | { # TrafficTarget holds a single entry of the routing table for a Route. |
| 8304 | "revisionName": "A String", # RevisionName of a specific revision to which to send this portion of |
| 8305 | # traffic. This is mutually exclusive with ConfigurationName. |
| 8306 | # |
| 8307 | # Providing RevisionName in spec is not currently supported by Cloud Run. |
| 8308 | "latestRevision": True or False, # LatestRevision may be optionally provided to indicate that the latest |
| 8309 | # ready Revision of the Configuration should be used for this traffic |
| 8310 | # target. When provided LatestRevision must be true if RevisionName is |
| 8311 | # empty; it must be false when RevisionName is non-empty. |
| 8312 | # |
| 8313 | # +optional |
| 8314 | "tag": "A String", # Tag is optionally used to expose a dedicated url for referencing |
| 8315 | # this target exclusively. |
| 8316 | # |
| 8317 | # Not currently supported in Cloud Run. |
| 8318 | # +optional |
| 8319 | "url": "A String", # Output only. URL displays the URL for accessing tagged traffic targets. URL |
| 8320 | # is displayed in status, and is disallowed on spec. URL must contain a |
| 8321 | # scheme (e.g. http://) and a hostname, but may not contain anything else |
| 8322 | # (e.g. basic auth, url path, etc. |
| 8323 | # |
| 8324 | # Not currently supported in Cloud Run. |
| 8325 | "configurationName": "A String", # ConfigurationName of a configuration to whose latest revision we will |
| 8326 | # send this portion of traffic. When the "status.latestReadyRevisionName" |
| 8327 | # of the referenced configuration changes, we will automatically migrate |
| 8328 | # traffic from the prior "latest ready" revision to the new one. This field |
| 8329 | # is never set in Route's status, only its spec. This is mutually exclusive |
| 8330 | # with RevisionName. |
| 8331 | # |
| 8332 | # Cloud Run currently supports a single ConfigurationName. |
| 8333 | "percent": 42, # Percent specifies percent of the traffic to this Revision or Configuration. |
| 8334 | # This defaults to zero if unspecified. |
| 8335 | # |
| 8336 | # Cloud Run currently requires 100 percent for a single ConfigurationName |
| 8337 | # TrafficTarget entry. |
| 8338 | }, |
| 8339 | ], |
| 8340 | "latestReadyRevisionName": "A String", # From ConfigurationStatus. |
| 8341 | # LatestReadyRevisionName holds the name of the latest Revision stamped out |
| 8342 | # from this Service's Configuration that has had its "Ready" condition become |
| 8343 | # "True". |
| 8344 | }, |
| 8345 | "apiVersion": "A String", # The API version for this call such as "serving.knative.dev/v1". |
| 8346 | "spec": { # ServiceSpec holds the desired state of the Route (from the client), which # Spec holds the desired state of the Service (from the client). |
| 8347 | # is used to manipulate the underlying Route and Configuration(s). |
| 8348 | "traffic": [ # Traffic specifies how to distribute traffic over a collection of Knative |
| 8349 | # Revisions and Configurations. |
| 8350 | { # TrafficTarget holds a single entry of the routing table for a Route. |
| 8351 | "revisionName": "A String", # RevisionName of a specific revision to which to send this portion of |
| 8352 | # traffic. This is mutually exclusive with ConfigurationName. |
| 8353 | # |
| 8354 | # Providing RevisionName in spec is not currently supported by Cloud Run. |
| 8355 | "latestRevision": True or False, # LatestRevision may be optionally provided to indicate that the latest |
| 8356 | # ready Revision of the Configuration should be used for this traffic |
| 8357 | # target. When provided LatestRevision must be true if RevisionName is |
| 8358 | # empty; it must be false when RevisionName is non-empty. |
| 8359 | # |
| 8360 | # +optional |
| 8361 | "tag": "A String", # Tag is optionally used to expose a dedicated url for referencing |
| 8362 | # this target exclusively. |
| 8363 | # |
| 8364 | # Not currently supported in Cloud Run. |
| 8365 | # +optional |
| 8366 | "url": "A String", # Output only. URL displays the URL for accessing tagged traffic targets. URL |
| 8367 | # is displayed in status, and is disallowed on spec. URL must contain a |
| 8368 | # scheme (e.g. http://) and a hostname, but may not contain anything else |
| 8369 | # (e.g. basic auth, url path, etc. |
| 8370 | # |
| 8371 | # Not currently supported in Cloud Run. |
| 8372 | "configurationName": "A String", # ConfigurationName of a configuration to whose latest revision we will |
| 8373 | # send this portion of traffic. When the "status.latestReadyRevisionName" |
| 8374 | # of the referenced configuration changes, we will automatically migrate |
| 8375 | # traffic from the prior "latest ready" revision to the new one. This field |
| 8376 | # is never set in Route's status, only its spec. This is mutually exclusive |
| 8377 | # with RevisionName. |
| 8378 | # |
| 8379 | # Cloud Run currently supports a single ConfigurationName. |
| 8380 | "percent": 42, # Percent specifies percent of the traffic to this Revision or Configuration. |
| 8381 | # This defaults to zero if unspecified. |
| 8382 | # |
| 8383 | # Cloud Run currently requires 100 percent for a single ConfigurationName |
| 8384 | # TrafficTarget entry. |
| 8385 | }, |
| 8386 | ], |
| 8387 | "template": { # RevisionTemplateSpec describes the data a revision should have when created # Template holds the latest specification for the Revision to |
| 8388 | # be stamped out. |
| 8389 | # from a template. Based on: |
| 8390 | # https://github.com/kubernetes/api/blob/e771f807/core/v1/types.go#L3179-L3190 |
| 8391 | "spec": { # RevisionSpec holds the desired state of the Revision (from the client). # RevisionSpec holds the desired state of the Revision (from the client). |
| 8392 | "containerConcurrency": 42, # (Optional) |
| 8393 | # |
| 8394 | # ContainerConcurrency specifies the maximum allowed in-flight (concurrent) |
| 8395 | # requests per container instance of the Revision. |
| 8396 | # |
| 8397 | # Cloud Run fully managed: supported, defaults to 80 |
| 8398 | # |
| 8399 | # Cloud Run for Anthos: supported, defaults to 0, which means concurrency |
| 8400 | # to the application is not limited, and the system decides the |
| 8401 | # target concurrency for the autoscaler. |
| 8402 | "timeoutSeconds": 42, # TimeoutSeconds holds the max duration the instance is allowed for |
| 8403 | # responding to a request. |
| 8404 | # Not currently used by Cloud Run. |
| 8405 | "serviceAccountName": "A String", # Email address of the IAM service account associated with the revision |
| 8406 | # of the service. The service account represents the identity of the |
| 8407 | # running revision, and determines what permissions the revision has. If |
| 8408 | # not provided, the revision will use the project's default service account. |
| 8409 | "containers": [ # Containers holds the single container that defines the unit of execution |
| 8410 | # for this Revision. In the context of a Revision, we disallow a number of |
| 8411 | # fields on this Container, including: name and lifecycle. |
| 8412 | # In Cloud Run, only a single container may be provided. |
| 8413 | # The runtime contract is documented here: |
| 8414 | # https://github.com/knative/serving/blob/master/docs/runtime-contract.md |
| 8415 | { # A single application container. |
| 8416 | # This specifies both the container to run, the command to run in the container |
| 8417 | # and the arguments to supply to it. |
| 8418 | # Note that additional arguments may be supplied by the system to the container |
| 8419 | # at runtime. |
| 8420 | "securityContext": { # Cloud Run fully managed: not supported # (Optional) |
| 8421 | # |
| 8422 | # Cloud Run fully managed: not supported |
| 8423 | # |
| 8424 | # Cloud Run for Anthos: supported |
| 8425 | # |
| 8426 | # Security options the pod should run with. |
| 8427 | # More info: https://kubernetes.io/docs/concepts/policy/security-context/ |
| 8428 | # More info: |
| 8429 | # https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ |
| 8430 | # |
| 8431 | # Cloud Run for Anthos: supported |
| 8432 | # |
| 8433 | # SecurityContext holds security configuration that will be applied to a |
| 8434 | # container. Some fields are present in both SecurityContext and |
| 8435 | # PodSecurityContext. When both are set, the values in SecurityContext take |
| 8436 | # precedence. |
| 8437 | "runAsUser": 42, # (Optional) |
| 8438 | # |
| 8439 | # Cloud Run fully managed: not supported |
| 8440 | # |
| 8441 | # Cloud Run for Anthos: supported |
| 8442 | # |
| 8443 | # The UID to run the entrypoint of the container process. |
| 8444 | # Defaults to user specified in image metadata if unspecified. |
| 8445 | # May also be set in PodSecurityContext. If set in both SecurityContext and |
| 8446 | # PodSecurityContext, the value specified in SecurityContext takes |
| 8447 | # precedence. |
| 8448 | }, |
| 8449 | "livenessProbe": { # Cloud Run fully managed: not supported # (Optional) |
| 8450 | # |
| 8451 | # Cloud Run fully managed: not supported |
| 8452 | # |
| 8453 | # Cloud Run for Anthos: supported |
| 8454 | # |
| 8455 | # Periodic probe of container liveness. |
| 8456 | # Container will be restarted if the probe fails. |
| 8457 | # More info: |
| 8458 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 8459 | # |
| 8460 | # Cloud Run for Anthos: supported |
| 8461 | # |
| 8462 | # Probe describes a health check to be performed against a container to |
| 8463 | # determine whether it is alive or ready to receive traffic. |
| 8464 | "httpGet": { # Cloud Run fully managed: not supported # (Optional) |
| 8465 | # |
| 8466 | # Cloud Run fully managed: not supported |
| 8467 | # |
| 8468 | # Cloud Run for Anthos: supported |
| 8469 | # |
| 8470 | # HTTPGet specifies the http request to perform. |
| 8471 | # |
| 8472 | # A field inlined from the Handler message. |
| 8473 | # |
| 8474 | # Cloud Run for Anthos: supported |
| 8475 | # |
| 8476 | # HTTPGetAction describes an action based on HTTP Get requests. |
| 8477 | "host": "A String", # (Optional) |
| 8478 | # |
| 8479 | # Cloud Run fully managed: not supported |
| 8480 | # |
| 8481 | # Cloud Run for Anthos: supported |
| 8482 | # |
| 8483 | # Host name to connect to, defaults to the pod IP. You probably want to set |
| 8484 | # "Host" in httpHeaders instead. |
| 8485 | "scheme": "A String", # (Optional) |
| 8486 | # |
| 8487 | # Cloud Run fully managed: not supported |
| 8488 | # |
| 8489 | # Cloud Run for Anthos: supported |
| 8490 | # |
| 8491 | # Scheme to use for connecting to the host. |
| 8492 | # Defaults to HTTP. |
| 8493 | "httpHeaders": [ # (Optional) |
| 8494 | # |
| 8495 | # Cloud Run fully managed: not supported |
| 8496 | # |
| 8497 | # Cloud Run for Anthos: supported |
| 8498 | # |
| 8499 | # Custom headers to set in the request. HTTP allows repeated headers. |
| 8500 | { # Cloud Run fully managed: not supported |
| 8501 | # |
| 8502 | # Cloud Run for Anthos: supported |
| 8503 | # |
| 8504 | # HTTPHeader describes a custom header to be used in HTTP probes |
| 8505 | "name": "A String", # Cloud Run fully managed: not supported |
| 8506 | # |
| 8507 | # Cloud Run for Anthos: supported |
| 8508 | # |
| 8509 | # The header field name |
| 8510 | "value": "A String", # Cloud Run fully managed: not supported |
| 8511 | # |
| 8512 | # Cloud Run for Anthos: supported |
| 8513 | # |
| 8514 | # The header field value |
| 8515 | }, |
| 8516 | ], |
| 8517 | "path": "A String", # (Optional) |
| 8518 | # |
| 8519 | # Cloud Run fully managed: not supported |
| 8520 | # |
| 8521 | # Cloud Run for Anthos: supported |
| 8522 | # |
| 8523 | # Path to access on the HTTP server. |
| 8524 | }, |
| 8525 | "failureThreshold": 42, # (Optional) |
| 8526 | # |
| 8527 | # Cloud Run fully managed: not supported |
| 8528 | # |
| 8529 | # Cloud Run for Anthos: supported |
| 8530 | # |
| 8531 | # Minimum consecutive failures for the probe to be considered failed after |
| 8532 | # having succeeded. Defaults to 3. Minimum value is 1. |
| 8533 | "exec": { # Cloud Run fully managed: not supported # (Optional) |
| 8534 | # |
| 8535 | # Cloud Run fully managed: not supported |
| 8536 | # |
| 8537 | # Cloud Run for Anthos: supported |
| 8538 | # |
| 8539 | # One and only one of the following should be specified. |
| 8540 | # Exec specifies the action to take. |
| 8541 | # |
| 8542 | # A field inlined from the Handler message. |
| 8543 | # |
| 8544 | # Cloud Run for Anthos: supported |
| 8545 | # |
| 8546 | # ExecAction describes a "run in container" action. |
| 8547 | "command": "A String", # (Optional) |
| 8548 | # |
| 8549 | # Cloud Run fully managed: not supported |
| 8550 | # |
| 8551 | # Cloud Run for Anthos: supported |
| 8552 | # |
| 8553 | # Command is the command line to execute inside the container, the working |
| 8554 | # directory for the command is root ('/') in the container's filesystem. The |
| 8555 | # command is simply exec'd, it is not run inside a shell, so traditional |
| 8556 | # shell instructions ('|', etc) won't work. To use a shell, you need to |
| 8557 | # explicitly call out to that shell. Exit status of 0 is treated as |
| 8558 | # live/healthy and non-zero is unhealthy. |
| 8559 | }, |
| 8560 | "initialDelaySeconds": 42, # (Optional) |
| 8561 | # |
| 8562 | # Cloud Run fully managed: not supported |
| 8563 | # |
| 8564 | # Cloud Run for Anthos: supported |
| 8565 | # |
| 8566 | # Number of seconds after the container has started before liveness probes |
| 8567 | # are initiated. More info: |
| 8568 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 8569 | "timeoutSeconds": 42, # (Optional) |
| 8570 | # |
| 8571 | # Cloud Run fully managed: not supported |
| 8572 | # |
| 8573 | # Cloud Run for Anthos: supported |
| 8574 | # |
| 8575 | # Number of seconds after which the probe times out. |
| 8576 | # Defaults to 1 second. Minimum value is 1. |
| 8577 | # More info: |
| 8578 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 8579 | "successThreshold": 42, # (Optional) |
| 8580 | # |
| 8581 | # Cloud Run fully managed: not supported |
| 8582 | # |
| 8583 | # Cloud Run for Anthos: supported |
| 8584 | # |
| 8585 | # Minimum consecutive successes for the probe to be considered successful |
| 8586 | # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value |
| 8587 | # is 1. |
| 8588 | "periodSeconds": 42, # (Optional) |
| 8589 | # |
| 8590 | # Cloud Run fully managed: not supported |
| 8591 | # |
| 8592 | # Cloud Run for Anthos: supported |
| 8593 | # |
| 8594 | # How often (in seconds) to perform the probe. |
| 8595 | # Default to 10 seconds. Minimum value is 1. |
| 8596 | "tcpSocket": { # Cloud Run fully managed: not supported # (Optional) |
| 8597 | # |
| 8598 | # Cloud Run fully managed: not supported |
| 8599 | # |
| 8600 | # Cloud Run for Anthos: supported |
| 8601 | # |
| 8602 | # TCPSocket specifies an action involving a TCP port. |
| 8603 | # TCP hooks not yet supported |
| 8604 | # |
| 8605 | # A field inlined from the Handler message. |
| 8606 | # |
| 8607 | # Cloud Run for Anthos: supported |
| 8608 | # |
| 8609 | # TCPSocketAction describes an action based on opening a socket |
| 8610 | "port": 42, # Cloud Run fully managed: not supported |
| 8611 | # |
| 8612 | # Cloud Run for Anthos: supported |
| 8613 | # |
| 8614 | # Number or name of the port to access on the container. |
| 8615 | # Number must be in the range 1 to 65535. |
| 8616 | # Name must be an IANA_SVC_NAME. |
| 8617 | # |
| 8618 | # This field is currently limited to integer types only because of proto's |
| 8619 | # inability to properly support the IntOrString golang type. |
| 8620 | "host": "A String", # (Optional) |
| 8621 | # |
| 8622 | # Cloud Run fully managed: not supported |
| 8623 | # |
| 8624 | # Cloud Run for Anthos: supported |
| 8625 | # |
| 8626 | # Optional: Host name to connect to, defaults to the pod IP. |
| 8627 | }, |
| 8628 | }, |
| 8629 | "env": [ # (Optional) |
| 8630 | # |
| 8631 | # Cloud Run fully managed: supported |
| 8632 | # |
| 8633 | # Cloud Run for Anthos: supported |
| 8634 | # |
| 8635 | # List of environment variables to set in the container. |
| 8636 | { # EnvVar represents an environment variable present in a Container. |
| 8637 | "name": "A String", # Name of the environment variable. Must be a C_IDENTIFIER. |
| 8638 | "valueFrom": { # Cloud Run fully managed: not supported # (Optional) |
| 8639 | # |
| 8640 | # Cloud Run fully managed: not supported |
| 8641 | # |
| 8642 | # Cloud Run for Anthos: supported |
| 8643 | # |
| 8644 | # Source for the environment variable's value. Cannot be used if value is not |
| 8645 | # empty. |
| 8646 | # |
| 8647 | # Cloud Run for Anthos: supported |
| 8648 | # |
| 8649 | # EnvVarSource represents a source for the value of an EnvVar. |
| 8650 | "configMapKeyRef": { # Cloud Run fully managed: not supported # (Optional) |
| 8651 | # |
| 8652 | # Cloud Run fully managed: not supported |
| 8653 | # |
| 8654 | # Cloud Run for Anthos: supported |
| 8655 | # |
| 8656 | # Selects a key of a ConfigMap. |
| 8657 | # |
| 8658 | # Cloud Run for Anthos: supported |
| 8659 | # |
| 8660 | # Selects a key from a ConfigMap. |
| 8661 | "optional": True or False, # (Optional) |
| 8662 | # |
| 8663 | # Cloud Run fully managed: not supported |
| 8664 | # |
| 8665 | # Cloud Run for Anthos: supported |
| 8666 | # |
| 8667 | # Specify whether the ConfigMap or its key must be defined |
| 8668 | "key": "A String", # Cloud Run fully managed: not supported |
| 8669 | # |
| 8670 | # Cloud Run for Anthos: supported |
| 8671 | # |
| 8672 | # The key to select. |
| 8673 | "name": "A String", # Cloud Run fully managed: not supported |
| 8674 | # |
| 8675 | # Cloud Run for Anthos: supported |
| 8676 | # |
| 8677 | # The ConfigMap to select from. |
| 8678 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 8679 | # directly into the message. Use the "name" field instead. |
| 8680 | # |
| 8681 | # Cloud Run for Anthos: supported |
| 8682 | # |
| 8683 | # LocalObjectReference contains enough information to let you locate the |
| 8684 | # referenced object inside the same namespace. |
| 8685 | "name": "A String", # (Optional) |
| 8686 | # |
| 8687 | # Cloud Run fully managed: not supported |
| 8688 | # |
| 8689 | # Cloud Run for Anthos: supported |
| 8690 | # |
| 8691 | # Name of the referent. |
| 8692 | # More info: |
| 8693 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 8694 | }, |
| 8695 | }, |
| 8696 | "secretKeyRef": { # Cloud Run fully managed: not supported # (Optional) |
| 8697 | # |
| 8698 | # Cloud Run fully managed: not supported |
| 8699 | # |
| 8700 | # Cloud Run for Anthos: supported |
| 8701 | # |
| 8702 | # Selects a key of a secret in the pod's namespace |
| 8703 | # |
| 8704 | # Cloud Run for Anthos: supported |
| 8705 | # |
| 8706 | # SecretKeySelector selects a key of a Secret. |
| 8707 | "key": "A String", # Cloud Run fully managed: not supported |
| 8708 | # |
| 8709 | # Cloud Run for Anthos: supported |
| 8710 | # |
| 8711 | # The key of the secret to select from. Must be a valid secret key. |
| 8712 | "name": "A String", # Cloud Run fully managed: not supported |
| 8713 | # |
| 8714 | # Cloud Run for Anthos: supported |
| 8715 | # |
| 8716 | # The name of the secret in the pod's namespace to select from. |
| 8717 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 8718 | # directly into the message. Use the "name" field instead. |
| 8719 | # |
| 8720 | # Cloud Run for Anthos: supported |
| 8721 | # |
| 8722 | # LocalObjectReference contains enough information to let you locate the |
| 8723 | # referenced object inside the same namespace. |
| 8724 | "name": "A String", # (Optional) |
| 8725 | # |
| 8726 | # Cloud Run fully managed: not supported |
| 8727 | # |
| 8728 | # Cloud Run for Anthos: supported |
| 8729 | # |
| 8730 | # Name of the referent. |
| 8731 | # More info: |
| 8732 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 8733 | }, |
| 8734 | "optional": True or False, # (Optional) |
| 8735 | # |
| 8736 | # Cloud Run fully managed: not supported |
| 8737 | # |
| 8738 | # Cloud Run for Anthos: supported |
| 8739 | # |
| 8740 | # Specify whether the Secret or its key must be defined |
| 8741 | }, |
| 8742 | }, |
| 8743 | "value": "A String", # (Optional) |
| 8744 | # |
| 8745 | # Variable references $(VAR_NAME) are expanded |
| 8746 | # using the previous defined environment variables in the container and |
| 8747 | # any route environment variables. If a variable cannot be resolved, |
| 8748 | # the reference in the input string will be unchanged. The $(VAR_NAME) |
| 8749 | # syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped |
| 8750 | # references will never be expanded, regardless of whether the variable |
| 8751 | # exists or not. |
| 8752 | # Defaults to "". |
| 8753 | }, |
| 8754 | ], |
| 8755 | "resources": { # ResourceRequirements describes the compute resource requirements. # (Optional) |
| 8756 | # |
| 8757 | # Cloud Run fully managed: supported |
| 8758 | # |
| 8759 | # Cloud Run for Anthos: supported |
| 8760 | # |
| 8761 | # Compute Resources required by this container. |
| 8762 | # More info: |
| 8763 | # https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources |
| 8764 | "limits": { # (Optional) |
| 8765 | # |
| 8766 | # Cloud Run fully managed: Only memory and CPU are supported. Note: The only |
| 8767 | # supported value for CPU is '1'. |
| 8768 | # |
| 8769 | # Cloud Run for Anthos: supported |
| 8770 | # |
| 8771 | # Limits describes the maximum amount of compute resources allowed. |
| 8772 | # The values of the map is string form of the 'quantity' k8s type: |
| 8773 | # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go |
| 8774 | "a_key": "A String", |
| 8775 | }, |
| 8776 | "requests": { # (Optional) |
| 8777 | # |
| 8778 | # Cloud Run fully managed: Only memory and CPU are supported. Note: The only |
| 8779 | # supported value for CPU is '1'. |
| 8780 | # |
| 8781 | # Cloud Run for Anthos: supported |
| 8782 | # |
| 8783 | # Requests describes the minimum amount of compute resources required. |
| 8784 | # If Requests is omitted for a container, it defaults to Limits if that is |
| 8785 | # explicitly specified, otherwise to an implementation-defined value. |
| 8786 | # The values of the map is string form of the 'quantity' k8s type: |
| 8787 | # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go |
| 8788 | "a_key": "A String", |
| 8789 | }, |
| 8790 | }, |
| 8791 | "readinessProbe": { # Cloud Run fully managed: not supported # (Optional) |
| 8792 | # |
| 8793 | # Cloud Run fully managed: not supported |
| 8794 | # |
| 8795 | # Cloud Run for Anthos: supported |
| 8796 | # |
| 8797 | # Periodic probe of container service readiness. |
| 8798 | # Container will be removed from service endpoints if the probe fails. |
| 8799 | # More info: |
| 8800 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 8801 | # |
| 8802 | # Cloud Run for Anthos: supported |
| 8803 | # |
| 8804 | # Probe describes a health check to be performed against a container to |
| 8805 | # determine whether it is alive or ready to receive traffic. |
| 8806 | "httpGet": { # Cloud Run fully managed: not supported # (Optional) |
| 8807 | # |
| 8808 | # Cloud Run fully managed: not supported |
| 8809 | # |
| 8810 | # Cloud Run for Anthos: supported |
| 8811 | # |
| 8812 | # HTTPGet specifies the http request to perform. |
| 8813 | # |
| 8814 | # A field inlined from the Handler message. |
| 8815 | # |
| 8816 | # Cloud Run for Anthos: supported |
| 8817 | # |
| 8818 | # HTTPGetAction describes an action based on HTTP Get requests. |
| 8819 | "host": "A String", # (Optional) |
| 8820 | # |
| 8821 | # Cloud Run fully managed: not supported |
| 8822 | # |
| 8823 | # Cloud Run for Anthos: supported |
| 8824 | # |
| 8825 | # Host name to connect to, defaults to the pod IP. You probably want to set |
| 8826 | # "Host" in httpHeaders instead. |
| 8827 | "scheme": "A String", # (Optional) |
| 8828 | # |
| 8829 | # Cloud Run fully managed: not supported |
| 8830 | # |
| 8831 | # Cloud Run for Anthos: supported |
| 8832 | # |
| 8833 | # Scheme to use for connecting to the host. |
| 8834 | # Defaults to HTTP. |
| 8835 | "httpHeaders": [ # (Optional) |
| 8836 | # |
| 8837 | # Cloud Run fully managed: not supported |
| 8838 | # |
| 8839 | # Cloud Run for Anthos: supported |
| 8840 | # |
| 8841 | # Custom headers to set in the request. HTTP allows repeated headers. |
| 8842 | { # Cloud Run fully managed: not supported |
| 8843 | # |
| 8844 | # Cloud Run for Anthos: supported |
| 8845 | # |
| 8846 | # HTTPHeader describes a custom header to be used in HTTP probes |
| 8847 | "name": "A String", # Cloud Run fully managed: not supported |
| 8848 | # |
| 8849 | # Cloud Run for Anthos: supported |
| 8850 | # |
| 8851 | # The header field name |
| 8852 | "value": "A String", # Cloud Run fully managed: not supported |
| 8853 | # |
| 8854 | # Cloud Run for Anthos: supported |
| 8855 | # |
| 8856 | # The header field value |
| 8857 | }, |
| 8858 | ], |
| 8859 | "path": "A String", # (Optional) |
| 8860 | # |
| 8861 | # Cloud Run fully managed: not supported |
| 8862 | # |
| 8863 | # Cloud Run for Anthos: supported |
| 8864 | # |
| 8865 | # Path to access on the HTTP server. |
| 8866 | }, |
| 8867 | "failureThreshold": 42, # (Optional) |
| 8868 | # |
| 8869 | # Cloud Run fully managed: not supported |
| 8870 | # |
| 8871 | # Cloud Run for Anthos: supported |
| 8872 | # |
| 8873 | # Minimum consecutive failures for the probe to be considered failed after |
| 8874 | # having succeeded. Defaults to 3. Minimum value is 1. |
| 8875 | "exec": { # Cloud Run fully managed: not supported # (Optional) |
| 8876 | # |
| 8877 | # Cloud Run fully managed: not supported |
| 8878 | # |
| 8879 | # Cloud Run for Anthos: supported |
| 8880 | # |
| 8881 | # One and only one of the following should be specified. |
| 8882 | # Exec specifies the action to take. |
| 8883 | # |
| 8884 | # A field inlined from the Handler message. |
| 8885 | # |
| 8886 | # Cloud Run for Anthos: supported |
| 8887 | # |
| 8888 | # ExecAction describes a "run in container" action. |
| 8889 | "command": "A String", # (Optional) |
| 8890 | # |
| 8891 | # Cloud Run fully managed: not supported |
| 8892 | # |
| 8893 | # Cloud Run for Anthos: supported |
| 8894 | # |
| 8895 | # Command is the command line to execute inside the container, the working |
| 8896 | # directory for the command is root ('/') in the container's filesystem. The |
| 8897 | # command is simply exec'd, it is not run inside a shell, so traditional |
| 8898 | # shell instructions ('|', etc) won't work. To use a shell, you need to |
| 8899 | # explicitly call out to that shell. Exit status of 0 is treated as |
| 8900 | # live/healthy and non-zero is unhealthy. |
| 8901 | }, |
| 8902 | "initialDelaySeconds": 42, # (Optional) |
| 8903 | # |
| 8904 | # Cloud Run fully managed: not supported |
| 8905 | # |
| 8906 | # Cloud Run for Anthos: supported |
| 8907 | # |
| 8908 | # Number of seconds after the container has started before liveness probes |
| 8909 | # are initiated. More info: |
| 8910 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 8911 | "timeoutSeconds": 42, # (Optional) |
| 8912 | # |
| 8913 | # Cloud Run fully managed: not supported |
| 8914 | # |
| 8915 | # Cloud Run for Anthos: supported |
| 8916 | # |
| 8917 | # Number of seconds after which the probe times out. |
| 8918 | # Defaults to 1 second. Minimum value is 1. |
| 8919 | # More info: |
| 8920 | # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| 8921 | "successThreshold": 42, # (Optional) |
| 8922 | # |
| 8923 | # Cloud Run fully managed: not supported |
| 8924 | # |
| 8925 | # Cloud Run for Anthos: supported |
| 8926 | # |
| 8927 | # Minimum consecutive successes for the probe to be considered successful |
| 8928 | # after having failed. Defaults to 1. Must be 1 for liveness. Minimum value |
| 8929 | # is 1. |
| 8930 | "periodSeconds": 42, # (Optional) |
| 8931 | # |
| 8932 | # Cloud Run fully managed: not supported |
| 8933 | # |
| 8934 | # Cloud Run for Anthos: supported |
| 8935 | # |
| 8936 | # How often (in seconds) to perform the probe. |
| 8937 | # Default to 10 seconds. Minimum value is 1. |
| 8938 | "tcpSocket": { # Cloud Run fully managed: not supported # (Optional) |
| 8939 | # |
| 8940 | # Cloud Run fully managed: not supported |
| 8941 | # |
| 8942 | # Cloud Run for Anthos: supported |
| 8943 | # |
| 8944 | # TCPSocket specifies an action involving a TCP port. |
| 8945 | # TCP hooks not yet supported |
| 8946 | # |
| 8947 | # A field inlined from the Handler message. |
| 8948 | # |
| 8949 | # Cloud Run for Anthos: supported |
| 8950 | # |
| 8951 | # TCPSocketAction describes an action based on opening a socket |
| 8952 | "port": 42, # Cloud Run fully managed: not supported |
| 8953 | # |
| 8954 | # Cloud Run for Anthos: supported |
| 8955 | # |
| 8956 | # Number or name of the port to access on the container. |
| 8957 | # Number must be in the range 1 to 65535. |
| 8958 | # Name must be an IANA_SVC_NAME. |
| 8959 | # |
| 8960 | # This field is currently limited to integer types only because of proto's |
| 8961 | # inability to properly support the IntOrString golang type. |
| 8962 | "host": "A String", # (Optional) |
| 8963 | # |
| 8964 | # Cloud Run fully managed: not supported |
| 8965 | # |
| 8966 | # Cloud Run for Anthos: supported |
| 8967 | # |
| 8968 | # Optional: Host name to connect to, defaults to the pod IP. |
| 8969 | }, |
| 8970 | }, |
| 8971 | "imagePullPolicy": "A String", # (Optional) |
| 8972 | # |
| 8973 | # Cloud Run fully managed: not supported |
| 8974 | # |
| 8975 | # Cloud Run for Anthos: supported |
| 8976 | # |
| 8977 | # Image pull policy. |
| 8978 | # One of Always, Never, IfNotPresent. |
| 8979 | # Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. |
| 8980 | # More info: |
| 8981 | # https://kubernetes.io/docs/concepts/containers/images#updating-images |
| 8982 | "terminationMessagePath": "A String", # (Optional) |
| 8983 | # |
| 8984 | # Cloud Run fully managed: not supported |
| 8985 | # |
| 8986 | # Cloud Run for Anthos: supported |
| 8987 | # |
| 8988 | # Path at which the file to which the container's termination |
| 8989 | # message will be written is mounted into the container's filesystem. Message |
| 8990 | # written is intended to be brief final status, such as an assertion failure |
| 8991 | # message. Will be truncated by the node if greater than 4096 bytes. The |
| 8992 | # total message length across all containers will be limited to 12kb. |
| 8993 | # Defaults to /dev/termination-log. |
| 8994 | "volumeMounts": [ # (Optional) |
| 8995 | # |
| 8996 | # Cloud Run fully managed: not supported |
| 8997 | # |
| 8998 | # Cloud Run for Anthos: supported |
| 8999 | # |
| 9000 | # Pod volumes to mount into the container's filesystem. |
| 9001 | { # Cloud Run fully managed: not supported |
| 9002 | # |
| 9003 | # Cloud Run for Anthos: supported |
| 9004 | # |
| 9005 | # VolumeMount describes a mounting of a Volume within a container. |
| 9006 | "mountPath": "A String", # Cloud Run fully managed: not supported |
| 9007 | # |
| 9008 | # Cloud Run for Anthos: supported |
| 9009 | # |
| 9010 | # Path within the container at which the volume should be mounted. Must |
| 9011 | # not contain ':'. |
| 9012 | "subPath": "A String", # (Optional) |
| 9013 | # |
| 9014 | # Cloud Run fully managed: not supported |
| 9015 | # |
| 9016 | # Cloud Run for Anthos: supported |
| 9017 | # |
| 9018 | # Path within the volume from which the container's volume should be mounted. |
| 9019 | # Defaults to "" (volume's root). |
| 9020 | "name": "A String", # Cloud Run fully managed: not supported |
| 9021 | # |
| 9022 | # Cloud Run for Anthos: supported |
| 9023 | # |
| 9024 | # This must match the Name of a Volume. |
| 9025 | "readOnly": True or False, # (Optional) |
| 9026 | # |
| 9027 | # Cloud Run fully managed: not supported |
| 9028 | # |
| 9029 | # Cloud Run for Anthos: supported |
| 9030 | # |
| 9031 | # Only true is accepted. |
| 9032 | # Defaults to true. |
| 9033 | }, |
| 9034 | ], |
| 9035 | "args": [ # (Optional) |
| 9036 | # |
| 9037 | # Cloud Run fully managed: supported |
| 9038 | # |
| 9039 | # Cloud Run for Anthos: supported |
| 9040 | # |
| 9041 | # Arguments to the entrypoint. |
| 9042 | # The docker image's CMD is used if this is not provided. |
| 9043 | # Variable references $(VAR_NAME) are expanded using the container's |
| 9044 | # environment. If a variable cannot be resolved, the reference in the input |
| 9045 | # string will be unchanged. The $(VAR_NAME) syntax can be escaped with a |
| 9046 | # double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, |
| 9047 | # regardless of whether the variable exists or not. |
| 9048 | # More info: |
| 9049 | # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell |
| 9050 | "A String", |
| 9051 | ], |
| 9052 | "workingDir": "A String", # (Optional) |
| 9053 | # |
| 9054 | # Cloud Run fully managed: not supported |
| 9055 | # |
| 9056 | # Cloud Run for Anthos: supported |
| 9057 | # |
| 9058 | # Container's working directory. |
| 9059 | # If not specified, the container runtime's default will be used, which |
| 9060 | # might be configured in the container image. |
| 9061 | "ports": [ # (Optional) |
| 9062 | # |
| 9063 | # List of ports to expose from the container. Only a single port can be |
| 9064 | # specified. The specified ports must be listening on all interfaces |
| 9065 | # (0.0.0.0) within the container to be accessible. |
| 9066 | # |
| 9067 | # If omitted, a port number will be chosen and passed to the container |
| 9068 | # through the PORT environment variable for the container to listen on. |
| 9069 | { # ContainerPort represents a network port in a single container. |
| 9070 | "containerPort": 42, # (Optional) |
| 9071 | # |
| 9072 | # Port number the container listens on. |
| 9073 | # This must be a valid port number, 0 < x < 65536. |
| 9074 | "protocol": "A String", # (Optional) |
| 9075 | # |
| 9076 | # Cloud Run fully managed: not supported |
| 9077 | # |
| 9078 | # Cloud Run for Anthos: supported |
| 9079 | # |
| 9080 | # Protocol for port. Must be "TCP". |
| 9081 | # Defaults to "TCP". |
| 9082 | "name": "A String", # (Optional) |
| 9083 | # |
| 9084 | # Cloud Run fully managed: not supported |
| 9085 | # |
| 9086 | # Cloud Run for Anthos: supported |
| 9087 | # |
| 9088 | # If specified, used to specify which protocol to use. |
| 9089 | # Allowed values are "http1" and "h2c". |
| 9090 | }, |
| 9091 | ], |
| 9092 | "image": "A String", # Cloud Run fully managed: only supports containers from Google Container |
| 9093 | # Registry |
| 9094 | # |
| 9095 | # Cloud Run for Anthos: supported |
| 9096 | # |
| 9097 | # URL of the Container image. |
| 9098 | # More info: https://kubernetes.io/docs/concepts/containers/images |
| 9099 | "envFrom": [ # (Optional) |
| 9100 | # |
| 9101 | # Cloud Run fully managed: not supported |
| 9102 | # |
| 9103 | # Cloud Run for Anthos: supported |
| 9104 | # |
| 9105 | # List of sources to populate environment variables in the container. |
| 9106 | # The keys defined within a source must be a C_IDENTIFIER. All invalid keys |
| 9107 | # will be reported as an event when the container is starting. When a key |
| 9108 | # exists in multiple sources, the value associated with the last source will |
| 9109 | # take precedence. Values defined by an Env with a duplicate key will take |
| 9110 | # precedence. Cannot be updated. |
| 9111 | { # Cloud Run fully managed: not supported |
| 9112 | # |
| 9113 | # Cloud Run for Anthos: supported |
| 9114 | # |
| 9115 | # EnvFromSource represents the source of a set of ConfigMaps |
| 9116 | "secretRef": { # Cloud Run fully managed: not supported # (Optional) |
| 9117 | # |
| 9118 | # Cloud Run fully managed: not supported |
| 9119 | # |
| 9120 | # Cloud Run for Anthos: supported |
| 9121 | # |
| 9122 | # The Secret to select from |
| 9123 | # |
| 9124 | # Cloud Run for Anthos: supported |
| 9125 | # |
| 9126 | # SecretEnvSource selects a Secret to populate the environment |
| 9127 | # variables with. |
| 9128 | # |
| 9129 | # The contents of the target Secret's Data field will represent the |
| 9130 | # key-value pairs as environment variables. |
| 9131 | "name": "A String", # Cloud Run fully managed: not supported |
| 9132 | # |
| 9133 | # Cloud Run for Anthos: supported |
| 9134 | # |
| 9135 | # The Secret to select from. |
| 9136 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 9137 | # directly into the message. Use the "name" field instead. |
| 9138 | # |
| 9139 | # Cloud Run for Anthos: supported |
| 9140 | # |
| 9141 | # LocalObjectReference contains enough information to let you locate the |
| 9142 | # referenced object inside the same namespace. |
| 9143 | "name": "A String", # (Optional) |
| 9144 | # |
| 9145 | # Cloud Run fully managed: not supported |
| 9146 | # |
| 9147 | # Cloud Run for Anthos: supported |
| 9148 | # |
| 9149 | # Name of the referent. |
| 9150 | # More info: |
| 9151 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 9152 | }, |
| 9153 | "optional": True or False, # (Optional) |
| 9154 | # |
| 9155 | # Cloud Run fully managed: not supported |
| 9156 | # |
| 9157 | # Cloud Run for Anthos: supported |
| 9158 | # |
| 9159 | # Specify whether the Secret must be defined |
| 9160 | }, |
| 9161 | "prefix": "A String", # (Optional) |
| 9162 | # |
| 9163 | # Cloud Run fully managed: not supported |
| 9164 | # |
| 9165 | # Cloud Run for Anthos: supported |
| 9166 | # |
| 9167 | # An optional identifier to prepend to each key in the ConfigMap. Must be a |
| 9168 | # C_IDENTIFIER. |
| 9169 | "configMapRef": { # Cloud Run fully managed: not supported # (Optional) |
| 9170 | # |
| 9171 | # Cloud Run fully managed: not supported |
| 9172 | # |
| 9173 | # Cloud Run for Anthos: supported |
| 9174 | # |
| 9175 | # The ConfigMap to select from |
| 9176 | # |
| 9177 | # Cloud Run for Anthos: supported |
| 9178 | # |
| 9179 | # ConfigMapEnvSource selects a ConfigMap to populate the environment |
| 9180 | # variables with. |
| 9181 | # |
| 9182 | # The contents of the target ConfigMap's Data field will represent the |
| 9183 | # key-value pairs as environment variables. |
| 9184 | "localObjectReference": { # Cloud Run fully managed: not supported # This field should not be used directly as it is meant to be inlined |
| 9185 | # directly into the message. Use the "name" field instead. |
| 9186 | # |
| 9187 | # Cloud Run for Anthos: supported |
| 9188 | # |
| 9189 | # LocalObjectReference contains enough information to let you locate the |
| 9190 | # referenced object inside the same namespace. |
| 9191 | "name": "A String", # (Optional) |
| 9192 | # |
| 9193 | # Cloud Run fully managed: not supported |
| 9194 | # |
| 9195 | # Cloud Run for Anthos: supported |
| 9196 | # |
| 9197 | # Name of the referent. |
| 9198 | # More info: |
| 9199 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 9200 | }, |
| 9201 | "optional": True or False, # (Optional) |
| 9202 | # |
| 9203 | # Cloud Run fully managed: not supported |
| 9204 | # |
| 9205 | # Cloud Run for Anthos: supported |
| 9206 | # |
| 9207 | # Specify whether the ConfigMap must be defined |
| 9208 | "name": "A String", # Cloud Run fully managed: not supported |
| 9209 | # |
| 9210 | # Cloud Run for Anthos: supported |
| 9211 | # |
| 9212 | # The ConfigMap to select from. |
| 9213 | }, |
| 9214 | }, |
| 9215 | ], |
| 9216 | "name": "A String", # (Optional) |
| 9217 | # |
| 9218 | # Name of the container specified as a DNS_LABEL. |
| 9219 | "command": [ |
| 9220 | "A String", |
| 9221 | ], |
| 9222 | "terminationMessagePolicy": "A String", # (Optional) |
| 9223 | # |
| 9224 | # Cloud Run fully managed: not supported |
| 9225 | # |
| 9226 | # Cloud Run for Anthos: supported |
| 9227 | # |
| 9228 | # Indicate how the termination message should be populated. File will use the |
| 9229 | # contents of terminationMessagePath to populate the container status message |
| 9230 | # on both success and failure. FallbackToLogsOnError will use the last chunk |
| 9231 | # of container log output if the termination message file is empty and the |
| 9232 | # container exited with an error. The log output is limited to 2048 bytes or |
| 9233 | # 80 lines, whichever is smaller. Defaults to File. Cannot be updated. |
| 9234 | }, |
| 9235 | ], |
| 9236 | "volumes": [ |
| 9237 | { # Cloud Run fully managed: not supported |
| 9238 | # |
| 9239 | # Cloud Run for Anthos: supported |
| 9240 | # |
| 9241 | # Volume represents a named volume in a container. |
| 9242 | "configMap": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported |
| 9243 | # |
| 9244 | # Cloud Run for Anthos: supported |
| 9245 | # |
| 9246 | # Cloud Run for Anthos: supported |
| 9247 | # |
| 9248 | # Adapts a ConfigMap into a volume. |
| 9249 | # The contents of the target ConfigMap's Data field will be presented in a |
| 9250 | # volume as files using the keys in the Data field as the file names, unless |
| 9251 | # the items element is populated with specific mappings of keys to paths. |
| 9252 | "optional": True or False, # (Optional) |
| 9253 | # |
| 9254 | # Cloud Run fully managed: not supported |
| 9255 | # |
| 9256 | # Cloud Run for Anthos: supported |
| 9257 | # |
| 9258 | # Specify whether the Secret or its keys must be defined. |
| 9259 | "name": "A String", # Cloud Run fully managed: not supported |
| 9260 | # |
| 9261 | # Cloud Run for Anthos: supported |
| 9262 | # |
| 9263 | # Name of the config. |
| 9264 | "defaultMode": 42, # (Optional) |
| 9265 | # |
| 9266 | # Cloud Run fully managed: not supported |
| 9267 | # |
| 9268 | # Cloud Run for Anthos: supported |
| 9269 | # |
| 9270 | # Mode bits to use on created files by default. Must be a value between 0 and |
| 9271 | # 0777. Defaults to 0644. Directories within the path are not affected by |
| 9272 | # this setting. This might be in conflict with other options that affect the |
| 9273 | # file mode, like fsGroup, and the result can be other mode bits set. |
| 9274 | "items": [ # (Optional) |
| 9275 | # |
| 9276 | # Cloud Run fully managed: not supported |
| 9277 | # |
| 9278 | # Cloud Run for Anthos: supported |
| 9279 | # |
| 9280 | # If unspecified, each key-value pair in the Data field of the referenced |
| 9281 | # Secret will be projected into the volume as a file whose name is the |
| 9282 | # key and content is the value. If specified, the listed keys will be |
| 9283 | # projected into the specified paths, and unlisted keys will not be |
| 9284 | # present. If a key is specified which is not present in the Secret, |
| 9285 | # the volume setup will error unless it is marked optional. |
| 9286 | { # Cloud Run fully managed: not supported |
| 9287 | # |
| 9288 | # Cloud Run for Anthos: supported |
| 9289 | # |
| 9290 | # Maps a string key to a path within a volume. |
| 9291 | "key": "A String", # Cloud Run fully managed: not supported |
| 9292 | # |
| 9293 | # Cloud Run for Anthos: supported |
| 9294 | # |
| 9295 | # The key to project. |
| 9296 | "path": "A String", # Cloud Run fully managed: not supported |
| 9297 | # |
| 9298 | # Cloud Run for Anthos: supported |
| 9299 | # |
| 9300 | # The relative path of the file to map the key to. |
| 9301 | # May not be an absolute path. |
| 9302 | # May not contain the path element '..'. |
| 9303 | # May not start with the string '..'. |
| 9304 | "mode": 42, # (Optional) |
| 9305 | # |
| 9306 | # Cloud Run fully managed: not supported |
| 9307 | # |
| 9308 | # Cloud Run for Anthos: supported |
| 9309 | # |
| 9310 | # Mode bits to use on this file, must be a value between 0 and 0777. If not |
| 9311 | # specified, the volume defaultMode will be used. This might be in conflict |
| 9312 | # with other options that affect the file mode, like fsGroup, and the result |
| 9313 | # can be other mode bits set. |
| 9314 | }, |
| 9315 | ], |
| 9316 | }, |
| 9317 | "name": "A String", # Cloud Run fully managed: not supported |
| 9318 | # |
| 9319 | # Cloud Run for Anthos: supported |
| 9320 | # |
| 9321 | # Volume's name. |
| 9322 | "secret": { # Cloud Run fully managed: not supported # Cloud Run fully managed: not supported |
| 9323 | # |
| 9324 | # Cloud Run for Anthos: supported |
| 9325 | # |
| 9326 | # Cloud Run for Anthos: supported |
| 9327 | # |
| 9328 | # The contents of the target Secret's Data field will be presented in a volume |
| 9329 | # as files using the keys in the Data field as the file names. |
| 9330 | "secretName": "A String", # Cloud Run fully managed: not supported |
| 9331 | # |
| 9332 | # Cloud Run for Anthos: supported |
| 9333 | # |
| 9334 | # Name of the secret in the container's namespace to use. |
| 9335 | "items": [ # (Optional) |
| 9336 | # |
| 9337 | # Cloud Run fully managed: not supported |
| 9338 | # |
| 9339 | # Cloud Run for Anthos: supported |
| 9340 | # |
| 9341 | # If unspecified, each key-value pair in the Data field of the referenced |
| 9342 | # Secret will be projected into the volume as a file whose name is the |
| 9343 | # key and content is the value. If specified, the listed keys will be |
| 9344 | # projected into the specified paths, and unlisted keys will not be |
| 9345 | # present. If a key is specified which is not present in the Secret, |
| 9346 | # the volume setup will error unless it is marked optional. |
| 9347 | { # Cloud Run fully managed: not supported |
| 9348 | # |
| 9349 | # Cloud Run for Anthos: supported |
| 9350 | # |
| 9351 | # Maps a string key to a path within a volume. |
| 9352 | "key": "A String", # Cloud Run fully managed: not supported |
| 9353 | # |
| 9354 | # Cloud Run for Anthos: supported |
| 9355 | # |
| 9356 | # The key to project. |
| 9357 | "path": "A String", # Cloud Run fully managed: not supported |
| 9358 | # |
| 9359 | # Cloud Run for Anthos: supported |
| 9360 | # |
| 9361 | # The relative path of the file to map the key to. |
| 9362 | # May not be an absolute path. |
| 9363 | # May not contain the path element '..'. |
| 9364 | # May not start with the string '..'. |
| 9365 | "mode": 42, # (Optional) |
| 9366 | # |
| 9367 | # Cloud Run fully managed: not supported |
| 9368 | # |
| 9369 | # Cloud Run for Anthos: supported |
| 9370 | # |
| 9371 | # Mode bits to use on this file, must be a value between 0 and 0777. If not |
| 9372 | # specified, the volume defaultMode will be used. This might be in conflict |
| 9373 | # with other options that affect the file mode, like fsGroup, and the result |
| 9374 | # can be other mode bits set. |
| 9375 | }, |
| 9376 | ], |
| 9377 | "optional": True or False, # (Optional) |
| 9378 | # |
| 9379 | # Cloud Run fully managed: not supported |
| 9380 | # |
| 9381 | # Cloud Run for Anthos: supported |
| 9382 | # |
| 9383 | # Specify whether the Secret or its keys must be defined. |
| 9384 | "defaultMode": 42, # (Optional) |
| 9385 | # |
| 9386 | # Cloud Run fully managed: not supported |
| 9387 | # |
| 9388 | # Cloud Run for Anthos: supported |
| 9389 | # |
| 9390 | # Mode bits to use on created files by default. Must be a value between 0 and |
| 9391 | # 0777. Defaults to 0644. Directories within the path are not affected by |
| 9392 | # this setting. This might be in conflict with other options that affect the |
| 9393 | # file mode, like fsGroup, and the result can be other mode bits set. |
| 9394 | }, |
| 9395 | }, |
| 9396 | ], |
| 9397 | }, |
| 9398 | "metadata": { # k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all # Optional metadata for this Revision, including labels and annotations. Name |
| 9399 | # will be generated by the Configuration. |
| 9400 | # To set minimum instances for this revision, use the |
| 9401 | # "autoscaling.knative.dev/minScale" annotation key. |
| 9402 | # To set maximum instances for this revision, use the |
| 9403 | # "autoscaling.knative.dev/maxScale" annotation key. |
| 9404 | # To set Cloud SQL connections for the revision, use the |
| 9405 | # "run.googleapis.com/cloudsql-instances" annotation key. |
| 9406 | # persisted resources must have, which includes all objects users must create. |
| 9407 | "annotations": { # (Optional) |
| 9408 | # |
| 9409 | # Annotations is an unstructured key value map stored with a resource that |
| 9410 | # may be set by external tools to store and retrieve arbitrary metadata. They |
| 9411 | # are not queryable and should be preserved when modifying objects. More |
| 9412 | # info: http://kubernetes.io/docs/user-guide/annotations |
| 9413 | "a_key": "A String", |
| 9414 | }, |
| 9415 | "generateName": "A String", # (Optional) |
| 9416 | # |
| 9417 | # Cloud Run fully managed: not supported |
| 9418 | # |
| 9419 | # Cloud Run for Anthos: supported |
| 9420 | # |
| 9421 | # GenerateName is an optional prefix, used by the server, to generate a |
| 9422 | # unique name ONLY IF the Name field has not been provided. If this field is |
| 9423 | # used, the name returned to the client will be different than the name |
| 9424 | # passed. This value will also be combined with a unique suffix. The provided |
| 9425 | # value has the same validation rules as the Name field, and may be truncated |
| 9426 | # by the length of the suffix required to make the value unique on the |
| 9427 | # server. |
| 9428 | # |
| 9429 | # If this field is specified and the generated name exists, the server will |
| 9430 | # NOT return a 409 - instead, it will either return 201 Created or 500 with |
| 9431 | # Reason ServerTimeout indicating a unique name could not be found in the |
| 9432 | # time allotted, and the client should retry (optionally after the time |
| 9433 | # indicated in the Retry-After header). |
| 9434 | # |
| 9435 | # Applied only if Name is not specified. |
| 9436 | # More info: |
| 9437 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency |
| 9438 | # string generateName = 2; |
| 9439 | "name": "A String", # Name must be unique within a namespace, within a Cloud Run region. |
| 9440 | # Is required when creating |
| 9441 | # resources, although some resources may allow a client to request the |
| 9442 | # generation of an appropriate name automatically. Name is primarily intended |
| 9443 | # for creation idempotence and configuration definition. Cannot be updated. |
| 9444 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 9445 | # +optional |
| 9446 | "deletionGracePeriodSeconds": 42, # (Optional) |
| 9447 | # |
| 9448 | # Cloud Run fully managed: not supported |
| 9449 | # |
| 9450 | # Cloud Run for Anthos: supported |
| 9451 | # |
| 9452 | # Number of seconds allowed for this object to gracefully terminate before |
| 9453 | # it will be removed from the system. Only set when deletionTimestamp is also |
| 9454 | # set. May only be shortened. Read-only. |
| 9455 | "clusterName": "A String", # (Optional) |
| 9456 | # |
| 9457 | # Cloud Run fully managed: not supported |
| 9458 | # |
| 9459 | # Cloud Run for Anthos: supported |
| 9460 | # |
| 9461 | # The name of the cluster which the object belongs to. |
| 9462 | # This is used to distinguish resources with same name and namespace in |
| 9463 | # different clusters. This field is not set anywhere right now and apiserver |
| 9464 | # is going to ignore it if set in create or update request. |
| 9465 | "finalizers": [ # (Optional) |
| 9466 | # |
| 9467 | # Cloud Run fully managed: not supported |
| 9468 | # |
| 9469 | # Cloud Run for Anthos: supported |
| 9470 | # |
| 9471 | # Must be empty before the object is deleted from the registry. Each entry |
| 9472 | # is an identifier for the responsible component that will remove the entry |
| 9473 | # from the list. If the deletionTimestamp of the object is non-nil, entries |
| 9474 | # in this list can only be removed. |
| 9475 | # +patchStrategy=merge |
| 9476 | "A String", |
| 9477 | ], |
| 9478 | "deletionTimestamp": "A String", # (Optional) |
| 9479 | # |
| 9480 | # Cloud Run fully managed: not supported |
| 9481 | # |
| 9482 | # Cloud Run for Anthos: supported |
| 9483 | # |
| 9484 | # DeletionTimestamp is RFC 3339 date and time at which this resource will be |
| 9485 | # deleted. This field is set by the server when a graceful deletion is |
| 9486 | # requested by the user, and is not directly settable by a client. The |
| 9487 | # resource is expected to be deleted (no longer visible from resource lists, |
| 9488 | # and not reachable by name) after the time in this field, once the |
| 9489 | # finalizers list is empty. As long as the finalizers list contains items, |
| 9490 | # deletion is blocked. Once the deletionTimestamp is set, this value may not |
| 9491 | # be unset or be set further into the future, although it may be shortened or |
| 9492 | # the resource may be deleted prior to this time. For example, a user may |
| 9493 | # request that a pod is deleted in 30 seconds. The Kubelet will react by |
| 9494 | # sending a graceful termination signal to the containers in the pod. After |
| 9495 | # that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) |
| 9496 | # to the container and after cleanup, remove the pod from the API. In the |
| 9497 | # presence of network partitions, this object may still exist after this |
| 9498 | # timestamp, until an administrator or automated process can determine the |
| 9499 | # resource is fully terminated. |
| 9500 | # If not set, graceful deletion of the object has not been requested. |
| 9501 | # |
| 9502 | # Populated by the system when a graceful deletion is requested. |
| 9503 | # Read-only. |
| 9504 | # More info: |
| 9505 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 9506 | "ownerReferences": [ # (Optional) |
| 9507 | # |
| 9508 | # Cloud Run fully managed: not supported |
| 9509 | # |
| 9510 | # Cloud Run for Anthos: supported |
| 9511 | # |
| 9512 | # List of objects that own this object. If ALL objects in the list have |
| 9513 | # been deleted, this object will be garbage collected. |
| 9514 | { # OwnerReference contains enough information to let you identify an owning |
| 9515 | # object. Currently, an owning object must be in the same namespace, so there |
| 9516 | # is no namespace field. |
| 9517 | "controller": True or False, # If true, this reference points to the managing controller. |
| 9518 | # +optional |
| 9519 | "kind": "A String", # Kind of the referent. |
| 9520 | # More info: |
| 9521 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds |
| 9522 | "blockOwnerDeletion": True or False, # If true, AND if the owner has the "foregroundDeletion" finalizer, then |
| 9523 | # the owner cannot be deleted from the key-value store until this |
| 9524 | # reference is removed. |
| 9525 | # Defaults to false. |
| 9526 | # To set this field, a user needs "delete" permission of the owner, |
| 9527 | # otherwise 422 (Unprocessable Entity) will be returned. |
| 9528 | # +optional |
| 9529 | "apiVersion": "A String", # API version of the referent. |
| 9530 | "name": "A String", # Name of the referent. |
| 9531 | # More info: http://kubernetes.io/docs/user-guide/identifiers#names |
| 9532 | "uid": "A String", # UID of the referent. |
| 9533 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 9534 | }, |
| 9535 | ], |
| 9536 | "creationTimestamp": "A String", # (Optional) |
| 9537 | # |
| 9538 | # CreationTimestamp is a timestamp representing the server time when this |
| 9539 | # object was created. It is not guaranteed to be set in happens-before order |
| 9540 | # across separate operations. Clients may not set this value. It is |
| 9541 | # represented in RFC3339 form and is in UTC. |
| 9542 | # |
| 9543 | # Populated by the system. |
| 9544 | # Read-only. |
| 9545 | # Null for lists. |
| 9546 | # More info: |
| 9547 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 9548 | "labels": { # (Optional) |
| 9549 | # |
| 9550 | # Map of string keys and values that can be used to organize and categorize |
| 9551 | # (scope and select) objects. May match selectors of replication controllers |
| 9552 | # and routes. |
| 9553 | # More info: http://kubernetes.io/docs/user-guide/labels |
| 9554 | "a_key": "A String", |
| 9555 | }, |
| 9556 | "generation": 42, # (Optional) |
| 9557 | # |
| 9558 | # A sequence number representing a specific generation of the desired state. |
| 9559 | # Populated by the system. Read-only. |
| 9560 | "resourceVersion": "A String", # (Optional) |
| 9561 | # |
| 9562 | # An opaque value that represents the internal version of this object that |
| 9563 | # can be used by clients to determine when objects have changed. May be used |
| 9564 | # for optimistic concurrency, change detection, and the watch operation on a |
| 9565 | # resource or set of resources. Clients must treat these values as opaque and |
| 9566 | # passed unmodified back to the server. They may only be valid for a |
| 9567 | # particular resource or set of resources. |
| 9568 | # |
| 9569 | # Populated by the system. |
| 9570 | # Read-only. |
| 9571 | # Value must be treated as opaque by clients and . |
| 9572 | # More info: |
| 9573 | # https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency |
| 9574 | "selfLink": "A String", # (Optional) |
| 9575 | # |
| 9576 | # SelfLink is a URL representing this object. |
| 9577 | # Populated by the system. |
| 9578 | # Read-only. |
| 9579 | # string selfLink = 4; |
| 9580 | "uid": "A String", # (Optional) |
| 9581 | # |
| 9582 | # UID is the unique in time and space value for this object. It is typically |
| 9583 | # generated by the server on successful creation of a resource and is not |
| 9584 | # allowed to change on PUT operations. |
| 9585 | # |
| 9586 | # Populated by the system. |
| 9587 | # Read-only. |
| 9588 | # More info: http://kubernetes.io/docs/user-guide/identifiers#uids |
| 9589 | "namespace": "A String", # Namespace defines the space within each name must be unique, within a |
| 9590 | # Cloud Run region. In Cloud Run the namespace must be equal to either the |
| 9591 | # project ID or project number. |
| 9592 | }, |
| 9593 | }, |
| 9594 | }, |
| 9595 | }</pre> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 9596 | </div> |
| 9597 | |
| 9598 | </body></html> |