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