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