Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -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 | |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 75 | <h1><a href="container_v1.html">Kubernetes Engine API</a> . <a href="container_v1.projects.html">projects</a> . <a href="container_v1.projects.zones.html">zones</a> . <a href="container_v1.projects.zones.clusters.html">clusters</a> . <a href="container_v1.projects.zones.clusters.nodePools.html">nodePools</a></h1> |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 78 | <code><a href="#autoscaling">autoscaling(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 79 | <p class="firstline">Sets the autoscaling settings for the specified node pool.</p> |
| 80 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 81 | <code><a href="#create">create(projectId, zone, clusterId, body=None, x__xgafv=None)</a></code></p> |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 82 | <p class="firstline">Creates a node pool for a cluster.</p> |
| 83 | <p class="toc_element"> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 84 | <code><a href="#delete">delete(projectId, zone, clusterId, nodePoolId, name=None, x__xgafv=None)</a></code></p> |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 85 | <p class="firstline">Deletes a node pool from a cluster.</p> |
| 86 | <p class="toc_element"> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 87 | <code><a href="#get">get(projectId, zone, clusterId, nodePoolId, name=None, x__xgafv=None)</a></code></p> |
| 88 | <p class="firstline">Retrieves the requested node pool.</p> |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 89 | <p class="toc_element"> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 90 | <code><a href="#list">list(projectId, zone, clusterId, parent=None, x__xgafv=None)</a></code></p> |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 91 | <p class="firstline">Lists the node pools for a cluster.</p> |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 92 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 93 | <code><a href="#rollback">rollback(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 94 | <p class="firstline">Rolls back a previously Aborted or Failed NodePool upgrade.</p> |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 95 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 96 | <code><a href="#setManagement">setManagement(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</a></code></p> |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 97 | <p class="firstline">Sets the NodeManagement options for a node pool.</p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 98 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 99 | <code><a href="#setSize">setSize(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 100 | <p class="firstline">Sets the size for a specific node pool.</p> |
| 101 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 102 | <code><a href="#update">update(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 103 | <p class="firstline">Updates the version and/or image type for the specified node pool.</p> |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 104 | <h3>Method Details</h3> |
| 105 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 106 | <code class="details" id="autoscaling">autoscaling(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 107 | <pre>Sets the autoscaling settings for the specified node pool. |
| 108 | |
| 109 | Args: |
| 110 | projectId: string, Deprecated. The Google Developers Console [project ID or project |
| 111 | number](https://support.google.com/cloud/answer/6158840). |
| 112 | This field has been deprecated and replaced by the name field. (required) |
| 113 | zone: string, Deprecated. The name of the Google Compute Engine |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 114 | [zone](https://cloud.google.com/compute/docs/zones#available) in which the |
| 115 | cluster resides. This field has been deprecated and replaced by the name |
| 116 | field. (required) |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 117 | clusterId: string, Deprecated. The name of the cluster to upgrade. |
| 118 | This field has been deprecated and replaced by the name field. (required) |
| 119 | nodePoolId: string, Deprecated. The name of the node pool to upgrade. |
| 120 | This field has been deprecated and replaced by the name field. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 121 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 122 | The object takes the form of: |
| 123 | |
| 124 | { # SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 125 | "autoscaling": { # NodePoolAutoscaling contains information required by cluster autoscaler to # Required. Autoscaling configuration for the node pool. |
| 126 | # adjust the size of the node pool to the current cluster usage. |
| 127 | "minNodeCount": 42, # Minimum number of nodes in the NodePool. Must be >= 1 and <= |
| 128 | # max_node_count. |
| 129 | "maxNodeCount": 42, # Maximum number of nodes in the NodePool. Must be >= min_node_count. There |
| 130 | # has to enough quota to scale up the cluster. |
| 131 | "enabled": True or False, # Is autoscaling enabled for this node pool. |
| 132 | "autoprovisioned": True or False, # Can this node pool be deleted automatically. |
| 133 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 134 | "zone": "A String", # Deprecated. The name of the Google Compute Engine |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 135 | # [zone](https://cloud.google.com/compute/docs/zones#available) in which the |
| 136 | # cluster resides. This field has been deprecated and replaced by the name |
| 137 | # field. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 138 | "nodePoolId": "A String", # Deprecated. The name of the node pool to upgrade. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 139 | # This field has been deprecated and replaced by the name field. |
| 140 | "clusterId": "A String", # Deprecated. The name of the cluster to upgrade. |
| 141 | # This field has been deprecated and replaced by the name field. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 142 | "name": "A String", # The name (project, location, cluster, node pool) of the node pool to set |
| 143 | # autoscaler settings. Specified in the format |
| 144 | # `projects/*/locations/*/clusters/*/nodePools/*`. |
| 145 | "projectId": "A String", # Deprecated. The Google Developers Console [project ID or project |
| 146 | # number](https://support.google.com/cloud/answer/6158840). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 147 | # This field has been deprecated and replaced by the name field. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 148 | } |
| 149 | |
| 150 | x__xgafv: string, V1 error format. |
| 151 | Allowed values |
| 152 | 1 - v1 error format |
| 153 | 2 - v2 error format |
| 154 | |
| 155 | Returns: |
| 156 | An object of the form: |
| 157 | |
| 158 | { # This operation resource represents operations that may have happened or are |
| 159 | # happening on the cluster. All fields are output only. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 160 | "progress": { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation. |
| 161 | "name": "A String", # A non-parameterized string describing an operation stage. |
| 162 | # Unset for single-stage operations. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 163 | "metrics": [ # Progress metric bundle, for example: |
| 164 | # metrics: [{name: "nodes done", int_value: 15}, |
| 165 | # {name: "nodes total", int_value: 32}] |
| 166 | # or |
| 167 | # metrics: [{name: "progress", double_value: 0.56}, |
| 168 | # {name: "progress scale", double_value: 1.0}] |
| 169 | { # Progress metric is (string, int|float|string) pair. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 170 | "stringValue": "A String", # For metrics with custom values (ratios, visual progress, etc.). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 171 | "doubleValue": 3.14, # For metrics with floating point value. |
| 172 | "intValue": "A String", # For metrics with integer value. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 173 | "name": "A String", # Required. Metric name, e.g., "nodes total", "percent done". |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 174 | }, |
| 175 | ], |
| 176 | "status": "A String", # Status of an operation stage. |
| 177 | # Unset for single-stage operations. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 178 | "stages": [ # Substages of an operation or a stage. |
| 179 | # Object with schema name: OperationProgress |
| 180 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 181 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 182 | "targetLink": "A String", # Server-defined URL for the target of the operation. |
| 183 | "status": "A String", # The current status of the operation. |
| 184 | "operationType": "A String", # The operation type. |
| 185 | "startTime": "A String", # [Output only] The time the operation started, in |
| 186 | # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 187 | "clusterConditions": [ # Which conditions caused the current cluster state. |
| 188 | { # StatusCondition describes why a cluster or a node pool has a certain status |
| 189 | # (e.g., ERROR or DEGRADED). |
| 190 | "message": "A String", # Human-friendly representation of the condition |
| 191 | "code": "A String", # Machine-friendly representation of the condition |
| 192 | }, |
| 193 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 194 | "zone": "A String", # The name of the Google Compute Engine |
| 195 | # [zone](https://cloud.google.com/compute/docs/zones#available) in which the |
| 196 | # operation is taking place. This field is deprecated, use location instead. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 197 | "selfLink": "A String", # Server-defined URL for the resource. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 198 | "name": "A String", # The server-assigned ID for the operation. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 199 | "detail": "A String", # Detailed operation progress, if available. |
| 200 | "endTime": "A String", # [Output only] The time the operation completed, in |
| 201 | # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 202 | "nodepoolConditions": [ # Which conditions caused the current node pool state. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 203 | { # StatusCondition describes why a cluster or a node pool has a certain status |
| 204 | # (e.g., ERROR or DEGRADED). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 205 | "message": "A String", # Human-friendly representation of the condition |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 206 | "code": "A String", # Machine-friendly representation of the condition |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 207 | }, |
| 208 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 209 | "location": "A String", # [Output only] The name of the Google Compute Engine |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 210 | # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) |
| 211 | # or |
| 212 | # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) |
| 213 | # in which the cluster resides. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 214 | "statusMessage": "A String", # Output only. If an error has occurred, a textual description of the error. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 215 | }</pre> |
| 216 | </div> |
| 217 | |
| 218 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 219 | <code class="details" id="create">create(projectId, zone, clusterId, body=None, x__xgafv=None)</code> |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 220 | <pre>Creates a node pool for a cluster. |
| 221 | |
| 222 | Args: |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 223 | projectId: string, Deprecated. The Google Developers Console [project ID or project |
| 224 | number](https://developers.google.com/console/help/new/#projectnumber). |
| 225 | This field has been deprecated and replaced by the parent field. (required) |
| 226 | zone: string, Deprecated. The name of the Google Compute Engine |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 227 | [zone](https://cloud.google.com/compute/docs/zones#available) in which the |
| 228 | cluster resides. This field has been deprecated and replaced by the parent |
| 229 | field. (required) |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 230 | clusterId: string, Deprecated. The name of the cluster. |
| 231 | This field has been deprecated and replaced by the parent field. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 232 | body: object, The request body. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 233 | The object takes the form of: |
| 234 | |
| 235 | { # CreateNodePoolRequest creates a node pool for a cluster. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 236 | "projectId": "A String", # Deprecated. The Google Developers Console [project ID or project |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 237 | # number](https://developers.google.com/console/help/new/#projectnumber). |
| 238 | # This field has been deprecated and replaced by the parent field. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 239 | "zone": "A String", # Deprecated. The name of the Google Compute Engine |
| 240 | # [zone](https://cloud.google.com/compute/docs/zones#available) in which the |
| 241 | # cluster resides. This field has been deprecated and replaced by the parent |
| 242 | # field. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 243 | "parent": "A String", # The parent (project, location, cluster id) where the node pool will be |
| 244 | # created. Specified in the format |
| 245 | # `projects/*/locations/*/clusters/*`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 246 | "nodePool": { # NodePool contains the name and configuration for a cluster's node pool. # Required. The node pool to create. |
| 247 | # Node pools are a set of nodes (i.e. VM's), with a common configuration and |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 248 | # specification, under the control of the cluster master. They may have a set |
| 249 | # of Kubernetes labels applied to them, which may be used to reference them |
| 250 | # during pod scheduling. They may also be resized up or down, to accommodate |
| 251 | # the workload. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 252 | "selfLink": "A String", # [Output only] Server-defined URL for the resource. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 253 | "management": { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool. |
| 254 | # node pool. |
| 255 | "upgradeOptions": { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool. |
| 256 | # the Auto Upgrades will proceed. |
| 257 | "description": "A String", # [Output only] This field is set when upgrades are about to commence |
| 258 | # with the description of the upgrade. |
| 259 | "autoUpgradeStartTime": "A String", # [Output only] This field is set when upgrades are about to commence |
| 260 | # with the approximate start time for the upgrades, in |
| 261 | # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 262 | }, |
| 263 | "autoRepair": True or False, # A flag that specifies whether the node auto-repair is enabled for the node |
| 264 | # pool. If enabled, the nodes in this node pool will be monitored and, if |
| 265 | # they fail health checks too many times, an automatic repair action will be |
| 266 | # triggered. |
| 267 | "autoUpgrade": True or False, # A flag that specifies whether node auto-upgrade is enabled for the node |
| 268 | # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool |
| 269 | # up to date with the latest release version of Kubernetes. |
| 270 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 271 | "upgradeSettings": { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 272 | # disruption caused by an upgrade. |
| 273 | # |
| 274 | # maxUnavailable controls the number of nodes that can be simultaneously |
| 275 | # unavailable. |
| 276 | # |
| 277 | # maxSurge controls the number of additional nodes that can be added to the |
| 278 | # node pool temporarily for the time of the upgrade to increase the number of |
| 279 | # available nodes. |
| 280 | # |
| 281 | # (maxUnavailable + maxSurge) determines the level of parallelism (how many |
| 282 | # nodes are being upgraded at the same time). |
| 283 | # |
| 284 | # Note: upgrades inevitably introduce some disruption since workloads need to |
| 285 | # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0, |
| 286 | # this holds true. (Disruption stays within the limits of |
| 287 | # PodDisruptionBudget, if it is configured.) |
| 288 | # |
| 289 | # Consider a hypothetical node pool with 5 nodes having maxSurge=2, |
| 290 | # maxUnavailable=1. This means the upgrade process upgrades 3 nodes |
| 291 | # simultaneously. It creates 2 additional (upgraded) nodes, then it brings |
| 292 | # down 3 old (not yet upgraded) nodes at the same time. This ensures that |
| 293 | # there are always at least 4 nodes available. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 294 | "maxUnavailable": 42, # The maximum number of nodes that can be simultaneously unavailable during |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 295 | # the upgrade process. A node is considered available if its status is |
| 296 | # Ready. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 297 | "maxSurge": 42, # The maximum number of nodes that can be created beyond the current size |
| 298 | # of the node pool during the upgrade process. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 299 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 300 | "initialNodeCount": 42, # The initial node count for the pool. You must ensure that your |
| 301 | # Compute Engine [resource quota](https://cloud.google.com/compute/quotas) |
| 302 | # is sufficient for this number of instances. You must also have available |
| 303 | # firewall and routes quota. |
| 304 | "statusMessage": "A String", # [Output only] Additional information about the current status of this |
| 305 | # node pool instance, if available. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 306 | "version": "A String", # The version of the Kubernetes of this node. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 307 | "conditions": [ # Which conditions caused the current node pool state. |
| 308 | { # StatusCondition describes why a cluster or a node pool has a certain status |
| 309 | # (e.g., ERROR or DEGRADED). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 310 | "message": "A String", # Human-friendly representation of the condition |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 311 | "code": "A String", # Machine-friendly representation of the condition |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 312 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 313 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 314 | "config": { # Parameters that describe the nodes in a cluster. # The node configuration of the pool. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 315 | "diskType": "A String", # Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd') |
| 316 | # |
| 317 | # If unspecified, the default disk type is 'pd-standard' |
| 318 | "bootDiskKmsKey": "A String", # |
| 319 | # The Customer Managed Encryption Key used to encrypt the boot disk attached |
| 320 | # to each node in the node pool. This should be of the form |
| 321 | # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. |
| 322 | # For more information about protecting resources with Cloud KMS Keys please |
| 323 | # see: |
| 324 | # https://cloud.google.com/compute/docs/disks/customer-managed-encryption |
| 325 | "shieldedInstanceConfig": { # A set of Shielded Instance options. # Shielded Instance options. |
| 326 | "enableIntegrityMonitoring": True or False, # Defines whether the instance has integrity monitoring enabled. |
| 327 | # |
| 328 | # Enables monitoring and attestation of the boot integrity of the instance. |
| 329 | # The attestation is performed against the integrity policy baseline. This |
| 330 | # baseline is initially derived from the implicitly trusted boot image when |
| 331 | # the instance is created. |
| 332 | "enableSecureBoot": True or False, # Defines whether the instance has Secure Boot enabled. |
| 333 | # |
| 334 | # Secure Boot helps ensure that the system only runs authentic software by |
| 335 | # verifying the digital signature of all boot components, and halting the |
| 336 | # boot process if signature verification fails. |
| 337 | }, |
| 338 | "labels": { # The map of Kubernetes labels (key/value pairs) to be applied to each node. |
| 339 | # These will added in addition to any default label(s) that |
| 340 | # Kubernetes may apply to the node. |
| 341 | # In case of conflict in label keys, the applied set may differ depending on |
| 342 | # the Kubernetes version -- it's best to assume the behavior is undefined |
| 343 | # and conflicts should be avoided. |
| 344 | # For more information, including usage and the valid values, see: |
| 345 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ |
| 346 | "a_key": "A String", |
| 347 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 348 | "oauthScopes": [ # The set of Google API scopes to be made available on all of the |
| 349 | # node VMs under the "default" service account. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 350 | # |
| 351 | # The following scopes are recommended, but not required, and by default are |
| 352 | # not included: |
| 353 | # |
| 354 | # * `https://www.googleapis.com/auth/compute` is required for mounting |
| 355 | # persistent storage on your nodes. |
| 356 | # * `https://www.googleapis.com/auth/devstorage.read_only` is required for |
| 357 | # communicating with **gcr.io** |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 358 | # (the [Google Container |
| 359 | # Registry](https://cloud.google.com/container-registry/)). |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 360 | # |
| 361 | # If unspecified, no scopes are added, unless Cloud Logging or Cloud |
| 362 | # Monitoring are enabled, in which case their required scopes will be added. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 363 | "A String", |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 364 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 365 | "minCpuPlatform": "A String", # Minimum CPU platform to be used by this instance. The instance may be |
| 366 | # scheduled on the specified or newer CPU platform. Applicable values are the |
| 367 | # friendly names of CPU platforms, such as |
| 368 | # <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or |
| 369 | # <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more |
| 370 | # information, read [how to specify min CPU |
| 371 | # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) |
| 372 | "localSsdCount": 42, # The number of local SSD disks to be attached to the node. |
| 373 | # |
| 374 | # The limit for this value is dependent upon the maximum number of |
| 375 | # disks available on a machine per zone. See: |
| 376 | # https://cloud.google.com/compute/docs/disks/local-ssd |
| 377 | # for more information. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 378 | "taints": [ # List of kubernetes taints to be applied to each node. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 379 | # |
| 380 | # For more information, including usage and the valid values, see: |
| 381 | # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ |
| 382 | { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect |
| 383 | # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. |
| 384 | # |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 385 | # See |
| 386 | # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration) |
| 387 | # for more information, including usage and the valid values. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 388 | "value": "A String", # Value for taint. |
| 389 | "key": "A String", # Key for taint. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 390 | "effect": "A String", # Effect for taint. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 391 | }, |
| 392 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 393 | "imageType": "A String", # The image type to use for this node. Note that for a given image type, |
| 394 | # the latest version of it will be used. |
| 395 | "reservationAffinity": { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply |
| 396 | # the specified [Zonal Compute |
| 397 | # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) |
| 398 | # to this node pool. |
| 399 | # is the configuration of desired reservation which instances could take |
| 400 | # capacity from. |
| 401 | "consumeReservationType": "A String", # Corresponds to the type of reservation consumption. |
| 402 | "key": "A String", # Corresponds to the label key of a reservation resource. To target a |
| 403 | # SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as |
| 404 | # the key and specify the name of your reservation as its value. |
| 405 | "values": [ # Corresponds to the label value(s) of reservation resource(s). |
| 406 | "A String", |
| 407 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 408 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 409 | "machineType": "A String", # The name of a Google Compute Engine [machine |
| 410 | # type](https://cloud.google.com/compute/docs/machine-types) (e.g. |
| 411 | # `n1-standard-1`). |
| 412 | # |
| 413 | # If unspecified, the default machine type is |
| 414 | # `n1-standard-1`. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 415 | "nodeGroup": "A String", # Setting this field will assign instances of this |
| 416 | # pool to run on the specified node group. This is useful for running |
| 417 | # workloads on [sole tenant |
| 418 | # nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes). |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 419 | "metadata": { # The metadata key/value pairs assigned to instances in the cluster. |
| 420 | # |
| 421 | # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes |
| 422 | # in length. These are reflected as part of a URL in the metadata server. |
| 423 | # Additionally, to avoid ambiguity, keys must not conflict with any other |
| 424 | # metadata keys for the project or be one of the reserved keys: |
| 425 | # "cluster-location" |
| 426 | # "cluster-name" |
| 427 | # "cluster-uid" |
| 428 | # "configure-sh" |
| 429 | # "containerd-configure-sh" |
| 430 | # "enable-os-login" |
| 431 | # "gci-ensure-gke-docker" |
| 432 | # "gci-metrics-enabled" |
| 433 | # "gci-update-strategy" |
| 434 | # "instance-template" |
| 435 | # "kube-env" |
| 436 | # "startup-script" |
| 437 | # "user-data" |
| 438 | # "disable-address-manager" |
| 439 | # "windows-startup-script-ps1" |
| 440 | # "common-psm1" |
| 441 | # "k8s-node-setup-psm1" |
| 442 | # "install-ssh-psm1" |
| 443 | # "user-profile-psm1" |
| 444 | # "serial-port-logging-enable" |
| 445 | # |
| 446 | # Values are free-form strings, and only have meaning as interpreted by |
| 447 | # the image running in the instance. The only restriction placed on them is |
| 448 | # that each value's size must be less than or equal to 32 KB. |
| 449 | # |
| 450 | # The total size of all keys and values must be less than 512 KB. |
| 451 | "a_key": "A String", |
| 452 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 453 | "tags": [ # The list of instance tags applied to all nodes. Tags are used to identify |
| 454 | # valid sources or targets for network firewalls and are specified by |
| 455 | # the client during cluster or node pool creation. Each tag within the list |
| 456 | # must comply with RFC1035. |
| 457 | "A String", |
| 458 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 459 | "sandboxConfig": { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node. |
| 460 | "type": "A String", # Type of the sandbox to use for the node. |
| 461 | }, |
| 462 | "preemptible": True or False, # Whether the nodes are created as preemptible VM instances. See: |
| 463 | # https://cloud.google.com/compute/docs/instances/preemptible for more |
| 464 | # information about preemptible VM instances. |
| 465 | "workloadMetadataConfig": { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node. |
| 466 | # workloads on the node pool. |
| 467 | "mode": "A String", # Mode is the configuration for how to expose metadata to workloads running |
| 468 | # on the node pool. |
| 469 | }, |
| 470 | "diskSizeGb": 42, # Size of the disk attached to each node, specified in GB. |
| 471 | # The smallest allowed disk size is 10GB. |
| 472 | # |
| 473 | # If unspecified, the default disk size is 100GB. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 474 | "serviceAccount": "A String", # The Google Cloud Platform Service Account to be used by the node VMs. |
| 475 | # Specify the email address of the Service Account; otherwise, if no Service |
| 476 | # Account is specified, the "default" service account is used. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 477 | "accelerators": [ # A list of hardware accelerators to be attached to each node. |
| 478 | # See https://cloud.google.com/compute/docs/gpus for more information about |
| 479 | # support for GPUs. |
| 480 | { # AcceleratorConfig represents a Hardware Accelerator request. |
| 481 | "acceleratorType": "A String", # The accelerator type resource name. List of supported accelerators |
| 482 | # [here](https://cloud.google.com/compute/docs/gpus) |
| 483 | "acceleratorCount": "A String", # The number of the accelerator cards exposed to an instance. |
| 484 | }, |
| 485 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 486 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 487 | "name": "A String", # The name of the node pool. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 488 | "maxPodsConstraint": { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run |
| 489 | # simultaneously on a node in the node pool. |
| 490 | "maxPodsPerNode": "A String", # Constraint enforced on the max num of pods per node. |
| 491 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 492 | "autoscaling": { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled |
| 493 | # only if a valid configuration is present. |
| 494 | # adjust the size of the node pool to the current cluster usage. |
| 495 | "minNodeCount": 42, # Minimum number of nodes in the NodePool. Must be >= 1 and <= |
| 496 | # max_node_count. |
| 497 | "maxNodeCount": 42, # Maximum number of nodes in the NodePool. Must be >= min_node_count. There |
| 498 | # has to enough quota to scale up the cluster. |
| 499 | "enabled": True or False, # Is autoscaling enabled for this node pool. |
| 500 | "autoprovisioned": True or False, # Can this node pool be deleted automatically. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 501 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 502 | "podIpv4CidrSize": 42, # [Output only] The pod CIDR block size per node in this node pool. |
| 503 | "instanceGroupUrls": [ # [Output only] The resource URLs of the [managed instance |
| 504 | # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) |
| 505 | # associated with this node pool. |
| 506 | "A String", |
| 507 | ], |
| 508 | "status": "A String", # [Output only] The status of the nodes in this pool instance. |
| 509 | "locations": [ # The list of Google Compute Engine |
| 510 | # [zones](https://cloud.google.com/compute/docs/zones#available) in which the |
| 511 | # NodePool's nodes should be located. |
| 512 | "A String", |
| 513 | ], |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 514 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 515 | "clusterId": "A String", # Deprecated. The name of the cluster. |
| 516 | # This field has been deprecated and replaced by the parent field. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 517 | } |
| 518 | |
| 519 | x__xgafv: string, V1 error format. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 520 | Allowed values |
| 521 | 1 - v1 error format |
| 522 | 2 - v2 error format |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 523 | |
| 524 | Returns: |
| 525 | An object of the form: |
| 526 | |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 527 | { # This operation resource represents operations that may have happened or are |
| 528 | # happening on the cluster. All fields are output only. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 529 | "progress": { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation. |
| 530 | "name": "A String", # A non-parameterized string describing an operation stage. |
| 531 | # Unset for single-stage operations. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 532 | "metrics": [ # Progress metric bundle, for example: |
| 533 | # metrics: [{name: "nodes done", int_value: 15}, |
| 534 | # {name: "nodes total", int_value: 32}] |
| 535 | # or |
| 536 | # metrics: [{name: "progress", double_value: 0.56}, |
| 537 | # {name: "progress scale", double_value: 1.0}] |
| 538 | { # Progress metric is (string, int|float|string) pair. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 539 | "stringValue": "A String", # For metrics with custom values (ratios, visual progress, etc.). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 540 | "doubleValue": 3.14, # For metrics with floating point value. |
| 541 | "intValue": "A String", # For metrics with integer value. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 542 | "name": "A String", # Required. Metric name, e.g., "nodes total", "percent done". |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 543 | }, |
| 544 | ], |
| 545 | "status": "A String", # Status of an operation stage. |
| 546 | # Unset for single-stage operations. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 547 | "stages": [ # Substages of an operation or a stage. |
| 548 | # Object with schema name: OperationProgress |
| 549 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 550 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 551 | "targetLink": "A String", # Server-defined URL for the target of the operation. |
| 552 | "status": "A String", # The current status of the operation. |
| 553 | "operationType": "A String", # The operation type. |
| 554 | "startTime": "A String", # [Output only] The time the operation started, in |
| 555 | # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 556 | "clusterConditions": [ # Which conditions caused the current cluster state. |
| 557 | { # StatusCondition describes why a cluster or a node pool has a certain status |
| 558 | # (e.g., ERROR or DEGRADED). |
| 559 | "message": "A String", # Human-friendly representation of the condition |
| 560 | "code": "A String", # Machine-friendly representation of the condition |
| 561 | }, |
| 562 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 563 | "zone": "A String", # The name of the Google Compute Engine |
| 564 | # [zone](https://cloud.google.com/compute/docs/zones#available) in which the |
| 565 | # operation is taking place. This field is deprecated, use location instead. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 566 | "selfLink": "A String", # Server-defined URL for the resource. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 567 | "name": "A String", # The server-assigned ID for the operation. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 568 | "detail": "A String", # Detailed operation progress, if available. |
| 569 | "endTime": "A String", # [Output only] The time the operation completed, in |
| 570 | # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 571 | "nodepoolConditions": [ # Which conditions caused the current node pool state. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 572 | { # StatusCondition describes why a cluster or a node pool has a certain status |
| 573 | # (e.g., ERROR or DEGRADED). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 574 | "message": "A String", # Human-friendly representation of the condition |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 575 | "code": "A String", # Machine-friendly representation of the condition |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 576 | }, |
| 577 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 578 | "location": "A String", # [Output only] The name of the Google Compute Engine |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 579 | # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) |
| 580 | # or |
| 581 | # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) |
| 582 | # in which the cluster resides. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 583 | "statusMessage": "A String", # Output only. If an error has occurred, a textual description of the error. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 584 | }</pre> |
| 585 | </div> |
| 586 | |
| 587 | <div class="method"> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 588 | <code class="details" id="delete">delete(projectId, zone, clusterId, nodePoolId, name=None, x__xgafv=None)</code> |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 589 | <pre>Deletes a node pool from a cluster. |
| 590 | |
| 591 | Args: |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 592 | projectId: string, Deprecated. The Google Developers Console [project ID or project |
| 593 | number](https://developers.google.com/console/help/new/#projectnumber). |
| 594 | This field has been deprecated and replaced by the name field. (required) |
| 595 | zone: string, Deprecated. The name of the Google Compute Engine |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 596 | [zone](https://cloud.google.com/compute/docs/zones#available) in which the |
| 597 | cluster resides. This field has been deprecated and replaced by the name |
| 598 | field. (required) |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 599 | clusterId: string, Deprecated. The name of the cluster. |
| 600 | This field has been deprecated and replaced by the name field. (required) |
| 601 | nodePoolId: string, Deprecated. The name of the node pool to delete. |
| 602 | This field has been deprecated and replaced by the name field. (required) |
| 603 | name: string, The name (project, location, cluster, node pool id) of the node pool to |
| 604 | delete. Specified in the format |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 605 | `projects/*/locations/*/clusters/*/nodePools/*`. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 606 | x__xgafv: string, V1 error format. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 607 | Allowed values |
| 608 | 1 - v1 error format |
| 609 | 2 - v2 error format |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 610 | |
| 611 | Returns: |
| 612 | An object of the form: |
| 613 | |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 614 | { # This operation resource represents operations that may have happened or are |
| 615 | # happening on the cluster. All fields are output only. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 616 | "progress": { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation. |
| 617 | "name": "A String", # A non-parameterized string describing an operation stage. |
| 618 | # Unset for single-stage operations. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 619 | "metrics": [ # Progress metric bundle, for example: |
| 620 | # metrics: [{name: "nodes done", int_value: 15}, |
| 621 | # {name: "nodes total", int_value: 32}] |
| 622 | # or |
| 623 | # metrics: [{name: "progress", double_value: 0.56}, |
| 624 | # {name: "progress scale", double_value: 1.0}] |
| 625 | { # Progress metric is (string, int|float|string) pair. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 626 | "stringValue": "A String", # For metrics with custom values (ratios, visual progress, etc.). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 627 | "doubleValue": 3.14, # For metrics with floating point value. |
| 628 | "intValue": "A String", # For metrics with integer value. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 629 | "name": "A String", # Required. Metric name, e.g., "nodes total", "percent done". |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 630 | }, |
| 631 | ], |
| 632 | "status": "A String", # Status of an operation stage. |
| 633 | # Unset for single-stage operations. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 634 | "stages": [ # Substages of an operation or a stage. |
| 635 | # Object with schema name: OperationProgress |
| 636 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 637 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 638 | "targetLink": "A String", # Server-defined URL for the target of the operation. |
| 639 | "status": "A String", # The current status of the operation. |
| 640 | "operationType": "A String", # The operation type. |
| 641 | "startTime": "A String", # [Output only] The time the operation started, in |
| 642 | # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 643 | "clusterConditions": [ # Which conditions caused the current cluster state. |
| 644 | { # StatusCondition describes why a cluster or a node pool has a certain status |
| 645 | # (e.g., ERROR or DEGRADED). |
| 646 | "message": "A String", # Human-friendly representation of the condition |
| 647 | "code": "A String", # Machine-friendly representation of the condition |
| 648 | }, |
| 649 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 650 | "zone": "A String", # The name of the Google Compute Engine |
| 651 | # [zone](https://cloud.google.com/compute/docs/zones#available) in which the |
| 652 | # operation is taking place. This field is deprecated, use location instead. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 653 | "selfLink": "A String", # Server-defined URL for the resource. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 654 | "name": "A String", # The server-assigned ID for the operation. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 655 | "detail": "A String", # Detailed operation progress, if available. |
| 656 | "endTime": "A String", # [Output only] The time the operation completed, in |
| 657 | # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 658 | "nodepoolConditions": [ # Which conditions caused the current node pool state. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 659 | { # StatusCondition describes why a cluster or a node pool has a certain status |
| 660 | # (e.g., ERROR or DEGRADED). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 661 | "message": "A String", # Human-friendly representation of the condition |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 662 | "code": "A String", # Machine-friendly representation of the condition |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 663 | }, |
| 664 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 665 | "location": "A String", # [Output only] The name of the Google Compute Engine |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 666 | # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) |
| 667 | # or |
| 668 | # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) |
| 669 | # in which the cluster resides. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 670 | "statusMessage": "A String", # Output only. If an error has occurred, a textual description of the error. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 671 | }</pre> |
| 672 | </div> |
| 673 | |
| 674 | <div class="method"> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 675 | <code class="details" id="get">get(projectId, zone, clusterId, nodePoolId, name=None, x__xgafv=None)</code> |
| 676 | <pre>Retrieves the requested node pool. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 677 | |
| 678 | Args: |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 679 | projectId: string, Deprecated. The Google Developers Console [project ID or project |
| 680 | number](https://developers.google.com/console/help/new/#projectnumber). |
| 681 | This field has been deprecated and replaced by the name field. (required) |
| 682 | zone: string, Deprecated. The name of the Google Compute Engine |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 683 | [zone](https://cloud.google.com/compute/docs/zones#available) in which the |
| 684 | cluster resides. This field has been deprecated and replaced by the name |
| 685 | field. (required) |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 686 | clusterId: string, Deprecated. The name of the cluster. |
| 687 | This field has been deprecated and replaced by the name field. (required) |
| 688 | nodePoolId: string, Deprecated. The name of the node pool. |
| 689 | This field has been deprecated and replaced by the name field. (required) |
| 690 | name: string, The name (project, location, cluster, node pool id) of the node pool to |
| 691 | get. Specified in the format |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 692 | `projects/*/locations/*/clusters/*/nodePools/*`. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 693 | x__xgafv: string, V1 error format. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 694 | Allowed values |
| 695 | 1 - v1 error format |
| 696 | 2 - v2 error format |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 697 | |
| 698 | Returns: |
| 699 | An object of the form: |
| 700 | |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 701 | { # NodePool contains the name and configuration for a cluster's node pool. |
| 702 | # Node pools are a set of nodes (i.e. VM's), with a common configuration and |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 703 | # specification, under the control of the cluster master. They may have a set |
| 704 | # of Kubernetes labels applied to them, which may be used to reference them |
| 705 | # during pod scheduling. They may also be resized up or down, to accommodate |
| 706 | # the workload. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 707 | "selfLink": "A String", # [Output only] Server-defined URL for the resource. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 708 | "management": { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool. |
| 709 | # node pool. |
| 710 | "upgradeOptions": { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool. |
| 711 | # the Auto Upgrades will proceed. |
| 712 | "description": "A String", # [Output only] This field is set when upgrades are about to commence |
| 713 | # with the description of the upgrade. |
| 714 | "autoUpgradeStartTime": "A String", # [Output only] This field is set when upgrades are about to commence |
| 715 | # with the approximate start time for the upgrades, in |
| 716 | # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 717 | }, |
| 718 | "autoRepair": True or False, # A flag that specifies whether the node auto-repair is enabled for the node |
| 719 | # pool. If enabled, the nodes in this node pool will be monitored and, if |
| 720 | # they fail health checks too many times, an automatic repair action will be |
| 721 | # triggered. |
| 722 | "autoUpgrade": True or False, # A flag that specifies whether node auto-upgrade is enabled for the node |
| 723 | # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool |
| 724 | # up to date with the latest release version of Kubernetes. |
| 725 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 726 | "upgradeSettings": { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 727 | # disruption caused by an upgrade. |
| 728 | # |
| 729 | # maxUnavailable controls the number of nodes that can be simultaneously |
| 730 | # unavailable. |
| 731 | # |
| 732 | # maxSurge controls the number of additional nodes that can be added to the |
| 733 | # node pool temporarily for the time of the upgrade to increase the number of |
| 734 | # available nodes. |
| 735 | # |
| 736 | # (maxUnavailable + maxSurge) determines the level of parallelism (how many |
| 737 | # nodes are being upgraded at the same time). |
| 738 | # |
| 739 | # Note: upgrades inevitably introduce some disruption since workloads need to |
| 740 | # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0, |
| 741 | # this holds true. (Disruption stays within the limits of |
| 742 | # PodDisruptionBudget, if it is configured.) |
| 743 | # |
| 744 | # Consider a hypothetical node pool with 5 nodes having maxSurge=2, |
| 745 | # maxUnavailable=1. This means the upgrade process upgrades 3 nodes |
| 746 | # simultaneously. It creates 2 additional (upgraded) nodes, then it brings |
| 747 | # down 3 old (not yet upgraded) nodes at the same time. This ensures that |
| 748 | # there are always at least 4 nodes available. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 749 | "maxUnavailable": 42, # The maximum number of nodes that can be simultaneously unavailable during |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 750 | # the upgrade process. A node is considered available if its status is |
| 751 | # Ready. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 752 | "maxSurge": 42, # The maximum number of nodes that can be created beyond the current size |
| 753 | # of the node pool during the upgrade process. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 754 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 755 | "initialNodeCount": 42, # The initial node count for the pool. You must ensure that your |
| 756 | # Compute Engine [resource quota](https://cloud.google.com/compute/quotas) |
| 757 | # is sufficient for this number of instances. You must also have available |
| 758 | # firewall and routes quota. |
| 759 | "statusMessage": "A String", # [Output only] Additional information about the current status of this |
| 760 | # node pool instance, if available. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 761 | "version": "A String", # The version of the Kubernetes of this node. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 762 | "conditions": [ # Which conditions caused the current node pool state. |
| 763 | { # StatusCondition describes why a cluster or a node pool has a certain status |
| 764 | # (e.g., ERROR or DEGRADED). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 765 | "message": "A String", # Human-friendly representation of the condition |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 766 | "code": "A String", # Machine-friendly representation of the condition |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 767 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 768 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 769 | "config": { # Parameters that describe the nodes in a cluster. # The node configuration of the pool. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 770 | "diskType": "A String", # Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd') |
| 771 | # |
| 772 | # If unspecified, the default disk type is 'pd-standard' |
| 773 | "bootDiskKmsKey": "A String", # |
| 774 | # The Customer Managed Encryption Key used to encrypt the boot disk attached |
| 775 | # to each node in the node pool. This should be of the form |
| 776 | # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. |
| 777 | # For more information about protecting resources with Cloud KMS Keys please |
| 778 | # see: |
| 779 | # https://cloud.google.com/compute/docs/disks/customer-managed-encryption |
| 780 | "shieldedInstanceConfig": { # A set of Shielded Instance options. # Shielded Instance options. |
| 781 | "enableIntegrityMonitoring": True or False, # Defines whether the instance has integrity monitoring enabled. |
| 782 | # |
| 783 | # Enables monitoring and attestation of the boot integrity of the instance. |
| 784 | # The attestation is performed against the integrity policy baseline. This |
| 785 | # baseline is initially derived from the implicitly trusted boot image when |
| 786 | # the instance is created. |
| 787 | "enableSecureBoot": True or False, # Defines whether the instance has Secure Boot enabled. |
| 788 | # |
| 789 | # Secure Boot helps ensure that the system only runs authentic software by |
| 790 | # verifying the digital signature of all boot components, and halting the |
| 791 | # boot process if signature verification fails. |
| 792 | }, |
| 793 | "labels": { # The map of Kubernetes labels (key/value pairs) to be applied to each node. |
| 794 | # These will added in addition to any default label(s) that |
| 795 | # Kubernetes may apply to the node. |
| 796 | # In case of conflict in label keys, the applied set may differ depending on |
| 797 | # the Kubernetes version -- it's best to assume the behavior is undefined |
| 798 | # and conflicts should be avoided. |
| 799 | # For more information, including usage and the valid values, see: |
| 800 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ |
| 801 | "a_key": "A String", |
| 802 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 803 | "oauthScopes": [ # The set of Google API scopes to be made available on all of the |
| 804 | # node VMs under the "default" service account. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 805 | # |
| 806 | # The following scopes are recommended, but not required, and by default are |
| 807 | # not included: |
| 808 | # |
| 809 | # * `https://www.googleapis.com/auth/compute` is required for mounting |
| 810 | # persistent storage on your nodes. |
| 811 | # * `https://www.googleapis.com/auth/devstorage.read_only` is required for |
| 812 | # communicating with **gcr.io** |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 813 | # (the [Google Container |
| 814 | # Registry](https://cloud.google.com/container-registry/)). |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 815 | # |
| 816 | # If unspecified, no scopes are added, unless Cloud Logging or Cloud |
| 817 | # Monitoring are enabled, in which case their required scopes will be added. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 818 | "A String", |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 819 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 820 | "minCpuPlatform": "A String", # Minimum CPU platform to be used by this instance. The instance may be |
| 821 | # scheduled on the specified or newer CPU platform. Applicable values are the |
| 822 | # friendly names of CPU platforms, such as |
| 823 | # <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or |
| 824 | # <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more |
| 825 | # information, read [how to specify min CPU |
| 826 | # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) |
| 827 | "localSsdCount": 42, # The number of local SSD disks to be attached to the node. |
| 828 | # |
| 829 | # The limit for this value is dependent upon the maximum number of |
| 830 | # disks available on a machine per zone. See: |
| 831 | # https://cloud.google.com/compute/docs/disks/local-ssd |
| 832 | # for more information. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 833 | "taints": [ # List of kubernetes taints to be applied to each node. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 834 | # |
| 835 | # For more information, including usage and the valid values, see: |
| 836 | # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ |
| 837 | { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect |
| 838 | # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. |
| 839 | # |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 840 | # See |
| 841 | # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration) |
| 842 | # for more information, including usage and the valid values. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 843 | "value": "A String", # Value for taint. |
| 844 | "key": "A String", # Key for taint. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 845 | "effect": "A String", # Effect for taint. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 846 | }, |
| 847 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 848 | "imageType": "A String", # The image type to use for this node. Note that for a given image type, |
| 849 | # the latest version of it will be used. |
| 850 | "reservationAffinity": { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply |
| 851 | # the specified [Zonal Compute |
| 852 | # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) |
| 853 | # to this node pool. |
| 854 | # is the configuration of desired reservation which instances could take |
| 855 | # capacity from. |
| 856 | "consumeReservationType": "A String", # Corresponds to the type of reservation consumption. |
| 857 | "key": "A String", # Corresponds to the label key of a reservation resource. To target a |
| 858 | # SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as |
| 859 | # the key and specify the name of your reservation as its value. |
| 860 | "values": [ # Corresponds to the label value(s) of reservation resource(s). |
| 861 | "A String", |
| 862 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 863 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 864 | "machineType": "A String", # The name of a Google Compute Engine [machine |
| 865 | # type](https://cloud.google.com/compute/docs/machine-types) (e.g. |
| 866 | # `n1-standard-1`). |
| 867 | # |
| 868 | # If unspecified, the default machine type is |
| 869 | # `n1-standard-1`. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 870 | "nodeGroup": "A String", # Setting this field will assign instances of this |
| 871 | # pool to run on the specified node group. This is useful for running |
| 872 | # workloads on [sole tenant |
| 873 | # nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes). |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 874 | "metadata": { # The metadata key/value pairs assigned to instances in the cluster. |
| 875 | # |
| 876 | # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes |
| 877 | # in length. These are reflected as part of a URL in the metadata server. |
| 878 | # Additionally, to avoid ambiguity, keys must not conflict with any other |
| 879 | # metadata keys for the project or be one of the reserved keys: |
| 880 | # "cluster-location" |
| 881 | # "cluster-name" |
| 882 | # "cluster-uid" |
| 883 | # "configure-sh" |
| 884 | # "containerd-configure-sh" |
| 885 | # "enable-os-login" |
| 886 | # "gci-ensure-gke-docker" |
| 887 | # "gci-metrics-enabled" |
| 888 | # "gci-update-strategy" |
| 889 | # "instance-template" |
| 890 | # "kube-env" |
| 891 | # "startup-script" |
| 892 | # "user-data" |
| 893 | # "disable-address-manager" |
| 894 | # "windows-startup-script-ps1" |
| 895 | # "common-psm1" |
| 896 | # "k8s-node-setup-psm1" |
| 897 | # "install-ssh-psm1" |
| 898 | # "user-profile-psm1" |
| 899 | # "serial-port-logging-enable" |
| 900 | # |
| 901 | # Values are free-form strings, and only have meaning as interpreted by |
| 902 | # the image running in the instance. The only restriction placed on them is |
| 903 | # that each value's size must be less than or equal to 32 KB. |
| 904 | # |
| 905 | # The total size of all keys and values must be less than 512 KB. |
| 906 | "a_key": "A String", |
| 907 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 908 | "tags": [ # The list of instance tags applied to all nodes. Tags are used to identify |
| 909 | # valid sources or targets for network firewalls and are specified by |
| 910 | # the client during cluster or node pool creation. Each tag within the list |
| 911 | # must comply with RFC1035. |
| 912 | "A String", |
| 913 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 914 | "sandboxConfig": { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node. |
| 915 | "type": "A String", # Type of the sandbox to use for the node. |
| 916 | }, |
| 917 | "preemptible": True or False, # Whether the nodes are created as preemptible VM instances. See: |
| 918 | # https://cloud.google.com/compute/docs/instances/preemptible for more |
| 919 | # information about preemptible VM instances. |
| 920 | "workloadMetadataConfig": { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node. |
| 921 | # workloads on the node pool. |
| 922 | "mode": "A String", # Mode is the configuration for how to expose metadata to workloads running |
| 923 | # on the node pool. |
| 924 | }, |
| 925 | "diskSizeGb": 42, # Size of the disk attached to each node, specified in GB. |
| 926 | # The smallest allowed disk size is 10GB. |
| 927 | # |
| 928 | # If unspecified, the default disk size is 100GB. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 929 | "serviceAccount": "A String", # The Google Cloud Platform Service Account to be used by the node VMs. |
| 930 | # Specify the email address of the Service Account; otherwise, if no Service |
| 931 | # Account is specified, the "default" service account is used. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 932 | "accelerators": [ # A list of hardware accelerators to be attached to each node. |
| 933 | # See https://cloud.google.com/compute/docs/gpus for more information about |
| 934 | # support for GPUs. |
| 935 | { # AcceleratorConfig represents a Hardware Accelerator request. |
| 936 | "acceleratorType": "A String", # The accelerator type resource name. List of supported accelerators |
| 937 | # [here](https://cloud.google.com/compute/docs/gpus) |
| 938 | "acceleratorCount": "A String", # The number of the accelerator cards exposed to an instance. |
| 939 | }, |
| 940 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 941 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 942 | "name": "A String", # The name of the node pool. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 943 | "maxPodsConstraint": { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run |
| 944 | # simultaneously on a node in the node pool. |
| 945 | "maxPodsPerNode": "A String", # Constraint enforced on the max num of pods per node. |
| 946 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 947 | "autoscaling": { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled |
| 948 | # only if a valid configuration is present. |
| 949 | # adjust the size of the node pool to the current cluster usage. |
| 950 | "minNodeCount": 42, # Minimum number of nodes in the NodePool. Must be >= 1 and <= |
| 951 | # max_node_count. |
| 952 | "maxNodeCount": 42, # Maximum number of nodes in the NodePool. Must be >= min_node_count. There |
| 953 | # has to enough quota to scale up the cluster. |
| 954 | "enabled": True or False, # Is autoscaling enabled for this node pool. |
| 955 | "autoprovisioned": True or False, # Can this node pool be deleted automatically. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 956 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 957 | "podIpv4CidrSize": 42, # [Output only] The pod CIDR block size per node in this node pool. |
| 958 | "instanceGroupUrls": [ # [Output only] The resource URLs of the [managed instance |
| 959 | # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) |
| 960 | # associated with this node pool. |
| 961 | "A String", |
| 962 | ], |
| 963 | "status": "A String", # [Output only] The status of the nodes in this pool instance. |
| 964 | "locations": [ # The list of Google Compute Engine |
| 965 | # [zones](https://cloud.google.com/compute/docs/zones#available) in which the |
| 966 | # NodePool's nodes should be located. |
| 967 | "A String", |
| 968 | ], |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 969 | }</pre> |
| 970 | </div> |
| 971 | |
| 972 | <div class="method"> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 973 | <code class="details" id="list">list(projectId, zone, clusterId, parent=None, x__xgafv=None)</code> |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 974 | <pre>Lists the node pools for a cluster. |
| 975 | |
| 976 | Args: |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 977 | projectId: string, Deprecated. The Google Developers Console [project ID or project |
| 978 | number](https://developers.google.com/console/help/new/#projectnumber). |
| 979 | This field has been deprecated and replaced by the parent field. (required) |
| 980 | zone: string, Deprecated. The name of the Google Compute Engine |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 981 | [zone](https://cloud.google.com/compute/docs/zones#available) in which the |
| 982 | cluster resides. This field has been deprecated and replaced by the parent |
| 983 | field. (required) |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 984 | clusterId: string, Deprecated. The name of the cluster. |
| 985 | This field has been deprecated and replaced by the parent field. (required) |
| 986 | parent: string, The parent (project, location, cluster id) where the node pools will be |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 987 | listed. Specified in the format `projects/*/locations/*/clusters/*`. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 988 | x__xgafv: string, V1 error format. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 989 | Allowed values |
| 990 | 1 - v1 error format |
| 991 | 2 - v2 error format |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 992 | |
| 993 | Returns: |
| 994 | An object of the form: |
| 995 | |
| 996 | { # ListNodePoolsResponse is the result of ListNodePoolsRequest. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 997 | "nodePools": [ # A list of node pools for a cluster. |
| 998 | { # NodePool contains the name and configuration for a cluster's node pool. |
| 999 | # Node pools are a set of nodes (i.e. VM's), with a common configuration and |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 1000 | # specification, under the control of the cluster master. They may have a set |
| 1001 | # of Kubernetes labels applied to them, which may be used to reference them |
| 1002 | # during pod scheduling. They may also be resized up or down, to accommodate |
| 1003 | # the workload. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1004 | "selfLink": "A String", # [Output only] Server-defined URL for the resource. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1005 | "management": { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool. |
| 1006 | # node pool. |
| 1007 | "upgradeOptions": { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool. |
| 1008 | # the Auto Upgrades will proceed. |
| 1009 | "description": "A String", # [Output only] This field is set when upgrades are about to commence |
| 1010 | # with the description of the upgrade. |
| 1011 | "autoUpgradeStartTime": "A String", # [Output only] This field is set when upgrades are about to commence |
| 1012 | # with the approximate start time for the upgrades, in |
| 1013 | # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 1014 | }, |
| 1015 | "autoRepair": True or False, # A flag that specifies whether the node auto-repair is enabled for the node |
| 1016 | # pool. If enabled, the nodes in this node pool will be monitored and, if |
| 1017 | # they fail health checks too many times, an automatic repair action will be |
| 1018 | # triggered. |
| 1019 | "autoUpgrade": True or False, # A flag that specifies whether node auto-upgrade is enabled for the node |
| 1020 | # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool |
| 1021 | # up to date with the latest release version of Kubernetes. |
| 1022 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1023 | "upgradeSettings": { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1024 | # disruption caused by an upgrade. |
| 1025 | # |
| 1026 | # maxUnavailable controls the number of nodes that can be simultaneously |
| 1027 | # unavailable. |
| 1028 | # |
| 1029 | # maxSurge controls the number of additional nodes that can be added to the |
| 1030 | # node pool temporarily for the time of the upgrade to increase the number of |
| 1031 | # available nodes. |
| 1032 | # |
| 1033 | # (maxUnavailable + maxSurge) determines the level of parallelism (how many |
| 1034 | # nodes are being upgraded at the same time). |
| 1035 | # |
| 1036 | # Note: upgrades inevitably introduce some disruption since workloads need to |
| 1037 | # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0, |
| 1038 | # this holds true. (Disruption stays within the limits of |
| 1039 | # PodDisruptionBudget, if it is configured.) |
| 1040 | # |
| 1041 | # Consider a hypothetical node pool with 5 nodes having maxSurge=2, |
| 1042 | # maxUnavailable=1. This means the upgrade process upgrades 3 nodes |
| 1043 | # simultaneously. It creates 2 additional (upgraded) nodes, then it brings |
| 1044 | # down 3 old (not yet upgraded) nodes at the same time. This ensures that |
| 1045 | # there are always at least 4 nodes available. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1046 | "maxUnavailable": 42, # The maximum number of nodes that can be simultaneously unavailable during |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1047 | # the upgrade process. A node is considered available if its status is |
| 1048 | # Ready. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1049 | "maxSurge": 42, # The maximum number of nodes that can be created beyond the current size |
| 1050 | # of the node pool during the upgrade process. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1051 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1052 | "initialNodeCount": 42, # The initial node count for the pool. You must ensure that your |
| 1053 | # Compute Engine [resource quota](https://cloud.google.com/compute/quotas) |
| 1054 | # is sufficient for this number of instances. You must also have available |
| 1055 | # firewall and routes quota. |
| 1056 | "statusMessage": "A String", # [Output only] Additional information about the current status of this |
| 1057 | # node pool instance, if available. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1058 | "version": "A String", # The version of the Kubernetes of this node. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1059 | "conditions": [ # Which conditions caused the current node pool state. |
| 1060 | { # StatusCondition describes why a cluster or a node pool has a certain status |
| 1061 | # (e.g., ERROR or DEGRADED). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1062 | "message": "A String", # Human-friendly representation of the condition |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1063 | "code": "A String", # Machine-friendly representation of the condition |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1064 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1065 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1066 | "config": { # Parameters that describe the nodes in a cluster. # The node configuration of the pool. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1067 | "diskType": "A String", # Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd') |
| 1068 | # |
| 1069 | # If unspecified, the default disk type is 'pd-standard' |
| 1070 | "bootDiskKmsKey": "A String", # |
| 1071 | # The Customer Managed Encryption Key used to encrypt the boot disk attached |
| 1072 | # to each node in the node pool. This should be of the form |
| 1073 | # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. |
| 1074 | # For more information about protecting resources with Cloud KMS Keys please |
| 1075 | # see: |
| 1076 | # https://cloud.google.com/compute/docs/disks/customer-managed-encryption |
| 1077 | "shieldedInstanceConfig": { # A set of Shielded Instance options. # Shielded Instance options. |
| 1078 | "enableIntegrityMonitoring": True or False, # Defines whether the instance has integrity monitoring enabled. |
| 1079 | # |
| 1080 | # Enables monitoring and attestation of the boot integrity of the instance. |
| 1081 | # The attestation is performed against the integrity policy baseline. This |
| 1082 | # baseline is initially derived from the implicitly trusted boot image when |
| 1083 | # the instance is created. |
| 1084 | "enableSecureBoot": True or False, # Defines whether the instance has Secure Boot enabled. |
| 1085 | # |
| 1086 | # Secure Boot helps ensure that the system only runs authentic software by |
| 1087 | # verifying the digital signature of all boot components, and halting the |
| 1088 | # boot process if signature verification fails. |
| 1089 | }, |
| 1090 | "labels": { # The map of Kubernetes labels (key/value pairs) to be applied to each node. |
| 1091 | # These will added in addition to any default label(s) that |
| 1092 | # Kubernetes may apply to the node. |
| 1093 | # In case of conflict in label keys, the applied set may differ depending on |
| 1094 | # the Kubernetes version -- it's best to assume the behavior is undefined |
| 1095 | # and conflicts should be avoided. |
| 1096 | # For more information, including usage and the valid values, see: |
| 1097 | # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ |
| 1098 | "a_key": "A String", |
| 1099 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1100 | "oauthScopes": [ # The set of Google API scopes to be made available on all of the |
| 1101 | # node VMs under the "default" service account. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 1102 | # |
| 1103 | # The following scopes are recommended, but not required, and by default are |
| 1104 | # not included: |
| 1105 | # |
| 1106 | # * `https://www.googleapis.com/auth/compute` is required for mounting |
| 1107 | # persistent storage on your nodes. |
| 1108 | # * `https://www.googleapis.com/auth/devstorage.read_only` is required for |
| 1109 | # communicating with **gcr.io** |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1110 | # (the [Google Container |
| 1111 | # Registry](https://cloud.google.com/container-registry/)). |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 1112 | # |
| 1113 | # If unspecified, no scopes are added, unless Cloud Logging or Cloud |
| 1114 | # Monitoring are enabled, in which case their required scopes will be added. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1115 | "A String", |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1116 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1117 | "minCpuPlatform": "A String", # Minimum CPU platform to be used by this instance. The instance may be |
| 1118 | # scheduled on the specified or newer CPU platform. Applicable values are the |
| 1119 | # friendly names of CPU platforms, such as |
| 1120 | # <code>minCpuPlatform: &quot;Intel Haswell&quot;</code> or |
| 1121 | # <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more |
| 1122 | # information, read [how to specify min CPU |
| 1123 | # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) |
| 1124 | "localSsdCount": 42, # The number of local SSD disks to be attached to the node. |
| 1125 | # |
| 1126 | # The limit for this value is dependent upon the maximum number of |
| 1127 | # disks available on a machine per zone. See: |
| 1128 | # https://cloud.google.com/compute/docs/disks/local-ssd |
| 1129 | # for more information. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1130 | "taints": [ # List of kubernetes taints to be applied to each node. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1131 | # |
| 1132 | # For more information, including usage and the valid values, see: |
| 1133 | # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ |
| 1134 | { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect |
| 1135 | # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. |
| 1136 | # |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1137 | # See |
| 1138 | # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration) |
| 1139 | # for more information, including usage and the valid values. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1140 | "value": "A String", # Value for taint. |
| 1141 | "key": "A String", # Key for taint. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1142 | "effect": "A String", # Effect for taint. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1143 | }, |
| 1144 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1145 | "imageType": "A String", # The image type to use for this node. Note that for a given image type, |
| 1146 | # the latest version of it will be used. |
| 1147 | "reservationAffinity": { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply |
| 1148 | # the specified [Zonal Compute |
| 1149 | # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) |
| 1150 | # to this node pool. |
| 1151 | # is the configuration of desired reservation which instances could take |
| 1152 | # capacity from. |
| 1153 | "consumeReservationType": "A String", # Corresponds to the type of reservation consumption. |
| 1154 | "key": "A String", # Corresponds to the label key of a reservation resource. To target a |
| 1155 | # SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as |
| 1156 | # the key and specify the name of your reservation as its value. |
| 1157 | "values": [ # Corresponds to the label value(s) of reservation resource(s). |
| 1158 | "A String", |
| 1159 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1160 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1161 | "machineType": "A String", # The name of a Google Compute Engine [machine |
| 1162 | # type](https://cloud.google.com/compute/docs/machine-types) (e.g. |
| 1163 | # `n1-standard-1`). |
| 1164 | # |
| 1165 | # If unspecified, the default machine type is |
| 1166 | # `n1-standard-1`. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1167 | "nodeGroup": "A String", # Setting this field will assign instances of this |
| 1168 | # pool to run on the specified node group. This is useful for running |
| 1169 | # workloads on [sole tenant |
| 1170 | # nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes). |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1171 | "metadata": { # The metadata key/value pairs assigned to instances in the cluster. |
| 1172 | # |
| 1173 | # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes |
| 1174 | # in length. These are reflected as part of a URL in the metadata server. |
| 1175 | # Additionally, to avoid ambiguity, keys must not conflict with any other |
| 1176 | # metadata keys for the project or be one of the reserved keys: |
| 1177 | # "cluster-location" |
| 1178 | # "cluster-name" |
| 1179 | # "cluster-uid" |
| 1180 | # "configure-sh" |
| 1181 | # "containerd-configure-sh" |
| 1182 | # "enable-os-login" |
| 1183 | # "gci-ensure-gke-docker" |
| 1184 | # "gci-metrics-enabled" |
| 1185 | # "gci-update-strategy" |
| 1186 | # "instance-template" |
| 1187 | # "kube-env" |
| 1188 | # "startup-script" |
| 1189 | # "user-data" |
| 1190 | # "disable-address-manager" |
| 1191 | # "windows-startup-script-ps1" |
| 1192 | # "common-psm1" |
| 1193 | # "k8s-node-setup-psm1" |
| 1194 | # "install-ssh-psm1" |
| 1195 | # "user-profile-psm1" |
| 1196 | # "serial-port-logging-enable" |
| 1197 | # |
| 1198 | # Values are free-form strings, and only have meaning as interpreted by |
| 1199 | # the image running in the instance. The only restriction placed on them is |
| 1200 | # that each value's size must be less than or equal to 32 KB. |
| 1201 | # |
| 1202 | # The total size of all keys and values must be less than 512 KB. |
| 1203 | "a_key": "A String", |
| 1204 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1205 | "tags": [ # The list of instance tags applied to all nodes. Tags are used to identify |
| 1206 | # valid sources or targets for network firewalls and are specified by |
| 1207 | # the client during cluster or node pool creation. Each tag within the list |
| 1208 | # must comply with RFC1035. |
| 1209 | "A String", |
| 1210 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1211 | "sandboxConfig": { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node. |
| 1212 | "type": "A String", # Type of the sandbox to use for the node. |
| 1213 | }, |
| 1214 | "preemptible": True or False, # Whether the nodes are created as preemptible VM instances. See: |
| 1215 | # https://cloud.google.com/compute/docs/instances/preemptible for more |
| 1216 | # information about preemptible VM instances. |
| 1217 | "workloadMetadataConfig": { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node. |
| 1218 | # workloads on the node pool. |
| 1219 | "mode": "A String", # Mode is the configuration for how to expose metadata to workloads running |
| 1220 | # on the node pool. |
| 1221 | }, |
| 1222 | "diskSizeGb": 42, # Size of the disk attached to each node, specified in GB. |
| 1223 | # The smallest allowed disk size is 10GB. |
| 1224 | # |
| 1225 | # If unspecified, the default disk size is 100GB. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1226 | "serviceAccount": "A String", # The Google Cloud Platform Service Account to be used by the node VMs. |
| 1227 | # Specify the email address of the Service Account; otherwise, if no Service |
| 1228 | # Account is specified, the "default" service account is used. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1229 | "accelerators": [ # A list of hardware accelerators to be attached to each node. |
| 1230 | # See https://cloud.google.com/compute/docs/gpus for more information about |
| 1231 | # support for GPUs. |
| 1232 | { # AcceleratorConfig represents a Hardware Accelerator request. |
| 1233 | "acceleratorType": "A String", # The accelerator type resource name. List of supported accelerators |
| 1234 | # [here](https://cloud.google.com/compute/docs/gpus) |
| 1235 | "acceleratorCount": "A String", # The number of the accelerator cards exposed to an instance. |
| 1236 | }, |
| 1237 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1238 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1239 | "name": "A String", # The name of the node pool. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1240 | "maxPodsConstraint": { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run |
| 1241 | # simultaneously on a node in the node pool. |
| 1242 | "maxPodsPerNode": "A String", # Constraint enforced on the max num of pods per node. |
| 1243 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1244 | "autoscaling": { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled |
| 1245 | # only if a valid configuration is present. |
| 1246 | # adjust the size of the node pool to the current cluster usage. |
| 1247 | "minNodeCount": 42, # Minimum number of nodes in the NodePool. Must be >= 1 and <= |
| 1248 | # max_node_count. |
| 1249 | "maxNodeCount": 42, # Maximum number of nodes in the NodePool. Must be >= min_node_count. There |
| 1250 | # has to enough quota to scale up the cluster. |
| 1251 | "enabled": True or False, # Is autoscaling enabled for this node pool. |
| 1252 | "autoprovisioned": True or False, # Can this node pool be deleted automatically. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1253 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1254 | "podIpv4CidrSize": 42, # [Output only] The pod CIDR block size per node in this node pool. |
| 1255 | "instanceGroupUrls": [ # [Output only] The resource URLs of the [managed instance |
| 1256 | # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) |
| 1257 | # associated with this node pool. |
| 1258 | "A String", |
| 1259 | ], |
| 1260 | "status": "A String", # [Output only] The status of the nodes in this pool instance. |
| 1261 | "locations": [ # The list of Google Compute Engine |
| 1262 | # [zones](https://cloud.google.com/compute/docs/zones#available) in which the |
| 1263 | # NodePool's nodes should be located. |
| 1264 | "A String", |
| 1265 | ], |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1266 | }, |
| 1267 | ], |
| 1268 | }</pre> |
| 1269 | </div> |
| 1270 | |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1271 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1272 | <code class="details" id="rollback">rollback(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1273 | <pre>Rolls back a previously Aborted or Failed NodePool upgrade. |
| 1274 | This makes no changes if the last upgrade successfully completed. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1275 | |
| 1276 | Args: |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1277 | projectId: string, Deprecated. The Google Developers Console [project ID or project |
| 1278 | number](https://support.google.com/cloud/answer/6158840). |
| 1279 | This field has been deprecated and replaced by the name field. (required) |
| 1280 | zone: string, Deprecated. The name of the Google Compute Engine |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1281 | [zone](https://cloud.google.com/compute/docs/zones#available) in which the |
| 1282 | cluster resides. This field has been deprecated and replaced by the name |
| 1283 | field. (required) |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1284 | clusterId: string, Deprecated. The name of the cluster to rollback. |
| 1285 | This field has been deprecated and replaced by the name field. (required) |
| 1286 | nodePoolId: string, Deprecated. The name of the node pool to rollback. |
| 1287 | This field has been deprecated and replaced by the name field. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1288 | body: object, The request body. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1289 | The object takes the form of: |
| 1290 | |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 1291 | { # RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed |
| 1292 | # NodePool upgrade. This will be an no-op if the last upgrade successfully |
| 1293 | # completed. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1294 | "zone": "A String", # Deprecated. The name of the Google Compute Engine |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1295 | # [zone](https://cloud.google.com/compute/docs/zones#available) in which the |
| 1296 | # cluster resides. This field has been deprecated and replaced by the name |
| 1297 | # field. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1298 | "projectId": "A String", # Deprecated. The Google Developers Console [project ID or project |
| 1299 | # number](https://support.google.com/cloud/answer/6158840). |
| 1300 | # This field has been deprecated and replaced by the name field. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1301 | "clusterId": "A String", # Deprecated. The name of the cluster to rollback. |
| 1302 | # This field has been deprecated and replaced by the name field. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1303 | "name": "A String", # The name (project, location, cluster, node pool id) of the node poll to |
| 1304 | # rollback upgrade. |
| 1305 | # Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1306 | "nodePoolId": "A String", # Deprecated. The name of the node pool to rollback. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1307 | # This field has been deprecated and replaced by the name field. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1308 | } |
| 1309 | |
| 1310 | x__xgafv: string, V1 error format. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 1311 | Allowed values |
| 1312 | 1 - v1 error format |
| 1313 | 2 - v2 error format |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1314 | |
| 1315 | Returns: |
| 1316 | An object of the form: |
| 1317 | |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 1318 | { # This operation resource represents operations that may have happened or are |
| 1319 | # happening on the cluster. All fields are output only. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1320 | "progress": { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation. |
| 1321 | "name": "A String", # A non-parameterized string describing an operation stage. |
| 1322 | # Unset for single-stage operations. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1323 | "metrics": [ # Progress metric bundle, for example: |
| 1324 | # metrics: [{name: "nodes done", int_value: 15}, |
| 1325 | # {name: "nodes total", int_value: 32}] |
| 1326 | # or |
| 1327 | # metrics: [{name: "progress", double_value: 0.56}, |
| 1328 | # {name: "progress scale", double_value: 1.0}] |
| 1329 | { # Progress metric is (string, int|float|string) pair. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1330 | "stringValue": "A String", # For metrics with custom values (ratios, visual progress, etc.). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1331 | "doubleValue": 3.14, # For metrics with floating point value. |
| 1332 | "intValue": "A String", # For metrics with integer value. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1333 | "name": "A String", # Required. Metric name, e.g., "nodes total", "percent done". |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1334 | }, |
| 1335 | ], |
| 1336 | "status": "A String", # Status of an operation stage. |
| 1337 | # Unset for single-stage operations. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1338 | "stages": [ # Substages of an operation or a stage. |
| 1339 | # Object with schema name: OperationProgress |
| 1340 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1341 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1342 | "targetLink": "A String", # Server-defined URL for the target of the operation. |
| 1343 | "status": "A String", # The current status of the operation. |
| 1344 | "operationType": "A String", # The operation type. |
| 1345 | "startTime": "A String", # [Output only] The time the operation started, in |
| 1346 | # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 1347 | "clusterConditions": [ # Which conditions caused the current cluster state. |
| 1348 | { # StatusCondition describes why a cluster or a node pool has a certain status |
| 1349 | # (e.g., ERROR or DEGRADED). |
| 1350 | "message": "A String", # Human-friendly representation of the condition |
| 1351 | "code": "A String", # Machine-friendly representation of the condition |
| 1352 | }, |
| 1353 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1354 | "zone": "A String", # The name of the Google Compute Engine |
| 1355 | # [zone](https://cloud.google.com/compute/docs/zones#available) in which the |
| 1356 | # operation is taking place. This field is deprecated, use location instead. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1357 | "selfLink": "A String", # Server-defined URL for the resource. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1358 | "name": "A String", # The server-assigned ID for the operation. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1359 | "detail": "A String", # Detailed operation progress, if available. |
| 1360 | "endTime": "A String", # [Output only] The time the operation completed, in |
| 1361 | # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1362 | "nodepoolConditions": [ # Which conditions caused the current node pool state. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1363 | { # StatusCondition describes why a cluster or a node pool has a certain status |
| 1364 | # (e.g., ERROR or DEGRADED). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1365 | "message": "A String", # Human-friendly representation of the condition |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1366 | "code": "A String", # Machine-friendly representation of the condition |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1367 | }, |
| 1368 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1369 | "location": "A String", # [Output only] The name of the Google Compute Engine |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1370 | # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) |
| 1371 | # or |
| 1372 | # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) |
| 1373 | # in which the cluster resides. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1374 | "statusMessage": "A String", # Output only. If an error has occurred, a textual description of the error. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1375 | }</pre> |
| 1376 | </div> |
| 1377 | |
| 1378 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1379 | <code class="details" id="setManagement">setManagement(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code> |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1380 | <pre>Sets the NodeManagement options for a node pool. |
| 1381 | |
| 1382 | Args: |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1383 | projectId: string, Deprecated. The Google Developers Console [project ID or project |
| 1384 | number](https://support.google.com/cloud/answer/6158840). |
| 1385 | This field has been deprecated and replaced by the name field. (required) |
| 1386 | zone: string, Deprecated. The name of the Google Compute Engine |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1387 | [zone](https://cloud.google.com/compute/docs/zones#available) in which the |
| 1388 | cluster resides. This field has been deprecated and replaced by the name |
| 1389 | field. (required) |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1390 | clusterId: string, Deprecated. The name of the cluster to update. |
| 1391 | This field has been deprecated and replaced by the name field. (required) |
| 1392 | nodePoolId: string, Deprecated. The name of the node pool to update. |
| 1393 | This field has been deprecated and replaced by the name field. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1394 | body: object, The request body. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1395 | The object takes the form of: |
| 1396 | |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 1397 | { # SetNodePoolManagementRequest sets the node management properties of a node |
| 1398 | # pool. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1399 | "nodePoolId": "A String", # Deprecated. The name of the node pool to update. |
| 1400 | # This field has been deprecated and replaced by the name field. |
| 1401 | "name": "A String", # The name (project, location, cluster, node pool id) of the node pool to set |
| 1402 | # management properties. Specified in the format |
| 1403 | # `projects/*/locations/*/clusters/*/nodePools/*`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1404 | "zone": "A String", # Deprecated. The name of the Google Compute Engine |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1405 | # [zone](https://cloud.google.com/compute/docs/zones#available) in which the |
| 1406 | # cluster resides. This field has been deprecated and replaced by the name |
| 1407 | # field. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1408 | "management": { # NodeManagement defines the set of node management services turned on for the # Required. NodeManagement configuration for the node pool. |
| 1409 | # node pool. |
| 1410 | "upgradeOptions": { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool. |
| 1411 | # the Auto Upgrades will proceed. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1412 | "description": "A String", # [Output only] This field is set when upgrades are about to commence |
| 1413 | # with the description of the upgrade. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1414 | "autoUpgradeStartTime": "A String", # [Output only] This field is set when upgrades are about to commence |
| 1415 | # with the approximate start time for the upgrades, in |
| 1416 | # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 1417 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1418 | "autoRepair": True or False, # A flag that specifies whether the node auto-repair is enabled for the node |
| 1419 | # pool. If enabled, the nodes in this node pool will be monitored and, if |
| 1420 | # they fail health checks too many times, an automatic repair action will be |
| 1421 | # triggered. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1422 | "autoUpgrade": True or False, # A flag that specifies whether node auto-upgrade is enabled for the node |
| 1423 | # pool. If enabled, node auto-upgrade helps keep the nodes in your node pool |
| 1424 | # up to date with the latest release version of Kubernetes. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1425 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1426 | "clusterId": "A String", # Deprecated. The name of the cluster to update. |
| 1427 | # This field has been deprecated and replaced by the name field. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1428 | "projectId": "A String", # Deprecated. The Google Developers Console [project ID or project |
| 1429 | # number](https://support.google.com/cloud/answer/6158840). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1430 | # This field has been deprecated and replaced by the name field. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1431 | } |
| 1432 | |
| 1433 | x__xgafv: string, V1 error format. |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 1434 | Allowed values |
| 1435 | 1 - v1 error format |
| 1436 | 2 - v2 error format |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1437 | |
| 1438 | Returns: |
| 1439 | An object of the form: |
| 1440 | |
Sai Cheemalapati | 4ba8c23 | 2017-06-06 18:46:08 -0400 | [diff] [blame] | 1441 | { # This operation resource represents operations that may have happened or are |
| 1442 | # happening on the cluster. All fields are output only. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1443 | "progress": { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation. |
| 1444 | "name": "A String", # A non-parameterized string describing an operation stage. |
| 1445 | # Unset for single-stage operations. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1446 | "metrics": [ # Progress metric bundle, for example: |
| 1447 | # metrics: [{name: "nodes done", int_value: 15}, |
| 1448 | # {name: "nodes total", int_value: 32}] |
| 1449 | # or |
| 1450 | # metrics: [{name: "progress", double_value: 0.56}, |
| 1451 | # {name: "progress scale", double_value: 1.0}] |
| 1452 | { # Progress metric is (string, int|float|string) pair. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1453 | "stringValue": "A String", # For metrics with custom values (ratios, visual progress, etc.). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1454 | "doubleValue": 3.14, # For metrics with floating point value. |
| 1455 | "intValue": "A String", # For metrics with integer value. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1456 | "name": "A String", # Required. Metric name, e.g., "nodes total", "percent done". |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1457 | }, |
| 1458 | ], |
| 1459 | "status": "A String", # Status of an operation stage. |
| 1460 | # Unset for single-stage operations. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1461 | "stages": [ # Substages of an operation or a stage. |
| 1462 | # Object with schema name: OperationProgress |
| 1463 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1464 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1465 | "targetLink": "A String", # Server-defined URL for the target of the operation. |
| 1466 | "status": "A String", # The current status of the operation. |
| 1467 | "operationType": "A String", # The operation type. |
| 1468 | "startTime": "A String", # [Output only] The time the operation started, in |
| 1469 | # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 1470 | "clusterConditions": [ # Which conditions caused the current cluster state. |
| 1471 | { # StatusCondition describes why a cluster or a node pool has a certain status |
| 1472 | # (e.g., ERROR or DEGRADED). |
| 1473 | "message": "A String", # Human-friendly representation of the condition |
| 1474 | "code": "A String", # Machine-friendly representation of the condition |
| 1475 | }, |
| 1476 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1477 | "zone": "A String", # The name of the Google Compute Engine |
| 1478 | # [zone](https://cloud.google.com/compute/docs/zones#available) in which the |
| 1479 | # operation is taking place. This field is deprecated, use location instead. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1480 | "selfLink": "A String", # Server-defined URL for the resource. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1481 | "name": "A String", # The server-assigned ID for the operation. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1482 | "detail": "A String", # Detailed operation progress, if available. |
| 1483 | "endTime": "A String", # [Output only] The time the operation completed, in |
| 1484 | # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1485 | "nodepoolConditions": [ # Which conditions caused the current node pool state. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1486 | { # StatusCondition describes why a cluster or a node pool has a certain status |
| 1487 | # (e.g., ERROR or DEGRADED). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1488 | "message": "A String", # Human-friendly representation of the condition |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1489 | "code": "A String", # Machine-friendly representation of the condition |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1490 | }, |
| 1491 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1492 | "location": "A String", # [Output only] The name of the Google Compute Engine |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1493 | # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) |
| 1494 | # or |
| 1495 | # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) |
| 1496 | # in which the cluster resides. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1497 | "statusMessage": "A String", # Output only. If an error has occurred, a textual description of the error. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1498 | }</pre> |
| 1499 | </div> |
| 1500 | |
| 1501 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1502 | <code class="details" id="setSize">setSize(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1503 | <pre>Sets the size for a specific node pool. |
| 1504 | |
| 1505 | Args: |
| 1506 | projectId: string, Deprecated. The Google Developers Console [project ID or project |
| 1507 | number](https://support.google.com/cloud/answer/6158840). |
| 1508 | This field has been deprecated and replaced by the name field. (required) |
| 1509 | zone: string, Deprecated. The name of the Google Compute Engine |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1510 | [zone](https://cloud.google.com/compute/docs/zones#available) in which the |
| 1511 | cluster resides. This field has been deprecated and replaced by the name |
| 1512 | field. (required) |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1513 | clusterId: string, Deprecated. The name of the cluster to update. |
| 1514 | This field has been deprecated and replaced by the name field. (required) |
| 1515 | nodePoolId: string, Deprecated. The name of the node pool to update. |
| 1516 | This field has been deprecated and replaced by the name field. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1517 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1518 | The object takes the form of: |
| 1519 | |
| 1520 | { # SetNodePoolSizeRequest sets the size a node |
| 1521 | # pool. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1522 | "nodeCount": 42, # Required. The desired node count for the pool. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1523 | "zone": "A String", # Deprecated. The name of the Google Compute Engine |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1524 | # [zone](https://cloud.google.com/compute/docs/zones#available) in which the |
| 1525 | # cluster resides. This field has been deprecated and replaced by the name |
| 1526 | # field. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1527 | "nodePoolId": "A String", # Deprecated. The name of the node pool to update. |
| 1528 | # This field has been deprecated and replaced by the name field. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1529 | "projectId": "A String", # Deprecated. The Google Developers Console [project ID or project |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1530 | # number](https://support.google.com/cloud/answer/6158840). |
| 1531 | # This field has been deprecated and replaced by the name field. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1532 | "name": "A String", # The name (project, location, cluster, node pool id) of the node pool to set |
| 1533 | # size. |
| 1534 | # Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1535 | "clusterId": "A String", # Deprecated. The name of the cluster to update. |
| 1536 | # This field has been deprecated and replaced by the name field. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1537 | } |
| 1538 | |
| 1539 | x__xgafv: string, V1 error format. |
| 1540 | Allowed values |
| 1541 | 1 - v1 error format |
| 1542 | 2 - v2 error format |
| 1543 | |
| 1544 | Returns: |
| 1545 | An object of the form: |
| 1546 | |
| 1547 | { # This operation resource represents operations that may have happened or are |
| 1548 | # happening on the cluster. All fields are output only. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1549 | "progress": { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation. |
| 1550 | "name": "A String", # A non-parameterized string describing an operation stage. |
| 1551 | # Unset for single-stage operations. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1552 | "metrics": [ # Progress metric bundle, for example: |
| 1553 | # metrics: [{name: "nodes done", int_value: 15}, |
| 1554 | # {name: "nodes total", int_value: 32}] |
| 1555 | # or |
| 1556 | # metrics: [{name: "progress", double_value: 0.56}, |
| 1557 | # {name: "progress scale", double_value: 1.0}] |
| 1558 | { # Progress metric is (string, int|float|string) pair. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1559 | "stringValue": "A String", # For metrics with custom values (ratios, visual progress, etc.). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1560 | "doubleValue": 3.14, # For metrics with floating point value. |
| 1561 | "intValue": "A String", # For metrics with integer value. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1562 | "name": "A String", # Required. Metric name, e.g., "nodes total", "percent done". |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1563 | }, |
| 1564 | ], |
| 1565 | "status": "A String", # Status of an operation stage. |
| 1566 | # Unset for single-stage operations. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1567 | "stages": [ # Substages of an operation or a stage. |
| 1568 | # Object with schema name: OperationProgress |
| 1569 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1570 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1571 | "targetLink": "A String", # Server-defined URL for the target of the operation. |
| 1572 | "status": "A String", # The current status of the operation. |
| 1573 | "operationType": "A String", # The operation type. |
| 1574 | "startTime": "A String", # [Output only] The time the operation started, in |
| 1575 | # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 1576 | "clusterConditions": [ # Which conditions caused the current cluster state. |
| 1577 | { # StatusCondition describes why a cluster or a node pool has a certain status |
| 1578 | # (e.g., ERROR or DEGRADED). |
| 1579 | "message": "A String", # Human-friendly representation of the condition |
| 1580 | "code": "A String", # Machine-friendly representation of the condition |
| 1581 | }, |
| 1582 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1583 | "zone": "A String", # The name of the Google Compute Engine |
| 1584 | # [zone](https://cloud.google.com/compute/docs/zones#available) in which the |
| 1585 | # operation is taking place. This field is deprecated, use location instead. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1586 | "selfLink": "A String", # Server-defined URL for the resource. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1587 | "name": "A String", # The server-assigned ID for the operation. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1588 | "detail": "A String", # Detailed operation progress, if available. |
| 1589 | "endTime": "A String", # [Output only] The time the operation completed, in |
| 1590 | # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1591 | "nodepoolConditions": [ # Which conditions caused the current node pool state. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1592 | { # StatusCondition describes why a cluster or a node pool has a certain status |
| 1593 | # (e.g., ERROR or DEGRADED). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1594 | "message": "A String", # Human-friendly representation of the condition |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1595 | "code": "A String", # Machine-friendly representation of the condition |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1596 | }, |
| 1597 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1598 | "location": "A String", # [Output only] The name of the Google Compute Engine |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1599 | # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) |
| 1600 | # or |
| 1601 | # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) |
| 1602 | # in which the cluster resides. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1603 | "statusMessage": "A String", # Output only. If an error has occurred, a textual description of the error. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1604 | }</pre> |
| 1605 | </div> |
| 1606 | |
| 1607 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1608 | <code class="details" id="update">update(projectId, zone, clusterId, nodePoolId, body=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1609 | <pre>Updates the version and/or image type for the specified node pool. |
| 1610 | |
| 1611 | Args: |
| 1612 | projectId: string, Deprecated. The Google Developers Console [project ID or project |
| 1613 | number](https://support.google.com/cloud/answer/6158840). |
| 1614 | This field has been deprecated and replaced by the name field. (required) |
| 1615 | zone: string, Deprecated. The name of the Google Compute Engine |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1616 | [zone](https://cloud.google.com/compute/docs/zones#available) in which the |
| 1617 | cluster resides. This field has been deprecated and replaced by the name |
| 1618 | field. (required) |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1619 | clusterId: string, Deprecated. The name of the cluster to upgrade. |
| 1620 | This field has been deprecated and replaced by the name field. (required) |
| 1621 | nodePoolId: string, Deprecated. The name of the node pool to upgrade. |
| 1622 | This field has been deprecated and replaced by the name field. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1623 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1624 | The object takes the form of: |
| 1625 | |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1626 | { # UpdateNodePoolRequests update a node pool's image and/or version. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1627 | "clusterId": "A String", # Deprecated. The name of the cluster to upgrade. |
| 1628 | # This field has been deprecated and replaced by the name field. |
| 1629 | "workloadMetadataConfig": { # WorkloadMetadataConfig defines the metadata configuration to expose to # The desired workload metadata config for the node pool. |
| 1630 | # workloads on the node pool. |
| 1631 | "mode": "A String", # Mode is the configuration for how to expose metadata to workloads running |
| 1632 | # on the node pool. |
| 1633 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1634 | "nodeVersion": "A String", # Required. The Kubernetes version to change the nodes to (typically an |
| 1635 | # upgrade). |
| 1636 | # |
| 1637 | # Users may specify either explicit versions offered by Kubernetes Engine or |
| 1638 | # version aliases, which have the following behavior: |
| 1639 | # |
| 1640 | # - "latest": picks the highest valid Kubernetes version |
| 1641 | # - "1.X": picks the highest valid patch+gke.N patch in the 1.X version |
| 1642 | # - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version |
| 1643 | # - "1.X.Y-gke.N": picks an explicit Kubernetes version |
| 1644 | # - "-": picks the Kubernetes master version |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1645 | "upgradeSettings": { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1646 | # disruption caused by an upgrade. |
| 1647 | # |
| 1648 | # maxUnavailable controls the number of nodes that can be simultaneously |
| 1649 | # unavailable. |
| 1650 | # |
| 1651 | # maxSurge controls the number of additional nodes that can be added to the |
| 1652 | # node pool temporarily for the time of the upgrade to increase the number of |
| 1653 | # available nodes. |
| 1654 | # |
| 1655 | # (maxUnavailable + maxSurge) determines the level of parallelism (how many |
| 1656 | # nodes are being upgraded at the same time). |
| 1657 | # |
| 1658 | # Note: upgrades inevitably introduce some disruption since workloads need to |
| 1659 | # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0, |
| 1660 | # this holds true. (Disruption stays within the limits of |
| 1661 | # PodDisruptionBudget, if it is configured.) |
| 1662 | # |
| 1663 | # Consider a hypothetical node pool with 5 nodes having maxSurge=2, |
| 1664 | # maxUnavailable=1. This means the upgrade process upgrades 3 nodes |
| 1665 | # simultaneously. It creates 2 additional (upgraded) nodes, then it brings |
| 1666 | # down 3 old (not yet upgraded) nodes at the same time. This ensures that |
| 1667 | # there are always at least 4 nodes available. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1668 | "maxUnavailable": 42, # The maximum number of nodes that can be simultaneously unavailable during |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1669 | # the upgrade process. A node is considered available if its status is |
| 1670 | # Ready. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1671 | "maxSurge": 42, # The maximum number of nodes that can be created beyond the current size |
| 1672 | # of the node pool during the upgrade process. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1673 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1674 | "locations": [ # The desired list of Google Compute Engine |
| 1675 | # [zones](https://cloud.google.com/compute/docs/zones#available) in which the |
| 1676 | # node pool's nodes should be located. Changing the locations for a node pool |
| 1677 | # will result in nodes being either created or removed from the node pool, |
| 1678 | # depending on whether locations are being added or removed. |
| 1679 | "A String", |
| 1680 | ], |
| 1681 | "projectId": "A String", # Deprecated. The Google Developers Console [project ID or project |
| 1682 | # number](https://support.google.com/cloud/answer/6158840). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1683 | # This field has been deprecated and replaced by the name field. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1684 | "nodePoolId": "A String", # Deprecated. The name of the node pool to upgrade. |
| 1685 | # This field has been deprecated and replaced by the name field. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1686 | "imageType": "A String", # Required. The desired image type for the node pool. |
| 1687 | "zone": "A String", # Deprecated. The name of the Google Compute Engine |
| 1688 | # [zone](https://cloud.google.com/compute/docs/zones#available) in which the |
| 1689 | # cluster resides. This field has been deprecated and replaced by the name |
| 1690 | # field. |
| 1691 | "name": "A String", # The name (project, location, cluster, node pool) of the node pool to |
| 1692 | # update. Specified in the format |
| 1693 | # `projects/*/locations/*/clusters/*/nodePools/*`. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1694 | } |
| 1695 | |
| 1696 | x__xgafv: string, V1 error format. |
| 1697 | Allowed values |
| 1698 | 1 - v1 error format |
| 1699 | 2 - v2 error format |
| 1700 | |
| 1701 | Returns: |
| 1702 | An object of the form: |
| 1703 | |
| 1704 | { # This operation resource represents operations that may have happened or are |
| 1705 | # happening on the cluster. All fields are output only. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1706 | "progress": { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation. |
| 1707 | "name": "A String", # A non-parameterized string describing an operation stage. |
| 1708 | # Unset for single-stage operations. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1709 | "metrics": [ # Progress metric bundle, for example: |
| 1710 | # metrics: [{name: "nodes done", int_value: 15}, |
| 1711 | # {name: "nodes total", int_value: 32}] |
| 1712 | # or |
| 1713 | # metrics: [{name: "progress", double_value: 0.56}, |
| 1714 | # {name: "progress scale", double_value: 1.0}] |
| 1715 | { # Progress metric is (string, int|float|string) pair. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1716 | "stringValue": "A String", # For metrics with custom values (ratios, visual progress, etc.). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1717 | "doubleValue": 3.14, # For metrics with floating point value. |
| 1718 | "intValue": "A String", # For metrics with integer value. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1719 | "name": "A String", # Required. Metric name, e.g., "nodes total", "percent done". |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1720 | }, |
| 1721 | ], |
| 1722 | "status": "A String", # Status of an operation stage. |
| 1723 | # Unset for single-stage operations. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1724 | "stages": [ # Substages of an operation or a stage. |
| 1725 | # Object with schema name: OperationProgress |
| 1726 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1727 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1728 | "targetLink": "A String", # Server-defined URL for the target of the operation. |
| 1729 | "status": "A String", # The current status of the operation. |
| 1730 | "operationType": "A String", # The operation type. |
| 1731 | "startTime": "A String", # [Output only] The time the operation started, in |
| 1732 | # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 1733 | "clusterConditions": [ # Which conditions caused the current cluster state. |
| 1734 | { # StatusCondition describes why a cluster or a node pool has a certain status |
| 1735 | # (e.g., ERROR or DEGRADED). |
| 1736 | "message": "A String", # Human-friendly representation of the condition |
| 1737 | "code": "A String", # Machine-friendly representation of the condition |
| 1738 | }, |
| 1739 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1740 | "zone": "A String", # The name of the Google Compute Engine |
| 1741 | # [zone](https://cloud.google.com/compute/docs/zones#available) in which the |
| 1742 | # operation is taking place. This field is deprecated, use location instead. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1743 | "selfLink": "A String", # Server-defined URL for the resource. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1744 | "name": "A String", # The server-assigned ID for the operation. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1745 | "detail": "A String", # Detailed operation progress, if available. |
| 1746 | "endTime": "A String", # [Output only] The time the operation completed, in |
| 1747 | # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1748 | "nodepoolConditions": [ # Which conditions caused the current node pool state. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1749 | { # StatusCondition describes why a cluster or a node pool has a certain status |
| 1750 | # (e.g., ERROR or DEGRADED). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1751 | "message": "A String", # Human-friendly representation of the condition |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1752 | "code": "A String", # Machine-friendly representation of the condition |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1753 | }, |
| 1754 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1755 | "location": "A String", # [Output only] The name of the Google Compute Engine |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1756 | # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) |
| 1757 | # or |
| 1758 | # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) |
| 1759 | # in which the cluster resides. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1760 | "statusMessage": "A String", # Output only. If an error has occurred, a textual description of the error. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1761 | }</pre> |
| 1762 | </div> |
| 1763 | |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1764 | </body></html> |