blob: 4c42238a73bc8ed156796d252413bf9fd8d051a4 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="container_v1beta1.html">Kubernetes Engine API</a> . <a href="container_v1beta1.projects.html">projects</a> . <a href="container_v1beta1.projects.locations.html">locations</a> . <a href="container_v1beta1.projects.locations.clusters.html">clusters</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="container_v1beta1.projects.locations.clusters.nodePools.html">nodePools()</a></code>
79</p>
80<p class="firstline">Returns the nodePools Resource.</p>
81
82<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070083 <code><a href="container_v1beta1.projects.locations.clusters.well_known.html">well_known()</a></code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070084</p>
Dan O'Mearadd494642020-05-01 07:42:23 -070085<p class="firstline">Returns the well_known Resource.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070086
87<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070088 <code><a href="#completeIpRotation">completeIpRotation(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070089<p class="firstline">Completes master IP rotation.</p>
90<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070091 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092<p class="firstline">Creates a cluster, consisting of the specified number and type of Google</p>
93<p class="toc_element">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -070094 <code><a href="#delete">delete(name, projectId=None, zone=None, clusterId=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070095<p class="firstline">Deletes the cluster, including the Kubernetes endpoint and all worker</p>
96<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070097 <code><a href="#get">get(name, projectId=None, zone=None, clusterId=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070098<p class="firstline">Gets the details for a specific cluster.</p>
99<p class="toc_element">
100 <code><a href="#getJwks">getJwks(parent, x__xgafv=None)</a></code></p>
101<p class="firstline">Gets the public component of the cluster signing keys in</p>
102<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -0700103 <code><a href="#list">list(parent, projectId=None, zone=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700104<p class="firstline">Lists all clusters owned by a project in either the specified zone or all</p>
105<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700106 <code><a href="#setAddons">setAddons(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700107<p class="firstline">Sets the addons for a specific cluster.</p>
108<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700109 <code><a href="#setLegacyAbac">setLegacyAbac(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700110<p class="firstline">Enables or disables the ABAC authorization mechanism on a cluster.</p>
111<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700112 <code><a href="#setLocations">setLocations(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700113<p class="firstline">Sets the locations for a specific cluster.</p>
114<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700115 <code><a href="#setLogging">setLogging(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700116<p class="firstline">Sets the logging service for a specific cluster.</p>
117<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700118 <code><a href="#setMaintenancePolicy">setMaintenancePolicy(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700119<p class="firstline">Sets the maintenance policy for a cluster.</p>
120<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700121 <code><a href="#setMasterAuth">setMasterAuth(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700122<p class="firstline">Sets master auth materials. Currently supports changing the admin password</p>
123<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700124 <code><a href="#setMonitoring">setMonitoring(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700125<p class="firstline">Sets the monitoring service for a specific cluster.</p>
126<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700127 <code><a href="#setNetworkPolicy">setNetworkPolicy(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700128<p class="firstline">Enables or disables Network Policy for a cluster.</p>
129<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700130 <code><a href="#setResourceLabels">setResourceLabels(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700131<p class="firstline">Sets labels on a cluster.</p>
132<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700133 <code><a href="#startIpRotation">startIpRotation(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700134<p class="firstline">Starts master IP rotation.</p>
135<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700136 <code><a href="#update">update(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700137<p class="firstline">Updates the settings for a specific cluster.</p>
138<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700139 <code><a href="#updateMaster">updateMaster(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700140<p class="firstline">Updates the master for a specific cluster.</p>
141<h3>Method Details</h3>
142<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700143 <code class="details" id="completeIpRotation">completeIpRotation(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700144 <pre>Completes master IP rotation.
145
146Args:
147 name: string, The name (project, location, cluster id) of the cluster to complete IP
Bu Sun Kim65020912020-05-20 12:08:20 -0700148rotation. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700149 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700150 The object takes the form of:
151
152{ # CompleteIPRotationRequest moves the cluster master back into single-IP mode.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700153 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster.
154 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700155 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to complete IP
156 # rotation. Specified in the format `projects/*/locations/*/clusters/*`.
157 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700158 # number](https://developers.google.com/console/help/new/#projectnumber).
159 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700160 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700161 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
162 # cluster resides. This field has been deprecated and replaced by the name
163 # field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700164 }
165
166 x__xgafv: string, V1 error format.
167 Allowed values
168 1 - v1 error format
169 2 - v2 error format
170
171Returns:
172 An object of the form:
173
174 { # This operation resource represents operations that may have happened or are
175 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700176 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
177 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
178 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
179 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
180 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700181 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700182 { # StatusCondition describes why a cluster or a node pool has a certain status
183 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -0700184 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
185 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700186 },
187 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700188 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
189 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -0700190 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700191 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
192 # or
193 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
194 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700195 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
196 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
197 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
198 { # StatusCondition describes why a cluster or a node pool has a certain status
199 # (e.g., ERROR or DEGRADED).
200 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
201 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
202 },
203 ],
204 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700205 &quot;metrics&quot;: [ # Progress metric bundle, for example:
206 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
207 # {name: &quot;nodes total&quot;, int_value: 32}]
208 # or
209 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
210 # {name: &quot;progress scale&quot;, double_value: 1.0}]
211 { # Progress metric is (string, int|float|string) pair.
212 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
213 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
214 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
215 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
216 },
217 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700218 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
219 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -0700220 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
221 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700222 &quot;stages&quot;: [ # Substages of an operation or a stage.
223 # Object with schema name: OperationProgress
224 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700225 },
226 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
227 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
228 # operation is taking place. This field is deprecated, use location instead.
229 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
230 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700231 }</pre>
232</div>
233
234<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700235 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700236 <pre>Creates a cluster, consisting of the specified number and type of Google
237Compute Engine instances.
238
Bu Sun Kim65020912020-05-20 12:08:20 -0700239By default, the cluster is created in the project&#x27;s
Dan O'Mearadd494642020-05-01 07:42:23 -0700240[default
241network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700242
243One firewall is added for the cluster. After cluster creation,
244the Kubelet creates routes for each node to allow the containers
245on that node to communicate with all other instances in the
246cluster.
247
Bu Sun Kim65020912020-05-20 12:08:20 -0700248Finally, an entry is added to the project&#x27;s global metadata indicating
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700249which CIDR range the cluster is using.
250
251Args:
252 parent: string, The parent (project and location) where the cluster will be created.
Bu Sun Kim65020912020-05-20 12:08:20 -0700253Specified in the format `projects/*/locations/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700254 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700255 The object takes the form of:
256
257{ # CreateClusterRequest creates a cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700258 &quot;parent&quot;: &quot;A String&quot;, # The parent (project and location) where the cluster will be created.
259 # Specified in the format `projects/*/locations/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700260 &quot;cluster&quot;: { # A Google Kubernetes Engine cluster. # Required. A [cluster
Dan O'Mearadd494642020-05-01 07:42:23 -0700261 # resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.zones.clusters)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700262 &quot;privateClusterConfig&quot;: { # Configuration options for private clusters. # Configuration for private cluster.
263 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
264 # range will be used for assigning internal IP addresses to the master or
265 # set of masters, as well as the ILB VIP. This range must not overlap with
266 # any other ranges in use within the cluster&#x27;s network.
267 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
268 # given only RFC 1918 private addresses and communicate with the master via
269 # private networking.
270 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
271 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
272 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
273 &quot;masterGlobalAccessConfig&quot;: { # Configuration for controlling master global access settings. # Controls master global access settings.
274 &quot;enabled&quot;: True or False, # Whenever master is accessible globally or not.
275 },
276 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
277 },
278 &quot;shieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
279 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
280 },
281 &quot;verticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
282 # required by Vertical Pod Autoscaler to automatically adjust
283 # the resources of pods controlled by it.
284 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
285 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700286 &quot;defaultMaxPodsConstraint&quot;: { # Constraints applied to pods. # The default constraint on the maximum number of pods that can be run
287 # simultaneously on a node in the node pool of this cluster. Only honored
288 # if cluster created with IP Alias support.
289 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
290 },
291 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
292 # [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
293 # to which the cluster is connected. If left unspecified, the `default`
294 # network will be used. On output this shows the network ID instead of the
295 # name.
296 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the set of labels for this cluster.
297 &quot;nodeIpv4CidrSize&quot;: 42, # [Output only] The size of the address space on each node for hosting
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700298 # containers. This is provisioned from within the `container_ipv4_cidr`
299 # range. This field will only be set when cluster is in route-based network
300 # mode.
Bu Sun Kim65020912020-05-20 12:08:20 -0700301 &quot;masterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The configuration options for master authorized networks feature.
302 # master authorized networks will disallow all external traffic to access
303 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
304 # Google Compute Engine Public IPs and Google Prod IPs.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700305 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
Bu Sun Kim65020912020-05-20 12:08:20 -0700306 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 10 external networks that could access
307 # Kubernetes master through HTTPS.
308 { # CidrBlock contains an optional name and one CIDR block.
Bu Sun Kim65020912020-05-20 12:08:20 -0700309 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700310 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
Bu Sun Kim65020912020-05-20 12:08:20 -0700311 },
312 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700313 },
314 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
315 # cluster, if available.
316 &quot;masterAuth&quot;: { # The authentication information for accessing the master endpoint. # The authentication information for accessing the master endpoint.
317 # If unspecified, the defaults are used:
318 # For clusters before v1.12, if master_auth is unspecified, `username` will
319 # be set to &quot;admin&quot;, a random password will be generated, and a client
320 # certificate will be issued.
321 # Authentication can be done using HTTP basic auth or using client
322 # certificates.
323 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint.
324 # Because the master endpoint is open to the Internet, you should create a
325 # strong password. If a password is provided for cluster creation, username
326 # must be non-empty.
327 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For
328 # clusters before v1.12, if no configuration is specified, a client
329 # certificate is issued.
330 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
331 },
332 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
333 # to the cluster endpoint.
334 &quot;clusterCaCertificate&quot;: &quot;A String&quot;,
335 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
336 # authenticate to the cluster endpoint.
337 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
338 # For clusters v1.6.0 and later, basic authentication can be disabled by
339 # leaving username unspecified (or setting it to the empty string).
340 },
341 &quot;authenticatorGroupsConfig&quot;: { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700342 &quot;securityGroup&quot;: &quot;A String&quot;, # The name of the security group-of-groups to be used. Only relevant
343 # if enabled = true.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700344 &quot;enabled&quot;: True or False, # Whether this cluster should return group membership lookups
345 # during authentication using a group of security groups.
Bu Sun Kim65020912020-05-20 12:08:20 -0700346 },
347 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP prefix in CIDR notation to use for the hosted master network.
348 # This prefix will be used for assigning private IP addresses to the
349 # master or set of masters, as well as the ILB VIP.
350 # This field is deprecated, use
351 # private_cluster_config.master_ipv4_cidr_block instead.
352 &quot;clusterTelemetry&quot;: { # Telemetry integration for the cluster. # Telemetry integration for the cluster.
353 &quot;type&quot;: &quot;A String&quot;, # Type of the integration.
354 },
355 &quot;currentMasterVersion&quot;: &quot;A String&quot;, # [Output only] The current software version of the master endpoint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700356 &quot;podSecurityPolicyConfig&quot;: { # Configuration for the PodSecurityPolicy feature. # Configuration for the PodSecurityPolicy feature.
357 &quot;enabled&quot;: True or False, # Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
358 # must be valid under a PodSecurityPolicy to be created.
359 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700360 &quot;addonsConfig&quot;: { # Configuration for the addons that can be automatically spun up in the # Configurations for the various addons available to run in the cluster.
361 # cluster, enabling additional functionality.
Bu Sun Kim65020912020-05-20 12:08:20 -0700362 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
363 # makes it easy to set up HTTP load balancers for services in a cluster.
364 # which makes it easy to set up HTTP load balancers for services in a cluster.
365 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
366 # When enabled, it runs a small pod in the cluster that manages the load
367 # balancers.
368 },
369 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
370 # This addon is deprecated, and will be disabled in 1.15. It is recommended
371 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
372 # workloads and applications. For more information, see:
373 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
374 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
375 },
376 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
377 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
378 },
379 &quot;kalmConfig&quot;: { # Configuration options for the KALM addon. # Configuration for the KALM addon, which manages the lifecycle of k8s
380 # applications.
381 &quot;enabled&quot;: True or False, # Whether KALM is enabled for this cluster.
382 },
383 &quot;gcePersistentDiskCsiDriverConfig&quot;: { # Configuration for the Compute Engine PD CSI driver. This option can only be # Configuration for the Compute Engine Persistent Disk CSI driver.
384 # enabled at cluster creation time.
385 &quot;enabled&quot;: True or False, # Whether the Compute Engine PD CSI driver is enabled for this cluster.
386 },
387 &quot;istioConfig&quot;: { # Configuration options for Istio addon. # Configuration for Istio, an open platform to connect, manage, and secure
388 # microservices.
Bu Sun Kim65020912020-05-20 12:08:20 -0700389 &quot;auth&quot;: &quot;A String&quot;, # The specified Istio auth mode, either none, or mutual TLS.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700390 &quot;disabled&quot;: True or False, # Whether Istio is enabled for this cluster.
391 },
392 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
393 # is enabled or not on the Master, it does not track whether network policy
394 # is enabled for the nodes.
395 # is enabled or not on the Master, it does not track whether network policy
396 # is enabled for the nodes.
397 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
398 },
399 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be
400 # enabled in order to enable Cloud Run addon. This option can only be enabled
401 # at cluster creation time.
402 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
403 },
404 &quot;configConnectorConfig&quot;: { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes
405 # extension to manage hosted GCP services through the Kubernetes API
406 &quot;enabled&quot;: True or False, # Whether Cloud Connector is enabled for this cluster.
407 },
408 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
409 # increases or decreases the number of replica pods a replication controller
410 # has based on the resource usage of the existing pods.
411 # increases or decreases the number of replica pods a replication controller
412 # has based on the resource usage of the existing pods.
413 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
414 # When enabled, it ensures that metrics are collected into Stackdriver
415 # Monitoring.
Bu Sun Kim65020912020-05-20 12:08:20 -0700416 },
417 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700418 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
419 # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
420 # the cluster is connected. On output this shows the subnetwork ID instead of
421 # the name.
Bu Sun Kim65020912020-05-20 12:08:20 -0700422 &quot;currentNodeVersion&quot;: &quot;A String&quot;, # [Output only] Deprecated, use
423 # [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools)
424 # instead. The current version of the node software components.
425 # If they are currently at multiple versions because they&#x27;re in the process
426 # of being upgraded, this reflects the minimum version of all nodes.
Bu Sun Kim65020912020-05-20 12:08:20 -0700427 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -0700428 &quot;window&quot;: { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700429 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
430 # occur in these windows.
431 &quot;a_key&quot;: { # Represents an arbitrary window of time.
432 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
433 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
434 # start time.
435 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700436 },
437 &quot;recurringWindow&quot;: { # Represents an arbitrary window of time that recurs. # RecurringWindow specifies some number of recurring time periods for
Dan O'Mearadd494642020-05-01 07:42:23 -0700438 # maintenance to occur. The time windows may be overlapping. If no
439 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700440 &quot;recurrence&quot;: &quot;A String&quot;, # An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
Dan O'Mearadd494642020-05-01 07:42:23 -0700441 # this window reccurs. They go on for the span of time between the start and
442 # end time.
443 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700444 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -0700445 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
446 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
447 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
448 # For the first weekend of every month:
449 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
450 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -0700451 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -0700452 # &lt;code&gt;
453 # start time = 2019-01-01T09:00:00-0400
454 # end time = 2019-01-01T17:00:00-0400
455 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
456 # &lt;/code&gt;
457 # Windows can span multiple days. Eg, to make the window encompass every
458 # weekend from midnight Saturday till the last minute of Sunday UTC:
459 # &lt;code&gt;
460 # start time = 2019-01-05T00:00:00Z
461 # end time = 2019-01-07T23:59:00Z
462 # recurrence = FREQ=WEEKLY;BYDAY=SA
463 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -0700464 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -0700465 # to specify duration of the window and when it first starts.
466 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Bu Sun Kim65020912020-05-20 12:08:20 -0700467 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700468 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Bu Sun Kim65020912020-05-20 12:08:20 -0700469 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
Dan O'Mearadd494642020-05-01 07:42:23 -0700470 # start time.
Dan O'Mearadd494642020-05-01 07:42:23 -0700471 },
472 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700473 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
474 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
475 # smallest possible in the given scenario.
476 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
477 # It must be in format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
Dan O'Mearadd494642020-05-01 07:42:23 -0700478 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700479 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700480 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
481 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
482 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
483 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
484 # resource version and include it with requests to set the policy.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700485 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700486 &quot;resourceLabels&quot;: { # The resource labels for the cluster to use to annotate any related
487 # Google Compute Engine resources.
488 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700489 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700490 &quot;initialClusterVersion&quot;: &quot;A String&quot;, # The initial Kubernetes version for this cluster. Valid versions are those
491 # found in validMasterVersions returned by getServerConfig. The version can
492 # be upgraded over time; such upgrades are reflected in
493 # currentMasterVersion and currentNodeVersion.
Dan O'Mearadd494642020-05-01 07:42:23 -0700494 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700495 # Users may specify either explicit versions offered by
496 # Kubernetes Engine or version aliases, which have the following behavior:
Dan O'Mearadd494642020-05-01 07:42:23 -0700497 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700498 # - &quot;latest&quot;: picks the highest valid Kubernetes version
499 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
500 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
501 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
502 # - &quot;&quot;,&quot;-&quot;: picks the default Kubernetes version
503 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the cluster. # Configuration for cluster IP allocation.
504 &quot;useRoutes&quot;: True or False, # Whether routes will be used for pod IPs in the cluster.
505 # This is used in conjunction with use_ip_aliases. It cannot be true if
506 # use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
507 # then the server picks the default IP allocation mode
508 &quot;servicesIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the services IPs in this cluster. If blank, a range
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700509 # will be automatically chosen with the default size.
510 #
511 # This field is only applicable when `use_ip_aliases` is true.
512 #
513 # Set to blank to have a range chosen with the default size.
514 #
515 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
516 # netmask.
517 #
518 # Set to a
519 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
520 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
521 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
522 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700523 &quot;allowRouteOverlap&quot;: True or False, # If true, allow allocation of cluster CIDR ranges that overlap with certain
524 # kinds of network routes. By default we do not allow cluster CIDR ranges to
525 # intersect with any user declared routes. With allow_route_overlap == true,
526 # we allow overlapping with CIDR ranges that are larger than the cluster CIDR
527 # range.
528 #
529 # If this field is set to true, then cluster and services CIDRs must be
530 # fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
531 # 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
532 # `services_ipv4_cidr_block` must be fully-specified.
533 # 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
534 # fully-specified.
535 &quot;nodeIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use node_ipv4_cidr_block.
536 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range for the cluster pod IPs. If this field is set, then
537 # `cluster.cluster_ipv4_cidr` must be left blank.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700538 #
539 # This field is only applicable when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -0700540 #
541 # Set to blank to have a range chosen with the default size.
542 #
543 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
544 # netmask.
545 #
546 # Set to a
547 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
548 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
549 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
550 # to use.
551 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used for the cluster CIDR
552 # block. The secondary range will be used for pod IP
553 # addresses. This must be an existing secondary range associated
554 # with the cluster subnetwork.
555 #
556 # This field is only applicable with use_ip_aliases and
557 # create_subnetwork is false.
558 &quot;nodeIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the instance IPs in this cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700559 #
560 # This is applicable only if `create_subnetwork` is true.
561 #
562 # Set to blank to have a range chosen with the default size.
563 #
564 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
565 # netmask.
566 #
567 # Set to a
568 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
569 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
570 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
571 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700572 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the Cloud TPUs in this cluster. If unspecified, a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700573 # range will be automatically chosen with the default size.
574 #
575 # This field is only applicable when `use_ip_aliases` is true.
576 #
577 # If unspecified, the range will use the default size.
578 #
579 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
580 # netmask.
581 #
582 # Set to a
583 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
584 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
585 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
586 # to use.
Dan O'Mearadd494642020-05-01 07:42:23 -0700587 # This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
Bu Sun Kim65020912020-05-20 12:08:20 -0700588 &quot;servicesSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used as for the services
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700589 # CIDR block. The secondary range will be used for service
590 # ClusterIPs. This must be an existing secondary range associated
591 # with the cluster subnetwork.
592 #
593 # This field is only applicable with use_ip_aliases and
594 # create_subnetwork is false.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700595 &quot;createSubnetwork&quot;: True or False, # Whether a new subnetwork will be created automatically for the cluster.
596 #
597 # This field is only applicable when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -0700598 &quot;useIpAliases&quot;: True or False, # Whether alias IPs will be used for pod IPs in the cluster.
599 # This is used in conjunction with use_routes. It cannot
600 # be true if use_routes is true. If both use_ip_aliases and use_routes are
601 # false, then the server picks the default IP allocation mode
Bu Sun Kim65020912020-05-20 12:08:20 -0700602 &quot;subnetworkName&quot;: &quot;A String&quot;, # A custom subnetwork name to be used if `create_subnetwork` is true. If
603 # this field is empty, then an automatic name will be chosen for the new
604 # subnetwork.
605 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use cluster_ipv4_cidr_block.
606 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use services_ipv4_cidr_block.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700607 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700608 &quot;legacyAbac&quot;: { # Configuration for the legacy Attribute Based Access Control authorization # Configuration for the legacy ABAC authorization mode.
609 # mode.
610 &quot;enabled&quot;: True or False, # Whether the ABAC authorizer is enabled for this cluster. When enabled,
611 # identities in the system, including service accounts, nodes, and
612 # controllers, will have statically granted permissions beyond those
613 # provided by the RBAC configuration or IAM.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700614 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700615 &quot;resourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # Configuration for exporting resource usages. Resource usage export is
616 # disabled when this config unspecified.
617 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
618 # daemonset will be created in the cluster to meter network egress traffic.
619 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
620 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
621 # second BigQuery table will be created to hold resource consumption
622 # records.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700623 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700624 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
625 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700626 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700627 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700628 &quot;enableTpu&quot;: True or False, # Enable the ability to use Cloud TPUs in this cluster.
629 # This field is deprecated, use tpu_config.enabled instead.
Bu Sun Kim65020912020-05-20 12:08:20 -0700630 &quot;nodePools&quot;: [ # The node pools associated with this cluster.
631 # This field should not be set if &quot;node_config&quot; or &quot;initial_node_count&quot; are
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700632 # specified.
Bu Sun Kim65020912020-05-20 12:08:20 -0700633 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
634 # Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700635 # specification, under the control of the cluster master. They may have a set
636 # of Kubernetes labels applied to them, which may be used to reference them
637 # during pod scheduling. They may also be resized up or down, to accommodate
638 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -0700639 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
640 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700641 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
642 # scheduled on the specified or newer CPU platform. Applicable values are the
643 # friendly names of CPU platforms, such as
644 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
645 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
646 # information, read [how to specify min CPU
647 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700648 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
649 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
650 #
651 # Enables monitoring and attestation of the boot integrity of the instance.
652 # The attestation is performed against the integrity policy baseline. This
653 # baseline is initially derived from the implicitly trusted boot image when
654 # the instance is created.
655 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
656 #
657 # Secure Boot helps ensure that the system only runs authentic software by
658 # verifying the digital signature of all boot components, and halting the
659 # boot process if signature verification fails.
660 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700661 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
662 # https://cloud.google.com/compute/docs/instances/preemptible for more
663 # inforamtion about preemptible VM instances.
664 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700665 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700666 # The limit for this value is dependent upon the maximum number of
667 # disks available on a machine per zone. See:
668 # https://cloud.google.com/compute/docs/disks/local-ssd
669 # for more information.
670 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
671 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
672 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
673 },
674 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
675 #
676 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
677 # in length. These are reflected as part of a URL in the metadata server.
678 # Additionally, to avoid ambiguity, keys must not conflict with any other
679 # metadata keys for the project or be one of the reserved keys:
680 # &quot;cluster-location&quot;
681 # &quot;cluster-name&quot;
682 # &quot;cluster-uid&quot;
683 # &quot;configure-sh&quot;
684 # &quot;containerd-configure-sh&quot;
685 # &quot;enable-oslogin&quot;
686 # &quot;gci-ensure-gke-docker&quot;
687 # &quot;gci-metrics-enabled&quot;
688 # &quot;gci-update-strategy&quot;
689 # &quot;instance-template&quot;
690 # &quot;kube-env&quot;
691 # &quot;startup-script&quot;
692 # &quot;user-data&quot;
693 # &quot;disable-address-manager&quot;
694 # &quot;windows-startup-script-ps1&quot;
695 # &quot;common-psm1&quot;
696 # &quot;k8s-node-setup-psm1&quot;
697 # &quot;install-ssh-psm1&quot;
698 # &quot;user-profile-psm1&quot;
699 # &quot;serial-port-logging-enable&quot;
700 # Values are free-form strings, and only have meaning as interpreted by
701 # the image running in the instance. The only restriction placed on them is
702 # that each value&#x27;s size must be less than or equal to 32 KB.
703 #
704 # The total size of all keys and values must be less than 512 KB.
705 &quot;a_key&quot;: &quot;A String&quot;,
706 },
707 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
708 # the specified [Zonal Compute
709 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
710 # to this node pool.
711 # is the configuration of desired reservation which instances could take
712 # capacity from.
713 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
714 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
715 # the key and specify the name of your reservation as its value.
716 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
717 &quot;A String&quot;,
718 ],
719 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
720 },
721 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700722 # valid sources or targets for network firewalls and are specified by
723 # the client during cluster or node pool creation. Each tag within the list
724 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -0700725 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700726 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700727 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Dan O'Mearadd494642020-05-01 07:42:23 -0700728 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -0700729 # Account is specified, the &quot;default&quot; service account is used.
730 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
731 # the latest version of it will be used.
732 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
733 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700734 #
735 # The following scopes are recommended, but not required, and by default are
736 # not included:
737 #
738 # * `https://www.googleapis.com/auth/compute` is required for mounting
739 # persistent storage on your nodes.
740 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
741 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -0700742 # (the [Google Container
743 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700744 #
745 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
746 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -0700747 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700748 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700749 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700750 #
751 # For more information, including usage and the valid values, see:
752 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
753 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
754 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
755 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700756 # See
757 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
758 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -0700759 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700760 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
761 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700762 },
763 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700764 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
765 # These will added in addition to any default label(s) that
766 # Kubernetes may apply to the node.
767 # In case of conflict in label keys, the applied set may differ depending on
768 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
769 # and conflicts should be avoided.
770 # For more information, including usage and the valid values, see:
771 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
772 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700773 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700774 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
775 # The smallest allowed disk size is 10GB.
776 #
777 # If unspecified, the default disk size is 100GB.
778 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
779 # workloads on the node pool.
780 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
781 # workloads running on the node.
782 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
783 # on the node pool.
784 },
785 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
786 # See https://cloud.google.com/compute/docs/gpus for more information about
787 # support for GPUs.
788 { # AcceleratorConfig represents a Hardware Accelerator request.
789 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
790 # [here](https://cloud.google.com/compute/docs/gpus)
791 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
792 },
793 ],
794 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
795 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
796 # `n1-standard-1`).
797 #
798 # If unspecified, the default machine type is
799 # `n1-standard-1`.
800 &quot;diskType&quot;: &quot;A String&quot;, # Type of the disk attached to each node (e.g. &#x27;pd-standard&#x27; or &#x27;pd-ssd&#x27;)
801 #
802 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
803 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
804 # The Customer Managed Encryption Key used to encrypt the boot disk attached
805 # to each node in the node pool. This should be of the form
806 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
807 # For more information about protecting resources with Cloud KMS Keys please
808 # see:
809 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700810 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700811 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
812 # simultaneously on a node in the node pool.
813 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
814 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700815 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700816 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
817 # node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -0700818 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700819 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
Bu Sun Kim65020912020-05-20 12:08:20 -0700820 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
821 # the Auto Upgrades will proceed.
822 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
823 # with the description of the upgrade.
824 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
825 # with the approximate start time for the upgrades, in
826 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
827 },
828 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700829 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
830 # node pool instance, if available.
831 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
832 # only if a valid configuration is present.
833 # adjust the size of the node pool to the current cluster usage.
834 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
835 # has to enough quota to scale up the cluster.
836 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
837 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
838 # max_node_count.
839 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
840 },
841 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
842 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
843 # is sufficient for this number of instances. You must also have available
844 # firewall and routes quota.
845 &quot;locations&quot;: [ # The list of Google Compute Engine
846 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
847 # NodePool&#x27;s nodes should be located.
848 &quot;A String&quot;,
849 ],
850 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
851 # disruption caused by an upgrade.
852 #
853 # maxUnavailable controls the number of nodes that can be simultaneously
854 # unavailable.
855 #
856 # maxSurge controls the number of additional nodes that can be added to the
857 # node pool temporarily for the time of the upgrade to increase the number of
858 # available nodes.
859 #
860 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
861 # nodes are being upgraded at the same time).
862 #
863 # Note: upgrades inevitably introduce some disruption since workloads need to
864 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
865 # this holds true. (Disruption stays within the limits of
866 # PodDisruptionBudget, if it is configured.)
867 #
868 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
869 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
870 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
871 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
872 # there are always at least 4 nodes available.
873 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
874 # the upgrade process. A node is considered available if its status is
875 # Ready.
876 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
877 # of the node pool during the upgrade process.
878 },
879 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
880 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
881 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
882 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
883 # associated with this node pool.
884 &quot;A String&quot;,
885 ],
886 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
887 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
888 { # StatusCondition describes why a cluster or a node pool has a certain status
889 # (e.g., ERROR or DEGRADED).
890 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
891 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
892 },
893 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700894 },
895 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700896 &quot;locations&quot;: [ # The list of Google Compute Engine
897 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
898 # cluster&#x27;s nodes should be located.
899 &quot;A String&quot;,
900 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700901 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700902 &quot;releaseChannel&quot;: { # ReleaseChannel indicates which release channel a cluster is # Release channel configuration.
903 # subscribed to. Release channels are arranged in order of risk and
904 # frequency of updates.
905 #
906 # When a cluster is subscribed to a release channel, Google maintains
907 # both the master version and the node version. Node auto-upgrade
908 # defaults to true and cannot be disabled. Updates to version related
909 # fields (e.g. current_master_version) return an error.
910 &quot;channel&quot;: &quot;A String&quot;, # channel specifies which release channel the cluster is subscribed to.
911 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700912 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
913 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
914 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
915 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
916 },
917 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Kubernetes services in
918 # this cluster, in
919 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
920 # notation (e.g. `1.2.3.4/29`). Service addresses are
921 # typically put in the last `/16` from the container CIDR.
Bu Sun Kim65020912020-05-20 12:08:20 -0700922 &quot;enableKubernetesAlpha&quot;: True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha
923 # API groups (e.g. v1beta1) and features that may not be production ready in
924 # the kubernetes version of the master and nodes.
925 # The cluster has no SLA for uptime and master/node upgrades are disabled.
926 # Alpha enabled clusters are automatically deleted thirty days after
927 # creation.
928 &quot;description&quot;: &quot;A String&quot;, # An optional description of this cluster.
929 &quot;conditions&quot;: [ # Which conditions caused the current cluster state.
930 { # StatusCondition describes why a cluster or a node pool has a certain status
931 # (e.g., ERROR or DEGRADED).
932 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
933 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
934 },
935 ],
936 &quot;privateCluster&quot;: True or False, # If this is a private cluster setup. Private clusters are clusters that, by
937 # default have no external IP addresses on the nodes and where nodes and the
938 # master communicate over private IP addresses.
939 # This field is deprecated, use private_cluster_config.enable_private_nodes
940 # instead.
941 &quot;currentNodeCount&quot;: 42, # [Output only] The number of nodes currently in the cluster. Deprecated.
942 # Call Kubernetes API directly to retrieve node information.
943 &quot;monitoringService&quot;: &quot;A String&quot;, # The monitoring service the cluster should use to write metrics.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700944 # Currently available options:
945 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700946 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -0700947 # service with a Kubernetes-native resource model
948 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
949 # longer available as of GKE 1.15).
950 # * `none` - No metrics will be exported from the cluster.
951 #
952 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
953 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -0700954 &quot;databaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
955 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
956 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
Dan O'Mearadd494642020-05-01 07:42:23 -0700957 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700958 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700959 &quot;binaryAuthorization&quot;: { # Configuration for Binary Authorization. # Configuration for Binary Authorization.
960 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
961 # images will be validated by Google Binauthz.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700962 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700963 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Cloud TPUs in this cluster, in
964 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
965 # notation (e.g. `1.2.3.4/29`).
966 &quot;workloadIdentityConfig&quot;: { # Configuration for the use of Kubernetes Service Accounts in GCP IAM # Configuration for the use of Kubernetes Service Accounts in GCP IAM
967 # policies.
968 # policies.
Bu Sun Kim65020912020-05-20 12:08:20 -0700969 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700970 &quot;identityNamespace&quot;: &quot;A String&quot;, # IAM Identity Namespace to attach all Kubernetes Service Accounts to.
Bu Sun Kim65020912020-05-20 12:08:20 -0700971 },
972 &quot;zone&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700973 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
974 # cluster resides. This field is deprecated, use location instead.
Bu Sun Kim65020912020-05-20 12:08:20 -0700975 &quot;loggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
976 # Currently available options:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700977 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700978 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
979 # service with a Kubernetes-native resource model
980 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
981 # available as of GKE 1.15).
982 # * `none` - no logs will be exported from the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700983 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700984 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
985 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
986 &quot;expireTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster will be automatically
987 # deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
988 &quot;nodeConfig&quot;: { # Parameters that describe the nodes in a cluster. # Parameters used in creating the cluster&#x27;s nodes.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700989 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -0700990 # &quot;node_pool&quot; object, since this configuration (along with the
991 # &quot;initial_node_count&quot;) will be used to create a &quot;NodePool&quot; object with an
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700992 # auto-generated name. Do not use this and a node_pool at the same time.
993 # For responses, this field will be populated with the node configuration of
994 # the first node pool. (For configuration of each node pool, see
995 # `node_pool.config`)
996 #
997 # If unspecified, the defaults are used.
998 # This field is deprecated, use node_pool.config instead.
Bu Sun Kim65020912020-05-20 12:08:20 -0700999 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
1000 # scheduled on the specified or newer CPU platform. Applicable values are the
1001 # friendly names of CPU platforms, such as
1002 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
1003 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
1004 # information, read [how to specify min CPU
1005 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001006 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
1007 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
1008 #
1009 # Enables monitoring and attestation of the boot integrity of the instance.
1010 # The attestation is performed against the integrity policy baseline. This
1011 # baseline is initially derived from the implicitly trusted boot image when
1012 # the instance is created.
1013 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
1014 #
1015 # Secure Boot helps ensure that the system only runs authentic software by
1016 # verifying the digital signature of all boot components, and halting the
1017 # boot process if signature verification fails.
1018 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001019 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
1020 # https://cloud.google.com/compute/docs/instances/preemptible for more
1021 # inforamtion about preemptible VM instances.
1022 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001023 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001024 # The limit for this value is dependent upon the maximum number of
1025 # disks available on a machine per zone. See:
1026 # https://cloud.google.com/compute/docs/disks/local-ssd
1027 # for more information.
1028 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
1029 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
1030 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
1031 },
1032 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
1033 #
1034 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
1035 # in length. These are reflected as part of a URL in the metadata server.
1036 # Additionally, to avoid ambiguity, keys must not conflict with any other
1037 # metadata keys for the project or be one of the reserved keys:
1038 # &quot;cluster-location&quot;
1039 # &quot;cluster-name&quot;
1040 # &quot;cluster-uid&quot;
1041 # &quot;configure-sh&quot;
1042 # &quot;containerd-configure-sh&quot;
1043 # &quot;enable-oslogin&quot;
1044 # &quot;gci-ensure-gke-docker&quot;
1045 # &quot;gci-metrics-enabled&quot;
1046 # &quot;gci-update-strategy&quot;
1047 # &quot;instance-template&quot;
1048 # &quot;kube-env&quot;
1049 # &quot;startup-script&quot;
1050 # &quot;user-data&quot;
1051 # &quot;disable-address-manager&quot;
1052 # &quot;windows-startup-script-ps1&quot;
1053 # &quot;common-psm1&quot;
1054 # &quot;k8s-node-setup-psm1&quot;
1055 # &quot;install-ssh-psm1&quot;
1056 # &quot;user-profile-psm1&quot;
1057 # &quot;serial-port-logging-enable&quot;
1058 # Values are free-form strings, and only have meaning as interpreted by
1059 # the image running in the instance. The only restriction placed on them is
1060 # that each value&#x27;s size must be less than or equal to 32 KB.
1061 #
1062 # The total size of all keys and values must be less than 512 KB.
1063 &quot;a_key&quot;: &quot;A String&quot;,
1064 },
1065 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
1066 # the specified [Zonal Compute
1067 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
1068 # to this node pool.
1069 # is the configuration of desired reservation which instances could take
1070 # capacity from.
1071 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
1072 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
1073 # the key and specify the name of your reservation as its value.
1074 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
1075 &quot;A String&quot;,
1076 ],
1077 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
1078 },
1079 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001080 # valid sources or targets for network firewalls and are specified by
1081 # the client during cluster or node pool creation. Each tag within the list
1082 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -07001083 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001084 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001085 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Dan O'Mearadd494642020-05-01 07:42:23 -07001086 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -07001087 # Account is specified, the &quot;default&quot; service account is used.
1088 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
1089 # the latest version of it will be used.
1090 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
1091 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001092 #
1093 # The following scopes are recommended, but not required, and by default are
1094 # not included:
1095 #
1096 # * `https://www.googleapis.com/auth/compute` is required for mounting
1097 # persistent storage on your nodes.
1098 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
1099 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07001100 # (the [Google Container
1101 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001102 #
1103 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
1104 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07001105 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001106 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001107 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001108 #
1109 # For more information, including usage and the valid values, see:
1110 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1111 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
1112 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
1113 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001114 # See
1115 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
1116 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -07001117 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001118 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
1119 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001120 },
1121 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001122 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
1123 # These will added in addition to any default label(s) that
1124 # Kubernetes may apply to the node.
1125 # In case of conflict in label keys, the applied set may differ depending on
1126 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
1127 # and conflicts should be avoided.
1128 # For more information, including usage and the valid values, see:
1129 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1130 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001131 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001132 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
1133 # The smallest allowed disk size is 10GB.
1134 #
1135 # If unspecified, the default disk size is 100GB.
1136 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
1137 # workloads on the node pool.
1138 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
1139 # workloads running on the node.
1140 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
1141 # on the node pool.
1142 },
1143 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
1144 # See https://cloud.google.com/compute/docs/gpus for more information about
1145 # support for GPUs.
1146 { # AcceleratorConfig represents a Hardware Accelerator request.
1147 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
1148 # [here](https://cloud.google.com/compute/docs/gpus)
1149 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
1150 },
1151 ],
1152 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
1153 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
1154 # `n1-standard-1`).
1155 #
1156 # If unspecified, the default machine type is
1157 # `n1-standard-1`.
1158 &quot;diskType&quot;: &quot;A String&quot;, # Type of the disk attached to each node (e.g. &#x27;pd-standard&#x27; or &#x27;pd-ssd&#x27;)
1159 #
1160 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
1161 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
1162 # The Customer Managed Encryption Key used to encrypt the boot disk attached
1163 # to each node in the node pool. This should be of the form
1164 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
1165 # For more information about protecting resources with Cloud KMS Keys please
1166 # see:
1167 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
1168 },
1169 &quot;tpuConfig&quot;: { # Configuration for Cloud TPU. # Configuration for Cloud TPU support;
1170 &quot;useServiceNetworking&quot;: True or False, # Whether to use service networking for Cloud TPU or not.
1171 &quot;ipv4CidrBlock&quot;: &quot;A String&quot;, # IPv4 CIDR block reserved for Cloud TPU in the VPC.
1172 &quot;enabled&quot;: True or False, # Whether Cloud TPU integration is enabled or not.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001173 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001174 &quot;status&quot;: &quot;A String&quot;, # [Output only] The current status of this cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07001175 &quot;networkConfig&quot;: { # NetworkConfig reports the relative names of network &amp; subnetwork. # Configuration for cluster networking.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001176 &quot;enableIntraNodeVisibility&quot;: True or False, # Whether Intra-node visibility is enabled for this cluster.
1177 # This makes same node pod to pod traffic visible for VPC network.
Bu Sun Kim65020912020-05-20 12:08:20 -07001178 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
1179 # [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
1180 # cluster is connected. Example:
1181 # projects/my-project/regions/us-central1/subnetworks/my-subnet
1182 &quot;network&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
1183 # network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
1184 # to which the cluster is connected. Example:
1185 # projects/my-project/global/networks/my-network
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001186 &quot;defaultSnatStatus&quot;: { # DefaultSnatStatus contains the desired state of whether default sNAT should # Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
1187 # will be disabled when default_snat_status is disabled. When disabled is set
1188 # to false, default IP masquerade rules will be applied to the nodes to
1189 # prevent sNAT on cluster internal traffic.
1190 # be disabled on the cluster.
1191 &quot;disabled&quot;: True or False, # Disables cluster default sNAT rules.
1192 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001193 },
1194 &quot;name&quot;: &quot;A String&quot;, # The name of this cluster. The name must be unique within this project
1195 # and location (e.g. zone or region), and can be up to 40 characters with
1196 # the following restrictions:
1197 #
1198 # * Lowercase letters, numbers, and hyphens only.
1199 # * Must start with a letter.
1200 # * Must end with a number or a letter.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001201 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
1202 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1203 # or
1204 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1205 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001206 &quot;endpoint&quot;: &quot;A String&quot;, # [Output only] The IP address of this cluster&#x27;s master endpoint.
1207 # The endpoint can be accessed from the internet at
1208 # `https://username:password@endpoint/`.
1209 #
1210 # See the `masterAuth` property of this resource for username and
1211 # password information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001212 &quot;createTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster was created, in
1213 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1214 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # The IP address range of the container pods in this cluster, in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001215 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1216 # notation (e.g. `10.96.0.0/14`). Leave blank to have
1217 # one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001218 &quot;autoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
1219 # required by Cluster Autoscaler to automatically adjust
1220 # the size of the cluster and create/delete
1221 # node pools based on the current needs.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001222 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
1223 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1224 # NodePool&#x27;s nodes can be created by NAP.
1225 &quot;A String&quot;,
1226 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001227 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
1228 # amount of resources in the cluster.
1229 { # Contains information about amount of some resource in the cluster.
1230 # For memory, value should be in GB.
1231 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
1232 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
1233 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
1234 },
1235 ],
1236 &quot;autoscalingProfile&quot;: &quot;A String&quot;, # Defines autoscaling behaviour.
1237 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
1238 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
1239 # created by NAP.
1240 # by NAP.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001241 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. If
1242 # service_account is specified, scopes should be empty.
1243 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used for NAP created node pools.
1244 # The instance may be scheduled on the specified or newer CPU platform.
1245 # Applicable values are the friendly names of CPU platforms, such as
1246 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
1247 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
1248 # information, read [how to specify min CPU
1249 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
1250 # To unset the min cpu platform field pass &quot;automatic&quot; as field value.
Bu Sun Kim65020912020-05-20 12:08:20 -07001251 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # Specifies the node management options for NAP created node-pools.
1252 # node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001253 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001254 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
Bu Sun Kim65020912020-05-20 12:08:20 -07001255 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1256 # the Auto Upgrades will proceed.
1257 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1258 # with the description of the upgrade.
1259 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1260 # with the approximate start time for the upgrades, in
1261 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1262 },
1263 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001264 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
1265 # specified, service_account should be empty.
1266 &quot;A String&quot;,
1267 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001268 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Specifies the upgrade settings for NAP created node pools
1269 # disruption caused by an upgrade.
1270 #
1271 # maxUnavailable controls the number of nodes that can be simultaneously
1272 # unavailable.
1273 #
1274 # maxSurge controls the number of additional nodes that can be added to the
1275 # node pool temporarily for the time of the upgrade to increase the number of
1276 # available nodes.
1277 #
1278 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1279 # nodes are being upgraded at the same time).
1280 #
1281 # Note: upgrades inevitably introduce some disruption since workloads need to
1282 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
1283 # this holds true. (Disruption stays within the limits of
1284 # PodDisruptionBudget, if it is configured.)
1285 #
1286 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
1287 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
1288 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
1289 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
1290 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001291 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
1292 # the upgrade process. A node is considered available if its status is
1293 # Ready.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001294 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
1295 # of the node pool during the upgrade process.
Bu Sun Kim65020912020-05-20 12:08:20 -07001296 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001297 },
Dan O'Mearadd494642020-05-01 07:42:23 -07001298 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001299 &quot;initialNodeCount&quot;: 42, # The number of nodes to create in this cluster. You must ensure that your
1300 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
Dan O'Mearadd494642020-05-01 07:42:23 -07001301 # is sufficient for this number of instances. You must also have available
1302 # firewall and routes quota.
1303 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07001304 # &quot;node_pool&quot; object, since this configuration (along with the
1305 # &quot;node_config&quot;) will be used to create a &quot;NodePool&quot; object with an
Dan O'Mearadd494642020-05-01 07:42:23 -07001306 # auto-generated name. Do not use this and a node_pool at the same time.
1307 #
1308 # This field is deprecated, use node_pool.initial_node_count instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07001309 &quot;instanceGroupUrls&quot;: [ # Deprecated. Use node_pools.instance_group_urls.
1310 &quot;A String&quot;,
1311 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001312 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001313 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
1314 # number](https://support.google.com/cloud/answer/6158840).
1315 # This field has been deprecated and replaced by the parent field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001316 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
1317 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1318 # cluster resides. This field has been deprecated and replaced by the parent
1319 # field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001320 }
1321
1322 x__xgafv: string, V1 error format.
1323 Allowed values
1324 1 - v1 error format
1325 2 - v2 error format
1326
1327Returns:
1328 An object of the form:
1329
1330 { # This operation resource represents operations that may have happened or are
1331 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001332 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1333 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1334 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1335 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1336 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001337 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001338 { # StatusCondition describes why a cluster or a node pool has a certain status
1339 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001340 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1341 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001342 },
1343 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001344 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1345 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001346 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001347 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1348 # or
1349 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1350 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001351 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1352 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1353 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1354 { # StatusCondition describes why a cluster or a node pool has a certain status
1355 # (e.g., ERROR or DEGRADED).
1356 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1357 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1358 },
1359 ],
1360 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001361 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1362 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1363 # {name: &quot;nodes total&quot;, int_value: 32}]
1364 # or
1365 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1366 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1367 { # Progress metric is (string, int|float|string) pair.
1368 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1369 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1370 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1371 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1372 },
1373 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001374 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1375 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07001376 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1377 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001378 &quot;stages&quot;: [ # Substages of an operation or a stage.
1379 # Object with schema name: OperationProgress
1380 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001381 },
1382 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1383 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1384 # operation is taking place. This field is deprecated, use location instead.
1385 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1386 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001387 }</pre>
1388</div>
1389
1390<div class="method">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001391 <code class="details" id="delete">delete(name, projectId=None, zone=None, clusterId=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001392 <pre>Deletes the cluster, including the Kubernetes endpoint and all worker
1393nodes.
1394
1395Firewalls and routes that were configured during cluster creation
1396are also deleted.
1397
1398Other Google Compute Engine resources that might be in use by the cluster,
Bu Sun Kim65020912020-05-20 12:08:20 -07001399such as load balancer resources, are not deleted if they weren&#x27;t present
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001400when the cluster was initially created.
1401
1402Args:
1403 name: string, The name (project, location, cluster) of the cluster to delete.
Bu Sun Kim65020912020-05-20 12:08:20 -07001404Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001405 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001406number](https://support.google.com/cloud/answer/6158840).
1407This field has been deprecated and replaced by the name field.
Dan O'Mearadd494642020-05-01 07:42:23 -07001408 zone: string, Required. Deprecated. The name of the Google Compute Engine
1409[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1410cluster resides. This field has been deprecated and replaced by the name
1411field.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001412 clusterId: string, Required. Deprecated. The name of the cluster to delete.
1413This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001414 x__xgafv: string, V1 error format.
1415 Allowed values
1416 1 - v1 error format
1417 2 - v2 error format
1418
1419Returns:
1420 An object of the form:
1421
1422 { # This operation resource represents operations that may have happened or are
1423 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001424 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
1425 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1426 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
1427 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
1428 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001429 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001430 { # StatusCondition describes why a cluster or a node pool has a certain status
1431 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07001432 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1433 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001434 },
1435 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001436 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1437 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001438 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07001439 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1440 # or
1441 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1442 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001443 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1444 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1445 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1446 { # StatusCondition describes why a cluster or a node pool has a certain status
1447 # (e.g., ERROR or DEGRADED).
1448 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1449 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1450 },
1451 ],
1452 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001453 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1454 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1455 # {name: &quot;nodes total&quot;, int_value: 32}]
1456 # or
1457 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1458 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1459 { # Progress metric is (string, int|float|string) pair.
1460 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1461 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
1462 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
1463 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
1464 },
1465 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001466 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1467 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07001468 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1469 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001470 &quot;stages&quot;: [ # Substages of an operation or a stage.
1471 # Object with schema name: OperationProgress
1472 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001473 },
1474 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1475 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1476 # operation is taking place. This field is deprecated, use location instead.
1477 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
1478 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001479 }</pre>
1480</div>
1481
1482<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07001483 <code class="details" id="get">get(name, projectId=None, zone=None, clusterId=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001484 <pre>Gets the details for a specific cluster.
1485
1486Args:
1487 name: string, The name (project, location, cluster) of the cluster to retrieve.
Bu Sun Kim65020912020-05-20 12:08:20 -07001488Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001489 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001490number](https://support.google.com/cloud/answer/6158840).
1491This field has been deprecated and replaced by the name field.
Dan O'Mearadd494642020-05-01 07:42:23 -07001492 zone: string, Required. Deprecated. The name of the Google Compute Engine
1493[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1494cluster resides. This field has been deprecated and replaced by the name
1495field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001496 clusterId: string, Required. Deprecated. The name of the cluster to retrieve.
1497This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001498 x__xgafv: string, V1 error format.
1499 Allowed values
1500 1 - v1 error format
1501 2 - v2 error format
1502
1503Returns:
1504 An object of the form:
1505
1506 { # A Google Kubernetes Engine cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001507 &quot;privateClusterConfig&quot;: { # Configuration options for private clusters. # Configuration for private cluster.
1508 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
1509 # range will be used for assigning internal IP addresses to the master or
1510 # set of masters, as well as the ILB VIP. This range must not overlap with
1511 # any other ranges in use within the cluster&#x27;s network.
1512 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
1513 # given only RFC 1918 private addresses and communicate with the master via
1514 # private networking.
1515 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
1516 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
1517 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
1518 &quot;masterGlobalAccessConfig&quot;: { # Configuration for controlling master global access settings. # Controls master global access settings.
1519 &quot;enabled&quot;: True or False, # Whenever master is accessible globally or not.
1520 },
1521 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
1522 },
1523 &quot;shieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
1524 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
1525 },
1526 &quot;verticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
1527 # required by Vertical Pod Autoscaler to automatically adjust
1528 # the resources of pods controlled by it.
1529 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
1530 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001531 &quot;defaultMaxPodsConstraint&quot;: { # Constraints applied to pods. # The default constraint on the maximum number of pods that can be run
1532 # simultaneously on a node in the node pool of this cluster. Only honored
1533 # if cluster created with IP Alias support.
1534 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
1535 },
1536 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1537 # [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
1538 # to which the cluster is connected. If left unspecified, the `default`
1539 # network will be used. On output this shows the network ID instead of the
1540 # name.
1541 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the set of labels for this cluster.
1542 &quot;nodeIpv4CidrSize&quot;: 42, # [Output only] The size of the address space on each node for hosting
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001543 # containers. This is provisioned from within the `container_ipv4_cidr`
1544 # range. This field will only be set when cluster is in route-based network
1545 # mode.
Bu Sun Kim65020912020-05-20 12:08:20 -07001546 &quot;masterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The configuration options for master authorized networks feature.
1547 # master authorized networks will disallow all external traffic to access
1548 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
1549 # Google Compute Engine Public IPs and Google Prod IPs.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001550 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
Bu Sun Kim65020912020-05-20 12:08:20 -07001551 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 10 external networks that could access
1552 # Kubernetes master through HTTPS.
1553 { # CidrBlock contains an optional name and one CIDR block.
Bu Sun Kim65020912020-05-20 12:08:20 -07001554 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001555 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
Bu Sun Kim65020912020-05-20 12:08:20 -07001556 },
1557 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001558 },
1559 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
1560 # cluster, if available.
1561 &quot;masterAuth&quot;: { # The authentication information for accessing the master endpoint. # The authentication information for accessing the master endpoint.
1562 # If unspecified, the defaults are used:
1563 # For clusters before v1.12, if master_auth is unspecified, `username` will
1564 # be set to &quot;admin&quot;, a random password will be generated, and a client
1565 # certificate will be issued.
1566 # Authentication can be done using HTTP basic auth or using client
1567 # certificates.
1568 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint.
1569 # Because the master endpoint is open to the Internet, you should create a
1570 # strong password. If a password is provided for cluster creation, username
1571 # must be non-empty.
1572 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For
1573 # clusters before v1.12, if no configuration is specified, a client
1574 # certificate is issued.
1575 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
1576 },
1577 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
1578 # to the cluster endpoint.
1579 &quot;clusterCaCertificate&quot;: &quot;A String&quot;,
1580 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
1581 # authenticate to the cluster endpoint.
1582 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
1583 # For clusters v1.6.0 and later, basic authentication can be disabled by
1584 # leaving username unspecified (or setting it to the empty string).
1585 },
1586 &quot;authenticatorGroupsConfig&quot;: { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001587 &quot;securityGroup&quot;: &quot;A String&quot;, # The name of the security group-of-groups to be used. Only relevant
1588 # if enabled = true.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001589 &quot;enabled&quot;: True or False, # Whether this cluster should return group membership lookups
1590 # during authentication using a group of security groups.
Bu Sun Kim65020912020-05-20 12:08:20 -07001591 },
1592 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP prefix in CIDR notation to use for the hosted master network.
1593 # This prefix will be used for assigning private IP addresses to the
1594 # master or set of masters, as well as the ILB VIP.
1595 # This field is deprecated, use
1596 # private_cluster_config.master_ipv4_cidr_block instead.
1597 &quot;clusterTelemetry&quot;: { # Telemetry integration for the cluster. # Telemetry integration for the cluster.
1598 &quot;type&quot;: &quot;A String&quot;, # Type of the integration.
1599 },
1600 &quot;currentMasterVersion&quot;: &quot;A String&quot;, # [Output only] The current software version of the master endpoint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001601 &quot;podSecurityPolicyConfig&quot;: { # Configuration for the PodSecurityPolicy feature. # Configuration for the PodSecurityPolicy feature.
1602 &quot;enabled&quot;: True or False, # Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
1603 # must be valid under a PodSecurityPolicy to be created.
1604 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001605 &quot;addonsConfig&quot;: { # Configuration for the addons that can be automatically spun up in the # Configurations for the various addons available to run in the cluster.
1606 # cluster, enabling additional functionality.
Bu Sun Kim65020912020-05-20 12:08:20 -07001607 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
1608 # makes it easy to set up HTTP load balancers for services in a cluster.
1609 # which makes it easy to set up HTTP load balancers for services in a cluster.
1610 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
1611 # When enabled, it runs a small pod in the cluster that manages the load
1612 # balancers.
1613 },
1614 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
1615 # This addon is deprecated, and will be disabled in 1.15. It is recommended
1616 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
1617 # workloads and applications. For more information, see:
1618 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
1619 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
1620 },
1621 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
1622 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
1623 },
1624 &quot;kalmConfig&quot;: { # Configuration options for the KALM addon. # Configuration for the KALM addon, which manages the lifecycle of k8s
1625 # applications.
1626 &quot;enabled&quot;: True or False, # Whether KALM is enabled for this cluster.
1627 },
1628 &quot;gcePersistentDiskCsiDriverConfig&quot;: { # Configuration for the Compute Engine PD CSI driver. This option can only be # Configuration for the Compute Engine Persistent Disk CSI driver.
1629 # enabled at cluster creation time.
1630 &quot;enabled&quot;: True or False, # Whether the Compute Engine PD CSI driver is enabled for this cluster.
1631 },
1632 &quot;istioConfig&quot;: { # Configuration options for Istio addon. # Configuration for Istio, an open platform to connect, manage, and secure
1633 # microservices.
Bu Sun Kim65020912020-05-20 12:08:20 -07001634 &quot;auth&quot;: &quot;A String&quot;, # The specified Istio auth mode, either none, or mutual TLS.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001635 &quot;disabled&quot;: True or False, # Whether Istio is enabled for this cluster.
1636 },
1637 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
1638 # is enabled or not on the Master, it does not track whether network policy
1639 # is enabled for the nodes.
1640 # is enabled or not on the Master, it does not track whether network policy
1641 # is enabled for the nodes.
1642 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
1643 },
1644 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be
1645 # enabled in order to enable Cloud Run addon. This option can only be enabled
1646 # at cluster creation time.
1647 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
1648 },
1649 &quot;configConnectorConfig&quot;: { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes
1650 # extension to manage hosted GCP services through the Kubernetes API
1651 &quot;enabled&quot;: True or False, # Whether Cloud Connector is enabled for this cluster.
1652 },
1653 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
1654 # increases or decreases the number of replica pods a replication controller
1655 # has based on the resource usage of the existing pods.
1656 # increases or decreases the number of replica pods a replication controller
1657 # has based on the resource usage of the existing pods.
1658 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
1659 # When enabled, it ensures that metrics are collected into Stackdriver
1660 # Monitoring.
Bu Sun Kim65020912020-05-20 12:08:20 -07001661 },
1662 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001663 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1664 # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
1665 # the cluster is connected. On output this shows the subnetwork ID instead of
1666 # the name.
Bu Sun Kim65020912020-05-20 12:08:20 -07001667 &quot;currentNodeVersion&quot;: &quot;A String&quot;, # [Output only] Deprecated, use
1668 # [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools)
1669 # instead. The current version of the node software components.
1670 # If they are currently at multiple versions because they&#x27;re in the process
1671 # of being upgraded, this reflects the minimum version of all nodes.
Bu Sun Kim65020912020-05-20 12:08:20 -07001672 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07001673 &quot;window&quot;: { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001674 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
1675 # occur in these windows.
1676 &quot;a_key&quot;: { # Represents an arbitrary window of time.
1677 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
1678 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
1679 # start time.
1680 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001681 },
1682 &quot;recurringWindow&quot;: { # Represents an arbitrary window of time that recurs. # RecurringWindow specifies some number of recurring time periods for
Dan O'Mearadd494642020-05-01 07:42:23 -07001683 # maintenance to occur. The time windows may be overlapping. If no
1684 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim65020912020-05-20 12:08:20 -07001685 &quot;recurrence&quot;: &quot;A String&quot;, # An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
Dan O'Mearadd494642020-05-01 07:42:23 -07001686 # this window reccurs. They go on for the span of time between the start and
1687 # end time.
1688 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001689 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -07001690 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
1691 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
1692 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
1693 # For the first weekend of every month:
1694 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
1695 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -07001696 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -07001697 # &lt;code&gt;
1698 # start time = 2019-01-01T09:00:00-0400
1699 # end time = 2019-01-01T17:00:00-0400
1700 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
1701 # &lt;/code&gt;
1702 # Windows can span multiple days. Eg, to make the window encompass every
1703 # weekend from midnight Saturday till the last minute of Sunday UTC:
1704 # &lt;code&gt;
1705 # start time = 2019-01-05T00:00:00Z
1706 # end time = 2019-01-07T23:59:00Z
1707 # recurrence = FREQ=WEEKLY;BYDAY=SA
1708 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07001709 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -07001710 # to specify duration of the window and when it first starts.
1711 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Bu Sun Kim65020912020-05-20 12:08:20 -07001712 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001713 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Bu Sun Kim65020912020-05-20 12:08:20 -07001714 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
Dan O'Mearadd494642020-05-01 07:42:23 -07001715 # start time.
Dan O'Mearadd494642020-05-01 07:42:23 -07001716 },
1717 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001718 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
1719 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
1720 # smallest possible in the given scenario.
1721 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
1722 # It must be in format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
Dan O'Mearadd494642020-05-01 07:42:23 -07001723 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001724 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001725 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
1726 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
1727 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
1728 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
1729 # resource version and include it with requests to set the policy.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001730 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001731 &quot;resourceLabels&quot;: { # The resource labels for the cluster to use to annotate any related
1732 # Google Compute Engine resources.
1733 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001734 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001735 &quot;initialClusterVersion&quot;: &quot;A String&quot;, # The initial Kubernetes version for this cluster. Valid versions are those
1736 # found in validMasterVersions returned by getServerConfig. The version can
1737 # be upgraded over time; such upgrades are reflected in
1738 # currentMasterVersion and currentNodeVersion.
Dan O'Mearadd494642020-05-01 07:42:23 -07001739 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001740 # Users may specify either explicit versions offered by
1741 # Kubernetes Engine or version aliases, which have the following behavior:
Dan O'Mearadd494642020-05-01 07:42:23 -07001742 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001743 # - &quot;latest&quot;: picks the highest valid Kubernetes version
1744 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
1745 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
1746 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
1747 # - &quot;&quot;,&quot;-&quot;: picks the default Kubernetes version
1748 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the cluster. # Configuration for cluster IP allocation.
1749 &quot;useRoutes&quot;: True or False, # Whether routes will be used for pod IPs in the cluster.
1750 # This is used in conjunction with use_ip_aliases. It cannot be true if
1751 # use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
1752 # then the server picks the default IP allocation mode
1753 &quot;servicesIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the services IPs in this cluster. If blank, a range
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001754 # will be automatically chosen with the default size.
1755 #
1756 # This field is only applicable when `use_ip_aliases` is true.
1757 #
1758 # Set to blank to have a range chosen with the default size.
1759 #
1760 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1761 # netmask.
1762 #
1763 # Set to a
1764 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1765 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1766 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1767 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07001768 &quot;allowRouteOverlap&quot;: True or False, # If true, allow allocation of cluster CIDR ranges that overlap with certain
1769 # kinds of network routes. By default we do not allow cluster CIDR ranges to
1770 # intersect with any user declared routes. With allow_route_overlap == true,
1771 # we allow overlapping with CIDR ranges that are larger than the cluster CIDR
1772 # range.
1773 #
1774 # If this field is set to true, then cluster and services CIDRs must be
1775 # fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
1776 # 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
1777 # `services_ipv4_cidr_block` must be fully-specified.
1778 # 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
1779 # fully-specified.
1780 &quot;nodeIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use node_ipv4_cidr_block.
1781 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range for the cluster pod IPs. If this field is set, then
1782 # `cluster.cluster_ipv4_cidr` must be left blank.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001783 #
1784 # This field is only applicable when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07001785 #
1786 # Set to blank to have a range chosen with the default size.
1787 #
1788 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1789 # netmask.
1790 #
1791 # Set to a
1792 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1793 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1794 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1795 # to use.
1796 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used for the cluster CIDR
1797 # block. The secondary range will be used for pod IP
1798 # addresses. This must be an existing secondary range associated
1799 # with the cluster subnetwork.
1800 #
1801 # This field is only applicable with use_ip_aliases and
1802 # create_subnetwork is false.
1803 &quot;nodeIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the instance IPs in this cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001804 #
1805 # This is applicable only if `create_subnetwork` is true.
1806 #
1807 # Set to blank to have a range chosen with the default size.
1808 #
1809 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1810 # netmask.
1811 #
1812 # Set to a
1813 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1814 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1815 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1816 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07001817 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the Cloud TPUs in this cluster. If unspecified, a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001818 # range will be automatically chosen with the default size.
1819 #
1820 # This field is only applicable when `use_ip_aliases` is true.
1821 #
1822 # If unspecified, the range will use the default size.
1823 #
1824 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1825 # netmask.
1826 #
1827 # Set to a
1828 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1829 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1830 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1831 # to use.
Dan O'Mearadd494642020-05-01 07:42:23 -07001832 # This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07001833 &quot;servicesSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used as for the services
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001834 # CIDR block. The secondary range will be used for service
1835 # ClusterIPs. This must be an existing secondary range associated
1836 # with the cluster subnetwork.
1837 #
1838 # This field is only applicable with use_ip_aliases and
1839 # create_subnetwork is false.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001840 &quot;createSubnetwork&quot;: True or False, # Whether a new subnetwork will be created automatically for the cluster.
1841 #
1842 # This field is only applicable when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07001843 &quot;useIpAliases&quot;: True or False, # Whether alias IPs will be used for pod IPs in the cluster.
1844 # This is used in conjunction with use_routes. It cannot
1845 # be true if use_routes is true. If both use_ip_aliases and use_routes are
1846 # false, then the server picks the default IP allocation mode
Bu Sun Kim65020912020-05-20 12:08:20 -07001847 &quot;subnetworkName&quot;: &quot;A String&quot;, # A custom subnetwork name to be used if `create_subnetwork` is true. If
1848 # this field is empty, then an automatic name will be chosen for the new
1849 # subnetwork.
1850 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use cluster_ipv4_cidr_block.
1851 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use services_ipv4_cidr_block.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001852 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001853 &quot;legacyAbac&quot;: { # Configuration for the legacy Attribute Based Access Control authorization # Configuration for the legacy ABAC authorization mode.
1854 # mode.
1855 &quot;enabled&quot;: True or False, # Whether the ABAC authorizer is enabled for this cluster. When enabled,
1856 # identities in the system, including service accounts, nodes, and
1857 # controllers, will have statically granted permissions beyond those
1858 # provided by the RBAC configuration or IAM.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001859 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001860 &quot;resourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # Configuration for exporting resource usages. Resource usage export is
1861 # disabled when this config unspecified.
1862 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
1863 # daemonset will be created in the cluster to meter network egress traffic.
1864 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
1865 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
1866 # second BigQuery table will be created to hold resource consumption
1867 # records.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001868 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001869 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
1870 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001871 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001872 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001873 &quot;enableTpu&quot;: True or False, # Enable the ability to use Cloud TPUs in this cluster.
1874 # This field is deprecated, use tpu_config.enabled instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07001875 &quot;nodePools&quot;: [ # The node pools associated with this cluster.
1876 # This field should not be set if &quot;node_config&quot; or &quot;initial_node_count&quot; are
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001877 # specified.
Bu Sun Kim65020912020-05-20 12:08:20 -07001878 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
1879 # Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001880 # specification, under the control of the cluster master. They may have a set
1881 # of Kubernetes labels applied to them, which may be used to reference them
1882 # during pod scheduling. They may also be resized up or down, to accommodate
1883 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -07001884 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
1885 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07001886 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
1887 # scheduled on the specified or newer CPU platform. Applicable values are the
1888 # friendly names of CPU platforms, such as
1889 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
1890 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
1891 # information, read [how to specify min CPU
1892 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001893 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
1894 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
1895 #
1896 # Enables monitoring and attestation of the boot integrity of the instance.
1897 # The attestation is performed against the integrity policy baseline. This
1898 # baseline is initially derived from the implicitly trusted boot image when
1899 # the instance is created.
1900 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
1901 #
1902 # Secure Boot helps ensure that the system only runs authentic software by
1903 # verifying the digital signature of all boot components, and halting the
1904 # boot process if signature verification fails.
1905 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001906 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
1907 # https://cloud.google.com/compute/docs/instances/preemptible for more
1908 # inforamtion about preemptible VM instances.
1909 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001910 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001911 # The limit for this value is dependent upon the maximum number of
1912 # disks available on a machine per zone. See:
1913 # https://cloud.google.com/compute/docs/disks/local-ssd
1914 # for more information.
1915 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
1916 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
1917 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
1918 },
1919 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
1920 #
1921 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
1922 # in length. These are reflected as part of a URL in the metadata server.
1923 # Additionally, to avoid ambiguity, keys must not conflict with any other
1924 # metadata keys for the project or be one of the reserved keys:
1925 # &quot;cluster-location&quot;
1926 # &quot;cluster-name&quot;
1927 # &quot;cluster-uid&quot;
1928 # &quot;configure-sh&quot;
1929 # &quot;containerd-configure-sh&quot;
1930 # &quot;enable-oslogin&quot;
1931 # &quot;gci-ensure-gke-docker&quot;
1932 # &quot;gci-metrics-enabled&quot;
1933 # &quot;gci-update-strategy&quot;
1934 # &quot;instance-template&quot;
1935 # &quot;kube-env&quot;
1936 # &quot;startup-script&quot;
1937 # &quot;user-data&quot;
1938 # &quot;disable-address-manager&quot;
1939 # &quot;windows-startup-script-ps1&quot;
1940 # &quot;common-psm1&quot;
1941 # &quot;k8s-node-setup-psm1&quot;
1942 # &quot;install-ssh-psm1&quot;
1943 # &quot;user-profile-psm1&quot;
1944 # &quot;serial-port-logging-enable&quot;
1945 # Values are free-form strings, and only have meaning as interpreted by
1946 # the image running in the instance. The only restriction placed on them is
1947 # that each value&#x27;s size must be less than or equal to 32 KB.
1948 #
1949 # The total size of all keys and values must be less than 512 KB.
1950 &quot;a_key&quot;: &quot;A String&quot;,
1951 },
1952 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
1953 # the specified [Zonal Compute
1954 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
1955 # to this node pool.
1956 # is the configuration of desired reservation which instances could take
1957 # capacity from.
1958 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
1959 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
1960 # the key and specify the name of your reservation as its value.
1961 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
1962 &quot;A String&quot;,
1963 ],
1964 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
1965 },
1966 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001967 # valid sources or targets for network firewalls and are specified by
1968 # the client during cluster or node pool creation. Each tag within the list
1969 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -07001970 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001971 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001972 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Dan O'Mearadd494642020-05-01 07:42:23 -07001973 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -07001974 # Account is specified, the &quot;default&quot; service account is used.
1975 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
1976 # the latest version of it will be used.
1977 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
1978 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001979 #
1980 # The following scopes are recommended, but not required, and by default are
1981 # not included:
1982 #
1983 # * `https://www.googleapis.com/auth/compute` is required for mounting
1984 # persistent storage on your nodes.
1985 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
1986 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07001987 # (the [Google Container
1988 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001989 #
1990 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
1991 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07001992 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001993 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001994 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001995 #
1996 # For more information, including usage and the valid values, see:
1997 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1998 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
1999 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
2000 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002001 # See
2002 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
2003 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -07002004 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002005 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
2006 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002007 },
2008 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002009 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
2010 # These will added in addition to any default label(s) that
2011 # Kubernetes may apply to the node.
2012 # In case of conflict in label keys, the applied set may differ depending on
2013 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
2014 # and conflicts should be avoided.
2015 # For more information, including usage and the valid values, see:
2016 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
2017 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002018 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002019 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
2020 # The smallest allowed disk size is 10GB.
2021 #
2022 # If unspecified, the default disk size is 100GB.
2023 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
2024 # workloads on the node pool.
2025 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
2026 # workloads running on the node.
2027 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
2028 # on the node pool.
2029 },
2030 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
2031 # See https://cloud.google.com/compute/docs/gpus for more information about
2032 # support for GPUs.
2033 { # AcceleratorConfig represents a Hardware Accelerator request.
2034 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
2035 # [here](https://cloud.google.com/compute/docs/gpus)
2036 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
2037 },
2038 ],
2039 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
2040 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
2041 # `n1-standard-1`).
2042 #
2043 # If unspecified, the default machine type is
2044 # `n1-standard-1`.
2045 &quot;diskType&quot;: &quot;A String&quot;, # Type of the disk attached to each node (e.g. &#x27;pd-standard&#x27; or &#x27;pd-ssd&#x27;)
2046 #
2047 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
2048 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
2049 # The Customer Managed Encryption Key used to encrypt the boot disk attached
2050 # to each node in the node pool. This should be of the form
2051 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
2052 # For more information about protecting resources with Cloud KMS Keys please
2053 # see:
2054 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002055 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002056 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
2057 # simultaneously on a node in the node pool.
2058 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
2059 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002060 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07002061 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
2062 # node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07002063 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002064 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
Bu Sun Kim65020912020-05-20 12:08:20 -07002065 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
2066 # the Auto Upgrades will proceed.
2067 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2068 # with the description of the upgrade.
2069 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2070 # with the approximate start time for the upgrades, in
2071 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2072 },
2073 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002074 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
2075 # node pool instance, if available.
2076 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
2077 # only if a valid configuration is present.
2078 # adjust the size of the node pool to the current cluster usage.
2079 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
2080 # has to enough quota to scale up the cluster.
2081 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
2082 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
2083 # max_node_count.
2084 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
2085 },
2086 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
2087 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
2088 # is sufficient for this number of instances. You must also have available
2089 # firewall and routes quota.
2090 &quot;locations&quot;: [ # The list of Google Compute Engine
2091 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
2092 # NodePool&#x27;s nodes should be located.
2093 &quot;A String&quot;,
2094 ],
2095 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
2096 # disruption caused by an upgrade.
2097 #
2098 # maxUnavailable controls the number of nodes that can be simultaneously
2099 # unavailable.
2100 #
2101 # maxSurge controls the number of additional nodes that can be added to the
2102 # node pool temporarily for the time of the upgrade to increase the number of
2103 # available nodes.
2104 #
2105 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
2106 # nodes are being upgraded at the same time).
2107 #
2108 # Note: upgrades inevitably introduce some disruption since workloads need to
2109 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
2110 # this holds true. (Disruption stays within the limits of
2111 # PodDisruptionBudget, if it is configured.)
2112 #
2113 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
2114 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
2115 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
2116 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
2117 # there are always at least 4 nodes available.
2118 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
2119 # the upgrade process. A node is considered available if its status is
2120 # Ready.
2121 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
2122 # of the node pool during the upgrade process.
2123 },
2124 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
2125 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
2126 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
2127 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
2128 # associated with this node pool.
2129 &quot;A String&quot;,
2130 ],
2131 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
2132 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
2133 { # StatusCondition describes why a cluster or a node pool has a certain status
2134 # (e.g., ERROR or DEGRADED).
2135 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
2136 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
2137 },
2138 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002139 },
2140 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002141 &quot;locations&quot;: [ # The list of Google Compute Engine
2142 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
2143 # cluster&#x27;s nodes should be located.
2144 &quot;A String&quot;,
2145 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002146 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07002147 &quot;releaseChannel&quot;: { # ReleaseChannel indicates which release channel a cluster is # Release channel configuration.
2148 # subscribed to. Release channels are arranged in order of risk and
2149 # frequency of updates.
2150 #
2151 # When a cluster is subscribed to a release channel, Google maintains
2152 # both the master version and the node version. Node auto-upgrade
2153 # defaults to true and cannot be disabled. Updates to version related
2154 # fields (e.g. current_master_version) return an error.
2155 &quot;channel&quot;: &quot;A String&quot;, # channel specifies which release channel the cluster is subscribed to.
2156 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002157 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
2158 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
2159 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
2160 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
2161 },
2162 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Kubernetes services in
2163 # this cluster, in
2164 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2165 # notation (e.g. `1.2.3.4/29`). Service addresses are
2166 # typically put in the last `/16` from the container CIDR.
Bu Sun Kim65020912020-05-20 12:08:20 -07002167 &quot;enableKubernetesAlpha&quot;: True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha
2168 # API groups (e.g. v1beta1) and features that may not be production ready in
2169 # the kubernetes version of the master and nodes.
2170 # The cluster has no SLA for uptime and master/node upgrades are disabled.
2171 # Alpha enabled clusters are automatically deleted thirty days after
2172 # creation.
2173 &quot;description&quot;: &quot;A String&quot;, # An optional description of this cluster.
2174 &quot;conditions&quot;: [ # Which conditions caused the current cluster state.
2175 { # StatusCondition describes why a cluster or a node pool has a certain status
2176 # (e.g., ERROR or DEGRADED).
2177 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
2178 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
2179 },
2180 ],
2181 &quot;privateCluster&quot;: True or False, # If this is a private cluster setup. Private clusters are clusters that, by
2182 # default have no external IP addresses on the nodes and where nodes and the
2183 # master communicate over private IP addresses.
2184 # This field is deprecated, use private_cluster_config.enable_private_nodes
2185 # instead.
2186 &quot;currentNodeCount&quot;: 42, # [Output only] The number of nodes currently in the cluster. Deprecated.
2187 # Call Kubernetes API directly to retrieve node information.
2188 &quot;monitoringService&quot;: &quot;A String&quot;, # The monitoring service the cluster should use to write metrics.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002189 # Currently available options:
2190 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002191 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -07002192 # service with a Kubernetes-native resource model
2193 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
2194 # longer available as of GKE 1.15).
2195 # * `none` - No metrics will be exported from the cluster.
2196 #
2197 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
2198 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07002199 &quot;databaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
2200 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
2201 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
Dan O'Mearadd494642020-05-01 07:42:23 -07002202 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002203 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002204 &quot;binaryAuthorization&quot;: { # Configuration for Binary Authorization. # Configuration for Binary Authorization.
2205 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
2206 # images will be validated by Google Binauthz.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002207 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002208 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Cloud TPUs in this cluster, in
2209 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2210 # notation (e.g. `1.2.3.4/29`).
2211 &quot;workloadIdentityConfig&quot;: { # Configuration for the use of Kubernetes Service Accounts in GCP IAM # Configuration for the use of Kubernetes Service Accounts in GCP IAM
2212 # policies.
2213 # policies.
Bu Sun Kim65020912020-05-20 12:08:20 -07002214 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002215 &quot;identityNamespace&quot;: &quot;A String&quot;, # IAM Identity Namespace to attach all Kubernetes Service Accounts to.
Bu Sun Kim65020912020-05-20 12:08:20 -07002216 },
2217 &quot;zone&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07002218 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2219 # cluster resides. This field is deprecated, use location instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07002220 &quot;loggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
2221 # Currently available options:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002222 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002223 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
2224 # service with a Kubernetes-native resource model
2225 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
2226 # available as of GKE 1.15).
2227 # * `none` - no logs will be exported from the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002228 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002229 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
2230 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
2231 &quot;expireTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster will be automatically
2232 # deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2233 &quot;nodeConfig&quot;: { # Parameters that describe the nodes in a cluster. # Parameters used in creating the cluster&#x27;s nodes.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002234 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07002235 # &quot;node_pool&quot; object, since this configuration (along with the
2236 # &quot;initial_node_count&quot;) will be used to create a &quot;NodePool&quot; object with an
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002237 # auto-generated name. Do not use this and a node_pool at the same time.
2238 # For responses, this field will be populated with the node configuration of
2239 # the first node pool. (For configuration of each node pool, see
2240 # `node_pool.config`)
2241 #
2242 # If unspecified, the defaults are used.
2243 # This field is deprecated, use node_pool.config instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07002244 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
2245 # scheduled on the specified or newer CPU platform. Applicable values are the
2246 # friendly names of CPU platforms, such as
2247 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
2248 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
2249 # information, read [how to specify min CPU
2250 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002251 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
2252 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
2253 #
2254 # Enables monitoring and attestation of the boot integrity of the instance.
2255 # The attestation is performed against the integrity policy baseline. This
2256 # baseline is initially derived from the implicitly trusted boot image when
2257 # the instance is created.
2258 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
2259 #
2260 # Secure Boot helps ensure that the system only runs authentic software by
2261 # verifying the digital signature of all boot components, and halting the
2262 # boot process if signature verification fails.
2263 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002264 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
2265 # https://cloud.google.com/compute/docs/instances/preemptible for more
2266 # inforamtion about preemptible VM instances.
2267 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002268 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002269 # The limit for this value is dependent upon the maximum number of
2270 # disks available on a machine per zone. See:
2271 # https://cloud.google.com/compute/docs/disks/local-ssd
2272 # for more information.
2273 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
2274 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
2275 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
2276 },
2277 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
2278 #
2279 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
2280 # in length. These are reflected as part of a URL in the metadata server.
2281 # Additionally, to avoid ambiguity, keys must not conflict with any other
2282 # metadata keys for the project or be one of the reserved keys:
2283 # &quot;cluster-location&quot;
2284 # &quot;cluster-name&quot;
2285 # &quot;cluster-uid&quot;
2286 # &quot;configure-sh&quot;
2287 # &quot;containerd-configure-sh&quot;
2288 # &quot;enable-oslogin&quot;
2289 # &quot;gci-ensure-gke-docker&quot;
2290 # &quot;gci-metrics-enabled&quot;
2291 # &quot;gci-update-strategy&quot;
2292 # &quot;instance-template&quot;
2293 # &quot;kube-env&quot;
2294 # &quot;startup-script&quot;
2295 # &quot;user-data&quot;
2296 # &quot;disable-address-manager&quot;
2297 # &quot;windows-startup-script-ps1&quot;
2298 # &quot;common-psm1&quot;
2299 # &quot;k8s-node-setup-psm1&quot;
2300 # &quot;install-ssh-psm1&quot;
2301 # &quot;user-profile-psm1&quot;
2302 # &quot;serial-port-logging-enable&quot;
2303 # Values are free-form strings, and only have meaning as interpreted by
2304 # the image running in the instance. The only restriction placed on them is
2305 # that each value&#x27;s size must be less than or equal to 32 KB.
2306 #
2307 # The total size of all keys and values must be less than 512 KB.
2308 &quot;a_key&quot;: &quot;A String&quot;,
2309 },
2310 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
2311 # the specified [Zonal Compute
2312 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
2313 # to this node pool.
2314 # is the configuration of desired reservation which instances could take
2315 # capacity from.
2316 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
2317 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
2318 # the key and specify the name of your reservation as its value.
2319 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
2320 &quot;A String&quot;,
2321 ],
2322 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
2323 },
2324 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002325 # valid sources or targets for network firewalls and are specified by
2326 # the client during cluster or node pool creation. Each tag within the list
2327 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -07002328 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002329 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002330 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Dan O'Mearadd494642020-05-01 07:42:23 -07002331 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -07002332 # Account is specified, the &quot;default&quot; service account is used.
2333 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
2334 # the latest version of it will be used.
2335 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
2336 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002337 #
2338 # The following scopes are recommended, but not required, and by default are
2339 # not included:
2340 #
2341 # * `https://www.googleapis.com/auth/compute` is required for mounting
2342 # persistent storage on your nodes.
2343 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
2344 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07002345 # (the [Google Container
2346 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002347 #
2348 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
2349 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07002350 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002351 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002352 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002353 #
2354 # For more information, including usage and the valid values, see:
2355 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
2356 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
2357 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
2358 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002359 # See
2360 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
2361 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -07002362 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002363 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
2364 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002365 },
2366 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002367 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
2368 # These will added in addition to any default label(s) that
2369 # Kubernetes may apply to the node.
2370 # In case of conflict in label keys, the applied set may differ depending on
2371 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
2372 # and conflicts should be avoided.
2373 # For more information, including usage and the valid values, see:
2374 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
2375 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002376 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002377 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
2378 # The smallest allowed disk size is 10GB.
2379 #
2380 # If unspecified, the default disk size is 100GB.
2381 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
2382 # workloads on the node pool.
2383 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
2384 # workloads running on the node.
2385 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
2386 # on the node pool.
2387 },
2388 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
2389 # See https://cloud.google.com/compute/docs/gpus for more information about
2390 # support for GPUs.
2391 { # AcceleratorConfig represents a Hardware Accelerator request.
2392 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
2393 # [here](https://cloud.google.com/compute/docs/gpus)
2394 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
2395 },
2396 ],
2397 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
2398 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
2399 # `n1-standard-1`).
2400 #
2401 # If unspecified, the default machine type is
2402 # `n1-standard-1`.
2403 &quot;diskType&quot;: &quot;A String&quot;, # Type of the disk attached to each node (e.g. &#x27;pd-standard&#x27; or &#x27;pd-ssd&#x27;)
2404 #
2405 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
2406 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
2407 # The Customer Managed Encryption Key used to encrypt the boot disk attached
2408 # to each node in the node pool. This should be of the form
2409 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
2410 # For more information about protecting resources with Cloud KMS Keys please
2411 # see:
2412 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
2413 },
2414 &quot;tpuConfig&quot;: { # Configuration for Cloud TPU. # Configuration for Cloud TPU support;
2415 &quot;useServiceNetworking&quot;: True or False, # Whether to use service networking for Cloud TPU or not.
2416 &quot;ipv4CidrBlock&quot;: &quot;A String&quot;, # IPv4 CIDR block reserved for Cloud TPU in the VPC.
2417 &quot;enabled&quot;: True or False, # Whether Cloud TPU integration is enabled or not.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002418 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002419 &quot;status&quot;: &quot;A String&quot;, # [Output only] The current status of this cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07002420 &quot;networkConfig&quot;: { # NetworkConfig reports the relative names of network &amp; subnetwork. # Configuration for cluster networking.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002421 &quot;enableIntraNodeVisibility&quot;: True or False, # Whether Intra-node visibility is enabled for this cluster.
2422 # This makes same node pod to pod traffic visible for VPC network.
Bu Sun Kim65020912020-05-20 12:08:20 -07002423 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
2424 # [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
2425 # cluster is connected. Example:
2426 # projects/my-project/regions/us-central1/subnetworks/my-subnet
2427 &quot;network&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
2428 # network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
2429 # to which the cluster is connected. Example:
2430 # projects/my-project/global/networks/my-network
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002431 &quot;defaultSnatStatus&quot;: { # DefaultSnatStatus contains the desired state of whether default sNAT should # Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
2432 # will be disabled when default_snat_status is disabled. When disabled is set
2433 # to false, default IP masquerade rules will be applied to the nodes to
2434 # prevent sNAT on cluster internal traffic.
2435 # be disabled on the cluster.
2436 &quot;disabled&quot;: True or False, # Disables cluster default sNAT rules.
2437 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002438 },
2439 &quot;name&quot;: &quot;A String&quot;, # The name of this cluster. The name must be unique within this project
2440 # and location (e.g. zone or region), and can be up to 40 characters with
2441 # the following restrictions:
2442 #
2443 # * Lowercase letters, numbers, and hyphens only.
2444 # * Must start with a letter.
2445 # * Must end with a number or a letter.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002446 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
2447 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
2448 # or
2449 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
2450 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07002451 &quot;endpoint&quot;: &quot;A String&quot;, # [Output only] The IP address of this cluster&#x27;s master endpoint.
2452 # The endpoint can be accessed from the internet at
2453 # `https://username:password@endpoint/`.
2454 #
2455 # See the `masterAuth` property of this resource for username and
2456 # password information.
Bu Sun Kim65020912020-05-20 12:08:20 -07002457 &quot;createTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster was created, in
2458 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2459 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # The IP address range of the container pods in this cluster, in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002460 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2461 # notation (e.g. `10.96.0.0/14`). Leave blank to have
2462 # one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002463 &quot;autoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
2464 # required by Cluster Autoscaler to automatically adjust
2465 # the size of the cluster and create/delete
2466 # node pools based on the current needs.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002467 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
2468 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
2469 # NodePool&#x27;s nodes can be created by NAP.
2470 &quot;A String&quot;,
2471 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002472 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
2473 # amount of resources in the cluster.
2474 { # Contains information about amount of some resource in the cluster.
2475 # For memory, value should be in GB.
2476 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
2477 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
2478 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
2479 },
2480 ],
2481 &quot;autoscalingProfile&quot;: &quot;A String&quot;, # Defines autoscaling behaviour.
2482 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
2483 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
2484 # created by NAP.
2485 # by NAP.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002486 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. If
2487 # service_account is specified, scopes should be empty.
2488 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used for NAP created node pools.
2489 # The instance may be scheduled on the specified or newer CPU platform.
2490 # Applicable values are the friendly names of CPU platforms, such as
2491 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
2492 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
2493 # information, read [how to specify min CPU
2494 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
2495 # To unset the min cpu platform field pass &quot;automatic&quot; as field value.
Bu Sun Kim65020912020-05-20 12:08:20 -07002496 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # Specifies the node management options for NAP created node-pools.
2497 # node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07002498 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002499 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
Bu Sun Kim65020912020-05-20 12:08:20 -07002500 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
2501 # the Auto Upgrades will proceed.
2502 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2503 # with the description of the upgrade.
2504 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2505 # with the approximate start time for the upgrades, in
2506 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2507 },
2508 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002509 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
2510 # specified, service_account should be empty.
2511 &quot;A String&quot;,
2512 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002513 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Specifies the upgrade settings for NAP created node pools
2514 # disruption caused by an upgrade.
2515 #
2516 # maxUnavailable controls the number of nodes that can be simultaneously
2517 # unavailable.
2518 #
2519 # maxSurge controls the number of additional nodes that can be added to the
2520 # node pool temporarily for the time of the upgrade to increase the number of
2521 # available nodes.
2522 #
2523 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
2524 # nodes are being upgraded at the same time).
2525 #
2526 # Note: upgrades inevitably introduce some disruption since workloads need to
2527 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
2528 # this holds true. (Disruption stays within the limits of
2529 # PodDisruptionBudget, if it is configured.)
2530 #
2531 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
2532 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
2533 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
2534 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
2535 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07002536 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
2537 # the upgrade process. A node is considered available if its status is
2538 # Ready.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002539 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
2540 # of the node pool during the upgrade process.
Bu Sun Kim65020912020-05-20 12:08:20 -07002541 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002542 },
Dan O'Mearadd494642020-05-01 07:42:23 -07002543 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002544 &quot;initialNodeCount&quot;: 42, # The number of nodes to create in this cluster. You must ensure that your
2545 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
Dan O'Mearadd494642020-05-01 07:42:23 -07002546 # is sufficient for this number of instances. You must also have available
2547 # firewall and routes quota.
2548 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07002549 # &quot;node_pool&quot; object, since this configuration (along with the
2550 # &quot;node_config&quot;) will be used to create a &quot;NodePool&quot; object with an
Dan O'Mearadd494642020-05-01 07:42:23 -07002551 # auto-generated name. Do not use this and a node_pool at the same time.
2552 #
2553 # This field is deprecated, use node_pool.initial_node_count instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07002554 &quot;instanceGroupUrls&quot;: [ # Deprecated. Use node_pools.instance_group_urls.
2555 &quot;A String&quot;,
2556 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002557 }</pre>
2558</div>
2559
2560<div class="method">
2561 <code class="details" id="getJwks">getJwks(parent, x__xgafv=None)</code>
2562 <pre>Gets the public component of the cluster signing keys in
2563JSON Web Key format.
2564This API is not yet intended for general use, and is not available for all
2565clusters.
2566
2567Args:
2568 parent: string, The cluster (project, location, cluster id) to get keys for. Specified in
Bu Sun Kim65020912020-05-20 12:08:20 -07002569the format `projects/*/locations/*/clusters/*`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002570 x__xgafv: string, V1 error format.
2571 Allowed values
2572 1 - v1 error format
2573 2 - v2 error format
2574
2575Returns:
2576 An object of the form:
2577
2578 { # GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002579 &quot;cacheHeader&quot;: { # RFC-2616: cache control support # OnePlatform automatically extracts this field and uses it to set the HTTP
2580 # Cache-Control header.
2581 &quot;age&quot;: &quot;A String&quot;, # 14.6 response cache age, in seconds since the response is generated
2582 &quot;expires&quot;: &quot;A String&quot;, # 14.21 response cache expires, in RFC 1123 date format
2583 &quot;directive&quot;: &quot;A String&quot;, # 14.9 request and response directives
2584 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002585 &quot;keys&quot;: [ # The public component of the keys used by the cluster to sign token
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002586 # requests.
2587 { # Jwk is a JSON Web Key as specified in RFC 7517
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002588 &quot;e&quot;: &quot;A String&quot;, # Used for RSA keys.
2589 &quot;kty&quot;: &quot;A String&quot;, # Key Type.
2590 &quot;alg&quot;: &quot;A String&quot;, # Algorithm.
2591 &quot;n&quot;: &quot;A String&quot;, # Used for RSA keys.
2592 &quot;y&quot;: &quot;A String&quot;, # Used for ECDSA keys.
2593 &quot;use&quot;: &quot;A String&quot;, # Permitted uses for the public keys.
Bu Sun Kim65020912020-05-20 12:08:20 -07002594 &quot;x&quot;: &quot;A String&quot;, # Used for ECDSA keys.
2595 &quot;crv&quot;: &quot;A String&quot;, # Used for ECDSA keys.
2596 &quot;kid&quot;: &quot;A String&quot;, # Key ID.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002597 },
2598 ],
2599 }</pre>
2600</div>
2601
2602<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07002603 <code class="details" id="list">list(parent, projectId=None, zone=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002604 <pre>Lists all clusters owned by a project in either the specified zone or all
2605zones.
2606
2607Args:
2608 parent: string, The parent (project and location) where the clusters will be listed.
Bu Sun Kim65020912020-05-20 12:08:20 -07002609Specified in the format `projects/*/locations/*`.
2610Location &quot;-&quot; matches all zones and all regions. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002611 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002612number](https://support.google.com/cloud/answer/6158840).
2613This field has been deprecated and replaced by the parent field.
Bu Sun Kim65020912020-05-20 12:08:20 -07002614 zone: string, Required. Deprecated. The name of the Google Compute Engine
2615[zone](https://cloud.google.com/compute/docs/zones#available) in which the
2616cluster resides, or &quot;-&quot; for all zones. This field has been deprecated and
2617replaced by the parent field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002618 x__xgafv: string, V1 error format.
2619 Allowed values
2620 1 - v1 error format
2621 2 - v2 error format
2622
2623Returns:
2624 An object of the form:
2625
2626 { # ListClustersResponse is the result of ListClustersRequest.
Bu Sun Kim65020912020-05-20 12:08:20 -07002627 &quot;clusters&quot;: [ # A list of clusters in the project in the specified zone, or
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002628 # across all ones.
2629 { # A Google Kubernetes Engine cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002630 &quot;privateClusterConfig&quot;: { # Configuration options for private clusters. # Configuration for private cluster.
2631 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
2632 # range will be used for assigning internal IP addresses to the master or
2633 # set of masters, as well as the ILB VIP. This range must not overlap with
2634 # any other ranges in use within the cluster&#x27;s network.
2635 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
2636 # given only RFC 1918 private addresses and communicate with the master via
2637 # private networking.
2638 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
2639 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
2640 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
2641 &quot;masterGlobalAccessConfig&quot;: { # Configuration for controlling master global access settings. # Controls master global access settings.
2642 &quot;enabled&quot;: True or False, # Whenever master is accessible globally or not.
2643 },
2644 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
2645 },
2646 &quot;shieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
2647 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
2648 },
2649 &quot;verticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
2650 # required by Vertical Pod Autoscaler to automatically adjust
2651 # the resources of pods controlled by it.
2652 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
2653 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002654 &quot;defaultMaxPodsConstraint&quot;: { # Constraints applied to pods. # The default constraint on the maximum number of pods that can be run
2655 # simultaneously on a node in the node pool of this cluster. Only honored
2656 # if cluster created with IP Alias support.
2657 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
2658 },
2659 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
2660 # [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
2661 # to which the cluster is connected. If left unspecified, the `default`
2662 # network will be used. On output this shows the network ID instead of the
2663 # name.
2664 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the set of labels for this cluster.
2665 &quot;nodeIpv4CidrSize&quot;: 42, # [Output only] The size of the address space on each node for hosting
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002666 # containers. This is provisioned from within the `container_ipv4_cidr`
2667 # range. This field will only be set when cluster is in route-based network
2668 # mode.
Bu Sun Kim65020912020-05-20 12:08:20 -07002669 &quot;masterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The configuration options for master authorized networks feature.
2670 # master authorized networks will disallow all external traffic to access
2671 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
2672 # Google Compute Engine Public IPs and Google Prod IPs.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002673 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
Bu Sun Kim65020912020-05-20 12:08:20 -07002674 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 10 external networks that could access
2675 # Kubernetes master through HTTPS.
2676 { # CidrBlock contains an optional name and one CIDR block.
Bu Sun Kim65020912020-05-20 12:08:20 -07002677 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002678 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
Bu Sun Kim65020912020-05-20 12:08:20 -07002679 },
2680 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002681 },
2682 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
2683 # cluster, if available.
2684 &quot;masterAuth&quot;: { # The authentication information for accessing the master endpoint. # The authentication information for accessing the master endpoint.
2685 # If unspecified, the defaults are used:
2686 # For clusters before v1.12, if master_auth is unspecified, `username` will
2687 # be set to &quot;admin&quot;, a random password will be generated, and a client
2688 # certificate will be issued.
2689 # Authentication can be done using HTTP basic auth or using client
2690 # certificates.
2691 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint.
2692 # Because the master endpoint is open to the Internet, you should create a
2693 # strong password. If a password is provided for cluster creation, username
2694 # must be non-empty.
2695 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For
2696 # clusters before v1.12, if no configuration is specified, a client
2697 # certificate is issued.
2698 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
2699 },
2700 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
2701 # to the cluster endpoint.
2702 &quot;clusterCaCertificate&quot;: &quot;A String&quot;,
2703 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
2704 # authenticate to the cluster endpoint.
2705 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
2706 # For clusters v1.6.0 and later, basic authentication can be disabled by
2707 # leaving username unspecified (or setting it to the empty string).
2708 },
2709 &quot;authenticatorGroupsConfig&quot;: { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
Bu Sun Kim65020912020-05-20 12:08:20 -07002710 &quot;securityGroup&quot;: &quot;A String&quot;, # The name of the security group-of-groups to be used. Only relevant
2711 # if enabled = true.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002712 &quot;enabled&quot;: True or False, # Whether this cluster should return group membership lookups
2713 # during authentication using a group of security groups.
Bu Sun Kim65020912020-05-20 12:08:20 -07002714 },
2715 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP prefix in CIDR notation to use for the hosted master network.
2716 # This prefix will be used for assigning private IP addresses to the
2717 # master or set of masters, as well as the ILB VIP.
2718 # This field is deprecated, use
2719 # private_cluster_config.master_ipv4_cidr_block instead.
2720 &quot;clusterTelemetry&quot;: { # Telemetry integration for the cluster. # Telemetry integration for the cluster.
2721 &quot;type&quot;: &quot;A String&quot;, # Type of the integration.
2722 },
2723 &quot;currentMasterVersion&quot;: &quot;A String&quot;, # [Output only] The current software version of the master endpoint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002724 &quot;podSecurityPolicyConfig&quot;: { # Configuration for the PodSecurityPolicy feature. # Configuration for the PodSecurityPolicy feature.
2725 &quot;enabled&quot;: True or False, # Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
2726 # must be valid under a PodSecurityPolicy to be created.
2727 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002728 &quot;addonsConfig&quot;: { # Configuration for the addons that can be automatically spun up in the # Configurations for the various addons available to run in the cluster.
2729 # cluster, enabling additional functionality.
Bu Sun Kim65020912020-05-20 12:08:20 -07002730 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
2731 # makes it easy to set up HTTP load balancers for services in a cluster.
2732 # which makes it easy to set up HTTP load balancers for services in a cluster.
2733 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
2734 # When enabled, it runs a small pod in the cluster that manages the load
2735 # balancers.
2736 },
2737 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
2738 # This addon is deprecated, and will be disabled in 1.15. It is recommended
2739 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
2740 # workloads and applications. For more information, see:
2741 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
2742 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
2743 },
2744 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
2745 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
2746 },
2747 &quot;kalmConfig&quot;: { # Configuration options for the KALM addon. # Configuration for the KALM addon, which manages the lifecycle of k8s
2748 # applications.
2749 &quot;enabled&quot;: True or False, # Whether KALM is enabled for this cluster.
2750 },
2751 &quot;gcePersistentDiskCsiDriverConfig&quot;: { # Configuration for the Compute Engine PD CSI driver. This option can only be # Configuration for the Compute Engine Persistent Disk CSI driver.
2752 # enabled at cluster creation time.
2753 &quot;enabled&quot;: True or False, # Whether the Compute Engine PD CSI driver is enabled for this cluster.
2754 },
2755 &quot;istioConfig&quot;: { # Configuration options for Istio addon. # Configuration for Istio, an open platform to connect, manage, and secure
2756 # microservices.
Bu Sun Kim65020912020-05-20 12:08:20 -07002757 &quot;auth&quot;: &quot;A String&quot;, # The specified Istio auth mode, either none, or mutual TLS.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002758 &quot;disabled&quot;: True or False, # Whether Istio is enabled for this cluster.
2759 },
2760 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
2761 # is enabled or not on the Master, it does not track whether network policy
2762 # is enabled for the nodes.
2763 # is enabled or not on the Master, it does not track whether network policy
2764 # is enabled for the nodes.
2765 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
2766 },
2767 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be
2768 # enabled in order to enable Cloud Run addon. This option can only be enabled
2769 # at cluster creation time.
2770 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
2771 },
2772 &quot;configConnectorConfig&quot;: { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes
2773 # extension to manage hosted GCP services through the Kubernetes API
2774 &quot;enabled&quot;: True or False, # Whether Cloud Connector is enabled for this cluster.
2775 },
2776 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
2777 # increases or decreases the number of replica pods a replication controller
2778 # has based on the resource usage of the existing pods.
2779 # increases or decreases the number of replica pods a replication controller
2780 # has based on the resource usage of the existing pods.
2781 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
2782 # When enabled, it ensures that metrics are collected into Stackdriver
2783 # Monitoring.
Bu Sun Kim65020912020-05-20 12:08:20 -07002784 },
2785 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002786 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
2787 # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
2788 # the cluster is connected. On output this shows the subnetwork ID instead of
2789 # the name.
Bu Sun Kim65020912020-05-20 12:08:20 -07002790 &quot;currentNodeVersion&quot;: &quot;A String&quot;, # [Output only] Deprecated, use
2791 # [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools)
2792 # instead. The current version of the node software components.
2793 # If they are currently at multiple versions because they&#x27;re in the process
2794 # of being upgraded, this reflects the minimum version of all nodes.
Bu Sun Kim65020912020-05-20 12:08:20 -07002795 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07002796 &quot;window&quot;: { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002797 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
2798 # occur in these windows.
2799 &quot;a_key&quot;: { # Represents an arbitrary window of time.
2800 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
2801 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
2802 # start time.
2803 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002804 },
2805 &quot;recurringWindow&quot;: { # Represents an arbitrary window of time that recurs. # RecurringWindow specifies some number of recurring time periods for
Dan O'Mearadd494642020-05-01 07:42:23 -07002806 # maintenance to occur. The time windows may be overlapping. If no
2807 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim65020912020-05-20 12:08:20 -07002808 &quot;recurrence&quot;: &quot;A String&quot;, # An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
Dan O'Mearadd494642020-05-01 07:42:23 -07002809 # this window reccurs. They go on for the span of time between the start and
2810 # end time.
2811 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002812 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -07002813 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
2814 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
2815 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
2816 # For the first weekend of every month:
2817 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
2818 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -07002819 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -07002820 # &lt;code&gt;
2821 # start time = 2019-01-01T09:00:00-0400
2822 # end time = 2019-01-01T17:00:00-0400
2823 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
2824 # &lt;/code&gt;
2825 # Windows can span multiple days. Eg, to make the window encompass every
2826 # weekend from midnight Saturday till the last minute of Sunday UTC:
2827 # &lt;code&gt;
2828 # start time = 2019-01-05T00:00:00Z
2829 # end time = 2019-01-07T23:59:00Z
2830 # recurrence = FREQ=WEEKLY;BYDAY=SA
2831 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07002832 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -07002833 # to specify duration of the window and when it first starts.
2834 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Bu Sun Kim65020912020-05-20 12:08:20 -07002835 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002836 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Bu Sun Kim65020912020-05-20 12:08:20 -07002837 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
Dan O'Mearadd494642020-05-01 07:42:23 -07002838 # start time.
Dan O'Mearadd494642020-05-01 07:42:23 -07002839 },
2840 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002841 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
2842 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
2843 # smallest possible in the given scenario.
2844 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
2845 # It must be in format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
Dan O'Mearadd494642020-05-01 07:42:23 -07002846 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002847 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002848 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
2849 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
2850 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
2851 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
2852 # resource version and include it with requests to set the policy.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002853 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002854 &quot;resourceLabels&quot;: { # The resource labels for the cluster to use to annotate any related
2855 # Google Compute Engine resources.
2856 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002857 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002858 &quot;initialClusterVersion&quot;: &quot;A String&quot;, # The initial Kubernetes version for this cluster. Valid versions are those
2859 # found in validMasterVersions returned by getServerConfig. The version can
2860 # be upgraded over time; such upgrades are reflected in
2861 # currentMasterVersion and currentNodeVersion.
Dan O'Mearadd494642020-05-01 07:42:23 -07002862 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002863 # Users may specify either explicit versions offered by
2864 # Kubernetes Engine or version aliases, which have the following behavior:
Dan O'Mearadd494642020-05-01 07:42:23 -07002865 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002866 # - &quot;latest&quot;: picks the highest valid Kubernetes version
2867 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
2868 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
2869 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
2870 # - &quot;&quot;,&quot;-&quot;: picks the default Kubernetes version
2871 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the cluster. # Configuration for cluster IP allocation.
2872 &quot;useRoutes&quot;: True or False, # Whether routes will be used for pod IPs in the cluster.
2873 # This is used in conjunction with use_ip_aliases. It cannot be true if
2874 # use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
2875 # then the server picks the default IP allocation mode
2876 &quot;servicesIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the services IPs in this cluster. If blank, a range
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002877 # will be automatically chosen with the default size.
2878 #
2879 # This field is only applicable when `use_ip_aliases` is true.
2880 #
2881 # Set to blank to have a range chosen with the default size.
2882 #
2883 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
2884 # netmask.
2885 #
2886 # Set to a
2887 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2888 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
2889 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
2890 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07002891 &quot;allowRouteOverlap&quot;: True or False, # If true, allow allocation of cluster CIDR ranges that overlap with certain
2892 # kinds of network routes. By default we do not allow cluster CIDR ranges to
2893 # intersect with any user declared routes. With allow_route_overlap == true,
2894 # we allow overlapping with CIDR ranges that are larger than the cluster CIDR
2895 # range.
2896 #
2897 # If this field is set to true, then cluster and services CIDRs must be
2898 # fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
2899 # 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
2900 # `services_ipv4_cidr_block` must be fully-specified.
2901 # 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
2902 # fully-specified.
2903 &quot;nodeIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use node_ipv4_cidr_block.
2904 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range for the cluster pod IPs. If this field is set, then
2905 # `cluster.cluster_ipv4_cidr` must be left blank.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002906 #
2907 # This field is only applicable when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07002908 #
2909 # Set to blank to have a range chosen with the default size.
2910 #
2911 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
2912 # netmask.
2913 #
2914 # Set to a
2915 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2916 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
2917 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
2918 # to use.
2919 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used for the cluster CIDR
2920 # block. The secondary range will be used for pod IP
2921 # addresses. This must be an existing secondary range associated
2922 # with the cluster subnetwork.
2923 #
2924 # This field is only applicable with use_ip_aliases and
2925 # create_subnetwork is false.
2926 &quot;nodeIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the instance IPs in this cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002927 #
2928 # This is applicable only if `create_subnetwork` is true.
2929 #
2930 # Set to blank to have a range chosen with the default size.
2931 #
2932 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
2933 # netmask.
2934 #
2935 # Set to a
2936 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2937 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
2938 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
2939 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07002940 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the Cloud TPUs in this cluster. If unspecified, a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002941 # range will be automatically chosen with the default size.
2942 #
2943 # This field is only applicable when `use_ip_aliases` is true.
2944 #
2945 # If unspecified, the range will use the default size.
2946 #
2947 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
2948 # netmask.
2949 #
2950 # Set to a
2951 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2952 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
2953 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
2954 # to use.
Dan O'Mearadd494642020-05-01 07:42:23 -07002955 # This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07002956 &quot;servicesSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used as for the services
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002957 # CIDR block. The secondary range will be used for service
2958 # ClusterIPs. This must be an existing secondary range associated
2959 # with the cluster subnetwork.
2960 #
2961 # This field is only applicable with use_ip_aliases and
2962 # create_subnetwork is false.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002963 &quot;createSubnetwork&quot;: True or False, # Whether a new subnetwork will be created automatically for the cluster.
2964 #
2965 # This field is only applicable when `use_ip_aliases` is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07002966 &quot;useIpAliases&quot;: True or False, # Whether alias IPs will be used for pod IPs in the cluster.
2967 # This is used in conjunction with use_routes. It cannot
2968 # be true if use_routes is true. If both use_ip_aliases and use_routes are
2969 # false, then the server picks the default IP allocation mode
Bu Sun Kim65020912020-05-20 12:08:20 -07002970 &quot;subnetworkName&quot;: &quot;A String&quot;, # A custom subnetwork name to be used if `create_subnetwork` is true. If
2971 # this field is empty, then an automatic name will be chosen for the new
2972 # subnetwork.
2973 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use cluster_ipv4_cidr_block.
2974 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use services_ipv4_cidr_block.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002975 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002976 &quot;legacyAbac&quot;: { # Configuration for the legacy Attribute Based Access Control authorization # Configuration for the legacy ABAC authorization mode.
2977 # mode.
2978 &quot;enabled&quot;: True or False, # Whether the ABAC authorizer is enabled for this cluster. When enabled,
2979 # identities in the system, including service accounts, nodes, and
2980 # controllers, will have statically granted permissions beyond those
2981 # provided by the RBAC configuration or IAM.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002982 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002983 &quot;resourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # Configuration for exporting resource usages. Resource usage export is
2984 # disabled when this config unspecified.
2985 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
2986 # daemonset will be created in the cluster to meter network egress traffic.
2987 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
2988 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
2989 # second BigQuery table will be created to hold resource consumption
2990 # records.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002991 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002992 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
2993 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002994 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002995 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002996 &quot;enableTpu&quot;: True or False, # Enable the ability to use Cloud TPUs in this cluster.
2997 # This field is deprecated, use tpu_config.enabled instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07002998 &quot;nodePools&quot;: [ # The node pools associated with this cluster.
2999 # This field should not be set if &quot;node_config&quot; or &quot;initial_node_count&quot; are
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003000 # specified.
Bu Sun Kim65020912020-05-20 12:08:20 -07003001 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
3002 # Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003003 # specification, under the control of the cluster master. They may have a set
3004 # of Kubernetes labels applied to them, which may be used to reference them
3005 # during pod scheduling. They may also be resized up or down, to accommodate
3006 # the workload.
Bu Sun Kim65020912020-05-20 12:08:20 -07003007 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
3008 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07003009 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
3010 # scheduled on the specified or newer CPU platform. Applicable values are the
3011 # friendly names of CPU platforms, such as
3012 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
3013 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
3014 # information, read [how to specify min CPU
3015 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003016 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
3017 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
3018 #
3019 # Enables monitoring and attestation of the boot integrity of the instance.
3020 # The attestation is performed against the integrity policy baseline. This
3021 # baseline is initially derived from the implicitly trusted boot image when
3022 # the instance is created.
3023 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
3024 #
3025 # Secure Boot helps ensure that the system only runs authentic software by
3026 # verifying the digital signature of all boot components, and halting the
3027 # boot process if signature verification fails.
3028 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003029 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
3030 # https://cloud.google.com/compute/docs/instances/preemptible for more
3031 # inforamtion about preemptible VM instances.
3032 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003033 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003034 # The limit for this value is dependent upon the maximum number of
3035 # disks available on a machine per zone. See:
3036 # https://cloud.google.com/compute/docs/disks/local-ssd
3037 # for more information.
3038 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
3039 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
3040 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
3041 },
3042 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
3043 #
3044 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
3045 # in length. These are reflected as part of a URL in the metadata server.
3046 # Additionally, to avoid ambiguity, keys must not conflict with any other
3047 # metadata keys for the project or be one of the reserved keys:
3048 # &quot;cluster-location&quot;
3049 # &quot;cluster-name&quot;
3050 # &quot;cluster-uid&quot;
3051 # &quot;configure-sh&quot;
3052 # &quot;containerd-configure-sh&quot;
3053 # &quot;enable-oslogin&quot;
3054 # &quot;gci-ensure-gke-docker&quot;
3055 # &quot;gci-metrics-enabled&quot;
3056 # &quot;gci-update-strategy&quot;
3057 # &quot;instance-template&quot;
3058 # &quot;kube-env&quot;
3059 # &quot;startup-script&quot;
3060 # &quot;user-data&quot;
3061 # &quot;disable-address-manager&quot;
3062 # &quot;windows-startup-script-ps1&quot;
3063 # &quot;common-psm1&quot;
3064 # &quot;k8s-node-setup-psm1&quot;
3065 # &quot;install-ssh-psm1&quot;
3066 # &quot;user-profile-psm1&quot;
3067 # &quot;serial-port-logging-enable&quot;
3068 # Values are free-form strings, and only have meaning as interpreted by
3069 # the image running in the instance. The only restriction placed on them is
3070 # that each value&#x27;s size must be less than or equal to 32 KB.
3071 #
3072 # The total size of all keys and values must be less than 512 KB.
3073 &quot;a_key&quot;: &quot;A String&quot;,
3074 },
3075 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
3076 # the specified [Zonal Compute
3077 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
3078 # to this node pool.
3079 # is the configuration of desired reservation which instances could take
3080 # capacity from.
3081 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
3082 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
3083 # the key and specify the name of your reservation as its value.
3084 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
3085 &quot;A String&quot;,
3086 ],
3087 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
3088 },
3089 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003090 # valid sources or targets for network firewalls and are specified by
3091 # the client during cluster or node pool creation. Each tag within the list
3092 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -07003093 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003094 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003095 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Dan O'Mearadd494642020-05-01 07:42:23 -07003096 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -07003097 # Account is specified, the &quot;default&quot; service account is used.
3098 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
3099 # the latest version of it will be used.
3100 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
3101 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003102 #
3103 # The following scopes are recommended, but not required, and by default are
3104 # not included:
3105 #
3106 # * `https://www.googleapis.com/auth/compute` is required for mounting
3107 # persistent storage on your nodes.
3108 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
3109 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07003110 # (the [Google Container
3111 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003112 #
3113 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
3114 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07003115 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003116 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003117 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003118 #
3119 # For more information, including usage and the valid values, see:
3120 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
3121 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
3122 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
3123 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003124 # See
3125 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
3126 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -07003127 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003128 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
3129 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003130 },
3131 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003132 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
3133 # These will added in addition to any default label(s) that
3134 # Kubernetes may apply to the node.
3135 # In case of conflict in label keys, the applied set may differ depending on
3136 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
3137 # and conflicts should be avoided.
3138 # For more information, including usage and the valid values, see:
3139 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
3140 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003141 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003142 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
3143 # The smallest allowed disk size is 10GB.
3144 #
3145 # If unspecified, the default disk size is 100GB.
3146 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
3147 # workloads on the node pool.
3148 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
3149 # workloads running on the node.
3150 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
3151 # on the node pool.
3152 },
3153 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
3154 # See https://cloud.google.com/compute/docs/gpus for more information about
3155 # support for GPUs.
3156 { # AcceleratorConfig represents a Hardware Accelerator request.
3157 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
3158 # [here](https://cloud.google.com/compute/docs/gpus)
3159 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
3160 },
3161 ],
3162 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
3163 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
3164 # `n1-standard-1`).
3165 #
3166 # If unspecified, the default machine type is
3167 # `n1-standard-1`.
3168 &quot;diskType&quot;: &quot;A String&quot;, # Type of the disk attached to each node (e.g. &#x27;pd-standard&#x27; or &#x27;pd-ssd&#x27;)
3169 #
3170 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
3171 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
3172 # The Customer Managed Encryption Key used to encrypt the boot disk attached
3173 # to each node in the node pool. This should be of the form
3174 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
3175 # For more information about protecting resources with Cloud KMS Keys please
3176 # see:
3177 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003178 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003179 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
3180 # simultaneously on a node in the node pool.
3181 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
3182 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003183 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07003184 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
3185 # node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07003186 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003187 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
Bu Sun Kim65020912020-05-20 12:08:20 -07003188 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
3189 # the Auto Upgrades will proceed.
3190 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
3191 # with the description of the upgrade.
3192 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
3193 # with the approximate start time for the upgrades, in
3194 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3195 },
3196 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003197 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
3198 # node pool instance, if available.
3199 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
3200 # only if a valid configuration is present.
3201 # adjust the size of the node pool to the current cluster usage.
3202 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
3203 # has to enough quota to scale up the cluster.
3204 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
3205 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
3206 # max_node_count.
3207 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
3208 },
3209 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
3210 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
3211 # is sufficient for this number of instances. You must also have available
3212 # firewall and routes quota.
3213 &quot;locations&quot;: [ # The list of Google Compute Engine
3214 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
3215 # NodePool&#x27;s nodes should be located.
3216 &quot;A String&quot;,
3217 ],
3218 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
3219 # disruption caused by an upgrade.
3220 #
3221 # maxUnavailable controls the number of nodes that can be simultaneously
3222 # unavailable.
3223 #
3224 # maxSurge controls the number of additional nodes that can be added to the
3225 # node pool temporarily for the time of the upgrade to increase the number of
3226 # available nodes.
3227 #
3228 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
3229 # nodes are being upgraded at the same time).
3230 #
3231 # Note: upgrades inevitably introduce some disruption since workloads need to
3232 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
3233 # this holds true. (Disruption stays within the limits of
3234 # PodDisruptionBudget, if it is configured.)
3235 #
3236 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
3237 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
3238 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
3239 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
3240 # there are always at least 4 nodes available.
3241 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
3242 # the upgrade process. A node is considered available if its status is
3243 # Ready.
3244 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
3245 # of the node pool during the upgrade process.
3246 },
3247 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
3248 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
3249 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
3250 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
3251 # associated with this node pool.
3252 &quot;A String&quot;,
3253 ],
3254 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
3255 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
3256 { # StatusCondition describes why a cluster or a node pool has a certain status
3257 # (e.g., ERROR or DEGRADED).
3258 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3259 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3260 },
3261 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003262 },
3263 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003264 &quot;locations&quot;: [ # The list of Google Compute Engine
3265 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
3266 # cluster&#x27;s nodes should be located.
3267 &quot;A String&quot;,
3268 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003269 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07003270 &quot;releaseChannel&quot;: { # ReleaseChannel indicates which release channel a cluster is # Release channel configuration.
3271 # subscribed to. Release channels are arranged in order of risk and
3272 # frequency of updates.
3273 #
3274 # When a cluster is subscribed to a release channel, Google maintains
3275 # both the master version and the node version. Node auto-upgrade
3276 # defaults to true and cannot be disabled. Updates to version related
3277 # fields (e.g. current_master_version) return an error.
3278 &quot;channel&quot;: &quot;A String&quot;, # channel specifies which release channel the cluster is subscribed to.
3279 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003280 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
3281 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
3282 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
3283 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
3284 },
3285 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Kubernetes services in
3286 # this cluster, in
3287 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
3288 # notation (e.g. `1.2.3.4/29`). Service addresses are
3289 # typically put in the last `/16` from the container CIDR.
Bu Sun Kim65020912020-05-20 12:08:20 -07003290 &quot;enableKubernetesAlpha&quot;: True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha
3291 # API groups (e.g. v1beta1) and features that may not be production ready in
3292 # the kubernetes version of the master and nodes.
3293 # The cluster has no SLA for uptime and master/node upgrades are disabled.
3294 # Alpha enabled clusters are automatically deleted thirty days after
3295 # creation.
3296 &quot;description&quot;: &quot;A String&quot;, # An optional description of this cluster.
3297 &quot;conditions&quot;: [ # Which conditions caused the current cluster state.
3298 { # StatusCondition describes why a cluster or a node pool has a certain status
3299 # (e.g., ERROR or DEGRADED).
3300 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3301 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3302 },
3303 ],
3304 &quot;privateCluster&quot;: True or False, # If this is a private cluster setup. Private clusters are clusters that, by
3305 # default have no external IP addresses on the nodes and where nodes and the
3306 # master communicate over private IP addresses.
3307 # This field is deprecated, use private_cluster_config.enable_private_nodes
3308 # instead.
3309 &quot;currentNodeCount&quot;: 42, # [Output only] The number of nodes currently in the cluster. Deprecated.
3310 # Call Kubernetes API directly to retrieve node information.
3311 &quot;monitoringService&quot;: &quot;A String&quot;, # The monitoring service the cluster should use to write metrics.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003312 # Currently available options:
3313 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003314 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -07003315 # service with a Kubernetes-native resource model
3316 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
3317 # longer available as of GKE 1.15).
3318 # * `none` - No metrics will be exported from the cluster.
3319 #
3320 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
3321 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07003322 &quot;databaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
3323 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
3324 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
Dan O'Mearadd494642020-05-01 07:42:23 -07003325 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003326 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003327 &quot;binaryAuthorization&quot;: { # Configuration for Binary Authorization. # Configuration for Binary Authorization.
3328 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
3329 # images will be validated by Google Binauthz.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003330 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003331 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Cloud TPUs in this cluster, in
3332 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
3333 # notation (e.g. `1.2.3.4/29`).
3334 &quot;workloadIdentityConfig&quot;: { # Configuration for the use of Kubernetes Service Accounts in GCP IAM # Configuration for the use of Kubernetes Service Accounts in GCP IAM
3335 # policies.
3336 # policies.
Bu Sun Kim65020912020-05-20 12:08:20 -07003337 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003338 &quot;identityNamespace&quot;: &quot;A String&quot;, # IAM Identity Namespace to attach all Kubernetes Service Accounts to.
Bu Sun Kim65020912020-05-20 12:08:20 -07003339 },
3340 &quot;zone&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003341 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3342 # cluster resides. This field is deprecated, use location instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07003343 &quot;loggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
3344 # Currently available options:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003345 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003346 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
3347 # service with a Kubernetes-native resource model
3348 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
3349 # available as of GKE 1.15).
3350 # * `none` - no logs will be exported from the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003351 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003352 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
3353 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
3354 &quot;expireTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster will be automatically
3355 # deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3356 &quot;nodeConfig&quot;: { # Parameters that describe the nodes in a cluster. # Parameters used in creating the cluster&#x27;s nodes.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003357 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07003358 # &quot;node_pool&quot; object, since this configuration (along with the
3359 # &quot;initial_node_count&quot;) will be used to create a &quot;NodePool&quot; object with an
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003360 # auto-generated name. Do not use this and a node_pool at the same time.
3361 # For responses, this field will be populated with the node configuration of
3362 # the first node pool. (For configuration of each node pool, see
3363 # `node_pool.config`)
3364 #
3365 # If unspecified, the defaults are used.
3366 # This field is deprecated, use node_pool.config instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07003367 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
3368 # scheduled on the specified or newer CPU platform. Applicable values are the
3369 # friendly names of CPU platforms, such as
3370 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
3371 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
3372 # information, read [how to specify min CPU
3373 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003374 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
3375 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
3376 #
3377 # Enables monitoring and attestation of the boot integrity of the instance.
3378 # The attestation is performed against the integrity policy baseline. This
3379 # baseline is initially derived from the implicitly trusted boot image when
3380 # the instance is created.
3381 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
3382 #
3383 # Secure Boot helps ensure that the system only runs authentic software by
3384 # verifying the digital signature of all boot components, and halting the
3385 # boot process if signature verification fails.
3386 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003387 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
3388 # https://cloud.google.com/compute/docs/instances/preemptible for more
3389 # inforamtion about preemptible VM instances.
3390 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003391 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003392 # The limit for this value is dependent upon the maximum number of
3393 # disks available on a machine per zone. See:
3394 # https://cloud.google.com/compute/docs/disks/local-ssd
3395 # for more information.
3396 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
3397 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
3398 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
3399 },
3400 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
3401 #
3402 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
3403 # in length. These are reflected as part of a URL in the metadata server.
3404 # Additionally, to avoid ambiguity, keys must not conflict with any other
3405 # metadata keys for the project or be one of the reserved keys:
3406 # &quot;cluster-location&quot;
3407 # &quot;cluster-name&quot;
3408 # &quot;cluster-uid&quot;
3409 # &quot;configure-sh&quot;
3410 # &quot;containerd-configure-sh&quot;
3411 # &quot;enable-oslogin&quot;
3412 # &quot;gci-ensure-gke-docker&quot;
3413 # &quot;gci-metrics-enabled&quot;
3414 # &quot;gci-update-strategy&quot;
3415 # &quot;instance-template&quot;
3416 # &quot;kube-env&quot;
3417 # &quot;startup-script&quot;
3418 # &quot;user-data&quot;
3419 # &quot;disable-address-manager&quot;
3420 # &quot;windows-startup-script-ps1&quot;
3421 # &quot;common-psm1&quot;
3422 # &quot;k8s-node-setup-psm1&quot;
3423 # &quot;install-ssh-psm1&quot;
3424 # &quot;user-profile-psm1&quot;
3425 # &quot;serial-port-logging-enable&quot;
3426 # Values are free-form strings, and only have meaning as interpreted by
3427 # the image running in the instance. The only restriction placed on them is
3428 # that each value&#x27;s size must be less than or equal to 32 KB.
3429 #
3430 # The total size of all keys and values must be less than 512 KB.
3431 &quot;a_key&quot;: &quot;A String&quot;,
3432 },
3433 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
3434 # the specified [Zonal Compute
3435 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
3436 # to this node pool.
3437 # is the configuration of desired reservation which instances could take
3438 # capacity from.
3439 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
3440 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
3441 # the key and specify the name of your reservation as its value.
3442 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
3443 &quot;A String&quot;,
3444 ],
3445 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
3446 },
3447 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003448 # valid sources or targets for network firewalls and are specified by
3449 # the client during cluster or node pool creation. Each tag within the list
3450 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -07003451 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003452 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003453 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
Dan O'Mearadd494642020-05-01 07:42:23 -07003454 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -07003455 # Account is specified, the &quot;default&quot; service account is used.
3456 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
3457 # the latest version of it will be used.
3458 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
3459 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003460 #
3461 # The following scopes are recommended, but not required, and by default are
3462 # not included:
3463 #
3464 # * `https://www.googleapis.com/auth/compute` is required for mounting
3465 # persistent storage on your nodes.
3466 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
3467 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07003468 # (the [Google Container
3469 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003470 #
3471 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
3472 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07003473 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003474 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003475 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003476 #
3477 # For more information, including usage and the valid values, see:
3478 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
3479 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
3480 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
3481 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003482 # See
3483 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
3484 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -07003485 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003486 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
3487 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003488 },
3489 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003490 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
3491 # These will added in addition to any default label(s) that
3492 # Kubernetes may apply to the node.
3493 # In case of conflict in label keys, the applied set may differ depending on
3494 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
3495 # and conflicts should be avoided.
3496 # For more information, including usage and the valid values, see:
3497 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
3498 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003499 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003500 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
3501 # The smallest allowed disk size is 10GB.
3502 #
3503 # If unspecified, the default disk size is 100GB.
3504 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
3505 # workloads on the node pool.
3506 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
3507 # workloads running on the node.
3508 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
3509 # on the node pool.
3510 },
3511 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
3512 # See https://cloud.google.com/compute/docs/gpus for more information about
3513 # support for GPUs.
3514 { # AcceleratorConfig represents a Hardware Accelerator request.
3515 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
3516 # [here](https://cloud.google.com/compute/docs/gpus)
3517 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
3518 },
3519 ],
3520 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
3521 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
3522 # `n1-standard-1`).
3523 #
3524 # If unspecified, the default machine type is
3525 # `n1-standard-1`.
3526 &quot;diskType&quot;: &quot;A String&quot;, # Type of the disk attached to each node (e.g. &#x27;pd-standard&#x27; or &#x27;pd-ssd&#x27;)
3527 #
3528 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
3529 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
3530 # The Customer Managed Encryption Key used to encrypt the boot disk attached
3531 # to each node in the node pool. This should be of the form
3532 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
3533 # For more information about protecting resources with Cloud KMS Keys please
3534 # see:
3535 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
3536 },
3537 &quot;tpuConfig&quot;: { # Configuration for Cloud TPU. # Configuration for Cloud TPU support;
3538 &quot;useServiceNetworking&quot;: True or False, # Whether to use service networking for Cloud TPU or not.
3539 &quot;ipv4CidrBlock&quot;: &quot;A String&quot;, # IPv4 CIDR block reserved for Cloud TPU in the VPC.
3540 &quot;enabled&quot;: True or False, # Whether Cloud TPU integration is enabled or not.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003541 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003542 &quot;status&quot;: &quot;A String&quot;, # [Output only] The current status of this cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07003543 &quot;networkConfig&quot;: { # NetworkConfig reports the relative names of network &amp; subnetwork. # Configuration for cluster networking.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003544 &quot;enableIntraNodeVisibility&quot;: True or False, # Whether Intra-node visibility is enabled for this cluster.
3545 # This makes same node pod to pod traffic visible for VPC network.
Bu Sun Kim65020912020-05-20 12:08:20 -07003546 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
3547 # [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
3548 # cluster is connected. Example:
3549 # projects/my-project/regions/us-central1/subnetworks/my-subnet
3550 &quot;network&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
3551 # network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
3552 # to which the cluster is connected. Example:
3553 # projects/my-project/global/networks/my-network
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003554 &quot;defaultSnatStatus&quot;: { # DefaultSnatStatus contains the desired state of whether default sNAT should # Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
3555 # will be disabled when default_snat_status is disabled. When disabled is set
3556 # to false, default IP masquerade rules will be applied to the nodes to
3557 # prevent sNAT on cluster internal traffic.
3558 # be disabled on the cluster.
3559 &quot;disabled&quot;: True or False, # Disables cluster default sNAT rules.
3560 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003561 },
3562 &quot;name&quot;: &quot;A String&quot;, # The name of this cluster. The name must be unique within this project
3563 # and location (e.g. zone or region), and can be up to 40 characters with
3564 # the following restrictions:
3565 #
3566 # * Lowercase letters, numbers, and hyphens only.
3567 # * Must start with a letter.
3568 # * Must end with a number or a letter.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003569 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
3570 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3571 # or
3572 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3573 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07003574 &quot;endpoint&quot;: &quot;A String&quot;, # [Output only] The IP address of this cluster&#x27;s master endpoint.
3575 # The endpoint can be accessed from the internet at
3576 # `https://username:password@endpoint/`.
3577 #
3578 # See the `masterAuth` property of this resource for username and
3579 # password information.
Bu Sun Kim65020912020-05-20 12:08:20 -07003580 &quot;createTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster was created, in
3581 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3582 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # The IP address range of the container pods in this cluster, in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003583 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
3584 # notation (e.g. `10.96.0.0/14`). Leave blank to have
3585 # one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003586 &quot;autoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
3587 # required by Cluster Autoscaler to automatically adjust
3588 # the size of the cluster and create/delete
3589 # node pools based on the current needs.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003590 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
3591 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
3592 # NodePool&#x27;s nodes can be created by NAP.
3593 &quot;A String&quot;,
3594 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003595 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
3596 # amount of resources in the cluster.
3597 { # Contains information about amount of some resource in the cluster.
3598 # For memory, value should be in GB.
3599 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
3600 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
3601 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
3602 },
3603 ],
3604 &quot;autoscalingProfile&quot;: &quot;A String&quot;, # Defines autoscaling behaviour.
3605 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
3606 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
3607 # created by NAP.
3608 # by NAP.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003609 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. If
3610 # service_account is specified, scopes should be empty.
3611 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used for NAP created node pools.
3612 # The instance may be scheduled on the specified or newer CPU platform.
3613 # Applicable values are the friendly names of CPU platforms, such as
3614 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
3615 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
3616 # information, read [how to specify min CPU
3617 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
3618 # To unset the min cpu platform field pass &quot;automatic&quot; as field value.
Bu Sun Kim65020912020-05-20 12:08:20 -07003619 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # Specifies the node management options for NAP created node-pools.
3620 # node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07003621 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003622 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
Bu Sun Kim65020912020-05-20 12:08:20 -07003623 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
3624 # the Auto Upgrades will proceed.
3625 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
3626 # with the description of the upgrade.
3627 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
3628 # with the approximate start time for the upgrades, in
3629 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3630 },
3631 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003632 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
3633 # specified, service_account should be empty.
3634 &quot;A String&quot;,
3635 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003636 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Specifies the upgrade settings for NAP created node pools
3637 # disruption caused by an upgrade.
3638 #
3639 # maxUnavailable controls the number of nodes that can be simultaneously
3640 # unavailable.
3641 #
3642 # maxSurge controls the number of additional nodes that can be added to the
3643 # node pool temporarily for the time of the upgrade to increase the number of
3644 # available nodes.
3645 #
3646 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
3647 # nodes are being upgraded at the same time).
3648 #
3649 # Note: upgrades inevitably introduce some disruption since workloads need to
3650 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
3651 # this holds true. (Disruption stays within the limits of
3652 # PodDisruptionBudget, if it is configured.)
3653 #
3654 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
3655 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
3656 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
3657 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
3658 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07003659 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
3660 # the upgrade process. A node is considered available if its status is
3661 # Ready.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003662 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
3663 # of the node pool during the upgrade process.
Bu Sun Kim65020912020-05-20 12:08:20 -07003664 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003665 },
Dan O'Mearadd494642020-05-01 07:42:23 -07003666 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003667 &quot;initialNodeCount&quot;: 42, # The number of nodes to create in this cluster. You must ensure that your
3668 # Compute Engine &lt;a href=&quot;/compute/docs/resource-quotas&quot;&gt;resource quota&lt;/a&gt;
Dan O'Mearadd494642020-05-01 07:42:23 -07003669 # is sufficient for this number of instances. You must also have available
3670 # firewall and routes quota.
3671 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07003672 # &quot;node_pool&quot; object, since this configuration (along with the
3673 # &quot;node_config&quot;) will be used to create a &quot;NodePool&quot; object with an
Dan O'Mearadd494642020-05-01 07:42:23 -07003674 # auto-generated name. Do not use this and a node_pool at the same time.
3675 #
3676 # This field is deprecated, use node_pool.initial_node_count instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07003677 &quot;instanceGroupUrls&quot;: [ # Deprecated. Use node_pools.instance_group_urls.
3678 &quot;A String&quot;,
3679 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003680 },
3681 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003682 &quot;missingZones&quot;: [ # If any zones are listed here, the list of clusters returned
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003683 # may be missing those zones.
Bu Sun Kim65020912020-05-20 12:08:20 -07003684 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003685 ],
3686 }</pre>
3687</div>
3688
3689<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003690 <code class="details" id="setAddons">setAddons(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003691 <pre>Sets the addons for a specific cluster.
3692
3693Args:
3694 name: string, The name (project, location, cluster) of the cluster to set addons.
Bu Sun Kim65020912020-05-20 12:08:20 -07003695Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003696 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003697 The object takes the form of:
3698
3699{ # SetAddonsRequest sets the addons associated with the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07003700 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set addons.
3701 # Specified in the format `projects/*/locations/*/clusters/*`.
3702 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003703 # number](https://support.google.com/cloud/answer/6158840).
3704 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003705 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
3706 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3707 # cluster resides. This field has been deprecated and replaced by the name
3708 # field.
3709 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
3710 # This field has been deprecated and replaced by the name field.
3711 &quot;addonsConfig&quot;: { # Configuration for the addons that can be automatically spun up in the # Required. The desired configurations for the various addons available to run in the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003712 # cluster.
3713 # cluster, enabling additional functionality.
Bu Sun Kim65020912020-05-20 12:08:20 -07003714 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
3715 # makes it easy to set up HTTP load balancers for services in a cluster.
3716 # which makes it easy to set up HTTP load balancers for services in a cluster.
3717 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
3718 # When enabled, it runs a small pod in the cluster that manages the load
3719 # balancers.
Dan O'Mearadd494642020-05-01 07:42:23 -07003720 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003721 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003722 # This addon is deprecated, and will be disabled in 1.15. It is recommended
3723 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
3724 # workloads and applications. For more information, see:
3725 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
Bu Sun Kim65020912020-05-20 12:08:20 -07003726 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
3727 },
3728 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
3729 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
3730 },
3731 &quot;kalmConfig&quot;: { # Configuration options for the KALM addon. # Configuration for the KALM addon, which manages the lifecycle of k8s
3732 # applications.
3733 &quot;enabled&quot;: True or False, # Whether KALM is enabled for this cluster.
3734 },
3735 &quot;gcePersistentDiskCsiDriverConfig&quot;: { # Configuration for the Compute Engine PD CSI driver. This option can only be # Configuration for the Compute Engine Persistent Disk CSI driver.
3736 # enabled at cluster creation time.
3737 &quot;enabled&quot;: True or False, # Whether the Compute Engine PD CSI driver is enabled for this cluster.
3738 },
3739 &quot;istioConfig&quot;: { # Configuration options for Istio addon. # Configuration for Istio, an open platform to connect, manage, and secure
3740 # microservices.
Bu Sun Kim65020912020-05-20 12:08:20 -07003741 &quot;auth&quot;: &quot;A String&quot;, # The specified Istio auth mode, either none, or mutual TLS.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003742 &quot;disabled&quot;: True or False, # Whether Istio is enabled for this cluster.
3743 },
3744 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
3745 # is enabled or not on the Master, it does not track whether network policy
3746 # is enabled for the nodes.
3747 # is enabled or not on the Master, it does not track whether network policy
3748 # is enabled for the nodes.
3749 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
3750 },
3751 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be
3752 # enabled in order to enable Cloud Run addon. This option can only be enabled
3753 # at cluster creation time.
3754 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
3755 },
3756 &quot;configConnectorConfig&quot;: { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes
3757 # extension to manage hosted GCP services through the Kubernetes API
3758 &quot;enabled&quot;: True or False, # Whether Cloud Connector is enabled for this cluster.
3759 },
3760 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
3761 # increases or decreases the number of replica pods a replication controller
3762 # has based on the resource usage of the existing pods.
3763 # increases or decreases the number of replica pods a replication controller
3764 # has based on the resource usage of the existing pods.
3765 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
3766 # When enabled, it ensures that metrics are collected into Stackdriver
3767 # Monitoring.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003768 },
3769 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003770 }
3771
3772 x__xgafv: string, V1 error format.
3773 Allowed values
3774 1 - v1 error format
3775 2 - v2 error format
3776
3777Returns:
3778 An object of the form:
3779
3780 { # This operation resource represents operations that may have happened or are
3781 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003782 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
3783 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
3784 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
3785 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
3786 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07003787 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003788 { # StatusCondition describes why a cluster or a node pool has a certain status
3789 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07003790 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3791 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003792 },
3793 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003794 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
3795 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07003796 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003797 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3798 # or
3799 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3800 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07003801 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
3802 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3803 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
3804 { # StatusCondition describes why a cluster or a node pool has a certain status
3805 # (e.g., ERROR or DEGRADED).
3806 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3807 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3808 },
3809 ],
3810 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07003811 &quot;metrics&quot;: [ # Progress metric bundle, for example:
3812 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
3813 # {name: &quot;nodes total&quot;, int_value: 32}]
3814 # or
3815 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
3816 # {name: &quot;progress scale&quot;, double_value: 1.0}]
3817 { # Progress metric is (string, int|float|string) pair.
3818 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
3819 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
3820 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
3821 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
3822 },
3823 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003824 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
3825 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07003826 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
3827 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003828 &quot;stages&quot;: [ # Substages of an operation or a stage.
3829 # Object with schema name: OperationProgress
3830 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003831 },
3832 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
3833 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3834 # operation is taking place. This field is deprecated, use location instead.
3835 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
3836 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003837 }</pre>
3838</div>
3839
3840<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003841 <code class="details" id="setLegacyAbac">setLegacyAbac(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003842 <pre>Enables or disables the ABAC authorization mechanism on a cluster.
3843
3844Args:
3845 name: string, The name (project, location, cluster id) of the cluster to set legacy abac.
Bu Sun Kim65020912020-05-20 12:08:20 -07003846Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003847 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003848 The object takes the form of:
3849
3850{ # SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for
3851 # a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07003852 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set legacy abac.
3853 # Specified in the format `projects/*/locations/*/clusters/*`.
3854 &quot;enabled&quot;: True or False, # Required. Whether ABAC authorization will be enabled in the cluster.
3855 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003856 # number](https://support.google.com/cloud/answer/6158840).
3857 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003858 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003859 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3860 # cluster resides. This field has been deprecated and replaced by the name
3861 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003862 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to update.
3863 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003864 }
3865
3866 x__xgafv: string, V1 error format.
3867 Allowed values
3868 1 - v1 error format
3869 2 - v2 error format
3870
3871Returns:
3872 An object of the form:
3873
3874 { # This operation resource represents operations that may have happened or are
3875 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003876 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
3877 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
3878 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
3879 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
3880 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07003881 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003882 { # StatusCondition describes why a cluster or a node pool has a certain status
3883 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07003884 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3885 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003886 },
3887 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003888 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
3889 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07003890 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003891 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3892 # or
3893 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3894 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07003895 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
3896 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3897 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
3898 { # StatusCondition describes why a cluster or a node pool has a certain status
3899 # (e.g., ERROR or DEGRADED).
3900 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3901 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3902 },
3903 ],
3904 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07003905 &quot;metrics&quot;: [ # Progress metric bundle, for example:
3906 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
3907 # {name: &quot;nodes total&quot;, int_value: 32}]
3908 # or
3909 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
3910 # {name: &quot;progress scale&quot;, double_value: 1.0}]
3911 { # Progress metric is (string, int|float|string) pair.
3912 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
3913 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
3914 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
3915 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
3916 },
3917 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003918 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
3919 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07003920 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
3921 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003922 &quot;stages&quot;: [ # Substages of an operation or a stage.
3923 # Object with schema name: OperationProgress
3924 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003925 },
3926 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
3927 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3928 # operation is taking place. This field is deprecated, use location instead.
3929 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
3930 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003931 }</pre>
3932</div>
3933
3934<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003935 <code class="details" id="setLocations">setLocations(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003936 <pre>Sets the locations for a specific cluster.
Dan O'Mearadd494642020-05-01 07:42:23 -07003937Deprecated. Use
3938[projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters/update)
3939instead.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003940
3941Args:
3942 name: string, The name (project, location, cluster) of the cluster to set locations.
Bu Sun Kim65020912020-05-20 12:08:20 -07003943Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003944 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003945 The object takes the form of:
3946
3947{ # SetLocationsRequest sets the locations of the cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003948 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
3949 # This field has been deprecated and replaced by the name field.
3950 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set locations.
3951 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003952 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003953 # number](https://support.google.com/cloud/answer/6158840).
3954 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07003955 &quot;locations&quot;: [ # Required. The desired list of Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003956 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
Bu Sun Kim65020912020-05-20 12:08:20 -07003957 # cluster&#x27;s nodes should be located. Changing the locations a cluster is in
Dan O'Mearadd494642020-05-01 07:42:23 -07003958 # will result in nodes being either created or removed from the cluster,
3959 # depending on whether locations are being added or removed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003960 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003961 # This list must always include the cluster&#x27;s primary zone.
3962 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003963 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003964 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
3965 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
3966 # cluster resides. This field has been deprecated and replaced by the name
3967 # field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003968 }
3969
3970 x__xgafv: string, V1 error format.
3971 Allowed values
3972 1 - v1 error format
3973 2 - v2 error format
3974
3975Returns:
3976 An object of the form:
3977
3978 { # This operation resource represents operations that may have happened or are
3979 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003980 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
3981 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
3982 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
3983 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
3984 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07003985 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003986 { # StatusCondition describes why a cluster or a node pool has a certain status
3987 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07003988 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3989 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003990 },
3991 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003992 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
3993 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07003994 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07003995 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3996 # or
3997 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3998 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07003999 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4000 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4001 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4002 { # StatusCondition describes why a cluster or a node pool has a certain status
4003 # (e.g., ERROR or DEGRADED).
4004 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4005 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4006 },
4007 ],
4008 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004009 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4010 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4011 # {name: &quot;nodes total&quot;, int_value: 32}]
4012 # or
4013 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4014 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4015 { # Progress metric is (string, int|float|string) pair.
4016 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4017 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4018 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4019 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4020 },
4021 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004022 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4023 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07004024 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4025 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004026 &quot;stages&quot;: [ # Substages of an operation or a stage.
4027 # Object with schema name: OperationProgress
4028 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004029 },
4030 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4031 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4032 # operation is taking place. This field is deprecated, use location instead.
4033 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4034 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004035 }</pre>
4036</div>
4037
4038<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004039 <code class="details" id="setLogging">setLogging(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004040 <pre>Sets the logging service for a specific cluster.
4041
4042Args:
4043 name: string, The name (project, location, cluster) of the cluster to set logging.
Bu Sun Kim65020912020-05-20 12:08:20 -07004044Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004045 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004046 The object takes the form of:
4047
4048{ # SetLoggingServiceRequest sets the logging service of a cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004049 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
4050 # number](https://support.google.com/cloud/answer/6158840).
4051 # This field has been deprecated and replaced by the name field.
4052 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
4053 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4054 # cluster resides. This field has been deprecated and replaced by the name
4055 # field.
4056 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
4057 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004058 &quot;loggingService&quot;: &quot;A String&quot;, # Required. The logging service the cluster should use to write logs.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004059 # Currently available options:
4060 #
Dan O'Mearadd494642020-05-01 07:42:23 -07004061 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
4062 # service with a Kubernetes-native resource model
4063 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
4064 # available as of GKE 1.15).
4065 # * `none` - no logs will be exported from the cluster.
4066 #
4067 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
4068 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07004069 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set logging.
4070 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004071 }
4072
4073 x__xgafv: string, V1 error format.
4074 Allowed values
4075 1 - v1 error format
4076 2 - v2 error format
4077
4078Returns:
4079 An object of the form:
4080
4081 { # This operation resource represents operations that may have happened or are
4082 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004083 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4084 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4085 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4086 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4087 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004088 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004089 { # StatusCondition describes why a cluster or a node pool has a certain status
4090 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004091 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4092 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004093 },
4094 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004095 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4096 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004097 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004098 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4099 # or
4100 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4101 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004102 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4103 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4104 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4105 { # StatusCondition describes why a cluster or a node pool has a certain status
4106 # (e.g., ERROR or DEGRADED).
4107 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4108 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4109 },
4110 ],
4111 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004112 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4113 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4114 # {name: &quot;nodes total&quot;, int_value: 32}]
4115 # or
4116 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4117 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4118 { # Progress metric is (string, int|float|string) pair.
4119 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4120 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4121 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4122 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4123 },
4124 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004125 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4126 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07004127 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4128 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004129 &quot;stages&quot;: [ # Substages of an operation or a stage.
4130 # Object with schema name: OperationProgress
4131 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004132 },
4133 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4134 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4135 # operation is taking place. This field is deprecated, use location instead.
4136 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4137 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004138 }</pre>
4139</div>
4140
4141<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004142 <code class="details" id="setMaintenancePolicy">setMaintenancePolicy(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004143 <pre>Sets the maintenance policy for a cluster.
4144
4145Args:
4146 name: string, The name (project, location, cluster id) of the cluster to set maintenance
4147policy.
Bu Sun Kim65020912020-05-20 12:08:20 -07004148Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004149 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004150 The object takes the form of:
4151
4152{ # SetMaintenancePolicyRequest sets the maintenance policy for a cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004153 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set maintenance
4154 # policy.
4155 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07004156 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Required. The maintenance policy to be set for the cluster. An empty field
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004157 # clears the existing maintenance policy.
Bu Sun Kim65020912020-05-20 12:08:20 -07004158 &quot;window&quot;: { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004159 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
4160 # occur in these windows.
4161 &quot;a_key&quot;: { # Represents an arbitrary window of time.
4162 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
4163 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
4164 # start time.
4165 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004166 },
4167 &quot;recurringWindow&quot;: { # Represents an arbitrary window of time that recurs. # RecurringWindow specifies some number of recurring time periods for
Dan O'Mearadd494642020-05-01 07:42:23 -07004168 # maintenance to occur. The time windows may be overlapping. If no
4169 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim65020912020-05-20 12:08:20 -07004170 &quot;recurrence&quot;: &quot;A String&quot;, # An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
Dan O'Mearadd494642020-05-01 07:42:23 -07004171 # this window reccurs. They go on for the span of time between the start and
4172 # end time.
4173 #
Bu Sun Kim65020912020-05-20 12:08:20 -07004174 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -07004175 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
4176 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
4177 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
4178 # For the first weekend of every month:
4179 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
4180 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -07004181 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -07004182 # &lt;code&gt;
4183 # start time = 2019-01-01T09:00:00-0400
4184 # end time = 2019-01-01T17:00:00-0400
4185 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
4186 # &lt;/code&gt;
4187 # Windows can span multiple days. Eg, to make the window encompass every
4188 # weekend from midnight Saturday till the last minute of Sunday UTC:
4189 # &lt;code&gt;
4190 # start time = 2019-01-05T00:00:00Z
4191 # end time = 2019-01-07T23:59:00Z
4192 # recurrence = FREQ=WEEKLY;BYDAY=SA
4193 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07004194 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -07004195 # to specify duration of the window and when it first starts.
4196 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Bu Sun Kim65020912020-05-20 12:08:20 -07004197 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004198 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Bu Sun Kim65020912020-05-20 12:08:20 -07004199 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
Dan O'Mearadd494642020-05-01 07:42:23 -07004200 # start time.
Dan O'Mearadd494642020-05-01 07:42:23 -07004201 },
4202 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004203 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
4204 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
4205 # smallest possible in the given scenario.
4206 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
4207 # It must be in format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
Dan O'Mearadd494642020-05-01 07:42:23 -07004208 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004209 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004210 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
4211 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
4212 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
4213 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
4214 # resource version and include it with requests to set the policy.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004215 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004216 &quot;projectId&quot;: &quot;A String&quot;, # Required. The Google Developers Console [project ID or project
4217 # number](https://support.google.com/cloud/answer/6158840).
4218 &quot;zone&quot;: &quot;A String&quot;, # Required. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004219 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4220 # cluster resides.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004221 &quot;clusterId&quot;: &quot;A String&quot;, # Required. The name of the cluster to update.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004222 }
4223
4224 x__xgafv: string, V1 error format.
4225 Allowed values
4226 1 - v1 error format
4227 2 - v2 error format
4228
4229Returns:
4230 An object of the form:
4231
4232 { # This operation resource represents operations that may have happened or are
4233 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004234 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4235 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4236 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4237 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4238 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004239 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004240 { # StatusCondition describes why a cluster or a node pool has a certain status
4241 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004242 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4243 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004244 },
4245 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004246 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4247 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004248 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004249 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4250 # or
4251 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4252 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004253 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4254 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4255 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4256 { # StatusCondition describes why a cluster or a node pool has a certain status
4257 # (e.g., ERROR or DEGRADED).
4258 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4259 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4260 },
4261 ],
4262 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004263 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4264 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4265 # {name: &quot;nodes total&quot;, int_value: 32}]
4266 # or
4267 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4268 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4269 { # Progress metric is (string, int|float|string) pair.
4270 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4271 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4272 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4273 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4274 },
4275 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004276 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4277 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07004278 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4279 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004280 &quot;stages&quot;: [ # Substages of an operation or a stage.
4281 # Object with schema name: OperationProgress
4282 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004283 },
4284 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4285 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4286 # operation is taking place. This field is deprecated, use location instead.
4287 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4288 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004289 }</pre>
4290</div>
4291
4292<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004293 <code class="details" id="setMasterAuth">setMasterAuth(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004294 <pre>Sets master auth materials. Currently supports changing the admin password
4295or a specific cluster, either via password generation or explicitly setting
4296the password.
4297
4298Args:
4299 name: string, The name (project, location, cluster) of the cluster to set auth.
Bu Sun Kim65020912020-05-20 12:08:20 -07004300Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004301 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004302 The object takes the form of:
4303
4304{ # SetMasterAuthRequest updates the admin password of a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004305 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set auth.
4306 # Specified in the format `projects/*/locations/*/clusters/*`.
4307 &quot;action&quot;: &quot;A String&quot;, # Required. The exact form of action to be taken on the master auth.
4308 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004309 # number](https://support.google.com/cloud/answer/6158840).
4310 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004311 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004312 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004313 &quot;update&quot;: { # The authentication information for accessing the master endpoint. # Required. A description of the update.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004314 # Authentication can be done using HTTP basic auth or using client
4315 # certificates.
Bu Sun Kim65020912020-05-20 12:08:20 -07004316 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint.
Dan O'Mearadd494642020-05-01 07:42:23 -07004317 # Because the master endpoint is open to the Internet, you should create a
4318 # strong password. If a password is provided for cluster creation, username
4319 # must be non-empty.
Bu Sun Kim65020912020-05-20 12:08:20 -07004320 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004321 # clusters before v1.12, if no configuration is specified, a client
4322 # certificate is issued.
Bu Sun Kim65020912020-05-20 12:08:20 -07004323 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004324 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004325 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
4326 # to the cluster endpoint.
4327 &quot;clusterCaCertificate&quot;: &quot;A String&quot;,
4328 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
4329 # authenticate to the cluster endpoint.
4330 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
4331 # For clusters v1.6.0 and later, basic authentication can be disabled by
4332 # leaving username unspecified (or setting it to the empty string).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004333 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004334 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
4335 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4336 # cluster resides. This field has been deprecated and replaced by the name
4337 # field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004338 }
4339
4340 x__xgafv: string, V1 error format.
4341 Allowed values
4342 1 - v1 error format
4343 2 - v2 error format
4344
4345Returns:
4346 An object of the form:
4347
4348 { # This operation resource represents operations that may have happened or are
4349 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004350 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4351 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4352 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4353 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4354 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004355 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004356 { # StatusCondition describes why a cluster or a node pool has a certain status
4357 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004358 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4359 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004360 },
4361 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004362 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4363 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004364 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004365 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4366 # or
4367 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4368 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004369 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4370 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4371 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4372 { # StatusCondition describes why a cluster or a node pool has a certain status
4373 # (e.g., ERROR or DEGRADED).
4374 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4375 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4376 },
4377 ],
4378 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004379 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4380 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4381 # {name: &quot;nodes total&quot;, int_value: 32}]
4382 # or
4383 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4384 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4385 { # Progress metric is (string, int|float|string) pair.
4386 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4387 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4388 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4389 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4390 },
4391 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004392 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4393 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07004394 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4395 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004396 &quot;stages&quot;: [ # Substages of an operation or a stage.
4397 # Object with schema name: OperationProgress
4398 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004399 },
4400 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4401 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4402 # operation is taking place. This field is deprecated, use location instead.
4403 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4404 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004405 }</pre>
4406</div>
4407
4408<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004409 <code class="details" id="setMonitoring">setMonitoring(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004410 <pre>Sets the monitoring service for a specific cluster.
4411
4412Args:
4413 name: string, The name (project, location, cluster) of the cluster to set monitoring.
Bu Sun Kim65020912020-05-20 12:08:20 -07004414Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004415 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004416 The object takes the form of:
4417
4418{ # SetMonitoringServiceRequest sets the monitoring service of a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004419 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004420 # number](https://support.google.com/cloud/answer/6158840).
4421 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004422 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
4423 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4424 # cluster resides. This field has been deprecated and replaced by the name
4425 # field.
4426 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
4427 # This field has been deprecated and replaced by the name field.
4428 &quot;monitoringService&quot;: &quot;A String&quot;, # Required. The monitoring service the cluster should use to write metrics.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004429 # Currently available options:
4430 #
Bu Sun Kim65020912020-05-20 12:08:20 -07004431 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -07004432 # service with a Kubernetes-native resource model
4433 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
4434 # longer available as of GKE 1.15).
4435 # * `none` - No metrics will be exported from the cluster.
4436 #
4437 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
4438 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07004439 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set monitoring.
4440 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004441 }
4442
4443 x__xgafv: string, V1 error format.
4444 Allowed values
4445 1 - v1 error format
4446 2 - v2 error format
4447
4448Returns:
4449 An object of the form:
4450
4451 { # This operation resource represents operations that may have happened or are
4452 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004453 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4454 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4455 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4456 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4457 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004458 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004459 { # StatusCondition describes why a cluster or a node pool has a certain status
4460 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004461 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4462 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004463 },
4464 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004465 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4466 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004467 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004468 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4469 # or
4470 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4471 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004472 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4473 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4474 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4475 { # StatusCondition describes why a cluster or a node pool has a certain status
4476 # (e.g., ERROR or DEGRADED).
4477 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4478 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4479 },
4480 ],
4481 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004482 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4483 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4484 # {name: &quot;nodes total&quot;, int_value: 32}]
4485 # or
4486 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4487 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4488 { # Progress metric is (string, int|float|string) pair.
4489 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4490 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4491 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4492 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4493 },
4494 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004495 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4496 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07004497 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4498 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004499 &quot;stages&quot;: [ # Substages of an operation or a stage.
4500 # Object with schema name: OperationProgress
4501 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004502 },
4503 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4504 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4505 # operation is taking place. This field is deprecated, use location instead.
4506 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4507 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004508 }</pre>
4509</div>
4510
4511<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004512 <code class="details" id="setNetworkPolicy">setNetworkPolicy(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004513 <pre>Enables or disables Network Policy for a cluster.
4514
4515Args:
4516 name: string, The name (project, location, cluster id) of the cluster to set networking
Bu Sun Kim65020912020-05-20 12:08:20 -07004517policy. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004518 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004519 The object takes the form of:
4520
4521{ # SetNetworkPolicyRequest enables/disables network policy for a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004522 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004523 # number](https://developers.google.com/console/help/new/#projectnumber).
4524 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004525 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004526 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4527 # cluster resides. This field has been deprecated and replaced by the name
4528 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004529 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster.
4530 # This field has been deprecated and replaced by the name field.
4531 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Required. Configuration options for the NetworkPolicy feature.
4532 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
Bu Sun Kim65020912020-05-20 12:08:20 -07004533 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004534 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004535 },
4536 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set networking
4537 # policy. Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004538 }
4539
4540 x__xgafv: string, V1 error format.
4541 Allowed values
4542 1 - v1 error format
4543 2 - v2 error format
4544
4545Returns:
4546 An object of the form:
4547
4548 { # This operation resource represents operations that may have happened or are
4549 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004550 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4551 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4552 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4553 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4554 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004555 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004556 { # StatusCondition describes why a cluster or a node pool has a certain status
4557 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004558 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4559 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004560 },
4561 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004562 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4563 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004564 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004565 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4566 # or
4567 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4568 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004569 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4570 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4571 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4572 { # StatusCondition describes why a cluster or a node pool has a certain status
4573 # (e.g., ERROR or DEGRADED).
4574 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4575 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4576 },
4577 ],
4578 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004579 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4580 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4581 # {name: &quot;nodes total&quot;, int_value: 32}]
4582 # or
4583 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4584 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4585 { # Progress metric is (string, int|float|string) pair.
4586 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4587 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4588 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4589 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4590 },
4591 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004592 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4593 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07004594 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4595 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004596 &quot;stages&quot;: [ # Substages of an operation or a stage.
4597 # Object with schema name: OperationProgress
4598 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004599 },
4600 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4601 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4602 # operation is taking place. This field is deprecated, use location instead.
4603 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4604 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004605 }</pre>
4606</div>
4607
4608<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004609 <code class="details" id="setResourceLabels">setResourceLabels(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004610 <pre>Sets labels on a cluster.
4611
4612Args:
4613 name: string, The name (project, location, cluster id) of the cluster to set labels.
Bu Sun Kim65020912020-05-20 12:08:20 -07004614Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004615 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004616 The object takes the form of:
4617
4618{ # SetLabelsRequest sets the Google Cloud Platform labels on a Google Container
4619 # Engine cluster, which will in turn set them for Google Compute Engine
4620 # resources used by that cluster
Bu Sun Kim65020912020-05-20 12:08:20 -07004621 &quot;labelFingerprint&quot;: &quot;A String&quot;, # Required. The fingerprint of the previous set of labels for this resource,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004622 # used to detect conflicts. The fingerprint is initially generated by
4623 # Kubernetes Engine and changes after every request to modify or update
4624 # labels. You must always provide an up-to-date fingerprint hash when
Dan O'Mearadd494642020-05-01 07:42:23 -07004625 # updating or changing labels. Make a &lt;code&gt;get()&lt;/code&gt; request to the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004626 # resource to get the latest fingerprint.
Bu Sun Kim65020912020-05-20 12:08:20 -07004627 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
4628 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4629 # cluster resides. This field has been deprecated and replaced by the name
4630 # field.
4631 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set labels.
4632 # Specified in the format `projects/*/locations/*/clusters/*`.
4633 &quot;resourceLabels&quot;: { # Required. The labels to set for that cluster.
4634 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004635 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004636 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
4637 # number](https://developers.google.com/console/help/new/#projectnumber).
4638 # This field has been deprecated and replaced by the name field.
4639 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster.
4640 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004641 }
4642
4643 x__xgafv: string, V1 error format.
4644 Allowed values
4645 1 - v1 error format
4646 2 - v2 error format
4647
4648Returns:
4649 An object of the form:
4650
4651 { # This operation resource represents operations that may have happened or are
4652 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004653 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4654 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4655 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4656 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4657 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004658 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004659 { # StatusCondition describes why a cluster or a node pool has a certain status
4660 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004661 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4662 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004663 },
4664 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004665 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4666 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004667 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004668 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4669 # or
4670 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4671 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004672 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4673 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4674 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4675 { # StatusCondition describes why a cluster or a node pool has a certain status
4676 # (e.g., ERROR or DEGRADED).
4677 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4678 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4679 },
4680 ],
4681 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004682 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4683 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4684 # {name: &quot;nodes total&quot;, int_value: 32}]
4685 # or
4686 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4687 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4688 { # Progress metric is (string, int|float|string) pair.
4689 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4690 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4691 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4692 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4693 },
4694 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004695 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4696 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07004697 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4698 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004699 &quot;stages&quot;: [ # Substages of an operation or a stage.
4700 # Object with schema name: OperationProgress
4701 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004702 },
4703 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4704 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4705 # operation is taking place. This field is deprecated, use location instead.
4706 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4707 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004708 }</pre>
4709</div>
4710
4711<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004712 <code class="details" id="startIpRotation">startIpRotation(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004713 <pre>Starts master IP rotation.
4714
4715Args:
4716 name: string, The name (project, location, cluster id) of the cluster to start IP
Bu Sun Kim65020912020-05-20 12:08:20 -07004717rotation. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004718 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004719 The object takes the form of:
4720
4721{ # StartIPRotationRequest creates a new IP for the cluster and then performs
4722 # a node upgrade on each node pool to point to the new IP.
Bu Sun Kim65020912020-05-20 12:08:20 -07004723 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to start IP
4724 # rotation. Specified in the format `projects/*/locations/*/clusters/*`.
4725 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004726 # number](https://developers.google.com/console/help/new/#projectnumber).
4727 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004728 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004729 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4730 # cluster resides. This field has been deprecated and replaced by the name
4731 # field.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004732 &quot;rotateCredentials&quot;: True or False, # Whether to rotate credentials during IP rotation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004733 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster.
4734 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004735 }
4736
4737 x__xgafv: string, V1 error format.
4738 Allowed values
4739 1 - v1 error format
4740 2 - v2 error format
4741
4742Returns:
4743 An object of the form:
4744
4745 { # This operation resource represents operations that may have happened or are
4746 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004747 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
4748 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4749 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
4750 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
4751 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004752 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004753 { # StatusCondition describes why a cluster or a node pool has a certain status
4754 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07004755 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4756 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004757 },
4758 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004759 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4760 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004761 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004762 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4763 # or
4764 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4765 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004766 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4767 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4768 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4769 { # StatusCondition describes why a cluster or a node pool has a certain status
4770 # (e.g., ERROR or DEGRADED).
4771 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4772 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4773 },
4774 ],
4775 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07004776 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4777 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4778 # {name: &quot;nodes total&quot;, int_value: 32}]
4779 # or
4780 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4781 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4782 { # Progress metric is (string, int|float|string) pair.
4783 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4784 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
4785 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
4786 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
4787 },
4788 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004789 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4790 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07004791 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4792 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004793 &quot;stages&quot;: [ # Substages of an operation or a stage.
4794 # Object with schema name: OperationProgress
4795 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004796 },
4797 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4798 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4799 # operation is taking place. This field is deprecated, use location instead.
4800 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
4801 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004802 }</pre>
4803</div>
4804
4805<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004806 <code class="details" id="update">update(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004807 <pre>Updates the settings for a specific cluster.
4808
4809Args:
4810 name: string, The name (project, location, cluster) of the cluster to update.
Bu Sun Kim65020912020-05-20 12:08:20 -07004811Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004812 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004813 The object takes the form of:
4814
4815{ # UpdateClusterRequest updates the settings of a cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004816 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to update.
4817 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07004818 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004819 # number](https://support.google.com/cloud/answer/6158840).
4820 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004821 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
4822 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4823 # cluster resides. This field has been deprecated and replaced by the name
4824 # field.
4825 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004826 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004827 &quot;update&quot;: { # ClusterUpdate describes an update to the cluster. Exactly one update can # Required. A description of the update.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004828 # be applied to a cluster with each request, so at most one field can be
4829 # provided.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004830 &quot;desiredNodeVersion&quot;: &quot;A String&quot;, # The Kubernetes version to change the nodes to (typically an
4831 # upgrade).
4832 #
4833 # Users may specify either explicit versions offered by
4834 # Kubernetes Engine or version aliases, which have the following behavior:
4835 #
4836 # - &quot;latest&quot;: picks the highest valid Kubernetes version
4837 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
4838 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
4839 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
4840 # - &quot;-&quot;: picks the Kubernetes master version
4841 &quot;desiredClusterAutoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
4842 # required by Cluster Autoscaler to automatically adjust
4843 # the size of the cluster and create/delete
4844 # node pools based on the current needs.
4845 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
4846 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
4847 # NodePool&#x27;s nodes can be created by NAP.
4848 &quot;A String&quot;,
4849 ],
4850 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
4851 # amount of resources in the cluster.
4852 { # Contains information about amount of some resource in the cluster.
4853 # For memory, value should be in GB.
4854 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
4855 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
4856 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
4857 },
4858 ],
4859 &quot;autoscalingProfile&quot;: &quot;A String&quot;, # Defines autoscaling behaviour.
4860 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
4861 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
4862 # created by NAP.
4863 # by NAP.
4864 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs. If
4865 # service_account is specified, scopes should be empty.
4866 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used for NAP created node pools.
4867 # The instance may be scheduled on the specified or newer CPU platform.
4868 # Applicable values are the friendly names of CPU platforms, such as
4869 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
4870 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
4871 # information, read [how to specify min CPU
4872 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
4873 # To unset the min cpu platform field pass &quot;automatic&quot; as field value.
4874 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # Specifies the node management options for NAP created node-pools.
4875 # node pool.
4876 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
4877 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
4878 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
4879 # the Auto Upgrades will proceed.
4880 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
4881 # with the description of the upgrade.
4882 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
4883 # with the approximate start time for the upgrades, in
4884 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4885 },
4886 },
4887 &quot;oauthScopes&quot;: [ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
4888 # specified, service_account should be empty.
4889 &quot;A String&quot;,
4890 ],
4891 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Specifies the upgrade settings for NAP created node pools
4892 # disruption caused by an upgrade.
4893 #
4894 # maxUnavailable controls the number of nodes that can be simultaneously
4895 # unavailable.
4896 #
4897 # maxSurge controls the number of additional nodes that can be added to the
4898 # node pool temporarily for the time of the upgrade to increase the number of
4899 # available nodes.
4900 #
4901 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
4902 # nodes are being upgraded at the same time).
4903 #
4904 # Note: upgrades inevitably introduce some disruption since workloads need to
4905 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
4906 # this holds true. (Disruption stays within the limits of
4907 # PodDisruptionBudget, if it is configured.)
4908 #
4909 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
4910 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
4911 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
4912 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
4913 # there are always at least 4 nodes available.
4914 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
4915 # the upgrade process. A node is considered available if its status is
4916 # Ready.
4917 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
4918 # of the node pool during the upgrade process.
4919 },
4920 },
4921 },
4922 &quot;desiredPodSecurityPolicyConfig&quot;: { # Configuration for the PodSecurityPolicy feature. # The desired configuration options for the PodSecurityPolicy feature.
4923 &quot;enabled&quot;: True or False, # Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
4924 # must be valid under a PodSecurityPolicy to be created.
4925 },
4926 &quot;desiredIntraNodeVisibilityConfig&quot;: { # IntraNodeVisibilityConfig contains the desired config of the intra-node # The desired config of Intra-node visibility.
4927 # visibility on this cluster.
4928 &quot;enabled&quot;: True or False, # Enables intra node visibility for this cluster.
4929 },
4930 &quot;desiredMasterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The desired configuration options for master authorized networks feature.
4931 # master authorized networks will disallow all external traffic to access
4932 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
4933 # Google Compute Engine Public IPs and Google Prod IPs.
4934 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
4935 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 10 external networks that could access
4936 # Kubernetes master through HTTPS.
4937 { # CidrBlock contains an optional name and one CIDR block.
4938 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
4939 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
4940 },
4941 ],
4942 },
4943 &quot;desiredResourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # The desired configuration for exporting resource usage.
4944 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
4945 # daemonset will be created in the cluster to meter network egress traffic.
4946 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
4947 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
4948 # second BigQuery table will be created to hold resource consumption
4949 # records.
4950 },
4951 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
4952 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
4953 },
4954 },
4955 &quot;desiredMonitoringService&quot;: &quot;A String&quot;, # The monitoring service the cluster should use to write metrics.
4956 # Currently available options:
4957 #
4958 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
4959 # service with a Kubernetes-native resource model
4960 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
4961 # longer available as of GKE 1.15).
4962 # * `none` - No metrics will be exported from the cluster.
4963 #
4964 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
4965 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
4966 &quot;desiredImageType&quot;: &quot;A String&quot;, # The desired image type for the node pool.
4967 # NOTE: Set the &quot;desired_node_pool&quot; field as well.
4968 &quot;desiredWorkloadIdentityConfig&quot;: { # Configuration for the use of Kubernetes Service Accounts in GCP IAM # Configuration for Workload Identity.
4969 # policies.
4970 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
4971 &quot;identityNamespace&quot;: &quot;A String&quot;, # IAM Identity Namespace to attach all Kubernetes Service Accounts to.
4972 },
4973 &quot;desiredReleaseChannel&quot;: { # ReleaseChannel indicates which release channel a cluster is # The desired release channel configuration.
4974 # subscribed to. Release channels are arranged in order of risk and
4975 # frequency of updates.
4976 #
4977 # When a cluster is subscribed to a release channel, Google maintains
4978 # both the master version and the node version. Node auto-upgrade
4979 # defaults to true and cannot be disabled. Updates to version related
4980 # fields (e.g. current_master_version) return an error.
4981 &quot;channel&quot;: &quot;A String&quot;, # channel specifies which release channel the cluster is subscribed to.
4982 },
4983 &quot;desiredShieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Configuration for Shielded Nodes.
4984 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
4985 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004986 &quot;desiredPrivateClusterConfig&quot;: { # Configuration options for private clusters. # The desired private cluster configuration.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004987 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
4988 # range will be used for assigning internal IP addresses to the master or
4989 # set of masters, as well as the ILB VIP. This range must not overlap with
4990 # any other ranges in use within the cluster&#x27;s network.
4991 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
4992 # given only RFC 1918 private addresses and communicate with the master via
4993 # private networking.
Bu Sun Kim65020912020-05-20 12:08:20 -07004994 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
4995 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
4996 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
4997 &quot;masterGlobalAccessConfig&quot;: { # Configuration for controlling master global access settings. # Controls master global access settings.
4998 &quot;enabled&quot;: True or False, # Whenever master is accessible globally or not.
4999 },
5000 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
Dan O'Mearadd494642020-05-01 07:42:23 -07005001 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005002 &quot;desiredVerticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
5003 # required by Vertical Pod Autoscaler to automatically adjust
5004 # the resources of pods controlled by it.
5005 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
5006 },
5007 &quot;desiredBinaryAuthorization&quot;: { # Configuration for Binary Authorization. # The desired configuration options for the Binary Authorization feature.
5008 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
5009 # images will be validated by Google Binauthz.
5010 },
5011 &quot;desiredAddonsConfig&quot;: { # Configuration for the addons that can be automatically spun up in the # Configurations for the various addons available to run in the cluster.
5012 # cluster, enabling additional functionality.
Bu Sun Kim65020912020-05-20 12:08:20 -07005013 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
5014 # makes it easy to set up HTTP load balancers for services in a cluster.
5015 # which makes it easy to set up HTTP load balancers for services in a cluster.
5016 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
5017 # When enabled, it runs a small pod in the cluster that manages the load
5018 # balancers.
5019 },
5020 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
5021 # This addon is deprecated, and will be disabled in 1.15. It is recommended
5022 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
5023 # workloads and applications. For more information, see:
5024 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
5025 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
5026 },
5027 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
5028 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
5029 },
5030 &quot;kalmConfig&quot;: { # Configuration options for the KALM addon. # Configuration for the KALM addon, which manages the lifecycle of k8s
5031 # applications.
5032 &quot;enabled&quot;: True or False, # Whether KALM is enabled for this cluster.
5033 },
5034 &quot;gcePersistentDiskCsiDriverConfig&quot;: { # Configuration for the Compute Engine PD CSI driver. This option can only be # Configuration for the Compute Engine Persistent Disk CSI driver.
5035 # enabled at cluster creation time.
5036 &quot;enabled&quot;: True or False, # Whether the Compute Engine PD CSI driver is enabled for this cluster.
5037 },
5038 &quot;istioConfig&quot;: { # Configuration options for Istio addon. # Configuration for Istio, an open platform to connect, manage, and secure
5039 # microservices.
Bu Sun Kim65020912020-05-20 12:08:20 -07005040 &quot;auth&quot;: &quot;A String&quot;, # The specified Istio auth mode, either none, or mutual TLS.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005041 &quot;disabled&quot;: True or False, # Whether Istio is enabled for this cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07005042 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005043 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
5044 # is enabled or not on the Master, it does not track whether network policy
5045 # is enabled for the nodes.
5046 # is enabled or not on the Master, it does not track whether network policy
5047 # is enabled for the nodes.
5048 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
Dan O'Mearadd494642020-05-01 07:42:23 -07005049 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005050 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be
5051 # enabled in order to enable Cloud Run addon. This option can only be enabled
5052 # at cluster creation time.
5053 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
5054 },
5055 &quot;configConnectorConfig&quot;: { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes
5056 # extension to manage hosted GCP services through the Kubernetes API
5057 &quot;enabled&quot;: True or False, # Whether Cloud Connector is enabled for this cluster.
5058 },
5059 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
5060 # increases or decreases the number of replica pods a replication controller
5061 # has based on the resource usage of the existing pods.
5062 # increases or decreases the number of replica pods a replication controller
5063 # has based on the resource usage of the existing pods.
5064 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
5065 # When enabled, it ensures that metrics are collected into Stackdriver
5066 # Monitoring.
5067 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005068 },
5069 &quot;desiredDatabaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
5070 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
5071 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
5072 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
5073 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005074 &quot;desiredDefaultSnatStatus&quot;: { # DefaultSnatStatus contains the desired state of whether default sNAT should # The desired status of whether to disable default sNAT for this cluster.
5075 # be disabled on the cluster.
5076 &quot;disabled&quot;: True or False, # Disables cluster default sNAT rules.
Dan O'Mearadd494642020-05-01 07:42:23 -07005077 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005078 &quot;desiredTpuConfig&quot;: { # Configuration for Cloud TPU. # The desired Cloud TPU configuration.
Bu Sun Kim65020912020-05-20 12:08:20 -07005079 &quot;useServiceNetworking&quot;: True or False, # Whether to use service networking for Cloud TPU or not.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005080 &quot;ipv4CidrBlock&quot;: &quot;A String&quot;, # IPv4 CIDR block reserved for Cloud TPU in the VPC.
5081 &quot;enabled&quot;: True or False, # Whether Cloud TPU integration is enabled or not.
Bu Sun Kim65020912020-05-20 12:08:20 -07005082 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005083 &quot;desiredNodePoolAutoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for the node pool specified in
5084 # desired_node_pool_id. If there is only one pool in the
5085 # cluster and desired_node_pool_id is not provided then
5086 # the change applies to that single node pool.
5087 # adjust the size of the node pool to the current cluster usage.
5088 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
5089 # has to enough quota to scale up the cluster.
5090 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
5091 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
5092 # max_node_count.
5093 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
Bu Sun Kim65020912020-05-20 12:08:20 -07005094 },
5095 &quot;desiredLocations&quot;: [ # The desired list of Google Compute Engine
5096 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
5097 # cluster&#x27;s nodes should be located. Changing the locations a cluster is in
5098 # will result in nodes being either created or removed from the cluster,
5099 # depending on whether locations are being added or removed.
5100 #
5101 # This list must always include the cluster&#x27;s primary zone.
5102 &quot;A String&quot;,
5103 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005104 &quot;desiredClusterTelemetry&quot;: { # Telemetry integration for the cluster. # The desired telemetry integration for the cluster.
5105 &quot;type&quot;: &quot;A String&quot;, # Type of the integration.
Dan O'Mearadd494642020-05-01 07:42:23 -07005106 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005107 &quot;desiredNodePoolId&quot;: &quot;A String&quot;, # The node pool to be upgraded. This field is mandatory if
5108 # &quot;desired_node_version&quot;, &quot;desired_image_family&quot;,
5109 # &quot;desired_node_pool_autoscaling&quot;, or &quot;desired_workload_metadata_config&quot;
5110 # is specified and there is more than one node pool on the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07005111 &quot;desiredMasterVersion&quot;: &quot;A String&quot;, # The Kubernetes version to change the master to. The only valid value is the
5112 # latest supported version.
5113 #
5114 # Users may specify either explicit versions offered by
5115 # Kubernetes Engine or version aliases, which have the following behavior:
5116 #
5117 # - &quot;latest&quot;: picks the highest valid Kubernetes version
5118 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
5119 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
5120 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
5121 # - &quot;-&quot;: picks the default Kubernetes version
Bu Sun Kim65020912020-05-20 12:08:20 -07005122 &quot;desiredLoggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
5123 # Currently available options:
5124 #
5125 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
5126 # service with a Kubernetes-native resource model
5127 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
5128 # available as of GKE 1.15).
5129 # * `none` - no logs will be exported from the cluster.
5130 #
5131 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
5132 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005133 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005134 }
5135
5136 x__xgafv: string, V1 error format.
5137 Allowed values
5138 1 - v1 error format
5139 2 - v2 error format
5140
5141Returns:
5142 An object of the form:
5143
5144 { # This operation resource represents operations that may have happened or are
5145 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005146 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
5147 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
5148 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
5149 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
5150 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07005151 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005152 { # StatusCondition describes why a cluster or a node pool has a certain status
5153 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07005154 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
5155 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005156 },
5157 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005158 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
5159 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07005160 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07005161 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
5162 # or
5163 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
5164 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07005165 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
5166 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
5167 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
5168 { # StatusCondition describes why a cluster or a node pool has a certain status
5169 # (e.g., ERROR or DEGRADED).
5170 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
5171 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
5172 },
5173 ],
5174 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07005175 &quot;metrics&quot;: [ # Progress metric bundle, for example:
5176 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
5177 # {name: &quot;nodes total&quot;, int_value: 32}]
5178 # or
5179 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
5180 # {name: &quot;progress scale&quot;, double_value: 1.0}]
5181 { # Progress metric is (string, int|float|string) pair.
5182 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
5183 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
5184 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
5185 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
5186 },
5187 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005188 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
5189 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07005190 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
5191 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005192 &quot;stages&quot;: [ # Substages of an operation or a stage.
5193 # Object with schema name: OperationProgress
5194 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005195 },
5196 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
5197 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
5198 # operation is taking place. This field is deprecated, use location instead.
5199 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
5200 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005201 }</pre>
5202</div>
5203
5204<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07005205 <code class="details" id="updateMaster">updateMaster(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005206 <pre>Updates the master for a specific cluster.
5207
5208Args:
5209 name: string, The name (project, location, cluster) of the cluster to update.
Bu Sun Kim65020912020-05-20 12:08:20 -07005210Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07005211 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005212 The object takes the form of:
5213
5214{ # UpdateMasterRequest updates the master of the cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005215 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to update.
5216 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07005217 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005218 # number](https://support.google.com/cloud/answer/6158840).
5219 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07005220 &quot;masterVersion&quot;: &quot;A String&quot;, # Required. The Kubernetes version to change the master to.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005221 #
5222 # Users may specify either explicit versions offered by
5223 # Kubernetes Engine or version aliases, which have the following behavior:
5224 #
Bu Sun Kim65020912020-05-20 12:08:20 -07005225 # - &quot;latest&quot;: picks the highest valid Kubernetes version
5226 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
5227 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
5228 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
5229 # - &quot;-&quot;: picks the default Kubernetes version
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005230 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
5231 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
5232 # cluster resides. This field has been deprecated and replaced by the name
5233 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07005234 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005235 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005236 }
5237
5238 x__xgafv: string, V1 error format.
5239 Allowed values
5240 1 - v1 error format
5241 2 - v2 error format
5242
5243Returns:
5244 An object of the form:
5245
5246 { # This operation resource represents operations that may have happened or are
5247 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005248 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
5249 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
5250 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
5251 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
5252 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07005253 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005254 { # StatusCondition describes why a cluster or a node pool has a certain status
5255 # (e.g., ERROR or DEGRADED).
Bu Sun Kim65020912020-05-20 12:08:20 -07005256 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
5257 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005258 },
5259 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005260 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
5261 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07005262 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07005263 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
5264 # or
5265 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
5266 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07005267 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
5268 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
5269 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
5270 { # StatusCondition describes why a cluster or a node pool has a certain status
5271 # (e.g., ERROR or DEGRADED).
5272 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
5273 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
5274 },
5275 ],
5276 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07005277 &quot;metrics&quot;: [ # Progress metric bundle, for example:
5278 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
5279 # {name: &quot;nodes total&quot;, int_value: 32}]
5280 # or
5281 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
5282 # {name: &quot;progress scale&quot;, double_value: 1.0}]
5283 { # Progress metric is (string, int|float|string) pair.
5284 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
5285 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
5286 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
5287 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
5288 },
5289 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005290 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
5291 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07005292 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
5293 # Unset for single-stage operations.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005294 &quot;stages&quot;: [ # Substages of an operation or a stage.
5295 # Object with schema name: OperationProgress
5296 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005297 },
5298 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
5299 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
5300 # operation is taking place. This field is deprecated, use location instead.
5301 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
5302 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005303 }</pre>
5304</div>
5305
5306</body></html>