blob: e21ee72b427625de2b89ad8d474bdd84f50aaeeb [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 Kimd059ad82020-07-22 17:02:09 -070097 <code><a href="#get">get(name, clusterId=None, projectId=None, zone=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 Kimd059ad82020-07-22 17:02:09 -0700103 <code><a href="#list">list(parent, zone=None, projectId=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 Kim65020912020-05-20 12:08:20 -0700153 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -0700154 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
155 # cluster resides. This field has been deprecated and replaced by the name
156 # field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700157 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to complete IP
158 # rotation. Specified in the format `projects/*/locations/*/clusters/*`.
159 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster.
160 # This field has been deprecated and replaced by the name field.
161 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
162 # number](https://developers.google.com/console/help/new/#projectnumber).
163 # This field has been deprecated and replaced by the name 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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700177 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Bu Sun Kim65020912020-05-20 12:08:20 -0700178 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700179 &quot;stages&quot;: [ # Substages of an operation or a stage.
180 # Object with schema name: OperationProgress
181 ],
182 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
183 # Unset for single-stage operations.
184 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
185 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -0700186 &quot;metrics&quot;: [ # Progress metric bundle, for example:
187 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
188 # {name: &quot;nodes total&quot;, int_value: 32}]
189 # or
190 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
191 # {name: &quot;progress scale&quot;, double_value: 1.0}]
192 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kim65020912020-05-20 12:08:20 -0700193 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700194 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700195 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
196 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700197 },
198 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700199 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700200 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
201 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
202 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
203 # or
204 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
205 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700206 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
207 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
208 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700209 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
210 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -0700211 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700212 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
213 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
214 { # StatusCondition describes why a cluster or a node pool has a certain status
215 # (e.g., ERROR or DEGRADED).
216 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
217 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
218 },
219 ],
220 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
221 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
222 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
223 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
224 { # StatusCondition describes why a cluster or a node pool has a certain status
225 # (e.g., ERROR or DEGRADED).
226 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
227 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
228 },
229 ],
230 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
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 Kimd059ad82020-07-22 17:02:09 -0700258 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
259 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
260 # cluster resides. This field has been deprecated and replaced by the parent
261 # field.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700262 &quot;parent&quot;: &quot;A String&quot;, # The parent (project and location) where the cluster will be created.
263 # Specified in the format `projects/*/locations/*`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700264 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
265 # number](https://support.google.com/cloud/answer/6158840).
266 # This field has been deprecated and replaced by the parent field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700267 &quot;cluster&quot;: { # A Google Kubernetes Engine cluster. # Required. A [cluster
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700268 # resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters)
Bu Sun Kim65020912020-05-20 12:08:20 -0700269 &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.
270 # cluster, enabling additional functionality.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700271 &quot;configConnectorConfig&quot;: { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes
272 # extension to manage hosted GCP services through the Kubernetes API
273 &quot;enabled&quot;: True or False, # Whether Cloud Connector is enabled for this cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -0700274 },
275 &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.
276 # enabled at cluster creation time.
277 &quot;enabled&quot;: True or False, # Whether the Compute Engine PD CSI driver is enabled for this cluster.
278 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700279 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
280 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700281 },
282 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
283 # is enabled or not on the Master, it does not track whether network policy
284 # is enabled for the nodes.
285 # is enabled or not on the Master, it does not track whether network policy
286 # is enabled for the nodes.
287 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
288 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700289 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
290 # This addon is deprecated, and will be disabled in 1.15. It is recommended
291 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
292 # workloads and applications. For more information, see:
293 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
294 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700295 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700296 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
297 # makes it easy to set up HTTP load balancers for services in a cluster.
298 # which makes it easy to set up HTTP load balancers for services in a cluster.
299 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
300 # When enabled, it runs a small pod in the cluster that manages the load
301 # balancers.
302 },
303 &quot;istioConfig&quot;: { # Configuration options for Istio addon. # Configuration for Istio, an open platform to connect, manage, and secure
304 # microservices.
305 &quot;disabled&quot;: True or False, # Whether Istio is enabled for this cluster.
306 &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 -0700307 },
308 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
309 # increases or decreases the number of replica pods a replication controller
310 # has based on the resource usage of the existing pods.
311 # increases or decreases the number of replica pods a replication controller
312 # has based on the resource usage of the existing pods.
313 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
314 # When enabled, it ensures that metrics are collected into Stackdriver
315 # Monitoring.
Bu Sun Kim65020912020-05-20 12:08:20 -0700316 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700317 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be
318 # enabled in order to enable Cloud Run addon. This option can only be enabled
319 # at cluster creation time.
320 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
321 },
322 &quot;kalmConfig&quot;: { # Configuration options for the KALM addon. # Configuration for the KALM addon, which manages the lifecycle of k8s
323 # applications.
324 &quot;enabled&quot;: True or False, # Whether KALM is enabled for this cluster.
325 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700326 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700327 &quot;createTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster was created, in
328 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
329 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # The IP address range of the container pods in this cluster, in
330 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
331 # notation (e.g. `10.96.0.0/14`). Leave blank to have
332 # one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
333 &quot;legacyAbac&quot;: { # Configuration for the legacy Attribute Based Access Control authorization # Configuration for the legacy ABAC authorization mode.
334 # mode.
335 &quot;enabled&quot;: True or False, # Whether the ABAC authorizer is enabled for this cluster. When enabled,
336 # identities in the system, including service accounts, nodes, and
337 # controllers, will have statically granted permissions beyond those
338 # provided by the RBAC configuration or IAM.
339 },
340 &quot;binaryAuthorization&quot;: { # Configuration for Binary Authorization. # Configuration for Binary Authorization.
341 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
342 # images will be validated by Google Binauthz.
343 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700344 &quot;currentNodeVersion&quot;: &quot;A String&quot;, # [Output only] Deprecated, use
345 # [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools)
346 # instead. The current version of the node software components.
347 # If they are currently at multiple versions because they&#x27;re in the process
348 # of being upgraded, this reflects the minimum version of all nodes.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700349 &quot;currentNodeCount&quot;: 42, # [Output only] The number of nodes currently in the cluster. Deprecated.
350 # Call Kubernetes API directly to retrieve node information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700351 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the cluster. # Configuration for cluster IP allocation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700352 &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 -0700353 # will be automatically chosen with the default size.
354 #
355 # This field is only applicable when `use_ip_aliases` is true.
356 #
357 # Set to blank to have a range chosen with the default size.
358 #
359 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
360 # netmask.
361 #
362 # Set to a
363 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
364 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
365 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
366 # to use.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700367 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use services_ipv4_cidr_block.
Bu Sun Kim65020912020-05-20 12:08:20 -0700368 &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 -0700369 # range will be automatically chosen with the default size.
370 #
371 # This field is only applicable when `use_ip_aliases` is true.
372 #
373 # If unspecified, the range will use the default size.
374 #
375 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
376 # netmask.
377 #
378 # Set to a
379 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
380 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
381 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
382 # to use.
Dan O'Mearadd494642020-05-01 07:42:23 -0700383 # This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700384 &quot;useIpAliases&quot;: True or False, # Whether alias IPs will be used for pod IPs in the cluster.
385 # This is used in conjunction with use_routes. It cannot
386 # be true if use_routes is true. If both use_ip_aliases and use_routes are
387 # false, then the server picks the default IP allocation mode
388 &quot;nodeIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use node_ipv4_cidr_block.
389 &quot;createSubnetwork&quot;: True or False, # Whether a new subnetwork will be created automatically for the cluster.
390 #
391 # This field is only applicable when `use_ip_aliases` is true.
392 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used for the cluster CIDR
393 # block. The secondary range will be used for pod IP
394 # addresses. This must be an existing secondary range associated
395 # with the cluster subnetwork.
396 #
397 # This field is only applicable with use_ip_aliases and
398 # create_subnetwork is false.
Bu Sun Kim65020912020-05-20 12:08:20 -0700399 &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 -0700400 # CIDR block. The secondary range will be used for service
401 # ClusterIPs. This must be an existing secondary range associated
402 # with the cluster subnetwork.
403 #
404 # This field is only applicable with use_ip_aliases and
405 # create_subnetwork is false.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700406 &quot;useRoutes&quot;: True or False, # Whether routes will be used for pod IPs in the cluster.
407 # This is used in conjunction with use_ip_aliases. It cannot be true if
408 # use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
409 # then the server picks the default IP allocation mode
Bu Sun Kim65020912020-05-20 12:08:20 -0700410 &quot;subnetworkName&quot;: &quot;A String&quot;, # A custom subnetwork name to be used if `create_subnetwork` is true. If
411 # this field is empty, then an automatic name will be chosen for the new
412 # subnetwork.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700413 &quot;allowRouteOverlap&quot;: True or False, # If true, allow allocation of cluster CIDR ranges that overlap with certain
414 # kinds of network routes. By default we do not allow cluster CIDR ranges to
415 # intersect with any user declared routes. With allow_route_overlap == true,
416 # we allow overlapping with CIDR ranges that are larger than the cluster CIDR
417 # range.
418 #
419 # If this field is set to true, then cluster and services CIDRs must be
420 # fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
421 # 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
422 # `services_ipv4_cidr_block` must be fully-specified.
423 # 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
424 # fully-specified.
Bu Sun Kim65020912020-05-20 12:08:20 -0700425 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use cluster_ipv4_cidr_block.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700426 &quot;nodeIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the instance IPs in this cluster.
427 #
428 # This is applicable only if `create_subnetwork` is true.
429 #
430 # Set to blank to have a range chosen with the default size.
431 #
432 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
433 # netmask.
434 #
435 # Set to a
436 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
437 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
438 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
439 # to use.
440 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range for the cluster pod IPs. If this field is set, then
441 # `cluster.cluster_ipv4_cidr` must be left blank.
442 #
443 # This field is only applicable when `use_ip_aliases` is true.
444 #
445 # Set to blank to have a range chosen with the default size.
446 #
447 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
448 # netmask.
449 #
450 # Set to a
451 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
452 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
453 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
454 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700455 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700456 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
457 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
458 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
459 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
460 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700461 &quot;privateClusterConfig&quot;: { # Configuration options for private clusters. # Configuration for private cluster.
462 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
463 # given only RFC 1918 private addresses and communicate with the master via
464 # private networking.
465 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
466 # range will be used for assigning internal IP addresses to the master or
467 # set of masters, as well as the ILB VIP. This range must not overlap with
468 # any other ranges in use within the cluster&#x27;s network.
469 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
470 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
471 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
472 &quot;masterGlobalAccessConfig&quot;: { # Configuration for controlling master global access settings. # Controls master global access settings.
473 &quot;enabled&quot;: True or False, # Whenever master is accessible globally or not.
Bu Sun Kim65020912020-05-20 12:08:20 -0700474 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700475 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
476 },
477 &quot;enableTpu&quot;: True or False, # Enable the ability to use Cloud TPUs in this cluster.
478 # This field is deprecated, use tpu_config.enabled instead.
479 &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
480 # policies.
481 # policies.
482 &quot;identityNamespace&quot;: &quot;A String&quot;, # IAM Identity Namespace to attach all Kubernetes Service Accounts to.
483 &quot;identityProvider&quot;: &quot;A String&quot;, # identity provider is the third party identity provider.
484 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
485 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700486 &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 -0700487 # Currently available options:
488 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700489 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -0700490 # service with a Kubernetes-native resource model
491 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
492 # longer available as of GKE 1.15).
493 # * `none` - No metrics will be exported from the cluster.
494 #
495 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
496 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700497 &quot;networkConfig&quot;: { # NetworkConfig reports the relative names of network &amp; subnetwork. # Configuration for cluster networking.
498 &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
499 # will be disabled when default_snat_status is disabled. When disabled is set
500 # to false, default IP masquerade rules will be applied to the nodes to
501 # prevent sNAT on cluster internal traffic.
502 # be disabled on the cluster.
503 &quot;disabled&quot;: True or False, # Disables cluster default sNAT rules.
504 },
505 &quot;enableIntraNodeVisibility&quot;: True or False, # Whether Intra-node visibility is enabled for this cluster.
506 # This makes same node pod to pod traffic visible for VPC network.
507 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
508 # [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
509 # cluster is connected. Example:
510 # projects/my-project/regions/us-central1/subnetworks/my-subnet
511 &quot;network&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
512 # network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
513 # to which the cluster is connected. Example:
514 # projects/my-project/global/networks/my-network
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700515 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700516 &quot;shieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
517 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700518 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700519 &quot;masterAuth&quot;: { # The authentication information for accessing the master endpoint. # The authentication information for accessing the master endpoint.
520 # If unspecified, the defaults are used:
521 # For clusters before v1.12, if master_auth is unspecified, `username` will
522 # be set to &quot;admin&quot;, a random password will be generated, and a client
523 # certificate will be issued.
524 # Authentication can be done using HTTP basic auth or using client
525 # certificates.
526 &quot;clusterCaCertificate&quot;: &quot;A String&quot;,
527 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
528 # For clusters v1.6.0 and later, basic authentication can be disabled by
529 # leaving username unspecified (or setting it to the empty string).
530 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
531 # authenticate to the cluster endpoint.
532 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint.
533 # Because the master endpoint is open to the Internet, you should create a
534 # strong password. If a password is provided for cluster creation, username
535 # must be non-empty.
536 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For
537 # clusters before v1.12, if no configuration is specified, a client
538 # certificate is issued.
539 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
540 },
541 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
542 # to the cluster endpoint.
Bu Sun Kim65020912020-05-20 12:08:20 -0700543 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700544 &quot;initialClusterVersion&quot;: &quot;A String&quot;, # The initial Kubernetes version for this cluster. Valid versions are those
545 # found in validMasterVersions returned by getServerConfig. The version can
546 # be upgraded over time; such upgrades are reflected in
547 # currentMasterVersion and currentNodeVersion.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700548 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700549 # Users may specify either explicit versions offered by
550 # Kubernetes Engine or version aliases, which have the following behavior:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700551 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700552 # - &quot;latest&quot;: picks the highest valid Kubernetes version
553 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
554 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
555 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
556 # - &quot;&quot;,&quot;-&quot;: picks the default Kubernetes version
557 &quot;privateCluster&quot;: True or False, # If this is a private cluster setup. Private clusters are clusters that, by
558 # default have no external IP addresses on the nodes and where nodes and the
559 # master communicate over private IP addresses.
560 # This field is deprecated, use private_cluster_config.enable_private_nodes
561 # instead.
Bu Sun Kim65020912020-05-20 12:08:20 -0700562 &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 -0700563 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -0700564 # &quot;node_pool&quot; object, since this configuration (along with the
565 # &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 -0700566 # auto-generated name. Do not use this and a node_pool at the same time.
567 # For responses, this field will be populated with the node configuration of
568 # the first node pool. (For configuration of each node pool, see
569 # `node_pool.config`)
570 #
571 # If unspecified, the defaults are used.
572 # This field is deprecated, use node_pool.config instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700573 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
574 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700575 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700576 # The following scopes are recommended, but not required, and by default are
577 # not included:
578 #
579 # * `https://www.googleapis.com/auth/compute` is required for mounting
580 # persistent storage on your nodes.
581 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
582 # communicating with **gcr.io**
583 # (the [Google Container
584 # Registry](https://cloud.google.com/container-registry/)).
585 #
586 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
587 # Monitoring are enabled, in which case their required scopes will be added.
588 &quot;A String&quot;,
589 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700590 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
591 #
592 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
593 # in length. These are reflected as part of a URL in the metadata server.
594 # Additionally, to avoid ambiguity, keys must not conflict with any other
595 # metadata keys for the project or be one of the reserved keys:
596 # &quot;cluster-location&quot;
597 # &quot;cluster-name&quot;
598 # &quot;cluster-uid&quot;
599 # &quot;configure-sh&quot;
600 # &quot;containerd-configure-sh&quot;
601 # &quot;enable-oslogin&quot;
602 # &quot;gci-ensure-gke-docker&quot;
603 # &quot;gci-metrics-enabled&quot;
604 # &quot;gci-update-strategy&quot;
605 # &quot;instance-template&quot;
606 # &quot;kube-env&quot;
607 # &quot;startup-script&quot;
608 # &quot;user-data&quot;
609 # &quot;disable-address-manager&quot;
610 # &quot;windows-startup-script-ps1&quot;
611 # &quot;common-psm1&quot;
612 # &quot;k8s-node-setup-psm1&quot;
613 # &quot;install-ssh-psm1&quot;
614 # &quot;user-profile-psm1&quot;
615 # &quot;serial-port-logging-enable&quot;
616 # Values are free-form strings, and only have meaning as interpreted by
617 # the image running in the instance. The only restriction placed on them is
618 # that each value&#x27;s size must be less than or equal to 32 KB.
619 #
620 # The total size of all keys and values must be less than 512 KB.
621 &quot;a_key&quot;: &quot;A String&quot;,
622 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700623 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
624 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
625 # `n1-standard-1`).
626 #
627 # If unspecified, the default machine type is
628 # `n1-standard-1`.
629 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this
630 # pool to run on the specified node group. This is useful for running
631 # workloads on [sole tenant
632 # nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
633 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
634 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
635 #
636 # Secure Boot helps ensure that the system only runs authentic software by
637 # verifying the digital signature of all boot components, and halting the
638 # boot process if signature verification fails.
639 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
640 #
641 # Enables monitoring and attestation of the boot integrity of the instance.
642 # The attestation is performed against the integrity policy baseline. This
643 # baseline is initially derived from the implicitly trusted boot image when
644 # the instance is created.
Bu Sun Kim65020912020-05-20 12:08:20 -0700645 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700646 &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 -0700647 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -0700648 # Account is specified, the &quot;default&quot; service account is used.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700649 &quot;linuxNodeConfig&quot;: { # Parameters that can be configured on Linux nodes. # Parameters that can be configured on Linux nodes.
650 &quot;sysctls&quot;: { # The Linux kernel parameters to be applied to the nodes and all pods running
651 # on the nodes.
652 #
653 # The following parameters are supported.
654 #
655 # net.core.netdev_max_backlog
656 # net.core.rmem_max
657 # net.core.wmem_default
658 # net.core.wmem_max
659 # net.core.optmem_max
660 # net.core.somaxconn
661 # net.ipv4.tcp_rmem
662 # net.ipv4.tcp_wmem
663 # net.ipv4.tcp_tw_reuse
664 &quot;a_key&quot;: &quot;A String&quot;,
665 },
666 },
667 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
668 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
669 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
670 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700671 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700672 #
673 # For more information, including usage and the valid values, see:
674 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
675 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
676 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
677 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700678 # See
679 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
680 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -0700681 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700682 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700683 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700684 },
685 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700686 &quot;kubeletConfig&quot;: { # Node kubelet configs. # Node kubelet configs.
687 &quot;cpuCfsQuotaPeriod&quot;: &quot;A String&quot;, # Set the CPU CFS quota period value &#x27;cpu.cfs_period_us&#x27;.
688 #
689 # The string must be a sequence of decimal numbers, each with optional
690 # fraction and a unit suffix, such as &quot;300ms&quot;.
691 # Valid time units are &quot;ns&quot;, &quot;us&quot; (or &quot;µs&quot;), &quot;ms&quot;, &quot;s&quot;, &quot;m&quot;, &quot;h&quot;.
692 # The value must be a positive duration.
693 &quot;cpuCfsQuota&quot;: True or False, # Enable CPU CFS quota enforcement for containers that specify CPU limits.
694 #
695 # If this option is enabled, kubelet uses CFS quota
696 # (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
697 # enforce container CPU limits. Otherwise, CPU limits will not be enforced at
698 # all.
699 #
700 # Disable this option to mitigate CPU throttling problems while still having
701 # your pods to be in Guaranteed QoS class by specifying the CPU limits.
702 #
703 # The default value is &#x27;true&#x27; if unspecified.
704 &quot;cpuManagerPolicy&quot;: &quot;A String&quot;, # Control the CPU management policy on the node.
705 # See
706 # https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
707 #
708 # The following values are allowed.
709 # - &quot;none&quot;: the default, which represents the existing scheduling behavior.
710 # - &quot;static&quot;: allows pods with certain resource characteristics to be
711 # granted increased CPU affinity and exclusivity on the node.
712 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700713 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
714 # These will added in addition to any default label(s) that
715 # Kubernetes may apply to the node.
716 # In case of conflict in label keys, the applied set may differ depending on
717 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
718 # and conflicts should be avoided.
719 # For more information, including usage and the valid values, see:
720 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
721 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700722 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700723 &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;)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700724 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700725 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700726 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
727 # workloads on the node pool.
728 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
729 # workloads running on the node.
730 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
731 # on the node pool.
732 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700733 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
734 # The Customer Managed Encryption Key used to encrypt the boot disk attached
735 # to each node in the node pool. This should be of the form
736 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
737 # For more information about protecting resources with Cloud KMS Keys please
738 # see:
739 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700740 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
741 # The smallest allowed disk size is 10GB.
742 #
743 # If unspecified, the default disk size is 100GB.
744 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
745 # the specified [Zonal Compute
746 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
747 # to this node pool.
748 # is the configuration of desired reservation which instances could take
749 # capacity from.
750 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
751 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
752 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
753 # the key and specify the name of your reservation as its value.
754 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
755 &quot;A String&quot;,
756 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700757 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700758 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
759 # https://cloud.google.com/compute/docs/instances/preemptible for more
760 # inforamtion about preemptible VM instances.
761 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
762 # scheduled on the specified or newer CPU platform. Applicable values are the
763 # friendly names of CPU platforms, such as
764 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
765 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
766 # information, read [how to specify min CPU
767 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
768 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
769 # valid sources or targets for network firewalls and are specified by
770 # the client during cluster or node pool creation. Each tag within the list
771 # must comply with RFC1035.
772 &quot;A String&quot;,
773 ],
774 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
775 # See https://cloud.google.com/compute/docs/gpus for more information about
776 # support for GPUs.
777 { # AcceleratorConfig represents a Hardware Accelerator request.
778 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
779 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
780 # [here](https://cloud.google.com/compute/docs/gpus)
781 },
782 ],
783 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
784 #
785 # The limit for this value is dependent upon the maximum number of
786 # disks available on a machine per zone. See:
787 # https://cloud.google.com/compute/docs/disks/local-ssd
788 # for more information.
789 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
790 # the latest version of it will be used.
Bu Sun Kim65020912020-05-20 12:08:20 -0700791 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700792 &quot;currentMasterVersion&quot;: &quot;A String&quot;, # [Output only] The current software version of the master endpoint.
793 &quot;masterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The configuration options for master authorized networks feature.
794 # master authorized networks will disallow all external traffic to access
795 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
796 # Google Compute Engine Public IPs and Google Prod IPs.
797 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 10 external networks that could access
798 # Kubernetes master through HTTPS.
799 { # CidrBlock contains an optional name and one CIDR block.
800 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
801 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
802 },
803 ],
804 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
805 },
806 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Kubernetes services in
807 # this cluster, in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700808 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700809 # notation (e.g. `1.2.3.4/29`). Service addresses are
810 # typically put in the last `/16` from the container CIDR.
811 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP prefix in CIDR notation to use for the hosted master network.
812 # This prefix will be used for assigning private IP addresses to the
813 # master or set of masters, as well as the ILB VIP.
814 # This field is deprecated, use
815 # private_cluster_config.master_ipv4_cidr_block instead.
Bu Sun Kim65020912020-05-20 12:08:20 -0700816 &quot;autoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
817 # required by Cluster Autoscaler to automatically adjust
818 # the size of the cluster and create/delete
819 # node pools based on the current needs.
Bu Sun Kim65020912020-05-20 12:08:20 -0700820 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
821 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
822 # created by NAP.
823 # by NAP.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700824 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
Bu Sun Kim65020912020-05-20 12:08:20 -0700825 # disruption caused by an upgrade.
826 #
827 # maxUnavailable controls the number of nodes that can be simultaneously
828 # unavailable.
829 #
830 # maxSurge controls the number of additional nodes that can be added to the
831 # node pool temporarily for the time of the upgrade to increase the number of
832 # available nodes.
833 #
834 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
835 # nodes are being upgraded at the same time).
836 #
837 # Note: upgrades inevitably introduce some disruption since workloads need to
838 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
839 # this holds true. (Disruption stays within the limits of
840 # PodDisruptionBudget, if it is configured.)
841 #
842 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
843 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
844 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
845 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
846 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700847 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
848 # the upgrade process. A node is considered available if its status is
849 # Ready.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700850 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
851 # of the node pool during the upgrade process.
Bu Sun Kim65020912020-05-20 12:08:20 -0700852 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700853 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
854 # Specify the email address of the Service Account; otherwise, if no Service
855 # Account is specified, the &quot;default&quot; service account is used.
856 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
857 # node VMs under the &quot;default&quot; service account.
858 #
859 # The following scopes are recommended, but not required, and by default are
860 # not included:
861 #
862 # * `https://www.googleapis.com/auth/compute` is required for mounting
863 # persistent storage on your nodes.
864 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
865 # communicating with **gcr.io**
866 # (the [Google Container
867 # Registry](https://cloud.google.com/container-registry/)).
868 #
869 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
870 # Monitoring are enabled, in which case their required scopes will be added.
871 &quot;A String&quot;,
872 ],
873 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
874 # scheduled on the specified or newer CPU platform. Applicable values are the
875 # friendly names of CPU platforms, such as
876 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
877 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
878 # information, read [how to specify min CPU
879 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
880 # To unset the min cpu platform field pass &quot;automatic&quot;
881 # as field value.
882 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
883 # node pool.
884 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
885 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
886 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
887 # the Auto Upgrades will proceed.
888 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
889 # with the description of the upgrade.
890 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
891 # with the approximate start time for the upgrades, in
892 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
893 },
894 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700895 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700896 &quot;autoscalingProfile&quot;: &quot;A String&quot;, # Defines autoscaling behaviour.
897 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
898 # amount of resources in the cluster.
899 { # Contains information about amount of some resource in the cluster.
900 # For memory, value should be in GB.
901 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
902 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
903 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
904 },
905 ],
906 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
907 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
908 # NodePool&#x27;s nodes can be created by NAP.
909 &quot;A String&quot;,
910 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700911 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700912 &quot;locations&quot;: [ # The list of Google Compute Engine
913 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
914 # cluster&#x27;s nodes should be located.
915 &quot;A String&quot;,
916 ],
917 &quot;conditions&quot;: [ # Which conditions caused the current cluster state.
918 { # StatusCondition describes why a cluster or a node pool has a certain status
919 # (e.g., ERROR or DEGRADED).
920 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
921 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
922 },
923 ],
924 &quot;loggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
925 # Currently available options:
926 #
927 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
928 # service with a Kubernetes-native resource model
929 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
930 # available as of GKE 1.15).
931 # * `none` - no logs will be exported from the cluster.
932 #
933 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
934 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
935 &quot;enableKubernetesAlpha&quot;: True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha
936 # API groups (e.g. v1beta1) and features that may not be production ready in
937 # the kubernetes version of the master and nodes.
938 # The cluster has no SLA for uptime and master/node upgrades are disabled.
939 # Alpha enabled clusters are automatically deleted thirty days after
940 # creation.
941 &quot;instanceGroupUrls&quot;: [ # Deprecated. Use node_pools.instance_group_urls.
942 &quot;A String&quot;,
943 ],
944 &quot;name&quot;: &quot;A String&quot;, # The name of this cluster. The name must be unique within this project
945 # and location (e.g. zone or region), and can be up to 40 characters with
946 # the following restrictions:
947 #
948 # * Lowercase letters, numbers, and hyphens only.
949 # * Must start with a letter.
950 # * Must end with a number or a letter.
951 &quot;master&quot;: { # Master is the configuration for components on master. # Configuration for master components.
952 },
953 &quot;endpoint&quot;: &quot;A String&quot;, # [Output only] The IP address of this cluster&#x27;s master endpoint.
954 # The endpoint can be accessed from the internet at
955 # `https://username:password@endpoint/`.
956 #
957 # See the `masterAuth` property of this resource for username and
958 # password information.
959 &quot;resourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # Configuration for exporting resource usages. Resource usage export is
960 # disabled when this config unspecified.
961 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
962 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
963 # second BigQuery table will be created to hold resource consumption
964 # records.
965 },
966 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
967 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
968 },
969 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
970 # daemonset will be created in the cluster to meter network egress traffic.
971 },
972 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
973 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
974 # or
975 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
976 # in which the cluster resides.
977 &quot;authenticatorGroupsConfig&quot;: { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
978 &quot;securityGroup&quot;: &quot;A String&quot;, # The name of the security group-of-groups to be used. Only relevant
979 # if enabled = true.
980 &quot;enabled&quot;: True or False, # Whether this cluster should return group membership lookups
981 # during authentication using a group of security groups.
982 },
983 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
984 # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
985 # the cluster is connected. On output this shows the subnetwork ID instead of
986 # the name.
987 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
988 &quot;window&quot;: { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
989 &quot;recurringWindow&quot;: { # Represents an arbitrary window of time that recurs. # RecurringWindow specifies some number of recurring time periods for
990 # maintenance to occur. The time windows may be overlapping. If no
991 # maintenance windows are set, maintenance can occur at any time.
992 &quot;recurrence&quot;: &quot;A String&quot;, # An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
993 # this window reccurs. They go on for the span of time between the start and
994 # end time.
995 #
996 # For example, to have something repeat every weekday, you&#x27;d use:
997 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
998 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
999 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
1000 # For the first weekend of every month:
1001 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
1002 # This specifies how frequently the window starts. Eg, if you wanted to have
1003 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
1004 # &lt;code&gt;
1005 # start time = 2019-01-01T09:00:00-0400
1006 # end time = 2019-01-01T17:00:00-0400
1007 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
1008 # &lt;/code&gt;
1009 # Windows can span multiple days. Eg, to make the window encompass every
1010 # weekend from midnight Saturday till the last minute of Sunday UTC:
1011 # &lt;code&gt;
1012 # start time = 2019-01-05T00:00:00Z
1013 # end time = 2019-01-07T23:59:00Z
1014 # recurrence = FREQ=WEEKLY;BYDAY=SA
1015 # &lt;/code&gt;
1016 # Note the start and end time&#x27;s specific dates are largely arbitrary except
1017 # to specify duration of the window and when it first starts.
1018 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
1019 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
1020 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
1021 # start time.
1022 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
1023 },
1024 },
1025 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
1026 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
1027 # It must be in format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
1028 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
1029 # smallest possible in the given scenario.
1030 },
1031 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
1032 # occur in these windows.
1033 &quot;a_key&quot;: { # Represents an arbitrary window of time.
1034 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
1035 # start time.
1036 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
1037 },
1038 },
1039 },
1040 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
1041 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
1042 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
1043 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
1044 # resource version and include it with requests to set the policy.
1045 },
1046 &quot;tpuConfig&quot;: { # Configuration for Cloud TPU. # Configuration for Cloud TPU support;
1047 &quot;ipv4CidrBlock&quot;: &quot;A String&quot;, # IPv4 CIDR block reserved for Cloud TPU in the VPC.
1048 &quot;useServiceNetworking&quot;: True or False, # Whether to use service networking for Cloud TPU or not.
1049 &quot;enabled&quot;: True or False, # Whether Cloud TPU integration is enabled or not.
1050 },
1051 &quot;nodePools&quot;: [ # The node pools associated with this cluster.
1052 # This field should not be set if &quot;node_config&quot; or &quot;initial_node_count&quot; are
1053 # specified.
1054 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
1055 # Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and
1056 # specification, under the control of the cluster master. They may have a set
1057 # of Kubernetes labels applied to them, which may be used to reference them
1058 # during pod scheduling. They may also be resized up or down, to accommodate
1059 # the workload.
1060 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
1061 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
1062 # disruption caused by an upgrade.
1063 #
1064 # maxUnavailable controls the number of nodes that can be simultaneously
1065 # unavailable.
1066 #
1067 # maxSurge controls the number of additional nodes that can be added to the
1068 # node pool temporarily for the time of the upgrade to increase the number of
1069 # available nodes.
1070 #
1071 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
1072 # nodes are being upgraded at the same time).
1073 #
1074 # Note: upgrades inevitably introduce some disruption since workloads need to
1075 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
1076 # this holds true. (Disruption stays within the limits of
1077 # PodDisruptionBudget, if it is configured.)
1078 #
1079 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
1080 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
1081 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
1082 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
1083 # there are always at least 4 nodes available.
1084 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
1085 # the upgrade process. A node is considered available if its status is
1086 # Ready.
1087 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
1088 # of the node pool during the upgrade process.
1089 },
1090 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
1091 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
1092 # associated with this node pool.
1093 &quot;A String&quot;,
1094 ],
1095 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
1096 # only if a valid configuration is present.
1097 # adjust the size of the node pool to the current cluster usage.
1098 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
1099 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
1100 # max_node_count.
1101 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
1102 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
1103 # has to enough quota to scale up the cluster.
1104 },
1105 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
1106 # Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
1107 # is sufficient for this number of instances. You must also have available
1108 # firewall and routes quota.
1109 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
1110 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
1111 # node VMs under the &quot;default&quot; service account.
1112 #
1113 # The following scopes are recommended, but not required, and by default are
1114 # not included:
1115 #
1116 # * `https://www.googleapis.com/auth/compute` is required for mounting
1117 # persistent storage on your nodes.
1118 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
1119 # communicating with **gcr.io**
1120 # (the [Google Container
1121 # Registry](https://cloud.google.com/container-registry/)).
1122 #
1123 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
1124 # Monitoring are enabled, in which case their required scopes will be added.
1125 &quot;A String&quot;,
1126 ],
1127 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
1128 #
1129 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
1130 # in length. These are reflected as part of a URL in the metadata server.
1131 # Additionally, to avoid ambiguity, keys must not conflict with any other
1132 # metadata keys for the project or be one of the reserved keys:
1133 # &quot;cluster-location&quot;
1134 # &quot;cluster-name&quot;
1135 # &quot;cluster-uid&quot;
1136 # &quot;configure-sh&quot;
1137 # &quot;containerd-configure-sh&quot;
1138 # &quot;enable-oslogin&quot;
1139 # &quot;gci-ensure-gke-docker&quot;
1140 # &quot;gci-metrics-enabled&quot;
1141 # &quot;gci-update-strategy&quot;
1142 # &quot;instance-template&quot;
1143 # &quot;kube-env&quot;
1144 # &quot;startup-script&quot;
1145 # &quot;user-data&quot;
1146 # &quot;disable-address-manager&quot;
1147 # &quot;windows-startup-script-ps1&quot;
1148 # &quot;common-psm1&quot;
1149 # &quot;k8s-node-setup-psm1&quot;
1150 # &quot;install-ssh-psm1&quot;
1151 # &quot;user-profile-psm1&quot;
1152 # &quot;serial-port-logging-enable&quot;
1153 # Values are free-form strings, and only have meaning as interpreted by
1154 # the image running in the instance. The only restriction placed on them is
1155 # that each value&#x27;s size must be less than or equal to 32 KB.
1156 #
1157 # The total size of all keys and values must be less than 512 KB.
1158 &quot;a_key&quot;: &quot;A String&quot;,
1159 },
1160 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
1161 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
1162 # `n1-standard-1`).
1163 #
1164 # If unspecified, the default machine type is
1165 # `n1-standard-1`.
1166 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this
1167 # pool to run on the specified node group. This is useful for running
1168 # workloads on [sole tenant
1169 # nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
1170 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
1171 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
1172 #
1173 # Secure Boot helps ensure that the system only runs authentic software by
1174 # verifying the digital signature of all boot components, and halting the
1175 # boot process if signature verification fails.
1176 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
1177 #
1178 # Enables monitoring and attestation of the boot integrity of the instance.
1179 # The attestation is performed against the integrity policy baseline. This
1180 # baseline is initially derived from the implicitly trusted boot image when
1181 # the instance is created.
1182 },
1183 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
1184 # Specify the email address of the Service Account; otherwise, if no Service
1185 # Account is specified, the &quot;default&quot; service account is used.
1186 &quot;linuxNodeConfig&quot;: { # Parameters that can be configured on Linux nodes. # Parameters that can be configured on Linux nodes.
1187 &quot;sysctls&quot;: { # The Linux kernel parameters to be applied to the nodes and all pods running
1188 # on the nodes.
1189 #
1190 # The following parameters are supported.
1191 #
1192 # net.core.netdev_max_backlog
1193 # net.core.rmem_max
1194 # net.core.wmem_default
1195 # net.core.wmem_max
1196 # net.core.optmem_max
1197 # net.core.somaxconn
1198 # net.ipv4.tcp_rmem
1199 # net.ipv4.tcp_wmem
1200 # net.ipv4.tcp_tw_reuse
1201 &quot;a_key&quot;: &quot;A String&quot;,
1202 },
1203 },
1204 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
1205 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
1206 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
1207 },
1208 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
1209 #
1210 # For more information, including usage and the valid values, see:
1211 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
1212 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
1213 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
1214 #
1215 # See
1216 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
1217 # for more information, including usage and the valid values.
1218 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
1219 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
1220 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
1221 },
1222 ],
1223 &quot;kubeletConfig&quot;: { # Node kubelet configs. # Node kubelet configs.
1224 &quot;cpuCfsQuotaPeriod&quot;: &quot;A String&quot;, # Set the CPU CFS quota period value &#x27;cpu.cfs_period_us&#x27;.
1225 #
1226 # The string must be a sequence of decimal numbers, each with optional
1227 # fraction and a unit suffix, such as &quot;300ms&quot;.
1228 # Valid time units are &quot;ns&quot;, &quot;us&quot; (or &quot;µs&quot;), &quot;ms&quot;, &quot;s&quot;, &quot;m&quot;, &quot;h&quot;.
1229 # The value must be a positive duration.
1230 &quot;cpuCfsQuota&quot;: True or False, # Enable CPU CFS quota enforcement for containers that specify CPU limits.
1231 #
1232 # If this option is enabled, kubelet uses CFS quota
1233 # (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
1234 # enforce container CPU limits. Otherwise, CPU limits will not be enforced at
1235 # all.
1236 #
1237 # Disable this option to mitigate CPU throttling problems while still having
1238 # your pods to be in Guaranteed QoS class by specifying the CPU limits.
1239 #
1240 # The default value is &#x27;true&#x27; if unspecified.
1241 &quot;cpuManagerPolicy&quot;: &quot;A String&quot;, # Control the CPU management policy on the node.
1242 # See
1243 # https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
1244 #
1245 # The following values are allowed.
1246 # - &quot;none&quot;: the default, which represents the existing scheduling behavior.
1247 # - &quot;static&quot;: allows pods with certain resource characteristics to be
1248 # granted increased CPU affinity and exclusivity on the node.
1249 },
1250 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
1251 # These will added in addition to any default label(s) that
1252 # Kubernetes may apply to the node.
1253 # In case of conflict in label keys, the applied set may differ depending on
1254 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
1255 # and conflicts should be avoided.
1256 # For more information, including usage and the valid values, see:
1257 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1258 &quot;a_key&quot;: &quot;A String&quot;,
1259 },
1260 &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;)
1261 #
1262 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
1263 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
1264 # workloads on the node pool.
1265 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
1266 # workloads running on the node.
1267 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
1268 # on the node pool.
1269 },
1270 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
1271 # The Customer Managed Encryption Key used to encrypt the boot disk attached
1272 # to each node in the node pool. This should be of the form
1273 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
1274 # For more information about protecting resources with Cloud KMS Keys please
1275 # see:
1276 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
1277 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
1278 # The smallest allowed disk size is 10GB.
1279 #
1280 # If unspecified, the default disk size is 100GB.
1281 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
1282 # the specified [Zonal Compute
1283 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
1284 # to this node pool.
1285 # is the configuration of desired reservation which instances could take
1286 # capacity from.
1287 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
1288 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
1289 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
1290 # the key and specify the name of your reservation as its value.
1291 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
1292 &quot;A String&quot;,
1293 ],
1294 },
1295 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
1296 # https://cloud.google.com/compute/docs/instances/preemptible for more
1297 # inforamtion about preemptible VM instances.
1298 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
1299 # scheduled on the specified or newer CPU platform. Applicable values are the
1300 # friendly names of CPU platforms, such as
1301 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
1302 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
1303 # information, read [how to specify min CPU
1304 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
1305 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
1306 # valid sources or targets for network firewalls and are specified by
1307 # the client during cluster or node pool creation. Each tag within the list
1308 # must comply with RFC1035.
1309 &quot;A String&quot;,
1310 ],
1311 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
1312 # See https://cloud.google.com/compute/docs/gpus for more information about
1313 # support for GPUs.
1314 { # AcceleratorConfig represents a Hardware Accelerator request.
1315 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
1316 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
1317 # [here](https://cloud.google.com/compute/docs/gpus)
1318 },
1319 ],
1320 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
1321 #
1322 # The limit for this value is dependent upon the maximum number of
1323 # disks available on a machine per zone. See:
1324 # https://cloud.google.com/compute/docs/disks/local-ssd
1325 # for more information.
1326 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
1327 # the latest version of it will be used.
1328 },
1329 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
1330 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
1331 # node pool.
1332 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
1333 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
1334 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
1335 # the Auto Upgrades will proceed.
1336 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1337 # with the description of the upgrade.
1338 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
1339 # with the approximate start time for the upgrades, in
1340 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1341 },
1342 },
1343 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
1344 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
1345 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
1346 # simultaneously on a node in the node pool.
1347 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
1348 },
1349 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
1350 # node pool instance, if available.
1351 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
1352 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
1353 { # StatusCondition describes why a cluster or a node pool has a certain status
1354 # (e.g., ERROR or DEGRADED).
1355 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1356 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1357 },
1358 ],
1359 &quot;locations&quot;: [ # The list of Google Compute Engine
1360 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
1361 # NodePool&#x27;s nodes should be located.
1362 &quot;A String&quot;,
1363 ],
1364 },
1365 ],
1366 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
1367 # cluster, if available.
1368 &quot;releaseChannel&quot;: { # ReleaseChannel indicates which release channel a cluster is # Release channel configuration.
1369 # subscribed to. Release channels are arranged in order of risk.
1370 #
1371 # When a cluster is subscribed to a release channel, Google maintains
1372 # both the master version and the node version. Node auto-upgrade
1373 # defaults to true and cannot be disabled.
1374 &quot;channel&quot;: &quot;A String&quot;, # channel specifies which release channel the cluster is subscribed to.
1375 },
1376 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
1377 &quot;defaultMaxPodsConstraint&quot;: { # Constraints applied to pods. # The default constraint on the maximum number of pods that can be run
1378 # simultaneously on a node in the node pool of this cluster. Only honored
1379 # if cluster created with IP Alias support.
1380 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
1381 },
1382 &quot;clusterTelemetry&quot;: { # Telemetry integration for the cluster. # Telemetry integration for the cluster.
1383 &quot;type&quot;: &quot;A String&quot;, # Type of the integration.
1384 },
1385 &quot;status&quot;: &quot;A String&quot;, # [Output only] The current status of this cluster.
1386 &quot;resourceLabels&quot;: { # The resource labels for the cluster to use to annotate any related
1387 # Google Compute Engine resources.
1388 &quot;a_key&quot;: &quot;A String&quot;,
1389 },
1390 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Cloud TPUs in this cluster, in
1391 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1392 # notation (e.g. `1.2.3.4/29`).
Bu Sun Kim65020912020-05-20 12:08:20 -07001393 &quot;initialNodeCount&quot;: 42, # The number of nodes to create in this cluster. You must ensure that your
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001394 # Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
Dan O'Mearadd494642020-05-01 07:42:23 -07001395 # is sufficient for this number of instances. You must also have available
1396 # firewall and routes quota.
1397 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07001398 # &quot;node_pool&quot; object, since this configuration (along with the
1399 # &quot;node_config&quot;) will be used to create a &quot;NodePool&quot; object with an
Dan O'Mearadd494642020-05-01 07:42:23 -07001400 # auto-generated name. Do not use this and a node_pool at the same time.
1401 #
1402 # This field is deprecated, use node_pool.initial_node_count instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001403 &quot;podSecurityPolicyConfig&quot;: { # Configuration for the PodSecurityPolicy feature. # Configuration for the PodSecurityPolicy feature.
1404 &quot;enabled&quot;: True or False, # Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
1405 # must be valid under a PodSecurityPolicy to be created.
1406 },
1407 &quot;description&quot;: &quot;A String&quot;, # An optional description of this cluster.
1408 &quot;databaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
1409 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
1410 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
1411 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
1412 },
1413 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1414 # [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
1415 # to which the cluster is connected. If left unspecified, the `default`
1416 # network will be used. On output this shows the network ID instead of the
1417 # name.
1418 &quot;zone&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
1419 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1420 # cluster resides. This field is deprecated, use location instead.
1421 &quot;verticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
1422 # required by Vertical Pod Autoscaler to automatically adjust
1423 # the resources of pods controlled by it.
1424 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
1425 },
1426 &quot;expireTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster will be automatically
1427 # deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1428 &quot;nodeIpv4CidrSize&quot;: 42, # [Output only] The size of the address space on each node for hosting
1429 # containers. This is provisioned from within the `container_ipv4_cidr`
1430 # range. This field will only be set when cluster is in route-based network
1431 # mode.
1432 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the set of labels for this cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001433 },
1434 }
1435
1436 x__xgafv: string, V1 error format.
1437 Allowed values
1438 1 - v1 error format
1439 2 - v2 error format
1440
1441Returns:
1442 An object of the form:
1443
1444 { # This operation resource represents operations that may have happened or are
1445 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001446 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001447 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Bu Sun Kim65020912020-05-20 12:08:20 -07001448 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001449 &quot;stages&quot;: [ # Substages of an operation or a stage.
1450 # Object with schema name: OperationProgress
1451 ],
1452 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1453 # Unset for single-stage operations.
1454 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1455 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07001456 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1457 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1458 # {name: &quot;nodes total&quot;, int_value: 32}]
1459 # or
1460 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1461 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1462 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kim65020912020-05-20 12:08:20 -07001463 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -07001464 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001465 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1466 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kim65020912020-05-20 12:08:20 -07001467 },
1468 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001469 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001470 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1471 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
1472 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1473 # or
1474 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1475 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001476 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1477 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1478 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001479 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1480 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001481 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001482 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
1483 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1484 { # StatusCondition describes why a cluster or a node pool has a certain status
1485 # (e.g., ERROR or DEGRADED).
1486 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1487 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1488 },
1489 ],
1490 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1491 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1492 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1493 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
1494 { # StatusCondition describes why a cluster or a node pool has a certain status
1495 # (e.g., ERROR or DEGRADED).
1496 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1497 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1498 },
1499 ],
1500 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001501 }</pre>
1502</div>
1503
1504<div class="method">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001505 <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 -07001506 <pre>Deletes the cluster, including the Kubernetes endpoint and all worker
1507nodes.
1508
1509Firewalls and routes that were configured during cluster creation
1510are also deleted.
1511
1512Other Google Compute Engine resources that might be in use by the cluster,
Bu Sun Kim65020912020-05-20 12:08:20 -07001513such as load balancer resources, are not deleted if they weren&#x27;t present
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001514when the cluster was initially created.
1515
1516Args:
1517 name: string, The name (project, location, cluster) of the cluster to delete.
Bu Sun Kim65020912020-05-20 12:08:20 -07001518Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001519 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001520number](https://support.google.com/cloud/answer/6158840).
1521This field has been deprecated and replaced by the name field.
Dan O'Mearadd494642020-05-01 07:42:23 -07001522 zone: string, Required. Deprecated. The name of the Google Compute Engine
1523[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1524cluster resides. This field has been deprecated and replaced by the name
1525field.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001526 clusterId: string, Required. Deprecated. The name of the cluster to delete.
1527This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001528 x__xgafv: string, V1 error format.
1529 Allowed values
1530 1 - v1 error format
1531 2 - v2 error format
1532
1533Returns:
1534 An object of the form:
1535
1536 { # This operation resource represents operations that may have happened or are
1537 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001538 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001539 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Bu Sun Kim65020912020-05-20 12:08:20 -07001540 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001541 &quot;stages&quot;: [ # Substages of an operation or a stage.
1542 # Object with schema name: OperationProgress
1543 ],
1544 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
1545 # Unset for single-stage operations.
1546 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
1547 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07001548 &quot;metrics&quot;: [ # Progress metric bundle, for example:
1549 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
1550 # {name: &quot;nodes total&quot;, int_value: 32}]
1551 # or
1552 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
1553 # {name: &quot;progress scale&quot;, double_value: 1.0}]
1554 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kim65020912020-05-20 12:08:20 -07001555 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -07001556 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001557 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
1558 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kim65020912020-05-20 12:08:20 -07001559 },
1560 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001561 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001562 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
1563 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
1564 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1565 # or
1566 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
1567 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07001568 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
1569 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
1570 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001571 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
1572 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07001573 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001574 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
1575 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
1576 { # StatusCondition describes why a cluster or a node pool has a certain status
1577 # (e.g., ERROR or DEGRADED).
1578 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1579 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1580 },
1581 ],
1582 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
1583 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1584 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
1585 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
1586 { # StatusCondition describes why a cluster or a node pool has a certain status
1587 # (e.g., ERROR or DEGRADED).
1588 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
1589 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
1590 },
1591 ],
1592 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001593 }</pre>
1594</div>
1595
1596<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001597 <code class="details" id="get">get(name, clusterId=None, projectId=None, zone=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001598 <pre>Gets the details for a specific cluster.
1599
1600Args:
1601 name: string, The name (project, location, cluster) of the cluster to retrieve.
Bu Sun Kim65020912020-05-20 12:08:20 -07001602Specified in the format `projects/*/locations/*/clusters/*`. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001603 clusterId: string, Required. Deprecated. The name of the cluster to retrieve.
1604This field has been deprecated and replaced by the name field.
Dan O'Mearadd494642020-05-01 07:42:23 -07001605 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001606number](https://support.google.com/cloud/answer/6158840).
1607This field has been deprecated and replaced by the name field.
Dan O'Mearadd494642020-05-01 07:42:23 -07001608 zone: string, Required. Deprecated. The name of the Google Compute Engine
1609[zone](https://cloud.google.com/compute/docs/zones#available) in which the
1610cluster resides. This field has been deprecated and replaced by the name
1611field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001612 x__xgafv: string, V1 error format.
1613 Allowed values
1614 1 - v1 error format
1615 2 - v2 error format
1616
1617Returns:
1618 An object of the form:
1619
1620 { # A Google Kubernetes Engine cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07001621 &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.
1622 # cluster, enabling additional functionality.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001623 &quot;configConnectorConfig&quot;: { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes
1624 # extension to manage hosted GCP services through the Kubernetes API
1625 &quot;enabled&quot;: True or False, # Whether Cloud Connector is enabled for this cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07001626 },
1627 &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.
1628 # enabled at cluster creation time.
1629 &quot;enabled&quot;: True or False, # Whether the Compute Engine PD CSI driver is enabled for this cluster.
1630 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001631 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
1632 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001633 },
1634 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
1635 # is enabled or not on the Master, it does not track whether network policy
1636 # is enabled for the nodes.
1637 # is enabled or not on the Master, it does not track whether network policy
1638 # is enabled for the nodes.
1639 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
1640 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001641 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
1642 # This addon is deprecated, and will be disabled in 1.15. It is recommended
1643 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
1644 # workloads and applications. For more information, see:
1645 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
1646 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001647 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001648 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
1649 # makes it easy to set up HTTP load balancers for services in a cluster.
1650 # which makes it easy to set up HTTP load balancers for services in a cluster.
1651 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
1652 # When enabled, it runs a small pod in the cluster that manages the load
1653 # balancers.
1654 },
1655 &quot;istioConfig&quot;: { # Configuration options for Istio addon. # Configuration for Istio, an open platform to connect, manage, and secure
1656 # microservices.
1657 &quot;disabled&quot;: True or False, # Whether Istio is enabled for this cluster.
1658 &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 -07001659 },
1660 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
1661 # increases or decreases the number of replica pods a replication controller
1662 # has based on the resource usage of the existing pods.
1663 # increases or decreases the number of replica pods a replication controller
1664 # has based on the resource usage of the existing pods.
1665 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
1666 # When enabled, it ensures that metrics are collected into Stackdriver
1667 # Monitoring.
Bu Sun Kim65020912020-05-20 12:08:20 -07001668 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001669 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be
1670 # enabled in order to enable Cloud Run addon. This option can only be enabled
1671 # at cluster creation time.
1672 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
1673 },
1674 &quot;kalmConfig&quot;: { # Configuration options for the KALM addon. # Configuration for the KALM addon, which manages the lifecycle of k8s
1675 # applications.
1676 &quot;enabled&quot;: True or False, # Whether KALM is enabled for this cluster.
1677 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001678 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001679 &quot;createTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster was created, in
1680 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
1681 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # The IP address range of the container pods in this cluster, in
1682 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1683 # notation (e.g. `10.96.0.0/14`). Leave blank to have
1684 # one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
1685 &quot;legacyAbac&quot;: { # Configuration for the legacy Attribute Based Access Control authorization # Configuration for the legacy ABAC authorization mode.
1686 # mode.
1687 &quot;enabled&quot;: True or False, # Whether the ABAC authorizer is enabled for this cluster. When enabled,
1688 # identities in the system, including service accounts, nodes, and
1689 # controllers, will have statically granted permissions beyond those
1690 # provided by the RBAC configuration or IAM.
1691 },
1692 &quot;binaryAuthorization&quot;: { # Configuration for Binary Authorization. # Configuration for Binary Authorization.
1693 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
1694 # images will be validated by Google Binauthz.
1695 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001696 &quot;currentNodeVersion&quot;: &quot;A String&quot;, # [Output only] Deprecated, use
1697 # [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools)
1698 # instead. The current version of the node software components.
1699 # If they are currently at multiple versions because they&#x27;re in the process
1700 # of being upgraded, this reflects the minimum version of all nodes.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001701 &quot;currentNodeCount&quot;: 42, # [Output only] The number of nodes currently in the cluster. Deprecated.
1702 # Call Kubernetes API directly to retrieve node information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001703 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the cluster. # Configuration for cluster IP allocation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001704 &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 -07001705 # will be automatically chosen with the default size.
1706 #
1707 # This field is only applicable when `use_ip_aliases` is true.
1708 #
1709 # Set to blank to have a range chosen with the default size.
1710 #
1711 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1712 # netmask.
1713 #
1714 # Set to a
1715 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1716 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1717 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1718 # to use.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001719 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use services_ipv4_cidr_block.
Bu Sun Kim65020912020-05-20 12:08:20 -07001720 &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 -07001721 # range will be automatically chosen with the default size.
1722 #
1723 # This field is only applicable when `use_ip_aliases` is true.
1724 #
1725 # If unspecified, the range will use the default size.
1726 #
1727 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1728 # netmask.
1729 #
1730 # Set to a
1731 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1732 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1733 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1734 # to use.
Dan O'Mearadd494642020-05-01 07:42:23 -07001735 # This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001736 &quot;useIpAliases&quot;: True or False, # Whether alias IPs will be used for pod IPs in the cluster.
1737 # This is used in conjunction with use_routes. It cannot
1738 # be true if use_routes is true. If both use_ip_aliases and use_routes are
1739 # false, then the server picks the default IP allocation mode
1740 &quot;nodeIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use node_ipv4_cidr_block.
1741 &quot;createSubnetwork&quot;: True or False, # Whether a new subnetwork will be created automatically for the cluster.
1742 #
1743 # This field is only applicable when `use_ip_aliases` is true.
1744 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used for the cluster CIDR
1745 # block. The secondary range will be used for pod IP
1746 # addresses. This must be an existing secondary range associated
1747 # with the cluster subnetwork.
1748 #
1749 # This field is only applicable with use_ip_aliases and
1750 # create_subnetwork is false.
Bu Sun Kim65020912020-05-20 12:08:20 -07001751 &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 -07001752 # CIDR block. The secondary range will be used for service
1753 # ClusterIPs. This must be an existing secondary range associated
1754 # with the cluster subnetwork.
1755 #
1756 # This field is only applicable with use_ip_aliases and
1757 # create_subnetwork is false.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001758 &quot;useRoutes&quot;: True or False, # Whether routes will be used for pod IPs in the cluster.
1759 # This is used in conjunction with use_ip_aliases. It cannot be true if
1760 # use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
1761 # then the server picks the default IP allocation mode
Bu Sun Kim65020912020-05-20 12:08:20 -07001762 &quot;subnetworkName&quot;: &quot;A String&quot;, # A custom subnetwork name to be used if `create_subnetwork` is true. If
1763 # this field is empty, then an automatic name will be chosen for the new
1764 # subnetwork.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001765 &quot;allowRouteOverlap&quot;: True or False, # If true, allow allocation of cluster CIDR ranges that overlap with certain
1766 # kinds of network routes. By default we do not allow cluster CIDR ranges to
1767 # intersect with any user declared routes. With allow_route_overlap == true,
1768 # we allow overlapping with CIDR ranges that are larger than the cluster CIDR
1769 # range.
1770 #
1771 # If this field is set to true, then cluster and services CIDRs must be
1772 # fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
1773 # 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
1774 # `services_ipv4_cidr_block` must be fully-specified.
1775 # 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
1776 # fully-specified.
Bu Sun Kim65020912020-05-20 12:08:20 -07001777 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use cluster_ipv4_cidr_block.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001778 &quot;nodeIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the instance IPs in this cluster.
1779 #
1780 # This is applicable only if `create_subnetwork` is true.
1781 #
1782 # Set to blank to have a range chosen with the default size.
1783 #
1784 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1785 # netmask.
1786 #
1787 # Set to a
1788 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1789 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1790 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1791 # to use.
1792 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range for the cluster pod IPs. If this field is set, then
1793 # `cluster.cluster_ipv4_cidr` must be left blank.
1794 #
1795 # This field is only applicable when `use_ip_aliases` is true.
1796 #
1797 # Set to blank to have a range chosen with the default size.
1798 #
1799 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
1800 # netmask.
1801 #
1802 # Set to a
1803 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
1804 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
1805 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
1806 # to use.
Bu Sun Kim65020912020-05-20 12:08:20 -07001807 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001808 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
1809 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
1810 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
1811 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
1812 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001813 &quot;privateClusterConfig&quot;: { # Configuration options for private clusters. # Configuration for private cluster.
1814 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
1815 # given only RFC 1918 private addresses and communicate with the master via
1816 # private networking.
1817 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
1818 # range will be used for assigning internal IP addresses to the master or
1819 # set of masters, as well as the ILB VIP. This range must not overlap with
1820 # any other ranges in use within the cluster&#x27;s network.
1821 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
1822 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
1823 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
1824 &quot;masterGlobalAccessConfig&quot;: { # Configuration for controlling master global access settings. # Controls master global access settings.
1825 &quot;enabled&quot;: True or False, # Whenever master is accessible globally or not.
Bu Sun Kim65020912020-05-20 12:08:20 -07001826 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001827 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
1828 },
1829 &quot;enableTpu&quot;: True or False, # Enable the ability to use Cloud TPUs in this cluster.
1830 # This field is deprecated, use tpu_config.enabled instead.
1831 &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
1832 # policies.
1833 # policies.
1834 &quot;identityNamespace&quot;: &quot;A String&quot;, # IAM Identity Namespace to attach all Kubernetes Service Accounts to.
1835 &quot;identityProvider&quot;: &quot;A String&quot;, # identity provider is the third party identity provider.
1836 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
1837 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001838 &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 -07001839 # Currently available options:
1840 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001841 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -07001842 # service with a Kubernetes-native resource model
1843 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
1844 # longer available as of GKE 1.15).
1845 # * `none` - No metrics will be exported from the cluster.
1846 #
1847 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
1848 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001849 &quot;networkConfig&quot;: { # NetworkConfig reports the relative names of network &amp; subnetwork. # Configuration for cluster networking.
1850 &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
1851 # will be disabled when default_snat_status is disabled. When disabled is set
1852 # to false, default IP masquerade rules will be applied to the nodes to
1853 # prevent sNAT on cluster internal traffic.
1854 # be disabled on the cluster.
1855 &quot;disabled&quot;: True or False, # Disables cluster default sNAT rules.
1856 },
1857 &quot;enableIntraNodeVisibility&quot;: True or False, # Whether Intra-node visibility is enabled for this cluster.
1858 # This makes same node pod to pod traffic visible for VPC network.
1859 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
1860 # [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
1861 # cluster is connected. Example:
1862 # projects/my-project/regions/us-central1/subnetworks/my-subnet
1863 &quot;network&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
1864 # network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
1865 # to which the cluster is connected. Example:
1866 # projects/my-project/global/networks/my-network
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001867 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001868 &quot;shieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
1869 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001870 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001871 &quot;masterAuth&quot;: { # The authentication information for accessing the master endpoint. # The authentication information for accessing the master endpoint.
1872 # If unspecified, the defaults are used:
1873 # For clusters before v1.12, if master_auth is unspecified, `username` will
1874 # be set to &quot;admin&quot;, a random password will be generated, and a client
1875 # certificate will be issued.
1876 # Authentication can be done using HTTP basic auth or using client
1877 # certificates.
1878 &quot;clusterCaCertificate&quot;: &quot;A String&quot;,
1879 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
1880 # For clusters v1.6.0 and later, basic authentication can be disabled by
1881 # leaving username unspecified (or setting it to the empty string).
1882 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
1883 # authenticate to the cluster endpoint.
1884 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint.
1885 # Because the master endpoint is open to the Internet, you should create a
1886 # strong password. If a password is provided for cluster creation, username
1887 # must be non-empty.
1888 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For
1889 # clusters before v1.12, if no configuration is specified, a client
1890 # certificate is issued.
1891 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
1892 },
1893 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
1894 # to the cluster endpoint.
Bu Sun Kim65020912020-05-20 12:08:20 -07001895 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001896 &quot;initialClusterVersion&quot;: &quot;A String&quot;, # The initial Kubernetes version for this cluster. Valid versions are those
1897 # found in validMasterVersions returned by getServerConfig. The version can
1898 # be upgraded over time; such upgrades are reflected in
1899 # currentMasterVersion and currentNodeVersion.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001900 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001901 # Users may specify either explicit versions offered by
1902 # Kubernetes Engine or version aliases, which have the following behavior:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001903 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001904 # - &quot;latest&quot;: picks the highest valid Kubernetes version
1905 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
1906 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
1907 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
1908 # - &quot;&quot;,&quot;-&quot;: picks the default Kubernetes version
1909 &quot;privateCluster&quot;: True or False, # If this is a private cluster setup. Private clusters are clusters that, by
1910 # default have no external IP addresses on the nodes and where nodes and the
1911 # master communicate over private IP addresses.
1912 # This field is deprecated, use private_cluster_config.enable_private_nodes
1913 # instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07001914 &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 -07001915 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07001916 # &quot;node_pool&quot; object, since this configuration (along with the
1917 # &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 -07001918 # auto-generated name. Do not use this and a node_pool at the same time.
1919 # For responses, this field will be populated with the node configuration of
1920 # the first node pool. (For configuration of each node pool, see
1921 # `node_pool.config`)
1922 #
1923 # If unspecified, the defaults are used.
1924 # This field is deprecated, use node_pool.config instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001925 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
1926 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001927 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001928 # The following scopes are recommended, but not required, and by default are
1929 # not included:
1930 #
1931 # * `https://www.googleapis.com/auth/compute` is required for mounting
1932 # persistent storage on your nodes.
1933 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
1934 # communicating with **gcr.io**
1935 # (the [Google Container
1936 # Registry](https://cloud.google.com/container-registry/)).
1937 #
1938 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
1939 # Monitoring are enabled, in which case their required scopes will be added.
1940 &quot;A String&quot;,
1941 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001942 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
1943 #
1944 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
1945 # in length. These are reflected as part of a URL in the metadata server.
1946 # Additionally, to avoid ambiguity, keys must not conflict with any other
1947 # metadata keys for the project or be one of the reserved keys:
1948 # &quot;cluster-location&quot;
1949 # &quot;cluster-name&quot;
1950 # &quot;cluster-uid&quot;
1951 # &quot;configure-sh&quot;
1952 # &quot;containerd-configure-sh&quot;
1953 # &quot;enable-oslogin&quot;
1954 # &quot;gci-ensure-gke-docker&quot;
1955 # &quot;gci-metrics-enabled&quot;
1956 # &quot;gci-update-strategy&quot;
1957 # &quot;instance-template&quot;
1958 # &quot;kube-env&quot;
1959 # &quot;startup-script&quot;
1960 # &quot;user-data&quot;
1961 # &quot;disable-address-manager&quot;
1962 # &quot;windows-startup-script-ps1&quot;
1963 # &quot;common-psm1&quot;
1964 # &quot;k8s-node-setup-psm1&quot;
1965 # &quot;install-ssh-psm1&quot;
1966 # &quot;user-profile-psm1&quot;
1967 # &quot;serial-port-logging-enable&quot;
1968 # Values are free-form strings, and only have meaning as interpreted by
1969 # the image running in the instance. The only restriction placed on them is
1970 # that each value&#x27;s size must be less than or equal to 32 KB.
1971 #
1972 # The total size of all keys and values must be less than 512 KB.
1973 &quot;a_key&quot;: &quot;A String&quot;,
1974 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001975 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
1976 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
1977 # `n1-standard-1`).
1978 #
1979 # If unspecified, the default machine type is
1980 # `n1-standard-1`.
1981 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this
1982 # pool to run on the specified node group. This is useful for running
1983 # workloads on [sole tenant
1984 # nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
1985 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
1986 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
1987 #
1988 # Secure Boot helps ensure that the system only runs authentic software by
1989 # verifying the digital signature of all boot components, and halting the
1990 # boot process if signature verification fails.
1991 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
1992 #
1993 # Enables monitoring and attestation of the boot integrity of the instance.
1994 # The attestation is performed against the integrity policy baseline. This
1995 # baseline is initially derived from the implicitly trusted boot image when
1996 # the instance is created.
Bu Sun Kim65020912020-05-20 12:08:20 -07001997 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001998 &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 -07001999 # Specify the email address of the Service Account; otherwise, if no Service
Bu Sun Kim65020912020-05-20 12:08:20 -07002000 # Account is specified, the &quot;default&quot; service account is used.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002001 &quot;linuxNodeConfig&quot;: { # Parameters that can be configured on Linux nodes. # Parameters that can be configured on Linux nodes.
2002 &quot;sysctls&quot;: { # The Linux kernel parameters to be applied to the nodes and all pods running
2003 # on the nodes.
2004 #
2005 # The following parameters are supported.
2006 #
2007 # net.core.netdev_max_backlog
2008 # net.core.rmem_max
2009 # net.core.wmem_default
2010 # net.core.wmem_max
2011 # net.core.optmem_max
2012 # net.core.somaxconn
2013 # net.ipv4.tcp_rmem
2014 # net.ipv4.tcp_wmem
2015 # net.ipv4.tcp_tw_reuse
2016 &quot;a_key&quot;: &quot;A String&quot;,
2017 },
2018 },
2019 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
2020 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
2021 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
2022 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002023 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002024 #
2025 # For more information, including usage and the valid values, see:
2026 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
2027 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
2028 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
2029 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002030 # See
2031 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
2032 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -07002033 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002034 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002035 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002036 },
2037 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002038 &quot;kubeletConfig&quot;: { # Node kubelet configs. # Node kubelet configs.
2039 &quot;cpuCfsQuotaPeriod&quot;: &quot;A String&quot;, # Set the CPU CFS quota period value &#x27;cpu.cfs_period_us&#x27;.
2040 #
2041 # The string must be a sequence of decimal numbers, each with optional
2042 # fraction and a unit suffix, such as &quot;300ms&quot;.
2043 # Valid time units are &quot;ns&quot;, &quot;us&quot; (or &quot;µs&quot;), &quot;ms&quot;, &quot;s&quot;, &quot;m&quot;, &quot;h&quot;.
2044 # The value must be a positive duration.
2045 &quot;cpuCfsQuota&quot;: True or False, # Enable CPU CFS quota enforcement for containers that specify CPU limits.
2046 #
2047 # If this option is enabled, kubelet uses CFS quota
2048 # (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
2049 # enforce container CPU limits. Otherwise, CPU limits will not be enforced at
2050 # all.
2051 #
2052 # Disable this option to mitigate CPU throttling problems while still having
2053 # your pods to be in Guaranteed QoS class by specifying the CPU limits.
2054 #
2055 # The default value is &#x27;true&#x27; if unspecified.
2056 &quot;cpuManagerPolicy&quot;: &quot;A String&quot;, # Control the CPU management policy on the node.
2057 # See
2058 # https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
2059 #
2060 # The following values are allowed.
2061 # - &quot;none&quot;: the default, which represents the existing scheduling behavior.
2062 # - &quot;static&quot;: allows pods with certain resource characteristics to be
2063 # granted increased CPU affinity and exclusivity on the node.
2064 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002065 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
2066 # These will added in addition to any default label(s) that
2067 # Kubernetes may apply to the node.
2068 # In case of conflict in label keys, the applied set may differ depending on
2069 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
2070 # and conflicts should be avoided.
2071 # For more information, including usage and the valid values, see:
2072 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
2073 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002074 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002075 &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;)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002076 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002077 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002078 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
2079 # workloads on the node pool.
2080 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
2081 # workloads running on the node.
2082 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
2083 # on the node pool.
2084 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002085 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
2086 # The Customer Managed Encryption Key used to encrypt the boot disk attached
2087 # to each node in the node pool. This should be of the form
2088 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
2089 # For more information about protecting resources with Cloud KMS Keys please
2090 # see:
2091 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002092 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
2093 # The smallest allowed disk size is 10GB.
2094 #
2095 # If unspecified, the default disk size is 100GB.
2096 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
2097 # the specified [Zonal Compute
2098 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
2099 # to this node pool.
2100 # is the configuration of desired reservation which instances could take
2101 # capacity from.
2102 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
2103 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
2104 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
2105 # the key and specify the name of your reservation as its value.
2106 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
2107 &quot;A String&quot;,
2108 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002109 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002110 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
2111 # https://cloud.google.com/compute/docs/instances/preemptible for more
2112 # inforamtion about preemptible VM instances.
2113 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
2114 # scheduled on the specified or newer CPU platform. Applicable values are the
2115 # friendly names of CPU platforms, such as
2116 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
2117 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
2118 # information, read [how to specify min CPU
2119 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
2120 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
2121 # valid sources or targets for network firewalls and are specified by
2122 # the client during cluster or node pool creation. Each tag within the list
2123 # must comply with RFC1035.
2124 &quot;A String&quot;,
2125 ],
2126 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
2127 # See https://cloud.google.com/compute/docs/gpus for more information about
2128 # support for GPUs.
2129 { # AcceleratorConfig represents a Hardware Accelerator request.
2130 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
2131 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
2132 # [here](https://cloud.google.com/compute/docs/gpus)
2133 },
2134 ],
2135 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
2136 #
2137 # The limit for this value is dependent upon the maximum number of
2138 # disks available on a machine per zone. See:
2139 # https://cloud.google.com/compute/docs/disks/local-ssd
2140 # for more information.
2141 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
2142 # the latest version of it will be used.
Bu Sun Kim65020912020-05-20 12:08:20 -07002143 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002144 &quot;currentMasterVersion&quot;: &quot;A String&quot;, # [Output only] The current software version of the master endpoint.
2145 &quot;masterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The configuration options for master authorized networks feature.
2146 # master authorized networks will disallow all external traffic to access
2147 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
2148 # Google Compute Engine Public IPs and Google Prod IPs.
2149 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 10 external networks that could access
2150 # Kubernetes master through HTTPS.
2151 { # CidrBlock contains an optional name and one CIDR block.
2152 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
2153 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
2154 },
2155 ],
2156 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
2157 },
2158 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Kubernetes services in
2159 # this cluster, in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002160 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002161 # notation (e.g. `1.2.3.4/29`). Service addresses are
2162 # typically put in the last `/16` from the container CIDR.
2163 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP prefix in CIDR notation to use for the hosted master network.
2164 # This prefix will be used for assigning private IP addresses to the
2165 # master or set of masters, as well as the ILB VIP.
2166 # This field is deprecated, use
2167 # private_cluster_config.master_ipv4_cidr_block instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07002168 &quot;autoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
2169 # required by Cluster Autoscaler to automatically adjust
2170 # the size of the cluster and create/delete
2171 # node pools based on the current needs.
Bu Sun Kim65020912020-05-20 12:08:20 -07002172 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
2173 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
2174 # created by NAP.
2175 # by NAP.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002176 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
Bu Sun Kim65020912020-05-20 12:08:20 -07002177 # disruption caused by an upgrade.
2178 #
2179 # maxUnavailable controls the number of nodes that can be simultaneously
2180 # unavailable.
2181 #
2182 # maxSurge controls the number of additional nodes that can be added to the
2183 # node pool temporarily for the time of the upgrade to increase the number of
2184 # available nodes.
2185 #
2186 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
2187 # nodes are being upgraded at the same time).
2188 #
2189 # Note: upgrades inevitably introduce some disruption since workloads need to
2190 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
2191 # this holds true. (Disruption stays within the limits of
2192 # PodDisruptionBudget, if it is configured.)
2193 #
2194 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
2195 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
2196 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
2197 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
2198 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07002199 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
2200 # the upgrade process. A node is considered available if its status is
2201 # Ready.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002202 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
2203 # of the node pool during the upgrade process.
Bu Sun Kim65020912020-05-20 12:08:20 -07002204 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002205 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
2206 # Specify the email address of the Service Account; otherwise, if no Service
2207 # Account is specified, the &quot;default&quot; service account is used.
2208 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
2209 # node VMs under the &quot;default&quot; service account.
2210 #
2211 # The following scopes are recommended, but not required, and by default are
2212 # not included:
2213 #
2214 # * `https://www.googleapis.com/auth/compute` is required for mounting
2215 # persistent storage on your nodes.
2216 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
2217 # communicating with **gcr.io**
2218 # (the [Google Container
2219 # Registry](https://cloud.google.com/container-registry/)).
2220 #
2221 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
2222 # Monitoring are enabled, in which case their required scopes will be added.
2223 &quot;A String&quot;,
2224 ],
2225 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
2226 # scheduled on the specified or newer CPU platform. Applicable values are the
2227 # friendly names of CPU platforms, such as
2228 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
2229 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
2230 # information, read [how to specify min CPU
2231 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
2232 # To unset the min cpu platform field pass &quot;automatic&quot;
2233 # as field value.
2234 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
2235 # node pool.
2236 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
2237 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
2238 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
2239 # the Auto Upgrades will proceed.
2240 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2241 # with the description of the upgrade.
2242 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2243 # with the approximate start time for the upgrades, in
2244 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2245 },
2246 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002247 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002248 &quot;autoscalingProfile&quot;: &quot;A String&quot;, # Defines autoscaling behaviour.
2249 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
2250 # amount of resources in the cluster.
2251 { # Contains information about amount of some resource in the cluster.
2252 # For memory, value should be in GB.
2253 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
2254 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
2255 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
2256 },
2257 ],
2258 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
2259 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
2260 # NodePool&#x27;s nodes can be created by NAP.
2261 &quot;A String&quot;,
2262 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07002263 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002264 &quot;locations&quot;: [ # The list of Google Compute Engine
2265 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
2266 # cluster&#x27;s nodes should be located.
2267 &quot;A String&quot;,
2268 ],
2269 &quot;conditions&quot;: [ # Which conditions caused the current cluster state.
2270 { # StatusCondition describes why a cluster or a node pool has a certain status
2271 # (e.g., ERROR or DEGRADED).
2272 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
2273 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
2274 },
2275 ],
2276 &quot;loggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
2277 # Currently available options:
Dan O'Mearadd494642020-05-01 07:42:23 -07002278 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002279 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
2280 # service with a Kubernetes-native resource model
2281 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
2282 # available as of GKE 1.15).
2283 # * `none` - no logs will be exported from the cluster.
2284 #
2285 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
2286 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
2287 &quot;enableKubernetesAlpha&quot;: True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha
2288 # API groups (e.g. v1beta1) and features that may not be production ready in
2289 # the kubernetes version of the master and nodes.
2290 # The cluster has no SLA for uptime and master/node upgrades are disabled.
2291 # Alpha enabled clusters are automatically deleted thirty days after
2292 # creation.
Bu Sun Kim65020912020-05-20 12:08:20 -07002293 &quot;instanceGroupUrls&quot;: [ # Deprecated. Use node_pools.instance_group_urls.
2294 &quot;A String&quot;,
2295 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002296 &quot;name&quot;: &quot;A String&quot;, # The name of this cluster. The name must be unique within this project
2297 # and location (e.g. zone or region), and can be up to 40 characters with
2298 # the following restrictions:
2299 #
2300 # * Lowercase letters, numbers, and hyphens only.
2301 # * Must start with a letter.
2302 # * Must end with a number or a letter.
2303 &quot;master&quot;: { # Master is the configuration for components on master. # Configuration for master components.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002304 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002305 &quot;endpoint&quot;: &quot;A String&quot;, # [Output only] The IP address of this cluster&#x27;s master endpoint.
2306 # The endpoint can be accessed from the internet at
2307 # `https://username:password@endpoint/`.
2308 #
2309 # See the `masterAuth` property of this resource for username and
2310 # password information.
2311 &quot;resourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # Configuration for exporting resource usages. Resource usage export is
2312 # disabled when this config unspecified.
2313 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
2314 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
2315 # second BigQuery table will be created to hold resource consumption
2316 # records.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002317 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002318 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
2319 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
2320 },
2321 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
2322 # daemonset will be created in the cluster to meter network egress traffic.
2323 },
2324 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
2325 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
2326 # or
2327 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
2328 # in which the cluster resides.
2329 &quot;authenticatorGroupsConfig&quot;: { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
2330 &quot;securityGroup&quot;: &quot;A String&quot;, # The name of the security group-of-groups to be used. Only relevant
2331 # if enabled = true.
2332 &quot;enabled&quot;: True or False, # Whether this cluster should return group membership lookups
2333 # during authentication using a group of security groups.
2334 },
2335 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
2336 # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
2337 # the cluster is connected. On output this shows the subnetwork ID instead of
2338 # the name.
2339 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
2340 &quot;window&quot;: { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
2341 &quot;recurringWindow&quot;: { # Represents an arbitrary window of time that recurs. # RecurringWindow specifies some number of recurring time periods for
2342 # maintenance to occur. The time windows may be overlapping. If no
2343 # maintenance windows are set, maintenance can occur at any time.
2344 &quot;recurrence&quot;: &quot;A String&quot;, # An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
2345 # this window reccurs. They go on for the span of time between the start and
2346 # end time.
2347 #
2348 # For example, to have something repeat every weekday, you&#x27;d use:
2349 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
2350 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
2351 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
2352 # For the first weekend of every month:
2353 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
2354 # This specifies how frequently the window starts. Eg, if you wanted to have
2355 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
2356 # &lt;code&gt;
2357 # start time = 2019-01-01T09:00:00-0400
2358 # end time = 2019-01-01T17:00:00-0400
2359 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
2360 # &lt;/code&gt;
2361 # Windows can span multiple days. Eg, to make the window encompass every
2362 # weekend from midnight Saturday till the last minute of Sunday UTC:
2363 # &lt;code&gt;
2364 # start time = 2019-01-05T00:00:00Z
2365 # end time = 2019-01-07T23:59:00Z
2366 # recurrence = FREQ=WEEKLY;BYDAY=SA
2367 # &lt;/code&gt;
2368 # Note the start and end time&#x27;s specific dates are largely arbitrary except
2369 # to specify duration of the window and when it first starts.
2370 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
2371 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
2372 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
2373 # start time.
2374 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Bu Sun Kim65020912020-05-20 12:08:20 -07002375 },
2376 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002377 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
2378 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
2379 # It must be in format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
2380 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
2381 # smallest possible in the given scenario.
2382 },
2383 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
2384 # occur in these windows.
2385 &quot;a_key&quot;: { # Represents an arbitrary window of time.
2386 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
2387 # start time.
2388 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002389 },
2390 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002391 },
2392 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
2393 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
2394 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
2395 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
2396 # resource version and include it with requests to set the policy.
2397 },
2398 &quot;tpuConfig&quot;: { # Configuration for Cloud TPU. # Configuration for Cloud TPU support;
2399 &quot;ipv4CidrBlock&quot;: &quot;A String&quot;, # IPv4 CIDR block reserved for Cloud TPU in the VPC.
2400 &quot;useServiceNetworking&quot;: True or False, # Whether to use service networking for Cloud TPU or not.
2401 &quot;enabled&quot;: True or False, # Whether Cloud TPU integration is enabled or not.
2402 },
2403 &quot;nodePools&quot;: [ # The node pools associated with this cluster.
2404 # This field should not be set if &quot;node_config&quot; or &quot;initial_node_count&quot; are
2405 # specified.
2406 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
2407 # Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and
2408 # specification, under the control of the cluster master. They may have a set
2409 # of Kubernetes labels applied to them, which may be used to reference them
2410 # during pod scheduling. They may also be resized up or down, to accommodate
2411 # the workload.
2412 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
2413 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
2414 # disruption caused by an upgrade.
Dan O'Mearadd494642020-05-01 07:42:23 -07002415 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002416 # maxUnavailable controls the number of nodes that can be simultaneously
2417 # unavailable.
Dan O'Mearadd494642020-05-01 07:42:23 -07002418 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002419 # maxSurge controls the number of additional nodes that can be added to the
2420 # node pool temporarily for the time of the upgrade to increase the number of
2421 # available nodes.
2422 #
2423 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
2424 # nodes are being upgraded at the same time).
2425 #
2426 # Note: upgrades inevitably introduce some disruption since workloads need to
2427 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
2428 # this holds true. (Disruption stays within the limits of
2429 # PodDisruptionBudget, if it is configured.)
2430 #
2431 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
2432 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
2433 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
2434 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
2435 # there are always at least 4 nodes available.
2436 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
2437 # the upgrade process. A node is considered available if its status is
2438 # Ready.
2439 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
2440 # of the node pool during the upgrade process.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002441 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002442 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
2443 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
2444 # associated with this node pool.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002445 &quot;A String&quot;,
2446 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002447 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
2448 # only if a valid configuration is present.
2449 # adjust the size of the node pool to the current cluster usage.
2450 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
2451 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
2452 # max_node_count.
2453 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
2454 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
2455 # has to enough quota to scale up the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07002456 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002457 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
2458 # Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
2459 # is sufficient for this number of instances. You must also have available
2460 # firewall and routes quota.
2461 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
2462 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
2463 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002464 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002465 # The following scopes are recommended, but not required, and by default are
2466 # not included:
2467 #
2468 # * `https://www.googleapis.com/auth/compute` is required for mounting
2469 # persistent storage on your nodes.
2470 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
2471 # communicating with **gcr.io**
2472 # (the [Google Container
2473 # Registry](https://cloud.google.com/container-registry/)).
2474 #
2475 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
2476 # Monitoring are enabled, in which case their required scopes will be added.
2477 &quot;A String&quot;,
2478 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002479 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
2480 #
2481 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
2482 # in length. These are reflected as part of a URL in the metadata server.
2483 # Additionally, to avoid ambiguity, keys must not conflict with any other
2484 # metadata keys for the project or be one of the reserved keys:
2485 # &quot;cluster-location&quot;
2486 # &quot;cluster-name&quot;
2487 # &quot;cluster-uid&quot;
2488 # &quot;configure-sh&quot;
2489 # &quot;containerd-configure-sh&quot;
2490 # &quot;enable-oslogin&quot;
2491 # &quot;gci-ensure-gke-docker&quot;
2492 # &quot;gci-metrics-enabled&quot;
2493 # &quot;gci-update-strategy&quot;
2494 # &quot;instance-template&quot;
2495 # &quot;kube-env&quot;
2496 # &quot;startup-script&quot;
2497 # &quot;user-data&quot;
2498 # &quot;disable-address-manager&quot;
2499 # &quot;windows-startup-script-ps1&quot;
2500 # &quot;common-psm1&quot;
2501 # &quot;k8s-node-setup-psm1&quot;
2502 # &quot;install-ssh-psm1&quot;
2503 # &quot;user-profile-psm1&quot;
2504 # &quot;serial-port-logging-enable&quot;
2505 # Values are free-form strings, and only have meaning as interpreted by
2506 # the image running in the instance. The only restriction placed on them is
2507 # that each value&#x27;s size must be less than or equal to 32 KB.
2508 #
2509 # The total size of all keys and values must be less than 512 KB.
2510 &quot;a_key&quot;: &quot;A String&quot;,
2511 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002512 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
2513 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
2514 # `n1-standard-1`).
2515 #
2516 # If unspecified, the default machine type is
2517 # `n1-standard-1`.
2518 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this
2519 # pool to run on the specified node group. This is useful for running
2520 # workloads on [sole tenant
2521 # nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
2522 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
2523 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
2524 #
2525 # Secure Boot helps ensure that the system only runs authentic software by
2526 # verifying the digital signature of all boot components, and halting the
2527 # boot process if signature verification fails.
2528 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
2529 #
2530 # Enables monitoring and attestation of the boot integrity of the instance.
2531 # The attestation is performed against the integrity policy baseline. This
2532 # baseline is initially derived from the implicitly trusted boot image when
2533 # the instance is created.
2534 },
2535 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
2536 # Specify the email address of the Service Account; otherwise, if no Service
2537 # Account is specified, the &quot;default&quot; service account is used.
2538 &quot;linuxNodeConfig&quot;: { # Parameters that can be configured on Linux nodes. # Parameters that can be configured on Linux nodes.
2539 &quot;sysctls&quot;: { # The Linux kernel parameters to be applied to the nodes and all pods running
2540 # on the nodes.
2541 #
2542 # The following parameters are supported.
2543 #
2544 # net.core.netdev_max_backlog
2545 # net.core.rmem_max
2546 # net.core.wmem_default
2547 # net.core.wmem_max
2548 # net.core.optmem_max
2549 # net.core.somaxconn
2550 # net.ipv4.tcp_rmem
2551 # net.ipv4.tcp_wmem
2552 # net.ipv4.tcp_tw_reuse
2553 &quot;a_key&quot;: &quot;A String&quot;,
2554 },
2555 },
2556 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
2557 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
2558 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
2559 },
2560 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
2561 #
2562 # For more information, including usage and the valid values, see:
2563 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
2564 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
2565 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
2566 #
2567 # See
2568 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
2569 # for more information, including usage and the valid values.
2570 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
2571 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
2572 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
2573 },
2574 ],
2575 &quot;kubeletConfig&quot;: { # Node kubelet configs. # Node kubelet configs.
2576 &quot;cpuCfsQuotaPeriod&quot;: &quot;A String&quot;, # Set the CPU CFS quota period value &#x27;cpu.cfs_period_us&#x27;.
2577 #
2578 # The string must be a sequence of decimal numbers, each with optional
2579 # fraction and a unit suffix, such as &quot;300ms&quot;.
2580 # Valid time units are &quot;ns&quot;, &quot;us&quot; (or &quot;µs&quot;), &quot;ms&quot;, &quot;s&quot;, &quot;m&quot;, &quot;h&quot;.
2581 # The value must be a positive duration.
2582 &quot;cpuCfsQuota&quot;: True or False, # Enable CPU CFS quota enforcement for containers that specify CPU limits.
2583 #
2584 # If this option is enabled, kubelet uses CFS quota
2585 # (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
2586 # enforce container CPU limits. Otherwise, CPU limits will not be enforced at
2587 # all.
2588 #
2589 # Disable this option to mitigate CPU throttling problems while still having
2590 # your pods to be in Guaranteed QoS class by specifying the CPU limits.
2591 #
2592 # The default value is &#x27;true&#x27; if unspecified.
2593 &quot;cpuManagerPolicy&quot;: &quot;A String&quot;, # Control the CPU management policy on the node.
2594 # See
2595 # https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
2596 #
2597 # The following values are allowed.
2598 # - &quot;none&quot;: the default, which represents the existing scheduling behavior.
2599 # - &quot;static&quot;: allows pods with certain resource characteristics to be
2600 # granted increased CPU affinity and exclusivity on the node.
2601 },
2602 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
2603 # These will added in addition to any default label(s) that
2604 # Kubernetes may apply to the node.
2605 # In case of conflict in label keys, the applied set may differ depending on
2606 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
2607 # and conflicts should be avoided.
2608 # For more information, including usage and the valid values, see:
2609 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
2610 &quot;a_key&quot;: &quot;A String&quot;,
2611 },
2612 &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;)
2613 #
2614 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
2615 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
2616 # workloads on the node pool.
2617 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
2618 # workloads running on the node.
2619 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
2620 # on the node pool.
2621 },
2622 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
2623 # The Customer Managed Encryption Key used to encrypt the boot disk attached
2624 # to each node in the node pool. This should be of the form
2625 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
2626 # For more information about protecting resources with Cloud KMS Keys please
2627 # see:
2628 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
2629 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
2630 # The smallest allowed disk size is 10GB.
2631 #
2632 # If unspecified, the default disk size is 100GB.
Bu Sun Kim65020912020-05-20 12:08:20 -07002633 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
2634 # the specified [Zonal Compute
2635 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
2636 # to this node pool.
2637 # is the configuration of desired reservation which instances could take
2638 # capacity from.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002639 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
Bu Sun Kim65020912020-05-20 12:08:20 -07002640 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
2641 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
2642 # the key and specify the name of your reservation as its value.
2643 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
2644 &quot;A String&quot;,
2645 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002646 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002647 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
2648 # https://cloud.google.com/compute/docs/instances/preemptible for more
2649 # inforamtion about preemptible VM instances.
2650 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
2651 # scheduled on the specified or newer CPU platform. Applicable values are the
2652 # friendly names of CPU platforms, such as
2653 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
2654 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
2655 # information, read [how to specify min CPU
2656 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
Bu Sun Kim65020912020-05-20 12:08:20 -07002657 &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 -07002658 # valid sources or targets for network firewalls and are specified by
2659 # the client during cluster or node pool creation. Each tag within the list
2660 # must comply with RFC1035.
Bu Sun Kim65020912020-05-20 12:08:20 -07002661 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002662 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002663 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
2664 # See https://cloud.google.com/compute/docs/gpus for more information about
2665 # support for GPUs.
2666 { # AcceleratorConfig represents a Hardware Accelerator request.
2667 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
2668 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
2669 # [here](https://cloud.google.com/compute/docs/gpus)
2670 },
2671 ],
2672 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
2673 #
2674 # The limit for this value is dependent upon the maximum number of
2675 # disks available on a machine per zone. See:
2676 # https://cloud.google.com/compute/docs/disks/local-ssd
2677 # for more information.
Bu Sun Kim65020912020-05-20 12:08:20 -07002678 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
2679 # the latest version of it will be used.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002680 },
2681 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
2682 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
2683 # node pool.
2684 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
2685 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
2686 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
2687 # the Auto Upgrades will proceed.
2688 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2689 # with the description of the upgrade.
2690 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
2691 # with the approximate start time for the upgrades, in
2692 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2693 },
2694 },
2695 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
2696 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
2697 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
2698 # simultaneously on a node in the node pool.
2699 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
2700 },
2701 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
2702 # node pool instance, if available.
2703 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
2704 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
2705 { # StatusCondition describes why a cluster or a node pool has a certain status
2706 # (e.g., ERROR or DEGRADED).
2707 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
2708 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
2709 },
2710 ],
2711 &quot;locations&quot;: [ # The list of Google Compute Engine
2712 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
2713 # NodePool&#x27;s nodes should be located.
2714 &quot;A String&quot;,
2715 ],
2716 },
2717 ],
2718 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
2719 # cluster, if available.
2720 &quot;releaseChannel&quot;: { # ReleaseChannel indicates which release channel a cluster is # Release channel configuration.
2721 # subscribed to. Release channels are arranged in order of risk.
2722 #
2723 # When a cluster is subscribed to a release channel, Google maintains
2724 # both the master version and the node version. Node auto-upgrade
2725 # defaults to true and cannot be disabled.
2726 &quot;channel&quot;: &quot;A String&quot;, # channel specifies which release channel the cluster is subscribed to.
2727 },
2728 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
2729 &quot;defaultMaxPodsConstraint&quot;: { # Constraints applied to pods. # The default constraint on the maximum number of pods that can be run
2730 # simultaneously on a node in the node pool of this cluster. Only honored
2731 # if cluster created with IP Alias support.
2732 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
2733 },
2734 &quot;clusterTelemetry&quot;: { # Telemetry integration for the cluster. # Telemetry integration for the cluster.
2735 &quot;type&quot;: &quot;A String&quot;, # Type of the integration.
2736 },
2737 &quot;status&quot;: &quot;A String&quot;, # [Output only] The current status of this cluster.
2738 &quot;resourceLabels&quot;: { # The resource labels for the cluster to use to annotate any related
2739 # Google Compute Engine resources.
2740 &quot;a_key&quot;: &quot;A String&quot;,
2741 },
2742 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Cloud TPUs in this cluster, in
2743 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2744 # notation (e.g. `1.2.3.4/29`).
2745 &quot;initialNodeCount&quot;: 42, # The number of nodes to create in this cluster. You must ensure that your
2746 # Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
2747 # is sufficient for this number of instances. You must also have available
2748 # firewall and routes quota.
2749 # For requests, this field should only be used in lieu of a
2750 # &quot;node_pool&quot; object, since this configuration (along with the
2751 # &quot;node_config&quot;) will be used to create a &quot;NodePool&quot; object with an
2752 # auto-generated name. Do not use this and a node_pool at the same time.
2753 #
2754 # This field is deprecated, use node_pool.initial_node_count instead.
2755 &quot;podSecurityPolicyConfig&quot;: { # Configuration for the PodSecurityPolicy feature. # Configuration for the PodSecurityPolicy feature.
2756 &quot;enabled&quot;: True or False, # Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
2757 # must be valid under a PodSecurityPolicy to be created.
2758 },
2759 &quot;description&quot;: &quot;A String&quot;, # An optional description of this cluster.
2760 &quot;databaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
2761 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
2762 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
2763 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
2764 },
2765 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
2766 # [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
2767 # to which the cluster is connected. If left unspecified, the `default`
2768 # network will be used. On output this shows the network ID instead of the
2769 # name.
2770 &quot;zone&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
2771 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
2772 # cluster resides. This field is deprecated, use location instead.
2773 &quot;verticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
2774 # required by Vertical Pod Autoscaler to automatically adjust
2775 # the resources of pods controlled by it.
2776 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
2777 },
2778 &quot;expireTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster will be automatically
2779 # deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2780 &quot;nodeIpv4CidrSize&quot;: 42, # [Output only] The size of the address space on each node for hosting
2781 # containers. This is provisioned from within the `container_ipv4_cidr`
2782 # range. This field will only be set when cluster is in route-based network
2783 # mode.
2784 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the set of labels for this cluster.
2785 }</pre>
2786</div>
2787
2788<div class="method">
2789 <code class="details" id="getJwks">getJwks(parent, x__xgafv=None)</code>
2790 <pre>Gets the public component of the cluster signing keys in
2791JSON Web Key format.
2792This API is not yet intended for general use, and is not available for all
2793clusters.
2794
2795Args:
2796 parent: string, The cluster (project, location, cluster id) to get keys for. Specified in
2797the format `projects/*/locations/*/clusters/*`. (required)
2798 x__xgafv: string, V1 error format.
2799 Allowed values
2800 1 - v1 error format
2801 2 - v2 error format
2802
2803Returns:
2804 An object of the form:
2805
2806 { # GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517
2807 &quot;cacheHeader&quot;: { # RFC-2616: cache control support # OnePlatform automatically extracts this field and uses it to set the HTTP
2808 # Cache-Control header.
2809 &quot;directive&quot;: &quot;A String&quot;, # 14.9 request and response directives
2810 &quot;expires&quot;: &quot;A String&quot;, # 14.21 response cache expires, in RFC 1123 date format
2811 &quot;age&quot;: &quot;A String&quot;, # 14.6 response cache age, in seconds since the response is generated
2812 },
2813 &quot;keys&quot;: [ # The public component of the keys used by the cluster to sign token
2814 # requests.
2815 { # Jwk is a JSON Web Key as specified in RFC 7517
2816 &quot;n&quot;: &quot;A String&quot;, # Used for RSA keys.
2817 &quot;use&quot;: &quot;A String&quot;, # Permitted uses for the public keys.
2818 &quot;e&quot;: &quot;A String&quot;, # Used for RSA keys.
2819 &quot;y&quot;: &quot;A String&quot;, # Used for ECDSA keys.
2820 &quot;x&quot;: &quot;A String&quot;, # Used for ECDSA keys.
2821 &quot;crv&quot;: &quot;A String&quot;, # Used for ECDSA keys.
2822 &quot;alg&quot;: &quot;A String&quot;, # Algorithm.
2823 &quot;kty&quot;: &quot;A String&quot;, # Key Type.
2824 &quot;kid&quot;: &quot;A String&quot;, # Key ID.
2825 },
2826 ],
2827 }</pre>
2828</div>
2829
2830<div class="method">
2831 <code class="details" id="list">list(parent, zone=None, projectId=None, x__xgafv=None)</code>
2832 <pre>Lists all clusters owned by a project in either the specified zone or all
2833zones.
2834
2835Args:
2836 parent: string, The parent (project and location) where the clusters will be listed.
2837Specified in the format `projects/*/locations/*`.
2838Location &quot;-&quot; matches all zones and all regions. (required)
2839 zone: string, Required. Deprecated. The name of the Google Compute Engine
2840[zone](https://cloud.google.com/compute/docs/zones#available) in which the
2841cluster resides, or &quot;-&quot; for all zones. This field has been deprecated and
2842replaced by the parent field.
2843 projectId: string, Required. Deprecated. The Google Developers Console [project ID or project
2844number](https://support.google.com/cloud/answer/6158840).
2845This field has been deprecated and replaced by the parent field.
2846 x__xgafv: string, V1 error format.
2847 Allowed values
2848 1 - v1 error format
2849 2 - v2 error format
2850
2851Returns:
2852 An object of the form:
2853
2854 { # ListClustersResponse is the result of ListClustersRequest.
2855 &quot;missingZones&quot;: [ # If any zones are listed here, the list of clusters returned
2856 # may be missing those zones.
2857 &quot;A String&quot;,
2858 ],
2859 &quot;clusters&quot;: [ # A list of clusters in the project in the specified zone, or
2860 # across all ones.
2861 { # A Google Kubernetes Engine cluster.
2862 &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.
2863 # cluster, enabling additional functionality.
2864 &quot;configConnectorConfig&quot;: { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes
2865 # extension to manage hosted GCP services through the Kubernetes API
2866 &quot;enabled&quot;: True or False, # Whether Cloud Connector is enabled for this cluster.
2867 },
2868 &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.
2869 # enabled at cluster creation time.
2870 &quot;enabled&quot;: True or False, # Whether the Compute Engine PD CSI driver is enabled for this cluster.
2871 },
2872 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
2873 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
2874 },
2875 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
2876 # is enabled or not on the Master, it does not track whether network policy
2877 # is enabled for the nodes.
2878 # is enabled or not on the Master, it does not track whether network policy
2879 # is enabled for the nodes.
2880 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
2881 },
2882 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
2883 # This addon is deprecated, and will be disabled in 1.15. It is recommended
2884 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
2885 # workloads and applications. For more information, see:
2886 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
2887 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
2888 },
2889 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
2890 # makes it easy to set up HTTP load balancers for services in a cluster.
2891 # which makes it easy to set up HTTP load balancers for services in a cluster.
2892 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
2893 # When enabled, it runs a small pod in the cluster that manages the load
2894 # balancers.
2895 },
2896 &quot;istioConfig&quot;: { # Configuration options for Istio addon. # Configuration for Istio, an open platform to connect, manage, and secure
2897 # microservices.
2898 &quot;disabled&quot;: True or False, # Whether Istio is enabled for this cluster.
2899 &quot;auth&quot;: &quot;A String&quot;, # The specified Istio auth mode, either none, or mutual TLS.
2900 },
2901 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
2902 # increases or decreases the number of replica pods a replication controller
2903 # has based on the resource usage of the existing pods.
2904 # increases or decreases the number of replica pods a replication controller
2905 # has based on the resource usage of the existing pods.
2906 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
2907 # When enabled, it ensures that metrics are collected into Stackdriver
2908 # Monitoring.
2909 },
2910 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be
2911 # enabled in order to enable Cloud Run addon. This option can only be enabled
2912 # at cluster creation time.
2913 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
2914 },
2915 &quot;kalmConfig&quot;: { # Configuration options for the KALM addon. # Configuration for the KALM addon, which manages the lifecycle of k8s
2916 # applications.
2917 &quot;enabled&quot;: True or False, # Whether KALM is enabled for this cluster.
2918 },
2919 },
2920 &quot;createTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster was created, in
2921 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
2922 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # The IP address range of the container pods in this cluster, in
2923 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2924 # notation (e.g. `10.96.0.0/14`). Leave blank to have
2925 # one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
2926 &quot;legacyAbac&quot;: { # Configuration for the legacy Attribute Based Access Control authorization # Configuration for the legacy ABAC authorization mode.
2927 # mode.
2928 &quot;enabled&quot;: True or False, # Whether the ABAC authorizer is enabled for this cluster. When enabled,
2929 # identities in the system, including service accounts, nodes, and
2930 # controllers, will have statically granted permissions beyond those
2931 # provided by the RBAC configuration or IAM.
2932 },
2933 &quot;binaryAuthorization&quot;: { # Configuration for Binary Authorization. # Configuration for Binary Authorization.
2934 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
2935 # images will be validated by Google Binauthz.
2936 },
2937 &quot;currentNodeVersion&quot;: &quot;A String&quot;, # [Output only] Deprecated, use
2938 # [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools)
2939 # instead. The current version of the node software components.
2940 # If they are currently at multiple versions because they&#x27;re in the process
2941 # of being upgraded, this reflects the minimum version of all nodes.
2942 &quot;currentNodeCount&quot;: 42, # [Output only] The number of nodes currently in the cluster. Deprecated.
2943 # Call Kubernetes API directly to retrieve node information.
2944 &quot;ipAllocationPolicy&quot;: { # Configuration for controlling how IPs are allocated in the cluster. # Configuration for cluster IP allocation.
2945 &quot;servicesIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the services IPs in this cluster. If blank, a range
2946 # will be automatically chosen with the default size.
2947 #
2948 # This field is only applicable when `use_ip_aliases` is true.
2949 #
2950 # Set to blank to have a range chosen with the default size.
2951 #
2952 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
2953 # netmask.
2954 #
2955 # Set to a
2956 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2957 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
2958 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
2959 # to use.
2960 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use services_ipv4_cidr_block.
2961 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the Cloud TPUs in this cluster. If unspecified, a
2962 # range will be automatically chosen with the default size.
2963 #
2964 # This field is only applicable when `use_ip_aliases` is true.
2965 #
2966 # If unspecified, the range will use the default size.
2967 #
2968 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
2969 # netmask.
2970 #
2971 # Set to a
2972 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
2973 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
2974 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
2975 # to use.
2976 # This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
2977 &quot;useIpAliases&quot;: True or False, # Whether alias IPs will be used for pod IPs in the cluster.
2978 # This is used in conjunction with use_routes. It cannot
2979 # be true if use_routes is true. If both use_ip_aliases and use_routes are
2980 # false, then the server picks the default IP allocation mode
2981 &quot;nodeIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use node_ipv4_cidr_block.
2982 &quot;createSubnetwork&quot;: True or False, # Whether a new subnetwork will be created automatically for the cluster.
2983 #
2984 # This field is only applicable when `use_ip_aliases` is true.
2985 &quot;clusterSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used for the cluster CIDR
2986 # block. The secondary range will be used for pod IP
2987 # addresses. This must be an existing secondary range associated
2988 # with the cluster subnetwork.
2989 #
2990 # This field is only applicable with use_ip_aliases and
2991 # create_subnetwork is false.
2992 &quot;servicesSecondaryRangeName&quot;: &quot;A String&quot;, # The name of the secondary range to be used as for the services
2993 # CIDR block. The secondary range will be used for service
2994 # ClusterIPs. This must be an existing secondary range associated
2995 # with the cluster subnetwork.
2996 #
2997 # This field is only applicable with use_ip_aliases and
2998 # create_subnetwork is false.
2999 &quot;useRoutes&quot;: True or False, # Whether routes will be used for pod IPs in the cluster.
3000 # This is used in conjunction with use_ip_aliases. It cannot be true if
3001 # use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
3002 # then the server picks the default IP allocation mode
3003 &quot;subnetworkName&quot;: &quot;A String&quot;, # A custom subnetwork name to be used if `create_subnetwork` is true. If
3004 # this field is empty, then an automatic name will be chosen for the new
3005 # subnetwork.
3006 &quot;allowRouteOverlap&quot;: True or False, # If true, allow allocation of cluster CIDR ranges that overlap with certain
3007 # kinds of network routes. By default we do not allow cluster CIDR ranges to
3008 # intersect with any user declared routes. With allow_route_overlap == true,
3009 # we allow overlapping with CIDR ranges that are larger than the cluster CIDR
3010 # range.
3011 #
3012 # If this field is set to true, then cluster and services CIDRs must be
3013 # fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
3014 # 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
3015 # `services_ipv4_cidr_block` must be fully-specified.
3016 # 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
3017 # fully-specified.
3018 &quot;clusterIpv4Cidr&quot;: &quot;A String&quot;, # This field is deprecated, use cluster_ipv4_cidr_block.
3019 &quot;nodeIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range of the instance IPs in this cluster.
3020 #
3021 # This is applicable only if `create_subnetwork` is true.
3022 #
3023 # Set to blank to have a range chosen with the default size.
3024 #
3025 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
3026 # netmask.
3027 #
3028 # Set to a
3029 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
3030 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
3031 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
3032 # to use.
3033 &quot;clusterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP address range for the cluster pod IPs. If this field is set, then
3034 # `cluster.cluster_ipv4_cidr` must be left blank.
3035 #
3036 # This field is only applicable when `use_ip_aliases` is true.
3037 #
3038 # Set to blank to have a range chosen with the default size.
3039 #
3040 # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
3041 # netmask.
3042 #
3043 # Set to a
3044 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
3045 # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
3046 # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
3047 # to use.
3048 },
3049 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Configuration options for the NetworkPolicy feature.
3050 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
3051 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
3052 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
3053 },
3054 &quot;privateClusterConfig&quot;: { # Configuration options for private clusters. # Configuration for private cluster.
3055 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
3056 # given only RFC 1918 private addresses and communicate with the master via
3057 # private networking.
3058 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
3059 # range will be used for assigning internal IP addresses to the master or
3060 # set of masters, as well as the ILB VIP. This range must not overlap with
3061 # any other ranges in use within the cluster&#x27;s network.
3062 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
3063 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
3064 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
3065 &quot;masterGlobalAccessConfig&quot;: { # Configuration for controlling master global access settings. # Controls master global access settings.
3066 &quot;enabled&quot;: True or False, # Whenever master is accessible globally or not.
3067 },
3068 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
3069 },
3070 &quot;enableTpu&quot;: True or False, # Enable the ability to use Cloud TPUs in this cluster.
3071 # This field is deprecated, use tpu_config.enabled instead.
3072 &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
3073 # policies.
3074 # policies.
3075 &quot;identityNamespace&quot;: &quot;A String&quot;, # IAM Identity Namespace to attach all Kubernetes Service Accounts to.
3076 &quot;identityProvider&quot;: &quot;A String&quot;, # identity provider is the third party identity provider.
3077 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
3078 },
3079 &quot;monitoringService&quot;: &quot;A String&quot;, # The monitoring service the cluster should use to write metrics.
3080 # Currently available options:
3081 #
3082 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
3083 # service with a Kubernetes-native resource model
3084 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
3085 # longer available as of GKE 1.15).
3086 # * `none` - No metrics will be exported from the cluster.
3087 #
3088 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
3089 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
3090 &quot;networkConfig&quot;: { # NetworkConfig reports the relative names of network &amp; subnetwork. # Configuration for cluster networking.
3091 &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
3092 # will be disabled when default_snat_status is disabled. When disabled is set
3093 # to false, default IP masquerade rules will be applied to the nodes to
3094 # prevent sNAT on cluster internal traffic.
3095 # be disabled on the cluster.
3096 &quot;disabled&quot;: True or False, # Disables cluster default sNAT rules.
3097 },
3098 &quot;enableIntraNodeVisibility&quot;: True or False, # Whether Intra-node visibility is enabled for this cluster.
3099 # This makes same node pod to pod traffic visible for VPC network.
3100 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
3101 # [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
3102 # cluster is connected. Example:
3103 # projects/my-project/regions/us-central1/subnetworks/my-subnet
3104 &quot;network&quot;: &quot;A String&quot;, # Output only. The relative name of the Google Compute Engine
3105 # network(https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
3106 # to which the cluster is connected. Example:
3107 # projects/my-project/global/networks/my-network
3108 },
3109 &quot;shieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Shielded Nodes configuration.
3110 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
3111 },
3112 &quot;masterAuth&quot;: { # The authentication information for accessing the master endpoint. # The authentication information for accessing the master endpoint.
3113 # If unspecified, the defaults are used:
3114 # For clusters before v1.12, if master_auth is unspecified, `username` will
3115 # be set to &quot;admin&quot;, a random password will be generated, and a client
3116 # certificate will be issued.
3117 # Authentication can be done using HTTP basic auth or using client
3118 # certificates.
3119 &quot;clusterCaCertificate&quot;: &quot;A String&quot;,
3120 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
3121 # For clusters v1.6.0 and later, basic authentication can be disabled by
3122 # leaving username unspecified (or setting it to the empty string).
3123 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
3124 # authenticate to the cluster endpoint.
3125 &quot;password&quot;: &quot;A String&quot;, # The password to use for HTTP basic authentication to the master endpoint.
3126 # Because the master endpoint is open to the Internet, you should create a
3127 # strong password. If a password is provided for cluster creation, username
3128 # must be non-empty.
3129 &quot;clientCertificateConfig&quot;: { # Configuration for client certificates on the cluster. # Configuration for client certificate authentication on the cluster. For
3130 # clusters before v1.12, if no configuration is specified, a client
3131 # certificate is issued.
3132 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
3133 },
3134 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
3135 # to the cluster endpoint.
3136 },
3137 &quot;initialClusterVersion&quot;: &quot;A String&quot;, # The initial Kubernetes version for this cluster. Valid versions are those
3138 # found in validMasterVersions returned by getServerConfig. The version can
3139 # be upgraded over time; such upgrades are reflected in
3140 # currentMasterVersion and currentNodeVersion.
3141 #
3142 # Users may specify either explicit versions offered by
3143 # Kubernetes Engine or version aliases, which have the following behavior:
3144 #
3145 # - &quot;latest&quot;: picks the highest valid Kubernetes version
3146 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
3147 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
3148 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
3149 # - &quot;&quot;,&quot;-&quot;: picks the default Kubernetes version
3150 &quot;privateCluster&quot;: True or False, # If this is a private cluster setup. Private clusters are clusters that, by
3151 # default have no external IP addresses on the nodes and where nodes and the
3152 # master communicate over private IP addresses.
3153 # This field is deprecated, use private_cluster_config.enable_private_nodes
3154 # instead.
3155 &quot;nodeConfig&quot;: { # Parameters that describe the nodes in a cluster. # Parameters used in creating the cluster&#x27;s nodes.
3156 # For requests, this field should only be used in lieu of a
3157 # &quot;node_pool&quot; object, since this configuration (along with the
3158 # &quot;initial_node_count&quot;) will be used to create a &quot;NodePool&quot; object with an
3159 # auto-generated name. Do not use this and a node_pool at the same time.
3160 # For responses, this field will be populated with the node configuration of
3161 # the first node pool. (For configuration of each node pool, see
3162 # `node_pool.config`)
3163 #
3164 # If unspecified, the defaults are used.
3165 # This field is deprecated, use node_pool.config instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07003166 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
3167 # node VMs under the &quot;default&quot; service account.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003168 #
3169 # The following scopes are recommended, but not required, and by default are
3170 # not included:
3171 #
3172 # * `https://www.googleapis.com/auth/compute` is required for mounting
3173 # persistent storage on your nodes.
3174 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
3175 # communicating with **gcr.io**
Dan O'Mearadd494642020-05-01 07:42:23 -07003176 # (the [Google Container
3177 # Registry](https://cloud.google.com/container-registry/)).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003178 #
3179 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
3180 # Monitoring are enabled, in which case their required scopes will be added.
Bu Sun Kim65020912020-05-20 12:08:20 -07003181 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003182 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003183 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
3184 #
3185 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
3186 # in length. These are reflected as part of a URL in the metadata server.
3187 # Additionally, to avoid ambiguity, keys must not conflict with any other
3188 # metadata keys for the project or be one of the reserved keys:
3189 # &quot;cluster-location&quot;
3190 # &quot;cluster-name&quot;
3191 # &quot;cluster-uid&quot;
3192 # &quot;configure-sh&quot;
3193 # &quot;containerd-configure-sh&quot;
3194 # &quot;enable-oslogin&quot;
3195 # &quot;gci-ensure-gke-docker&quot;
3196 # &quot;gci-metrics-enabled&quot;
3197 # &quot;gci-update-strategy&quot;
3198 # &quot;instance-template&quot;
3199 # &quot;kube-env&quot;
3200 # &quot;startup-script&quot;
3201 # &quot;user-data&quot;
3202 # &quot;disable-address-manager&quot;
3203 # &quot;windows-startup-script-ps1&quot;
3204 # &quot;common-psm1&quot;
3205 # &quot;k8s-node-setup-psm1&quot;
3206 # &quot;install-ssh-psm1&quot;
3207 # &quot;user-profile-psm1&quot;
3208 # &quot;serial-port-logging-enable&quot;
3209 # Values are free-form strings, and only have meaning as interpreted by
3210 # the image running in the instance. The only restriction placed on them is
3211 # that each value&#x27;s size must be less than or equal to 32 KB.
3212 #
3213 # The total size of all keys and values must be less than 512 KB.
3214 &quot;a_key&quot;: &quot;A String&quot;,
3215 },
3216 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
3217 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
3218 # `n1-standard-1`).
3219 #
3220 # If unspecified, the default machine type is
3221 # `n1-standard-1`.
3222 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this
3223 # pool to run on the specified node group. This is useful for running
3224 # workloads on [sole tenant
3225 # nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
3226 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
3227 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
3228 #
3229 # Secure Boot helps ensure that the system only runs authentic software by
3230 # verifying the digital signature of all boot components, and halting the
3231 # boot process if signature verification fails.
3232 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
3233 #
3234 # Enables monitoring and attestation of the boot integrity of the instance.
3235 # The attestation is performed against the integrity policy baseline. This
3236 # baseline is initially derived from the implicitly trusted boot image when
3237 # the instance is created.
3238 },
3239 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
3240 # Specify the email address of the Service Account; otherwise, if no Service
3241 # Account is specified, the &quot;default&quot; service account is used.
3242 &quot;linuxNodeConfig&quot;: { # Parameters that can be configured on Linux nodes. # Parameters that can be configured on Linux nodes.
3243 &quot;sysctls&quot;: { # The Linux kernel parameters to be applied to the nodes and all pods running
3244 # on the nodes.
3245 #
3246 # The following parameters are supported.
3247 #
3248 # net.core.netdev_max_backlog
3249 # net.core.rmem_max
3250 # net.core.wmem_default
3251 # net.core.wmem_max
3252 # net.core.optmem_max
3253 # net.core.somaxconn
3254 # net.ipv4.tcp_rmem
3255 # net.ipv4.tcp_wmem
3256 # net.ipv4.tcp_tw_reuse
3257 &quot;a_key&quot;: &quot;A String&quot;,
3258 },
3259 },
3260 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
3261 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
3262 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
3263 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003264 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003265 #
3266 # For more information, including usage and the valid values, see:
3267 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
3268 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
3269 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
3270 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003271 # See
3272 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
3273 # for more information, including usage and the valid values.
Bu Sun Kim65020912020-05-20 12:08:20 -07003274 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003275 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003276 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003277 },
3278 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003279 &quot;kubeletConfig&quot;: { # Node kubelet configs. # Node kubelet configs.
3280 &quot;cpuCfsQuotaPeriod&quot;: &quot;A String&quot;, # Set the CPU CFS quota period value &#x27;cpu.cfs_period_us&#x27;.
3281 #
3282 # The string must be a sequence of decimal numbers, each with optional
3283 # fraction and a unit suffix, such as &quot;300ms&quot;.
3284 # Valid time units are &quot;ns&quot;, &quot;us&quot; (or &quot;µs&quot;), &quot;ms&quot;, &quot;s&quot;, &quot;m&quot;, &quot;h&quot;.
3285 # The value must be a positive duration.
3286 &quot;cpuCfsQuota&quot;: True or False, # Enable CPU CFS quota enforcement for containers that specify CPU limits.
3287 #
3288 # If this option is enabled, kubelet uses CFS quota
3289 # (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
3290 # enforce container CPU limits. Otherwise, CPU limits will not be enforced at
3291 # all.
3292 #
3293 # Disable this option to mitigate CPU throttling problems while still having
3294 # your pods to be in Guaranteed QoS class by specifying the CPU limits.
3295 #
3296 # The default value is &#x27;true&#x27; if unspecified.
3297 &quot;cpuManagerPolicy&quot;: &quot;A String&quot;, # Control the CPU management policy on the node.
3298 # See
3299 # https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
3300 #
3301 # The following values are allowed.
3302 # - &quot;none&quot;: the default, which represents the existing scheduling behavior.
3303 # - &quot;static&quot;: allows pods with certain resource characteristics to be
3304 # granted increased CPU affinity and exclusivity on the node.
3305 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003306 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
3307 # These will added in addition to any default label(s) that
3308 # Kubernetes may apply to the node.
3309 # In case of conflict in label keys, the applied set may differ depending on
3310 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
3311 # and conflicts should be avoided.
3312 # For more information, including usage and the valid values, see:
3313 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
3314 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003315 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003316 &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;)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003317 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003318 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003319 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
3320 # workloads on the node pool.
3321 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
3322 # workloads running on the node.
3323 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
3324 # on the node pool.
3325 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003326 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
3327 # The Customer Managed Encryption Key used to encrypt the boot disk attached
3328 # to each node in the node pool. This should be of the form
3329 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
3330 # For more information about protecting resources with Cloud KMS Keys please
3331 # see:
3332 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003333 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
3334 # The smallest allowed disk size is 10GB.
3335 #
3336 # If unspecified, the default disk size is 100GB.
3337 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
3338 # the specified [Zonal Compute
3339 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
3340 # to this node pool.
3341 # is the configuration of desired reservation which instances could take
3342 # capacity from.
3343 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
3344 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
3345 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
3346 # the key and specify the name of your reservation as its value.
3347 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
3348 &quot;A String&quot;,
3349 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003350 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003351 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
3352 # https://cloud.google.com/compute/docs/instances/preemptible for more
3353 # inforamtion about preemptible VM instances.
3354 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
3355 # scheduled on the specified or newer CPU platform. Applicable values are the
3356 # friendly names of CPU platforms, such as
3357 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
3358 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
3359 # information, read [how to specify min CPU
3360 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
3361 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
3362 # valid sources or targets for network firewalls and are specified by
3363 # the client during cluster or node pool creation. Each tag within the list
3364 # must comply with RFC1035.
3365 &quot;A String&quot;,
3366 ],
3367 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
3368 # See https://cloud.google.com/compute/docs/gpus for more information about
3369 # support for GPUs.
3370 { # AcceleratorConfig represents a Hardware Accelerator request.
3371 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
3372 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
3373 # [here](https://cloud.google.com/compute/docs/gpus)
3374 },
3375 ],
3376 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
3377 #
3378 # The limit for this value is dependent upon the maximum number of
3379 # disks available on a machine per zone. See:
3380 # https://cloud.google.com/compute/docs/disks/local-ssd
3381 # for more information.
3382 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
3383 # the latest version of it will be used.
Bu Sun Kim65020912020-05-20 12:08:20 -07003384 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003385 &quot;currentMasterVersion&quot;: &quot;A String&quot;, # [Output only] The current software version of the master endpoint.
3386 &quot;masterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The configuration options for master authorized networks feature.
3387 # master authorized networks will disallow all external traffic to access
3388 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
3389 # Google Compute Engine Public IPs and Google Prod IPs.
3390 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 10 external networks that could access
3391 # Kubernetes master through HTTPS.
3392 { # CidrBlock contains an optional name and one CIDR block.
3393 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
3394 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
3395 },
3396 ],
3397 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
3398 },
3399 &quot;servicesIpv4Cidr&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Kubernetes services in
3400 # this cluster, in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003401 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003402 # notation (e.g. `1.2.3.4/29`). Service addresses are
3403 # typically put in the last `/16` from the container CIDR.
3404 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP prefix in CIDR notation to use for the hosted master network.
3405 # This prefix will be used for assigning private IP addresses to the
3406 # master or set of masters, as well as the ILB VIP.
3407 # This field is deprecated, use
3408 # private_cluster_config.master_ipv4_cidr_block instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07003409 &quot;autoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
3410 # required by Cluster Autoscaler to automatically adjust
3411 # the size of the cluster and create/delete
3412 # node pools based on the current needs.
Bu Sun Kim65020912020-05-20 12:08:20 -07003413 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
3414 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
3415 # created by NAP.
3416 # by NAP.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003417 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
Bu Sun Kim65020912020-05-20 12:08:20 -07003418 # disruption caused by an upgrade.
3419 #
3420 # maxUnavailable controls the number of nodes that can be simultaneously
3421 # unavailable.
3422 #
3423 # maxSurge controls the number of additional nodes that can be added to the
3424 # node pool temporarily for the time of the upgrade to increase the number of
3425 # available nodes.
3426 #
3427 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
3428 # nodes are being upgraded at the same time).
3429 #
3430 # Note: upgrades inevitably introduce some disruption since workloads need to
3431 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
3432 # this holds true. (Disruption stays within the limits of
3433 # PodDisruptionBudget, if it is configured.)
3434 #
3435 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
3436 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
3437 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
3438 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
3439 # there are always at least 4 nodes available.
Bu Sun Kim65020912020-05-20 12:08:20 -07003440 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
3441 # the upgrade process. A node is considered available if its status is
3442 # Ready.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003443 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
3444 # of the node pool during the upgrade process.
Bu Sun Kim65020912020-05-20 12:08:20 -07003445 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003446 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
3447 # Specify the email address of the Service Account; otherwise, if no Service
3448 # Account is specified, the &quot;default&quot; service account is used.
3449 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
3450 # node VMs under the &quot;default&quot; service account.
3451 #
3452 # The following scopes are recommended, but not required, and by default are
3453 # not included:
3454 #
3455 # * `https://www.googleapis.com/auth/compute` is required for mounting
3456 # persistent storage on your nodes.
3457 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
3458 # communicating with **gcr.io**
3459 # (the [Google Container
3460 # Registry](https://cloud.google.com/container-registry/)).
3461 #
3462 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
3463 # Monitoring are enabled, in which case their required scopes will be added.
3464 &quot;A String&quot;,
3465 ],
3466 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
3467 # scheduled on the specified or newer CPU platform. Applicable values are the
3468 # friendly names of CPU platforms, such as
3469 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
3470 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
3471 # information, read [how to specify min CPU
3472 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
3473 # To unset the min cpu platform field pass &quot;automatic&quot;
3474 # as field value.
3475 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
3476 # node pool.
3477 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
3478 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
3479 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
3480 # the Auto Upgrades will proceed.
3481 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
3482 # with the description of the upgrade.
3483 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
3484 # with the approximate start time for the upgrades, in
3485 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3486 },
3487 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003488 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003489 &quot;autoscalingProfile&quot;: &quot;A String&quot;, # Defines autoscaling behaviour.
3490 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
3491 # amount of resources in the cluster.
3492 { # Contains information about amount of some resource in the cluster.
3493 # For memory, value should be in GB.
3494 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
3495 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
3496 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
3497 },
3498 ],
3499 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
3500 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
3501 # NodePool&#x27;s nodes can be created by NAP.
3502 &quot;A String&quot;,
3503 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07003504 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003505 &quot;locations&quot;: [ # The list of Google Compute Engine
3506 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
3507 # cluster&#x27;s nodes should be located.
3508 &quot;A String&quot;,
3509 ],
3510 &quot;conditions&quot;: [ # Which conditions caused the current cluster state.
3511 { # StatusCondition describes why a cluster or a node pool has a certain status
3512 # (e.g., ERROR or DEGRADED).
3513 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3514 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3515 },
3516 ],
3517 &quot;loggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
3518 # Currently available options:
3519 #
3520 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
3521 # service with a Kubernetes-native resource model
3522 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
3523 # available as of GKE 1.15).
3524 # * `none` - no logs will be exported from the cluster.
3525 #
3526 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
3527 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
3528 &quot;enableKubernetesAlpha&quot;: True or False, # Kubernetes alpha features are enabled on this cluster. This includes alpha
3529 # API groups (e.g. v1beta1) and features that may not be production ready in
3530 # the kubernetes version of the master and nodes.
3531 # The cluster has no SLA for uptime and master/node upgrades are disabled.
3532 # Alpha enabled clusters are automatically deleted thirty days after
3533 # creation.
3534 &quot;instanceGroupUrls&quot;: [ # Deprecated. Use node_pools.instance_group_urls.
3535 &quot;A String&quot;,
3536 ],
3537 &quot;name&quot;: &quot;A String&quot;, # The name of this cluster. The name must be unique within this project
3538 # and location (e.g. zone or region), and can be up to 40 characters with
3539 # the following restrictions:
3540 #
3541 # * Lowercase letters, numbers, and hyphens only.
3542 # * Must start with a letter.
3543 # * Must end with a number or a letter.
3544 &quot;master&quot;: { # Master is the configuration for components on master. # Configuration for master components.
3545 },
3546 &quot;endpoint&quot;: &quot;A String&quot;, # [Output only] The IP address of this cluster&#x27;s master endpoint.
3547 # The endpoint can be accessed from the internet at
3548 # `https://username:password@endpoint/`.
3549 #
3550 # See the `masterAuth` property of this resource for username and
3551 # password information.
3552 &quot;resourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # Configuration for exporting resource usages. Resource usage export is
3553 # disabled when this config unspecified.
3554 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
3555 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
3556 # second BigQuery table will be created to hold resource consumption
3557 # records.
3558 },
3559 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
3560 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
3561 },
3562 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
3563 # daemonset will be created in the cluster to meter network egress traffic.
3564 },
3565 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
3566 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3567 # or
3568 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
3569 # in which the cluster resides.
3570 &quot;authenticatorGroupsConfig&quot;: { # Configuration for returning group information from authenticators. # Configuration controlling RBAC group membership information.
3571 &quot;securityGroup&quot;: &quot;A String&quot;, # The name of the security group-of-groups to be used. Only relevant
3572 # if enabled = true.
3573 &quot;enabled&quot;: True or False, # Whether this cluster should return group membership lookups
3574 # during authentication using a group of security groups.
3575 },
3576 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
3577 # [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
3578 # the cluster is connected. On output this shows the subnetwork ID instead of
3579 # the name.
3580 &quot;maintenancePolicy&quot;: { # MaintenancePolicy defines the maintenance policy to be used for the cluster. # Configure the maintenance policy for this cluster.
3581 &quot;window&quot;: { # MaintenanceWindow defines the maintenance window to be used for the cluster. # Specifies the maintenance window in which maintenance may be performed.
3582 &quot;recurringWindow&quot;: { # Represents an arbitrary window of time that recurs. # RecurringWindow specifies some number of recurring time periods for
3583 # maintenance to occur. The time windows may be overlapping. If no
3584 # maintenance windows are set, maintenance can occur at any time.
3585 &quot;recurrence&quot;: &quot;A String&quot;, # An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
3586 # this window reccurs. They go on for the span of time between the start and
3587 # end time.
3588 #
3589 # For example, to have something repeat every weekday, you&#x27;d use:
3590 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
3591 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
3592 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
3593 # For the first weekend of every month:
3594 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
3595 # This specifies how frequently the window starts. Eg, if you wanted to have
3596 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
3597 # &lt;code&gt;
3598 # start time = 2019-01-01T09:00:00-0400
3599 # end time = 2019-01-01T17:00:00-0400
3600 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
3601 # &lt;/code&gt;
3602 # Windows can span multiple days. Eg, to make the window encompass every
3603 # weekend from midnight Saturday till the last minute of Sunday UTC:
3604 # &lt;code&gt;
3605 # start time = 2019-01-05T00:00:00Z
3606 # end time = 2019-01-07T23:59:00Z
3607 # recurrence = FREQ=WEEKLY;BYDAY=SA
3608 # &lt;/code&gt;
3609 # Note the start and end time&#x27;s specific dates are largely arbitrary except
3610 # to specify duration of the window and when it first starts.
3611 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
3612 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
3613 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
3614 # start time.
3615 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
3616 },
3617 },
3618 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
3619 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
3620 # It must be in format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
3621 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
3622 # smallest possible in the given scenario.
3623 },
3624 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
3625 # occur in these windows.
3626 &quot;a_key&quot;: { # Represents an arbitrary window of time.
3627 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
3628 # start time.
3629 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
3630 },
3631 },
3632 },
3633 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
3634 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
3635 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
3636 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
3637 # resource version and include it with requests to set the policy.
3638 },
3639 &quot;tpuConfig&quot;: { # Configuration for Cloud TPU. # Configuration for Cloud TPU support;
3640 &quot;ipv4CidrBlock&quot;: &quot;A String&quot;, # IPv4 CIDR block reserved for Cloud TPU in the VPC.
3641 &quot;useServiceNetworking&quot;: True or False, # Whether to use service networking for Cloud TPU or not.
3642 &quot;enabled&quot;: True or False, # Whether Cloud TPU integration is enabled or not.
3643 },
3644 &quot;nodePools&quot;: [ # The node pools associated with this cluster.
3645 # This field should not be set if &quot;node_config&quot; or &quot;initial_node_count&quot; are
3646 # specified.
3647 { # NodePool contains the name and configuration for a cluster&#x27;s node pool.
3648 # Node pools are a set of nodes (i.e. VM&#x27;s), with a common configuration and
3649 # specification, under the control of the cluster master. They may have a set
3650 # of Kubernetes labels applied to them, which may be used to reference them
3651 # during pod scheduling. They may also be resized up or down, to accommodate
3652 # the workload.
3653 &quot;status&quot;: &quot;A String&quot;, # [Output only] The status of the nodes in this pool instance.
3654 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
3655 # disruption caused by an upgrade.
3656 #
3657 # maxUnavailable controls the number of nodes that can be simultaneously
3658 # unavailable.
3659 #
3660 # maxSurge controls the number of additional nodes that can be added to the
3661 # node pool temporarily for the time of the upgrade to increase the number of
3662 # available nodes.
3663 #
3664 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
3665 # nodes are being upgraded at the same time).
3666 #
3667 # Note: upgrades inevitably introduce some disruption since workloads need to
3668 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
3669 # this holds true. (Disruption stays within the limits of
3670 # PodDisruptionBudget, if it is configured.)
3671 #
3672 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
3673 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
3674 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
3675 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
3676 # there are always at least 4 nodes available.
3677 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
3678 # the upgrade process. A node is considered available if its status is
3679 # Ready.
3680 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
3681 # of the node pool during the upgrade process.
3682 },
3683 &quot;instanceGroupUrls&quot;: [ # [Output only] The resource URLs of the [managed instance
3684 # groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
3685 # associated with this node pool.
3686 &quot;A String&quot;,
3687 ],
3688 &quot;autoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for this NodePool. Autoscaler is enabled
3689 # only if a valid configuration is present.
3690 # adjust the size of the node pool to the current cluster usage.
3691 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
3692 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
3693 # max_node_count.
3694 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
3695 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
3696 # has to enough quota to scale up the cluster.
3697 },
3698 &quot;initialNodeCount&quot;: 42, # The initial node count for the pool. You must ensure that your
3699 # Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
3700 # is sufficient for this number of instances. You must also have available
3701 # firewall and routes quota.
3702 &quot;config&quot;: { # Parameters that describe the nodes in a cluster. # The node configuration of the pool.
3703 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
3704 # node VMs under the &quot;default&quot; service account.
3705 #
3706 # The following scopes are recommended, but not required, and by default are
3707 # not included:
3708 #
3709 # * `https://www.googleapis.com/auth/compute` is required for mounting
3710 # persistent storage on your nodes.
3711 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
3712 # communicating with **gcr.io**
3713 # (the [Google Container
3714 # Registry](https://cloud.google.com/container-registry/)).
3715 #
3716 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
3717 # Monitoring are enabled, in which case their required scopes will be added.
3718 &quot;A String&quot;,
3719 ],
3720 &quot;metadata&quot;: { # The metadata key/value pairs assigned to instances in the cluster.
3721 #
3722 # Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
3723 # in length. These are reflected as part of a URL in the metadata server.
3724 # Additionally, to avoid ambiguity, keys must not conflict with any other
3725 # metadata keys for the project or be one of the reserved keys:
3726 # &quot;cluster-location&quot;
3727 # &quot;cluster-name&quot;
3728 # &quot;cluster-uid&quot;
3729 # &quot;configure-sh&quot;
3730 # &quot;containerd-configure-sh&quot;
3731 # &quot;enable-oslogin&quot;
3732 # &quot;gci-ensure-gke-docker&quot;
3733 # &quot;gci-metrics-enabled&quot;
3734 # &quot;gci-update-strategy&quot;
3735 # &quot;instance-template&quot;
3736 # &quot;kube-env&quot;
3737 # &quot;startup-script&quot;
3738 # &quot;user-data&quot;
3739 # &quot;disable-address-manager&quot;
3740 # &quot;windows-startup-script-ps1&quot;
3741 # &quot;common-psm1&quot;
3742 # &quot;k8s-node-setup-psm1&quot;
3743 # &quot;install-ssh-psm1&quot;
3744 # &quot;user-profile-psm1&quot;
3745 # &quot;serial-port-logging-enable&quot;
3746 # Values are free-form strings, and only have meaning as interpreted by
3747 # the image running in the instance. The only restriction placed on them is
3748 # that each value&#x27;s size must be less than or equal to 32 KB.
3749 #
3750 # The total size of all keys and values must be less than 512 KB.
3751 &quot;a_key&quot;: &quot;A String&quot;,
3752 },
3753 &quot;machineType&quot;: &quot;A String&quot;, # The name of a Google Compute Engine [machine
3754 # type](https://cloud.google.com/compute/docs/machine-types) (e.g.
3755 # `n1-standard-1`).
3756 #
3757 # If unspecified, the default machine type is
3758 # `n1-standard-1`.
3759 &quot;nodeGroup&quot;: &quot;A String&quot;, # Setting this field will assign instances of this
3760 # pool to run on the specified node group. This is useful for running
3761 # workloads on [sole tenant
3762 # nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
3763 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
3764 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
3765 #
3766 # Secure Boot helps ensure that the system only runs authentic software by
3767 # verifying the digital signature of all boot components, and halting the
3768 # boot process if signature verification fails.
3769 &quot;enableIntegrityMonitoring&quot;: True or False, # Defines whether the instance has integrity monitoring enabled.
3770 #
3771 # Enables monitoring and attestation of the boot integrity of the instance.
3772 # The attestation is performed against the integrity policy baseline. This
3773 # baseline is initially derived from the implicitly trusted boot image when
3774 # the instance is created.
3775 },
3776 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
3777 # Specify the email address of the Service Account; otherwise, if no Service
3778 # Account is specified, the &quot;default&quot; service account is used.
3779 &quot;linuxNodeConfig&quot;: { # Parameters that can be configured on Linux nodes. # Parameters that can be configured on Linux nodes.
3780 &quot;sysctls&quot;: { # The Linux kernel parameters to be applied to the nodes and all pods running
3781 # on the nodes.
3782 #
3783 # The following parameters are supported.
3784 #
3785 # net.core.netdev_max_backlog
3786 # net.core.rmem_max
3787 # net.core.wmem_default
3788 # net.core.wmem_max
3789 # net.core.optmem_max
3790 # net.core.somaxconn
3791 # net.ipv4.tcp_rmem
3792 # net.ipv4.tcp_wmem
3793 # net.ipv4.tcp_tw_reuse
3794 &quot;a_key&quot;: &quot;A String&quot;,
3795 },
3796 },
3797 &quot;sandboxConfig&quot;: { # SandboxConfig contains configurations of the sandbox to use for the node. # Sandbox configuration for this node.
3798 &quot;type&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node.
3799 &quot;sandboxType&quot;: &quot;A String&quot;, # Type of the sandbox to use for the node (e.g. &#x27;gvisor&#x27;)
3800 },
3801 &quot;taints&quot;: [ # List of kubernetes taints to be applied to each node.
3802 #
3803 # For more information, including usage and the valid values, see:
3804 # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
3805 { # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
3806 # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
3807 #
3808 # See
3809 # [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
3810 # for more information, including usage and the valid values.
3811 &quot;effect&quot;: &quot;A String&quot;, # Effect for taint.
3812 &quot;key&quot;: &quot;A String&quot;, # Key for taint.
3813 &quot;value&quot;: &quot;A String&quot;, # Value for taint.
3814 },
3815 ],
3816 &quot;kubeletConfig&quot;: { # Node kubelet configs. # Node kubelet configs.
3817 &quot;cpuCfsQuotaPeriod&quot;: &quot;A String&quot;, # Set the CPU CFS quota period value &#x27;cpu.cfs_period_us&#x27;.
3818 #
3819 # The string must be a sequence of decimal numbers, each with optional
3820 # fraction and a unit suffix, such as &quot;300ms&quot;.
3821 # Valid time units are &quot;ns&quot;, &quot;us&quot; (or &quot;µs&quot;), &quot;ms&quot;, &quot;s&quot;, &quot;m&quot;, &quot;h&quot;.
3822 # The value must be a positive duration.
3823 &quot;cpuCfsQuota&quot;: True or False, # Enable CPU CFS quota enforcement for containers that specify CPU limits.
3824 #
3825 # If this option is enabled, kubelet uses CFS quota
3826 # (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to
3827 # enforce container CPU limits. Otherwise, CPU limits will not be enforced at
3828 # all.
3829 #
3830 # Disable this option to mitigate CPU throttling problems while still having
3831 # your pods to be in Guaranteed QoS class by specifying the CPU limits.
3832 #
3833 # The default value is &#x27;true&#x27; if unspecified.
3834 &quot;cpuManagerPolicy&quot;: &quot;A String&quot;, # Control the CPU management policy on the node.
3835 # See
3836 # https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
3837 #
3838 # The following values are allowed.
3839 # - &quot;none&quot;: the default, which represents the existing scheduling behavior.
3840 # - &quot;static&quot;: allows pods with certain resource characteristics to be
3841 # granted increased CPU affinity and exclusivity on the node.
3842 },
3843 &quot;labels&quot;: { # The map of Kubernetes labels (key/value pairs) to be applied to each node.
3844 # These will added in addition to any default label(s) that
3845 # Kubernetes may apply to the node.
3846 # In case of conflict in label keys, the applied set may differ depending on
3847 # the Kubernetes version -- it&#x27;s best to assume the behavior is undefined
3848 # and conflicts should be avoided.
3849 # For more information, including usage and the valid values, see:
3850 # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
3851 &quot;a_key&quot;: &quot;A String&quot;,
3852 },
3853 &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;)
3854 #
3855 # If unspecified, the default disk type is &#x27;pd-standard&#x27;
3856 &quot;workloadMetadataConfig&quot;: { # WorkloadMetadataConfig defines the metadata configuration to expose to # The workload metadata configuration for this node.
3857 # workloads on the node pool.
3858 &quot;nodeMetadata&quot;: &quot;A String&quot;, # NodeMetadata is the configuration for how to expose metadata to the
3859 # workloads running on the node.
3860 &quot;mode&quot;: &quot;A String&quot;, # Mode is the configuration for how to expose metadata to workloads running
3861 # on the node pool.
3862 },
3863 &quot;bootDiskKmsKey&quot;: &quot;A String&quot;, #
3864 # The Customer Managed Encryption Key used to encrypt the boot disk attached
3865 # to each node in the node pool. This should be of the form
3866 # projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
3867 # For more information about protecting resources with Cloud KMS Keys please
3868 # see:
3869 # https://cloud.google.com/compute/docs/disks/customer-managed-encryption
3870 &quot;diskSizeGb&quot;: 42, # Size of the disk attached to each node, specified in GB.
3871 # The smallest allowed disk size is 10GB.
3872 #
3873 # If unspecified, the default disk size is 100GB.
3874 &quot;reservationAffinity&quot;: { # [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) # The optional reservation affinity. Setting this field will apply
3875 # the specified [Zonal Compute
3876 # Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
3877 # to this node pool.
3878 # is the configuration of desired reservation which instances could take
3879 # capacity from.
3880 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Corresponds to the type of reservation consumption.
3881 &quot;key&quot;: &quot;A String&quot;, # Corresponds to the label key of a reservation resource. To target a
3882 # SPECIFIC_RESERVATION by name, specify &quot;googleapis.com/reservation-name&quot; as
3883 # the key and specify the name of your reservation as its value.
3884 &quot;values&quot;: [ # Corresponds to the label value(s) of reservation resource(s).
3885 &quot;A String&quot;,
3886 ],
3887 },
3888 &quot;preemptible&quot;: True or False, # Whether the nodes are created as preemptible VM instances. See:
3889 # https://cloud.google.com/compute/docs/instances/preemptible for more
3890 # inforamtion about preemptible VM instances.
3891 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
3892 # scheduled on the specified or newer CPU platform. Applicable values are the
3893 # friendly names of CPU platforms, such as
3894 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
3895 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
3896 # information, read [how to specify min CPU
3897 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
3898 &quot;tags&quot;: [ # The list of instance tags applied to all nodes. Tags are used to identify
3899 # valid sources or targets for network firewalls and are specified by
3900 # the client during cluster or node pool creation. Each tag within the list
3901 # must comply with RFC1035.
3902 &quot;A String&quot;,
3903 ],
3904 &quot;accelerators&quot;: [ # A list of hardware accelerators to be attached to each node.
3905 # See https://cloud.google.com/compute/docs/gpus for more information about
3906 # support for GPUs.
3907 { # AcceleratorConfig represents a Hardware Accelerator request.
3908 &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of the accelerator cards exposed to an instance.
3909 &quot;acceleratorType&quot;: &quot;A String&quot;, # The accelerator type resource name. List of supported accelerators
3910 # [here](https://cloud.google.com/compute/docs/gpus)
3911 },
3912 ],
3913 &quot;localSsdCount&quot;: 42, # The number of local SSD disks to be attached to the node.
3914 #
3915 # The limit for this value is dependent upon the maximum number of
3916 # disks available on a machine per zone. See:
3917 # https://cloud.google.com/compute/docs/disks/local-ssd
3918 # for more information.
3919 &quot;imageType&quot;: &quot;A String&quot;, # The image type to use for this node. Note that for a given image type,
3920 # the latest version of it will be used.
3921 },
3922 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
3923 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
3924 # node pool.
3925 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
3926 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
3927 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
3928 # the Auto Upgrades will proceed.
3929 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
3930 # with the description of the upgrade.
3931 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
3932 # with the approximate start time for the upgrades, in
3933 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
3934 },
3935 },
3936 &quot;name&quot;: &quot;A String&quot;, # The name of the node pool.
3937 &quot;version&quot;: &quot;A String&quot;, # The version of the Kubernetes of this node.
3938 &quot;maxPodsConstraint&quot;: { # Constraints applied to pods. # The constraint on the maximum number of pods that can be run
3939 # simultaneously on a node in the node pool.
3940 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
3941 },
3942 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
3943 # node pool instance, if available.
3944 &quot;podIpv4CidrSize&quot;: 42, # [Output only] The pod CIDR block size per node in this node pool.
3945 &quot;conditions&quot;: [ # Which conditions caused the current node pool state.
3946 { # StatusCondition describes why a cluster or a node pool has a certain status
3947 # (e.g., ERROR or DEGRADED).
3948 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
3949 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
3950 },
3951 ],
3952 &quot;locations&quot;: [ # The list of Google Compute Engine
3953 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
3954 # NodePool&#x27;s nodes should be located.
3955 &quot;A String&quot;,
3956 ],
3957 },
3958 ],
3959 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output only] Additional information about the current status of this
3960 # cluster, if available.
3961 &quot;releaseChannel&quot;: { # ReleaseChannel indicates which release channel a cluster is # Release channel configuration.
3962 # subscribed to. Release channels are arranged in order of risk.
3963 #
3964 # When a cluster is subscribed to a release channel, Google maintains
3965 # both the master version and the node version. Node auto-upgrade
3966 # defaults to true and cannot be disabled.
3967 &quot;channel&quot;: &quot;A String&quot;, # channel specifies which release channel the cluster is subscribed to.
3968 },
3969 &quot;selfLink&quot;: &quot;A String&quot;, # [Output only] Server-defined URL for the resource.
3970 &quot;defaultMaxPodsConstraint&quot;: { # Constraints applied to pods. # The default constraint on the maximum number of pods that can be run
3971 # simultaneously on a node in the node pool of this cluster. Only honored
3972 # if cluster created with IP Alias support.
3973 &quot;maxPodsPerNode&quot;: &quot;A String&quot;, # Constraint enforced on the max num of pods per node.
3974 },
3975 &quot;clusterTelemetry&quot;: { # Telemetry integration for the cluster. # Telemetry integration for the cluster.
3976 &quot;type&quot;: &quot;A String&quot;, # Type of the integration.
3977 },
3978 &quot;status&quot;: &quot;A String&quot;, # [Output only] The current status of this cluster.
3979 &quot;resourceLabels&quot;: { # The resource labels for the cluster to use to annotate any related
3980 # Google Compute Engine resources.
3981 &quot;a_key&quot;: &quot;A String&quot;,
3982 },
3983 &quot;tpuIpv4CidrBlock&quot;: &quot;A String&quot;, # [Output only] The IP address range of the Cloud TPUs in this cluster, in
3984 # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
3985 # notation (e.g. `1.2.3.4/29`).
Bu Sun Kim65020912020-05-20 12:08:20 -07003986 &quot;initialNodeCount&quot;: 42, # The number of nodes to create in this cluster. You must ensure that your
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003987 # Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
Dan O'Mearadd494642020-05-01 07:42:23 -07003988 # is sufficient for this number of instances. You must also have available
3989 # firewall and routes quota.
3990 # For requests, this field should only be used in lieu of a
Bu Sun Kim65020912020-05-20 12:08:20 -07003991 # &quot;node_pool&quot; object, since this configuration (along with the
3992 # &quot;node_config&quot;) will be used to create a &quot;NodePool&quot; object with an
Dan O'Mearadd494642020-05-01 07:42:23 -07003993 # auto-generated name. Do not use this and a node_pool at the same time.
3994 #
3995 # This field is deprecated, use node_pool.initial_node_count instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07003996 &quot;podSecurityPolicyConfig&quot;: { # Configuration for the PodSecurityPolicy feature. # Configuration for the PodSecurityPolicy feature.
3997 &quot;enabled&quot;: True or False, # Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
3998 # must be valid under a PodSecurityPolicy to be created.
3999 },
4000 &quot;description&quot;: &quot;A String&quot;, # An optional description of this cluster.
4001 &quot;databaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
4002 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
4003 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
4004 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
4005 },
4006 &quot;network&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4007 # [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
4008 # to which the cluster is connected. If left unspecified, the `default`
4009 # network will be used. On output this shows the network ID instead of the
4010 # name.
4011 &quot;zone&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
4012 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4013 # cluster resides. This field is deprecated, use location instead.
4014 &quot;verticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
4015 # required by Vertical Pod Autoscaler to automatically adjust
4016 # the resources of pods controlled by it.
4017 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
4018 },
4019 &quot;expireTime&quot;: &quot;A String&quot;, # [Output only] The time the cluster will be automatically
4020 # deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4021 &quot;nodeIpv4CidrSize&quot;: 42, # [Output only] The size of the address space on each node for hosting
4022 # containers. This is provisioned from within the `container_ipv4_cidr`
4023 # range. This field will only be set when cluster is in route-based network
4024 # mode.
4025 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the set of labels for this cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004026 },
4027 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004028 }</pre>
4029</div>
4030
4031<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004032 <code class="details" id="setAddons">setAddons(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004033 <pre>Sets the addons for a specific cluster.
4034
4035Args:
4036 name: string, The name (project, location, cluster) of the cluster to set addons.
Bu Sun Kim65020912020-05-20 12:08:20 -07004037Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004038 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004039 The object takes the form of:
4040
4041{ # SetAddonsRequest sets the addons associated with the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004042 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
4043 # This field has been deprecated and replaced by the name field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004044 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set addons.
4045 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07004046 &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 -07004047 # cluster.
4048 # cluster, enabling additional functionality.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004049 &quot;configConnectorConfig&quot;: { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes
4050 # extension to manage hosted GCP services through the Kubernetes API
4051 &quot;enabled&quot;: True or False, # Whether Cloud Connector is enabled for this cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004052 },
4053 &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.
4054 # enabled at cluster creation time.
4055 &quot;enabled&quot;: True or False, # Whether the Compute Engine PD CSI driver is enabled for this cluster.
4056 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004057 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
4058 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004059 },
4060 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
4061 # is enabled or not on the Master, it does not track whether network policy
4062 # is enabled for the nodes.
4063 # is enabled or not on the Master, it does not track whether network policy
4064 # is enabled for the nodes.
4065 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
4066 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004067 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
4068 # This addon is deprecated, and will be disabled in 1.15. It is recommended
4069 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
4070 # workloads and applications. For more information, see:
4071 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
4072 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004073 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004074 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
4075 # makes it easy to set up HTTP load balancers for services in a cluster.
4076 # which makes it easy to set up HTTP load balancers for services in a cluster.
4077 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
4078 # When enabled, it runs a small pod in the cluster that manages the load
4079 # balancers.
4080 },
4081 &quot;istioConfig&quot;: { # Configuration options for Istio addon. # Configuration for Istio, an open platform to connect, manage, and secure
4082 # microservices.
4083 &quot;disabled&quot;: True or False, # Whether Istio is enabled for this cluster.
4084 &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 -07004085 },
4086 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
4087 # increases or decreases the number of replica pods a replication controller
4088 # has based on the resource usage of the existing pods.
4089 # increases or decreases the number of replica pods a replication controller
4090 # has based on the resource usage of the existing pods.
4091 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
4092 # When enabled, it ensures that metrics are collected into Stackdriver
4093 # Monitoring.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004094 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004095 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be
4096 # enabled in order to enable Cloud Run addon. This option can only be enabled
4097 # at cluster creation time.
4098 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
4099 },
4100 &quot;kalmConfig&quot;: { # Configuration options for the KALM addon. # Configuration for the KALM addon, which manages the lifecycle of k8s
4101 # applications.
4102 &quot;enabled&quot;: True or False, # Whether KALM is enabled for this cluster.
4103 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004104 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004105 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
4106 # number](https://support.google.com/cloud/answer/6158840).
4107 # This field has been deprecated and replaced by the name field.
4108 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
4109 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4110 # cluster resides. This field has been deprecated and replaced by the name
4111 # field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004112 }
4113
4114 x__xgafv: string, V1 error format.
4115 Allowed values
4116 1 - v1 error format
4117 2 - v2 error format
4118
4119Returns:
4120 An object of the form:
4121
4122 { # This operation resource represents operations that may have happened or are
4123 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004124 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004125 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Bu Sun Kim65020912020-05-20 12:08:20 -07004126 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004127 &quot;stages&quot;: [ # Substages of an operation or a stage.
4128 # Object with schema name: OperationProgress
4129 ],
4130 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4131 # Unset for single-stage operations.
4132 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4133 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07004134 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4135 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4136 # {name: &quot;nodes total&quot;, int_value: 32}]
4137 # or
4138 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4139 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4140 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kim65020912020-05-20 12:08:20 -07004141 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -07004142 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004143 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4144 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kim65020912020-05-20 12:08:20 -07004145 },
4146 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004147 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004148 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4149 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
4150 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4151 # or
4152 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4153 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004154 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4155 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4156 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004157 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4158 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004159 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004160 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4161 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4162 { # StatusCondition describes why a cluster or a node pool has a certain status
4163 # (e.g., ERROR or DEGRADED).
4164 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4165 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4166 },
4167 ],
4168 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4169 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4170 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4171 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
4172 { # StatusCondition describes why a cluster or a node pool has a certain status
4173 # (e.g., ERROR or DEGRADED).
4174 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4175 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4176 },
4177 ],
4178 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004179 }</pre>
4180</div>
4181
4182<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004183 <code class="details" id="setLegacyAbac">setLegacyAbac(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004184 <pre>Enables or disables the ABAC authorization mechanism on a cluster.
4185
4186Args:
4187 name: string, The name (project, location, cluster id) of the cluster to set legacy abac.
Bu Sun Kim65020912020-05-20 12:08:20 -07004188Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004189 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004190 The object takes the form of:
4191
4192{ # SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for
4193 # a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004194 &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 -07004195 # number](https://support.google.com/cloud/answer/6158840).
4196 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004197 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004198 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4199 # cluster resides. This field has been deprecated and replaced by the name
4200 # field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004201 &quot;enabled&quot;: True or False, # Required. Whether ABAC authorization will be enabled in the cluster.
4202 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set legacy abac.
4203 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07004204 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to update.
4205 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004206 }
4207
4208 x__xgafv: string, V1 error format.
4209 Allowed values
4210 1 - v1 error format
4211 2 - v2 error format
4212
4213Returns:
4214 An object of the form:
4215
4216 { # This operation resource represents operations that may have happened or are
4217 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004218 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004219 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Bu Sun Kim65020912020-05-20 12:08:20 -07004220 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004221 &quot;stages&quot;: [ # Substages of an operation or a stage.
4222 # Object with schema name: OperationProgress
4223 ],
4224 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4225 # Unset for single-stage operations.
4226 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4227 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07004228 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4229 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4230 # {name: &quot;nodes total&quot;, int_value: 32}]
4231 # or
4232 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4233 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4234 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kim65020912020-05-20 12:08:20 -07004235 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -07004236 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004237 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4238 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kim65020912020-05-20 12:08:20 -07004239 },
4240 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004241 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004242 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4243 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
4244 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4245 # or
4246 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4247 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004248 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4249 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4250 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004251 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4252 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004253 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004254 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
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;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4263 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4264 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4265 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
4266 { # StatusCondition describes why a cluster or a node pool has a certain status
4267 # (e.g., ERROR or DEGRADED).
4268 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4269 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4270 },
4271 ],
4272 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004273 }</pre>
4274</div>
4275
4276<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004277 <code class="details" id="setLocations">setLocations(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004278 <pre>Sets the locations for a specific cluster.
Dan O'Mearadd494642020-05-01 07:42:23 -07004279Deprecated. Use
4280[projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters/update)
4281instead.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004282
4283Args:
4284 name: string, The name (project, location, cluster) of the cluster to set locations.
Bu Sun Kim65020912020-05-20 12:08:20 -07004285Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004286 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004287 The object takes the form of:
4288
4289{ # SetLocationsRequest sets the locations of the cluster.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004290 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
4291 # number](https://support.google.com/cloud/answer/6158840).
4292 # This field has been deprecated and replaced by the name field.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004293 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
4294 # This field has been deprecated and replaced by the name field.
4295 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set locations.
4296 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004297 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
4298 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4299 # cluster resides. This field has been deprecated and replaced by the name
4300 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004301 &quot;locations&quot;: [ # Required. The desired list of Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004302 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
Bu Sun Kim65020912020-05-20 12:08:20 -07004303 # cluster&#x27;s nodes should be located. Changing the locations a cluster is in
Dan O'Mearadd494642020-05-01 07:42:23 -07004304 # will result in nodes being either created or removed from the cluster,
4305 # depending on whether locations are being added or removed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004306 #
Bu Sun Kim65020912020-05-20 12:08:20 -07004307 # This list must always include the cluster&#x27;s primary zone.
4308 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004309 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004310 }
4311
4312 x__xgafv: string, V1 error format.
4313 Allowed values
4314 1 - v1 error format
4315 2 - v2 error format
4316
4317Returns:
4318 An object of the form:
4319
4320 { # This operation resource represents operations that may have happened or are
4321 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004322 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004323 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Bu Sun Kim65020912020-05-20 12:08:20 -07004324 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004325 &quot;stages&quot;: [ # Substages of an operation or a stage.
4326 # Object with schema name: OperationProgress
4327 ],
4328 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4329 # Unset for single-stage operations.
4330 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4331 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07004332 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4333 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4334 # {name: &quot;nodes total&quot;, int_value: 32}]
4335 # or
4336 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4337 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4338 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kim65020912020-05-20 12:08:20 -07004339 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -07004340 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004341 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4342 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kim65020912020-05-20 12:08:20 -07004343 },
4344 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004345 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004346 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4347 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
4348 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4349 # or
4350 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4351 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004352 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4353 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4354 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004355 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4356 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004357 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004358 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4359 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4360 { # StatusCondition describes why a cluster or a node pool has a certain status
4361 # (e.g., ERROR or DEGRADED).
4362 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4363 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4364 },
4365 ],
4366 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4367 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4368 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4369 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
4370 { # StatusCondition describes why a cluster or a node pool has a certain status
4371 # (e.g., ERROR or DEGRADED).
4372 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4373 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4374 },
4375 ],
4376 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004377 }</pre>
4378</div>
4379
4380<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004381 <code class="details" id="setLogging">setLogging(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004382 <pre>Sets the logging service for a specific cluster.
4383
4384Args:
4385 name: string, The name (project, location, cluster) of the cluster to set logging.
Bu Sun Kim65020912020-05-20 12:08:20 -07004386Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004387 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004388 The object takes the form of:
4389
4390{ # SetLoggingServiceRequest sets the logging service of a cluster.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004391 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set logging.
4392 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004393 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
4394 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004395 &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 -07004396 # Currently available options:
4397 #
Dan O'Mearadd494642020-05-01 07:42:23 -07004398 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
4399 # service with a Kubernetes-native resource model
4400 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
4401 # available as of GKE 1.15).
4402 # * `none` - no logs will be exported from the cluster.
4403 #
4404 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
4405 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004406 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
4407 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4408 # cluster resides. This field has been deprecated and replaced by the name
4409 # field.
4410 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
4411 # number](https://support.google.com/cloud/answer/6158840).
4412 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004413 }
4414
4415 x__xgafv: string, V1 error format.
4416 Allowed values
4417 1 - v1 error format
4418 2 - v2 error format
4419
4420Returns:
4421 An object of the form:
4422
4423 { # This operation resource represents operations that may have happened or are
4424 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004425 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004426 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Bu Sun Kim65020912020-05-20 12:08:20 -07004427 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004428 &quot;stages&quot;: [ # Substages of an operation or a stage.
4429 # Object with schema name: OperationProgress
4430 ],
4431 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4432 # Unset for single-stage operations.
4433 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4434 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07004435 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4436 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4437 # {name: &quot;nodes total&quot;, int_value: 32}]
4438 # or
4439 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4440 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4441 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kim65020912020-05-20 12:08:20 -07004442 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -07004443 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004444 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4445 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kim65020912020-05-20 12:08:20 -07004446 },
4447 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004448 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004449 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4450 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
4451 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4452 # or
4453 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4454 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004455 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4456 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4457 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004458 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4459 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004460 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004461 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4462 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4463 { # StatusCondition describes why a cluster or a node pool has a certain status
4464 # (e.g., ERROR or DEGRADED).
4465 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4466 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4467 },
4468 ],
4469 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4470 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4471 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4472 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
4473 { # StatusCondition describes why a cluster or a node pool has a certain status
4474 # (e.g., ERROR or DEGRADED).
4475 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4476 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4477 },
4478 ],
4479 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004480 }</pre>
4481</div>
4482
4483<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004484 <code class="details" id="setMaintenancePolicy">setMaintenancePolicy(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004485 <pre>Sets the maintenance policy for a cluster.
4486
4487Args:
4488 name: string, The name (project, location, cluster id) of the cluster to set maintenance
4489policy.
Bu Sun Kim65020912020-05-20 12:08:20 -07004490Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004491 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004492 The object takes the form of:
4493
4494{ # SetMaintenancePolicyRequest sets the maintenance policy for a cluster.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004495 &quot;clusterId&quot;: &quot;A String&quot;, # Required. The name of the cluster to update.
4496 &quot;zone&quot;: &quot;A String&quot;, # Required. The name of the Google Compute Engine
4497 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4498 # cluster resides.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004499 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set maintenance
4500 # policy.
4501 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07004502 &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 -07004503 # clears the existing maintenance policy.
Bu Sun Kim65020912020-05-20 12:08:20 -07004504 &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 Kim65020912020-05-20 12:08:20 -07004505 &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 -07004506 # maintenance to occur. The time windows may be overlapping. If no
4507 # maintenance windows are set, maintenance can occur at any time.
Bu Sun Kim65020912020-05-20 12:08:20 -07004508 &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 -07004509 # this window reccurs. They go on for the span of time between the start and
4510 # end time.
4511 #
Bu Sun Kim65020912020-05-20 12:08:20 -07004512 # For example, to have something repeat every weekday, you&#x27;d use:
Dan O'Mearadd494642020-05-01 07:42:23 -07004513 # &lt;code&gt;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR&lt;/code&gt;
4514 # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
4515 # &lt;code&gt;FREQ=DAILY&lt;/code&gt;
4516 # For the first weekend of every month:
4517 # &lt;code&gt;FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU&lt;/code&gt;
4518 # This specifies how frequently the window starts. Eg, if you wanted to have
Bu Sun Kim65020912020-05-20 12:08:20 -07004519 # a 9-5 UTC-4 window every weekday, you&#x27;d use something like:
Dan O'Mearadd494642020-05-01 07:42:23 -07004520 # &lt;code&gt;
4521 # start time = 2019-01-01T09:00:00-0400
4522 # end time = 2019-01-01T17:00:00-0400
4523 # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
4524 # &lt;/code&gt;
4525 # Windows can span multiple days. Eg, to make the window encompass every
4526 # weekend from midnight Saturday till the last minute of Sunday UTC:
4527 # &lt;code&gt;
4528 # start time = 2019-01-05T00:00:00Z
4529 # end time = 2019-01-07T23:59:00Z
4530 # recurrence = FREQ=WEEKLY;BYDAY=SA
4531 # &lt;/code&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07004532 # Note the start and end time&#x27;s specific dates are largely arbitrary except
Dan O'Mearadd494642020-05-01 07:42:23 -07004533 # to specify duration of the window and when it first starts.
4534 # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
Bu Sun Kim65020912020-05-20 12:08:20 -07004535 &quot;window&quot;: { # Represents an arbitrary window of time. # The window of the first recurrence.
4536 &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 -07004537 # start time.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004538 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
Dan O'Mearadd494642020-05-01 07:42:23 -07004539 },
4540 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004541 &quot;dailyMaintenanceWindow&quot;: { # Time window specified for daily maintenance operations. # DailyMaintenanceWindow specifies a daily maintenance operation window.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004542 &quot;startTime&quot;: &quot;A String&quot;, # Time within the maintenance window to start the maintenance operations.
4543 # It must be in format &quot;HH:MM&quot;, where HH : [00-23] and MM : [00-59] GMT.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004544 &quot;duration&quot;: &quot;A String&quot;, # [Output only] Duration of the time window, automatically chosen to be
4545 # smallest possible in the given scenario.
4546 },
4547 &quot;maintenanceExclusions&quot;: { # Exceptions to maintenance window. Non-emergency maintenance should not
4548 # occur in these windows.
4549 &quot;a_key&quot;: { # Represents an arbitrary window of time.
4550 &quot;endTime&quot;: &quot;A String&quot;, # The time that the window ends. The end time should take place after the
4551 # start time.
4552 &quot;startTime&quot;: &quot;A String&quot;, # The time that the window first starts.
4553 },
Dan O'Mearadd494642020-05-01 07:42:23 -07004554 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004555 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004556 &quot;resourceVersion&quot;: &quot;A String&quot;, # A hash identifying the version of this policy, so that updates to fields of
4557 # the policy won&#x27;t accidentally undo intermediate changes (and so that users
4558 # of the API unaware of some fields won&#x27;t accidentally remove other fields).
4559 # Make a &lt;code&gt;get()&lt;/code&gt; request to the cluster to get the current
4560 # resource version and include it with requests to set the policy.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004561 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004562 &quot;projectId&quot;: &quot;A String&quot;, # Required. The Google Developers Console [project ID or project
4563 # number](https://support.google.com/cloud/answer/6158840).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004564 }
4565
4566 x__xgafv: string, V1 error format.
4567 Allowed values
4568 1 - v1 error format
4569 2 - v2 error format
4570
4571Returns:
4572 An object of the form:
4573
4574 { # This operation resource represents operations that may have happened or are
4575 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004576 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004577 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Bu Sun Kim65020912020-05-20 12:08:20 -07004578 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004579 &quot;stages&quot;: [ # Substages of an operation or a stage.
4580 # Object with schema name: OperationProgress
4581 ],
4582 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4583 # Unset for single-stage operations.
4584 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4585 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07004586 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4587 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4588 # {name: &quot;nodes total&quot;, int_value: 32}]
4589 # or
4590 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4591 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4592 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kim65020912020-05-20 12:08:20 -07004593 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -07004594 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004595 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4596 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kim65020912020-05-20 12:08:20 -07004597 },
4598 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004599 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004600 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4601 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
4602 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4603 # or
4604 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4605 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004606 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4607 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4608 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004609 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4610 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004611 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004612 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4613 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4614 { # StatusCondition describes why a cluster or a node pool has a certain status
4615 # (e.g., ERROR or DEGRADED).
4616 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4617 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4618 },
4619 ],
4620 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4621 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4622 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4623 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
4624 { # StatusCondition describes why a cluster or a node pool has a certain status
4625 # (e.g., ERROR or DEGRADED).
4626 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4627 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4628 },
4629 ],
4630 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004631 }</pre>
4632</div>
4633
4634<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004635 <code class="details" id="setMasterAuth">setMasterAuth(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004636 <pre>Sets master auth materials. Currently supports changing the admin password
4637or a specific cluster, either via password generation or explicitly setting
4638the password.
4639
4640Args:
4641 name: string, The name (project, location, cluster) of the cluster to set auth.
Bu Sun Kim65020912020-05-20 12:08:20 -07004642Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004643 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004644 The object takes the form of:
4645
4646{ # SetMasterAuthRequest updates the admin password of a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004647 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set auth.
4648 # Specified in the format `projects/*/locations/*/clusters/*`.
4649 &quot;action&quot;: &quot;A String&quot;, # Required. The exact form of action to be taken on the master auth.
Bu Sun Kim65020912020-05-20 12:08:20 -07004650 &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 -07004651 # Authentication can be done using HTTP basic auth or using client
4652 # certificates.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004653 &quot;clusterCaCertificate&quot;: &quot;A String&quot;,
4654 &quot;username&quot;: &quot;A String&quot;, # The username to use for HTTP basic authentication to the master endpoint.
4655 # For clusters v1.6.0 and later, basic authentication can be disabled by
4656 # leaving username unspecified (or setting it to the empty string).
4657 &quot;clientCertificate&quot;: &quot;A String&quot;, # [Output only] Base64-encoded public certificate used by clients to
4658 # authenticate to the cluster endpoint.
Bu Sun Kim65020912020-05-20 12:08:20 -07004659 &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 -07004660 # Because the master endpoint is open to the Internet, you should create a
4661 # strong password. If a password is provided for cluster creation, username
4662 # must be non-empty.
Bu Sun Kim65020912020-05-20 12:08:20 -07004663 &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 -07004664 # clusters before v1.12, if no configuration is specified, a client
4665 # certificate is issued.
Bu Sun Kim65020912020-05-20 12:08:20 -07004666 &quot;issueClientCertificate&quot;: True or False, # Issue a client certificate.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004667 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004668 &quot;clientKey&quot;: &quot;A String&quot;, # [Output only] Base64-encoded private key used by clients to authenticate
4669 # to the cluster endpoint.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004670 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004671 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
4672 # number](https://support.google.com/cloud/answer/6158840).
4673 # This field has been deprecated and replaced by the name field.
4674 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
4675 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004676 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
4677 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4678 # cluster resides. This field has been deprecated and replaced by the name
4679 # field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004680 }
4681
4682 x__xgafv: string, V1 error format.
4683 Allowed values
4684 1 - v1 error format
4685 2 - v2 error format
4686
4687Returns:
4688 An object of the form:
4689
4690 { # This operation resource represents operations that may have happened or are
4691 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004692 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004693 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Bu Sun Kim65020912020-05-20 12:08:20 -07004694 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004695 &quot;stages&quot;: [ # Substages of an operation or a stage.
4696 # Object with schema name: OperationProgress
4697 ],
4698 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4699 # Unset for single-stage operations.
4700 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4701 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07004702 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4703 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4704 # {name: &quot;nodes total&quot;, int_value: 32}]
4705 # or
4706 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4707 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4708 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kim65020912020-05-20 12:08:20 -07004709 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -07004710 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004711 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4712 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kim65020912020-05-20 12:08:20 -07004713 },
4714 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004715 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004716 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4717 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
4718 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4719 # or
4720 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4721 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004722 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4723 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4724 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004725 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4726 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004727 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004728 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4729 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4730 { # StatusCondition describes why a cluster or a node pool has a certain status
4731 # (e.g., ERROR or DEGRADED).
4732 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4733 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4734 },
4735 ],
4736 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4737 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4738 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4739 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
4740 { # StatusCondition describes why a cluster or a node pool has a certain status
4741 # (e.g., ERROR or DEGRADED).
4742 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4743 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4744 },
4745 ],
4746 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004747 }</pre>
4748</div>
4749
4750<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004751 <code class="details" id="setMonitoring">setMonitoring(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004752 <pre>Sets the monitoring service for a specific cluster.
4753
4754Args:
4755 name: string, The name (project, location, cluster) of the cluster to set monitoring.
Bu Sun Kim65020912020-05-20 12:08:20 -07004756Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004757 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004758 The object takes the form of:
4759
4760{ # SetMonitoringServiceRequest sets the monitoring service of a cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004761 &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 -07004762 # Currently available options:
4763 #
Bu Sun Kim65020912020-05-20 12:08:20 -07004764 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
Dan O'Mearadd494642020-05-01 07:42:23 -07004765 # service with a Kubernetes-native resource model
4766 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
4767 # longer available as of GKE 1.15).
4768 # * `none` - No metrics will be exported from the cluster.
4769 #
4770 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
4771 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004772 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
4773 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4774 # cluster resides. This field has been deprecated and replaced by the name
4775 # field.
4776 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
4777 # number](https://support.google.com/cloud/answer/6158840).
4778 # This field has been deprecated and replaced by the name field.
4779 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
4780 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004781 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to set monitoring.
4782 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004783 }
4784
4785 x__xgafv: string, V1 error format.
4786 Allowed values
4787 1 - v1 error format
4788 2 - v2 error format
4789
4790Returns:
4791 An object of the form:
4792
4793 { # This operation resource represents operations that may have happened or are
4794 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004795 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004796 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Bu Sun Kim65020912020-05-20 12:08:20 -07004797 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004798 &quot;stages&quot;: [ # Substages of an operation or a stage.
4799 # Object with schema name: OperationProgress
4800 ],
4801 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4802 # Unset for single-stage operations.
4803 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4804 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07004805 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4806 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4807 # {name: &quot;nodes total&quot;, int_value: 32}]
4808 # or
4809 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4810 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4811 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kim65020912020-05-20 12:08:20 -07004812 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -07004813 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004814 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4815 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kim65020912020-05-20 12:08:20 -07004816 },
4817 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004818 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004819 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4820 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
4821 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4822 # or
4823 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4824 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004825 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4826 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4827 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004828 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4829 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004830 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004831 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4832 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4833 { # StatusCondition describes why a cluster or a node pool has a certain status
4834 # (e.g., ERROR or DEGRADED).
4835 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4836 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4837 },
4838 ],
4839 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4840 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4841 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4842 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
4843 { # StatusCondition describes why a cluster or a node pool has a certain status
4844 # (e.g., ERROR or DEGRADED).
4845 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4846 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4847 },
4848 ],
4849 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004850 }</pre>
4851</div>
4852
4853<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004854 <code class="details" id="setNetworkPolicy">setNetworkPolicy(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004855 <pre>Enables or disables Network Policy for a cluster.
4856
4857Args:
4858 name: string, The name (project, location, cluster id) of the cluster to set networking
Bu Sun Kim65020912020-05-20 12:08:20 -07004859policy. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004860 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004861 The object takes the form of:
4862
4863{ # SetNetworkPolicyRequest enables/disables network policy for a cluster.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004864 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster.
4865 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004866 &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 -07004867 # number](https://developers.google.com/console/help/new/#projectnumber).
4868 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07004869 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07004870 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4871 # cluster resides. This field has been deprecated and replaced by the name
4872 # field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004873 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set networking
4874 # policy. Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07004875 &quot;networkPolicy&quot;: { # Configuration options for the NetworkPolicy feature. # Required. Configuration options for the NetworkPolicy feature.
4876 # https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
Bu Sun Kim65020912020-05-20 12:08:20 -07004877 &quot;provider&quot;: &quot;A String&quot;, # The selected network policy provider.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004878 &quot;enabled&quot;: True or False, # Whether network policy is enabled on the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07004879 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004880 }
4881
4882 x__xgafv: string, V1 error format.
4883 Allowed values
4884 1 - v1 error format
4885 2 - v2 error format
4886
4887Returns:
4888 An object of the form:
4889
4890 { # This operation resource represents operations that may have happened or are
4891 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004892 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004893 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Bu Sun Kim65020912020-05-20 12:08:20 -07004894 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004895 &quot;stages&quot;: [ # Substages of an operation or a stage.
4896 # Object with schema name: OperationProgress
4897 ],
4898 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
4899 # Unset for single-stage operations.
4900 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
4901 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07004902 &quot;metrics&quot;: [ # Progress metric bundle, for example:
4903 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
4904 # {name: &quot;nodes total&quot;, int_value: 32}]
4905 # or
4906 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
4907 # {name: &quot;progress scale&quot;, double_value: 1.0}]
4908 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kim65020912020-05-20 12:08:20 -07004909 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -07004910 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004911 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
4912 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kim65020912020-05-20 12:08:20 -07004913 },
4914 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004915 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004916 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
4917 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
4918 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4919 # or
4920 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
4921 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07004922 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
4923 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4924 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004925 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
4926 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07004927 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004928 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
4929 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
4930 { # StatusCondition describes why a cluster or a node pool has a certain status
4931 # (e.g., ERROR or DEGRADED).
4932 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4933 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4934 },
4935 ],
4936 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
4937 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
4938 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
4939 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
4940 { # StatusCondition describes why a cluster or a node pool has a certain status
4941 # (e.g., ERROR or DEGRADED).
4942 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
4943 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
4944 },
4945 ],
4946 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004947 }</pre>
4948</div>
4949
4950<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004951 <code class="details" id="setResourceLabels">setResourceLabels(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004952 <pre>Sets labels on a cluster.
4953
4954Args:
4955 name: string, The name (project, location, cluster id) of the cluster to set labels.
Bu Sun Kim65020912020-05-20 12:08:20 -07004956Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004957 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004958 The object takes the form of:
4959
4960{ # SetLabelsRequest sets the Google Cloud Platform labels on a Google Container
4961 # Engine cluster, which will in turn set them for Google Compute Engine
4962 # resources used by that cluster
Bu Sun Kim65020912020-05-20 12:08:20 -07004963 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
4964 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
4965 # cluster resides. This field has been deprecated and replaced by the name
4966 # field.
4967 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to set labels.
4968 # Specified in the format `projects/*/locations/*/clusters/*`.
4969 &quot;resourceLabels&quot;: { # Required. The labels to set for that cluster.
4970 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004971 },
Bu Sun Kim65020912020-05-20 12:08:20 -07004972 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
4973 # number](https://developers.google.com/console/help/new/#projectnumber).
4974 # This field has been deprecated and replaced by the name field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004975 &quot;labelFingerprint&quot;: &quot;A String&quot;, # Required. The fingerprint of the previous set of labels for this resource,
4976 # used to detect conflicts. The fingerprint is initially generated by
4977 # Kubernetes Engine and changes after every request to modify or update
4978 # labels. You must always provide an up-to-date fingerprint hash when
4979 # updating or changing labels. Make a &lt;code&gt;get()&lt;/code&gt; request to the
4980 # resource to get the latest fingerprint.
Bu Sun Kim65020912020-05-20 12:08:20 -07004981 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster.
4982 # This field has been deprecated and replaced by the name field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004983 }
4984
4985 x__xgafv: string, V1 error format.
4986 Allowed values
4987 1 - v1 error format
4988 2 - v2 error format
4989
4990Returns:
4991 An object of the form:
4992
4993 { # This operation resource represents operations that may have happened or are
4994 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004995 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004996 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Bu Sun Kim65020912020-05-20 12:08:20 -07004997 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07004998 &quot;stages&quot;: [ # Substages of an operation or a stage.
4999 # Object with schema name: OperationProgress
5000 ],
5001 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
5002 # Unset for single-stage operations.
5003 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
5004 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07005005 &quot;metrics&quot;: [ # Progress metric bundle, for example:
5006 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
5007 # {name: &quot;nodes total&quot;, int_value: 32}]
5008 # or
5009 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
5010 # {name: &quot;progress scale&quot;, double_value: 1.0}]
5011 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kim65020912020-05-20 12:08:20 -07005012 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -07005013 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005014 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
5015 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kim65020912020-05-20 12:08:20 -07005016 },
5017 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005018 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005019 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
5020 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
5021 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
5022 # or
5023 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
5024 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07005025 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
5026 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
5027 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005028 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
5029 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07005030 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005031 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
5032 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
5033 { # StatusCondition describes why a cluster or a node pool has a certain status
5034 # (e.g., ERROR or DEGRADED).
5035 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
5036 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
5037 },
5038 ],
5039 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
5040 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
5041 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
5042 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
5043 { # StatusCondition describes why a cluster or a node pool has a certain status
5044 # (e.g., ERROR or DEGRADED).
5045 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
5046 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
5047 },
5048 ],
5049 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005050 }</pre>
5051</div>
5052
5053<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07005054 <code class="details" id="startIpRotation">startIpRotation(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005055 <pre>Starts master IP rotation.
5056
5057Args:
5058 name: string, The name (project, location, cluster id) of the cluster to start IP
Bu Sun Kim65020912020-05-20 12:08:20 -07005059rotation. Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07005060 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005061 The object takes the form of:
5062
5063{ # StartIPRotationRequest creates a new IP for the cluster and then performs
5064 # a node upgrade on each node pool to point to the new IP.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005065 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster.
5066 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07005067 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster id) of the cluster to start IP
5068 # rotation. Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07005069 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
Dan O'Mearadd494642020-05-01 07:42:23 -07005070 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
5071 # cluster resides. This field has been deprecated and replaced by the name
5072 # field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005073 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
5074 # number](https://developers.google.com/console/help/new/#projectnumber).
Bu Sun Kim65020912020-05-20 12:08:20 -07005075 # This field has been deprecated and replaced by the name field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005076 &quot;rotateCredentials&quot;: True or False, # Whether to rotate credentials during IP rotation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005077 }
5078
5079 x__xgafv: string, V1 error format.
5080 Allowed values
5081 1 - v1 error format
5082 2 - v2 error format
5083
5084Returns:
5085 An object of the form:
5086
5087 { # This operation resource represents operations that may have happened or are
5088 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005089 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005090 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Bu Sun Kim65020912020-05-20 12:08:20 -07005091 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005092 &quot;stages&quot;: [ # Substages of an operation or a stage.
5093 # Object with schema name: OperationProgress
5094 ],
5095 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
5096 # Unset for single-stage operations.
5097 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
5098 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07005099 &quot;metrics&quot;: [ # Progress metric bundle, for example:
5100 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
5101 # {name: &quot;nodes total&quot;, int_value: 32}]
5102 # or
5103 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
5104 # {name: &quot;progress scale&quot;, double_value: 1.0}]
5105 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kim65020912020-05-20 12:08:20 -07005106 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -07005107 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005108 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
5109 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kim65020912020-05-20 12:08:20 -07005110 },
5111 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005112 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005113 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
5114 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
5115 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
5116 # or
5117 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
5118 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07005119 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
5120 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
5121 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005122 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
5123 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07005124 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005125 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
5126 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
5127 { # StatusCondition describes why a cluster or a node pool has a certain status
5128 # (e.g., ERROR or DEGRADED).
5129 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
5130 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
5131 },
5132 ],
5133 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
5134 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
5135 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
5136 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
5137 { # StatusCondition describes why a cluster or a node pool has a certain status
5138 # (e.g., ERROR or DEGRADED).
5139 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
5140 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
5141 },
5142 ],
5143 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005144 }</pre>
5145</div>
5146
5147<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07005148 <code class="details" id="update">update(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005149 <pre>Updates the settings for a specific cluster.
5150
5151Args:
5152 name: string, The name (project, location, cluster) of the cluster to update.
Bu Sun Kim65020912020-05-20 12:08:20 -07005153Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07005154 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005155 The object takes the form of:
5156
5157{ # UpdateClusterRequest updates the settings of a cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005158 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to update.
5159 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim65020912020-05-20 12:08:20 -07005160 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005161 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07005162 &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 -07005163 # be applied to a cluster with each request, so at most one field can be
5164 # provided.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005165 &quot;desiredLoggingService&quot;: &quot;A String&quot;, # The logging service the cluster should use to write logs.
5166 # Currently available options:
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005167 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005168 # * `logging.googleapis.com/kubernetes` - The Cloud Logging
5169 # service with a Kubernetes-native resource model
5170 # * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
5171 # available as of GKE 1.15).
5172 # * `none` - no logs will be exported from the cluster.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005173 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005174 # If left as an empty string,`logging.googleapis.com/kubernetes` will be
5175 # used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
5176 &quot;desiredShieldedNodes&quot;: { # Configuration of Shielded Nodes feature. # Configuration for Shielded Nodes.
5177 &quot;enabled&quot;: True or False, # Whether Shielded Nodes features are enabled on all nodes in this cluster.
5178 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005179 &quot;desiredClusterAutoscaling&quot;: { # ClusterAutoscaling contains global, per-cluster information # Cluster-level autoscaling configuration.
5180 # required by Cluster Autoscaler to automatically adjust
5181 # the size of the cluster and create/delete
5182 # node pools based on the current needs.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005183 &quot;enableNodeAutoprovisioning&quot;: True or False, # Enables automatic node pool creation and deletion.
5184 &quot;autoprovisioningNodePoolDefaults&quot;: { # AutoprovisioningNodePoolDefaults contains defaults for a node pool created # AutoprovisioningNodePoolDefaults contains defaults for a node pool
5185 # created by NAP.
5186 # by NAP.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005187 &quot;upgradeSettings&quot;: { # These upgrade settings control the level of parallelism and the level of # Upgrade settings control disruption and speed of the upgrade.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005188 # disruption caused by an upgrade.
5189 #
5190 # maxUnavailable controls the number of nodes that can be simultaneously
5191 # unavailable.
5192 #
5193 # maxSurge controls the number of additional nodes that can be added to the
5194 # node pool temporarily for the time of the upgrade to increase the number of
5195 # available nodes.
5196 #
5197 # (maxUnavailable + maxSurge) determines the level of parallelism (how many
5198 # nodes are being upgraded at the same time).
5199 #
5200 # Note: upgrades inevitably introduce some disruption since workloads need to
5201 # be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
5202 # this holds true. (Disruption stays within the limits of
5203 # PodDisruptionBudget, if it is configured.)
5204 #
5205 # Consider a hypothetical node pool with 5 nodes having maxSurge=2,
5206 # maxUnavailable=1. This means the upgrade process upgrades 3 nodes
5207 # simultaneously. It creates 2 additional (upgraded) nodes, then it brings
5208 # down 3 old (not yet upgraded) nodes at the same time. This ensures that
5209 # there are always at least 4 nodes available.
5210 &quot;maxUnavailable&quot;: 42, # The maximum number of nodes that can be simultaneously unavailable during
5211 # the upgrade process. A node is considered available if its status is
5212 # Ready.
5213 &quot;maxSurge&quot;: 42, # The maximum number of nodes that can be created beyond the current size
5214 # of the node pool during the upgrade process.
5215 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005216 &quot;serviceAccount&quot;: &quot;A String&quot;, # The Google Cloud Platform Service Account to be used by the node VMs.
5217 # Specify the email address of the Service Account; otherwise, if no Service
5218 # Account is specified, the &quot;default&quot; service account is used.
5219 &quot;oauthScopes&quot;: [ # The set of Google API scopes to be made available on all of the
5220 # node VMs under the &quot;default&quot; service account.
5221 #
5222 # The following scopes are recommended, but not required, and by default are
5223 # not included:
5224 #
5225 # * `https://www.googleapis.com/auth/compute` is required for mounting
5226 # persistent storage on your nodes.
5227 # * `https://www.googleapis.com/auth/devstorage.read_only` is required for
5228 # communicating with **gcr.io**
5229 # (the [Google Container
5230 # Registry](https://cloud.google.com/container-registry/)).
5231 #
5232 # If unspecified, no scopes are added, unless Cloud Logging or Cloud
5233 # Monitoring are enabled, in which case their required scopes will be added.
5234 &quot;A String&quot;,
5235 ],
5236 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to be used by this instance. The instance may be
5237 # scheduled on the specified or newer CPU platform. Applicable values are the
5238 # friendly names of CPU platforms, such as
5239 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Haswell&amp;quot;&lt;/code&gt; or
5240 # &lt;code&gt;minCpuPlatform: &amp;quot;Intel Sandy Bridge&amp;quot;&lt;/code&gt;. For more
5241 # information, read [how to specify min CPU
5242 # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
5243 # To unset the min cpu platform field pass &quot;automatic&quot;
5244 # as field value.
5245 &quot;management&quot;: { # NodeManagement defines the set of node management services turned on for the # NodeManagement configuration for this NodePool.
5246 # node pool.
5247 &quot;autoRepair&quot;: True or False, # Whether the nodes will be automatically repaired.
5248 &quot;autoUpgrade&quot;: True or False, # Whether the nodes will be automatically upgraded.
5249 &quot;upgradeOptions&quot;: { # AutoUpgradeOptions defines the set of options for the user to control how # Specifies the Auto Upgrade knobs for the node pool.
5250 # the Auto Upgrades will proceed.
5251 &quot;description&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
5252 # with the description of the upgrade.
5253 &quot;autoUpgradeStartTime&quot;: &quot;A String&quot;, # [Output only] This field is set when upgrades are about to commence
5254 # with the approximate start time for the upgrades, in
5255 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
5256 },
5257 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005258 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005259 &quot;autoscalingProfile&quot;: &quot;A String&quot;, # Defines autoscaling behaviour.
5260 &quot;resourceLimits&quot;: [ # Contains global constraints regarding minimum and maximum
5261 # amount of resources in the cluster.
5262 { # Contains information about amount of some resource in the cluster.
5263 # For memory, value should be in GB.
5264 &quot;minimum&quot;: &quot;A String&quot;, # Minimum amount of the resource in the cluster.
5265 &quot;maximum&quot;: &quot;A String&quot;, # Maximum amount of the resource in the cluster.
5266 &quot;resourceType&quot;: &quot;A String&quot;, # Resource name &quot;cpu&quot;, &quot;memory&quot; or gpu-specific string.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005267 },
5268 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005269 &quot;autoprovisioningLocations&quot;: [ # The list of Google Compute Engine
5270 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
5271 # NodePool&#x27;s nodes can be created by NAP.
5272 &quot;A String&quot;,
5273 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005274 },
5275 &quot;desiredMonitoringService&quot;: &quot;A String&quot;, # The monitoring service the cluster should use to write metrics.
5276 # Currently available options:
5277 #
5278 # * &quot;monitoring.googleapis.com/kubernetes&quot; - The Cloud Monitoring
5279 # service with a Kubernetes-native resource model
5280 # * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
5281 # longer available as of GKE 1.15).
5282 # * `none` - No metrics will be exported from the cluster.
5283 #
5284 # If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
5285 # used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07005286 &quot;desiredVerticalPodAutoscaling&quot;: { # VerticalPodAutoscaling contains global, per-cluster information # Cluster-level Vertical Pod Autoscaling configuration.
5287 # required by Vertical Pod Autoscaler to automatically adjust
5288 # the resources of pods controlled by it.
5289 &quot;enabled&quot;: True or False, # Enables vertical pod autoscaling.
5290 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005291 &quot;desiredClusterTelemetry&quot;: { # Telemetry integration for the cluster. # The desired telemetry integration for the cluster.
5292 &quot;type&quot;: &quot;A String&quot;, # Type of the integration.
Bu Sun Kim65020912020-05-20 12:08:20 -07005293 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005294 &quot;desiredReleaseChannel&quot;: { # ReleaseChannel indicates which release channel a cluster is # The desired release channel configuration.
5295 # subscribed to. Release channels are arranged in order of risk.
5296 #
5297 # When a cluster is subscribed to a release channel, Google maintains
5298 # both the master version and the node version. Node auto-upgrade
5299 # defaults to true and cannot be disabled.
5300 &quot;channel&quot;: &quot;A String&quot;, # channel specifies which release channel the cluster is subscribed to.
Bu Sun Kim65020912020-05-20 12:08:20 -07005301 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005302 &quot;desiredTpuConfig&quot;: { # Configuration for Cloud TPU. # The desired Cloud TPU configuration.
5303 &quot;ipv4CidrBlock&quot;: &quot;A String&quot;, # IPv4 CIDR block reserved for Cloud TPU in the VPC.
5304 &quot;useServiceNetworking&quot;: True or False, # Whether to use service networking for Cloud TPU or not.
5305 &quot;enabled&quot;: True or False, # Whether Cloud TPU integration is enabled or not.
5306 },
5307 &quot;desiredMaster&quot;: { # Master is the configuration for components on master. # Configuration for master components.
Bu Sun Kim65020912020-05-20 12:08:20 -07005308 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005309 &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.
5310 # be disabled on the cluster.
5311 &quot;disabled&quot;: True or False, # Disables cluster default sNAT rules.
Dan O'Mearadd494642020-05-01 07:42:23 -07005312 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005313 &quot;desiredPodSecurityPolicyConfig&quot;: { # Configuration for the PodSecurityPolicy feature. # The desired configuration options for the PodSecurityPolicy feature.
5314 &quot;enabled&quot;: True or False, # Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
5315 # must be valid under a PodSecurityPolicy to be created.
Bu Sun Kim65020912020-05-20 12:08:20 -07005316 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005317 &quot;desiredNodePoolAutoscaling&quot;: { # NodePoolAutoscaling contains information required by cluster autoscaler to # Autoscaler configuration for the node pool specified in
5318 # desired_node_pool_id. If there is only one pool in the
5319 # cluster and desired_node_pool_id is not provided then
5320 # the change applies to that single node pool.
5321 # adjust the size of the node pool to the current cluster usage.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005322 &quot;autoprovisioned&quot;: True or False, # Can this node pool be deleted automatically.
5323 &quot;minNodeCount&quot;: 42, # Minimum number of nodes in the NodePool. Must be &gt;= 1 and &lt;=
5324 # max_node_count.
5325 &quot;enabled&quot;: True or False, # Is autoscaling enabled for this node pool.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005326 &quot;maxNodeCount&quot;: 42, # Maximum number of nodes in the NodePool. Must be &gt;= min_node_count. There
5327 # has to enough quota to scale up the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07005328 },
Bu Sun Kim65020912020-05-20 12:08:20 -07005329 &quot;desiredMasterVersion&quot;: &quot;A String&quot;, # The Kubernetes version to change the master to. The only valid value is the
5330 # latest supported version.
5331 #
5332 # Users may specify either explicit versions offered by
5333 # Kubernetes Engine or version aliases, which have the following behavior:
5334 #
5335 # - &quot;latest&quot;: picks the highest valid Kubernetes version
5336 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
5337 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
5338 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
5339 # - &quot;-&quot;: picks the default Kubernetes version
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005340 &quot;desiredNodeVersion&quot;: &quot;A String&quot;, # The Kubernetes version to change the nodes to (typically an
5341 # upgrade).
Bu Sun Kim65020912020-05-20 12:08:20 -07005342 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005343 # Users may specify either explicit versions offered by
5344 # Kubernetes Engine or version aliases, which have the following behavior:
Bu Sun Kim65020912020-05-20 12:08:20 -07005345 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005346 # - &quot;latest&quot;: picks the highest valid Kubernetes version
5347 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
5348 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
5349 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
5350 # - &quot;-&quot;: picks the Kubernetes master version
5351 &quot;desiredMasterAuthorizedNetworksConfig&quot;: { # Configuration options for the master authorized networks feature. Enabled # The desired configuration options for master authorized networks feature.
5352 # master authorized networks will disallow all external traffic to access
5353 # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
5354 # Google Compute Engine Public IPs and Google Prod IPs.
5355 &quot;cidrBlocks&quot;: [ # cidr_blocks define up to 10 external networks that could access
5356 # Kubernetes master through HTTPS.
5357 { # CidrBlock contains an optional name and one CIDR block.
5358 &quot;displayName&quot;: &quot;A String&quot;, # display_name is an optional field for users to identify CIDR blocks.
5359 &quot;cidrBlock&quot;: &quot;A String&quot;, # cidr_block must be specified in CIDR notation.
5360 },
5361 ],
5362 &quot;enabled&quot;: True or False, # Whether or not master authorized networks is enabled.
5363 },
5364 &quot;desiredDatabaseEncryption&quot;: { # Configuration of etcd encryption. # Configuration of etcd encryption.
5365 &quot;state&quot;: &quot;A String&quot;, # Denotes the state of etcd encryption.
5366 &quot;keyName&quot;: &quot;A String&quot;, # Name of CloudKMS key to use for the encryption of secrets in etcd.
5367 # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
5368 },
5369 &quot;desiredIntraNodeVisibilityConfig&quot;: { # IntraNodeVisibilityConfig contains the desired config of the intra-node # The desired config of Intra-node visibility.
5370 # visibility on this cluster.
5371 &quot;enabled&quot;: True or False, # Enables intra node visibility for this cluster.
5372 },
5373 &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.
5374 # cluster, enabling additional functionality.
5375 &quot;configConnectorConfig&quot;: { # Configuration options for the Config Connector add-on. # Configuration for the ConfigConnector add-on, a Kubernetes
5376 # extension to manage hosted GCP services through the Kubernetes API
5377 &quot;enabled&quot;: True or False, # Whether Cloud Connector is enabled for this cluster.
5378 },
5379 &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.
5380 # enabled at cluster creation time.
5381 &quot;enabled&quot;: True or False, # Whether the Compute Engine PD CSI driver is enabled for this cluster.
5382 },
5383 &quot;dnsCacheConfig&quot;: { # Configuration for NodeLocal DNSCache # Configuration for NodeLocalDNS, a dns cache running on cluster nodes
5384 &quot;enabled&quot;: True or False, # Whether NodeLocal DNSCache is enabled for this cluster.
5385 },
5386 &quot;networkPolicyConfig&quot;: { # Configuration for NetworkPolicy. This only tracks whether the addon # Configuration for NetworkPolicy. This only tracks whether the addon
5387 # is enabled or not on the Master, it does not track whether network policy
5388 # is enabled for the nodes.
5389 # is enabled or not on the Master, it does not track whether network policy
5390 # is enabled for the nodes.
5391 &quot;disabled&quot;: True or False, # Whether NetworkPolicy is enabled for this cluster.
5392 },
5393 &quot;kubernetesDashboard&quot;: { # Configuration for the Kubernetes Dashboard. # Configuration for the Kubernetes Dashboard.
5394 # This addon is deprecated, and will be disabled in 1.15. It is recommended
5395 # to use the Cloud Console to manage and monitor your Kubernetes clusters,
5396 # workloads and applications. For more information, see:
5397 # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
5398 &quot;disabled&quot;: True or False, # Whether the Kubernetes Dashboard is enabled for this cluster.
5399 },
5400 &quot;httpLoadBalancing&quot;: { # Configuration options for the HTTP (L7) load balancing controller addon, # Configuration for the HTTP (L7) load balancing controller addon, which
5401 # makes it easy to set up HTTP load balancers for services in a cluster.
5402 # which makes it easy to set up HTTP load balancers for services in a cluster.
5403 &quot;disabled&quot;: True or False, # Whether the HTTP Load Balancing controller is enabled in the cluster.
5404 # When enabled, it runs a small pod in the cluster that manages the load
5405 # balancers.
5406 },
5407 &quot;istioConfig&quot;: { # Configuration options for Istio addon. # Configuration for Istio, an open platform to connect, manage, and secure
5408 # microservices.
5409 &quot;disabled&quot;: True or False, # Whether Istio is enabled for this cluster.
5410 &quot;auth&quot;: &quot;A String&quot;, # The specified Istio auth mode, either none, or mutual TLS.
5411 },
5412 &quot;horizontalPodAutoscaling&quot;: { # Configuration options for the horizontal pod autoscaling feature, which # Configuration for the horizontal pod autoscaling feature, which
5413 # increases or decreases the number of replica pods a replication controller
5414 # has based on the resource usage of the existing pods.
5415 # increases or decreases the number of replica pods a replication controller
5416 # has based on the resource usage of the existing pods.
5417 &quot;disabled&quot;: True or False, # Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
5418 # When enabled, it ensures that metrics are collected into Stackdriver
5419 # Monitoring.
5420 },
5421 &quot;cloudRunConfig&quot;: { # Configuration options for the Cloud Run feature. # Configuration for the Cloud Run addon. The `IstioConfig` addon must be
5422 # enabled in order to enable Cloud Run addon. This option can only be enabled
5423 # at cluster creation time.
5424 &quot;disabled&quot;: True or False, # Whether Cloud Run addon is enabled for this cluster.
5425 },
5426 &quot;kalmConfig&quot;: { # Configuration options for the KALM addon. # Configuration for the KALM addon, which manages the lifecycle of k8s
5427 # applications.
5428 &quot;enabled&quot;: True or False, # Whether KALM is enabled for this cluster.
5429 },
5430 },
5431 &quot;desiredWorkloadIdentityConfig&quot;: { # Configuration for the use of Kubernetes Service Accounts in GCP IAM # Configuration for Workload Identity.
5432 # policies.
5433 &quot;identityNamespace&quot;: &quot;A String&quot;, # IAM Identity Namespace to attach all Kubernetes Service Accounts to.
5434 &quot;identityProvider&quot;: &quot;A String&quot;, # identity provider is the third party identity provider.
5435 &quot;workloadPool&quot;: &quot;A String&quot;, # The workload pool to attach all Kubernetes service accounts to.
5436 },
5437 &quot;desiredResourceUsageExportConfig&quot;: { # Configuration for exporting cluster resource usages. # The desired configuration for exporting resource usage.
5438 &quot;consumptionMeteringConfig&quot;: { # Parameters for controlling consumption metering. # Configuration to enable resource consumption metering.
5439 &quot;enabled&quot;: True or False, # Whether to enable consumption metering for this cluster. If enabled, a
5440 # second BigQuery table will be created to hold resource consumption
5441 # records.
5442 },
5443 &quot;bigqueryDestination&quot;: { # Parameters for using BigQuery as the destination of resource usage export. # Configuration to use BigQuery as usage export destination.
5444 &quot;datasetId&quot;: &quot;A String&quot;, # The ID of a BigQuery Dataset.
5445 },
5446 &quot;enableNetworkEgressMetering&quot;: True or False, # Whether to enable network egress metering for this cluster. If enabled, a
5447 # daemonset will be created in the cluster to meter network egress traffic.
5448 },
5449 &quot;desiredBinaryAuthorization&quot;: { # Configuration for Binary Authorization. # The desired configuration options for the Binary Authorization feature.
5450 &quot;enabled&quot;: True or False, # Enable Binary Authorization for this cluster. If enabled, all container
5451 # images will be validated by Google Binauthz.
5452 },
5453 &quot;desiredPrivateClusterConfig&quot;: { # Configuration options for private clusters. # The desired private cluster configuration.
5454 &quot;enablePrivateNodes&quot;: True or False, # Whether nodes have internal IP addresses only. If enabled, all nodes are
5455 # given only RFC 1918 private addresses and communicate with the master via
5456 # private networking.
5457 &quot;masterIpv4CidrBlock&quot;: &quot;A String&quot;, # The IP range in CIDR notation to use for the hosted master network. This
5458 # range will be used for assigning internal IP addresses to the master or
5459 # set of masters, as well as the ILB VIP. This range must not overlap with
5460 # any other ranges in use within the cluster&#x27;s network.
5461 &quot;peeringName&quot;: &quot;A String&quot;, # Output only. The peering name in the customer VPC used by this cluster.
5462 &quot;publicEndpoint&quot;: &quot;A String&quot;, # Output only. The external IP address of this cluster&#x27;s master endpoint.
5463 &quot;enablePrivateEndpoint&quot;: True or False, # Whether the master&#x27;s internal IP address is used as the cluster endpoint.
5464 &quot;masterGlobalAccessConfig&quot;: { # Configuration for controlling master global access settings. # Controls master global access settings.
5465 &quot;enabled&quot;: True or False, # Whenever master is accessible globally or not.
5466 },
5467 &quot;privateEndpoint&quot;: &quot;A String&quot;, # Output only. The internal IP address of this cluster&#x27;s master endpoint.
5468 },
5469 &quot;desiredLocations&quot;: [ # The desired list of Google Compute Engine
5470 # [zones](https://cloud.google.com/compute/docs/zones#available) in which the
5471 # cluster&#x27;s nodes should be located. Changing the locations a cluster is in
5472 # will result in nodes being either created or removed from the cluster,
5473 # depending on whether locations are being added or removed.
5474 #
5475 # This list must always include the cluster&#x27;s primary zone.
5476 &quot;A String&quot;,
5477 ],
5478 &quot;desiredImageType&quot;: &quot;A String&quot;, # The desired image type for the node pool.
5479 # NOTE: Set the &quot;desired_node_pool&quot; field as well.
5480 &quot;desiredNodePoolId&quot;: &quot;A String&quot;, # The node pool to be upgraded. This field is mandatory if
5481 # &quot;desired_node_version&quot;, &quot;desired_image_family&quot;,
5482 # &quot;desired_node_pool_autoscaling&quot;, or &quot;desired_workload_metadata_config&quot;
5483 # is specified and there is more than one node pool on the cluster.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005484 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005485 &quot;projectId&quot;: &quot;A String&quot;, # Required. Deprecated. The Google Developers Console [project ID or project
5486 # number](https://support.google.com/cloud/answer/6158840).
5487 # This field has been deprecated and replaced by the name field.
5488 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
5489 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
5490 # cluster resides. This field has been deprecated and replaced by the name
5491 # field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005492 }
5493
5494 x__xgafv: string, V1 error format.
5495 Allowed values
5496 1 - v1 error format
5497 2 - v2 error format
5498
5499Returns:
5500 An object of the form:
5501
5502 { # This operation resource represents operations that may have happened or are
5503 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005504 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005505 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Bu Sun Kim65020912020-05-20 12:08:20 -07005506 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005507 &quot;stages&quot;: [ # Substages of an operation or a stage.
5508 # Object with schema name: OperationProgress
5509 ],
5510 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
5511 # Unset for single-stage operations.
5512 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
5513 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07005514 &quot;metrics&quot;: [ # Progress metric bundle, for example:
5515 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
5516 # {name: &quot;nodes total&quot;, int_value: 32}]
5517 # or
5518 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
5519 # {name: &quot;progress scale&quot;, double_value: 1.0}]
5520 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kim65020912020-05-20 12:08:20 -07005521 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -07005522 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005523 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
5524 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kim65020912020-05-20 12:08:20 -07005525 },
5526 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005527 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005528 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
5529 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
5530 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
5531 # or
5532 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
5533 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07005534 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
5535 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
5536 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005537 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
5538 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07005539 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005540 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
5541 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
5542 { # StatusCondition describes why a cluster or a node pool has a certain status
5543 # (e.g., ERROR or DEGRADED).
5544 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
5545 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
5546 },
5547 ],
5548 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
5549 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
5550 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
5551 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
5552 { # StatusCondition describes why a cluster or a node pool has a certain status
5553 # (e.g., ERROR or DEGRADED).
5554 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
5555 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
5556 },
5557 ],
5558 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005559 }</pre>
5560</div>
5561
5562<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07005563 <code class="details" id="updateMaster">updateMaster(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005564 <pre>Updates the master for a specific cluster.
5565
5566Args:
5567 name: string, The name (project, location, cluster) of the cluster to update.
Bu Sun Kim65020912020-05-20 12:08:20 -07005568Specified in the format `projects/*/locations/*/clusters/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07005569 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005570 The object takes the form of:
5571
5572{ # UpdateMasterRequest updates the master of the cluster.
Bu Sun Kim65020912020-05-20 12:08:20 -07005573 &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 -07005574 # number](https://support.google.com/cloud/answer/6158840).
5575 # This field has been deprecated and replaced by the name field.
Bu Sun Kim65020912020-05-20 12:08:20 -07005576 &quot;masterVersion&quot;: &quot;A String&quot;, # Required. The Kubernetes version to change the master to.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005577 #
5578 # Users may specify either explicit versions offered by
5579 # Kubernetes Engine or version aliases, which have the following behavior:
5580 #
Bu Sun Kim65020912020-05-20 12:08:20 -07005581 # - &quot;latest&quot;: picks the highest valid Kubernetes version
5582 # - &quot;1.X&quot;: picks the highest valid patch+gke.N patch in the 1.X version
5583 # - &quot;1.X.Y&quot;: picks the highest valid gke.N patch in the 1.X.Y version
5584 # - &quot;1.X.Y-gke.N&quot;: picks an explicit Kubernetes version
5585 # - &quot;-&quot;: picks the default Kubernetes version
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005586 &quot;clusterId&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the cluster to upgrade.
5587 # This field has been deprecated and replaced by the name field.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005588 &quot;zone&quot;: &quot;A String&quot;, # Required. Deprecated. The name of the Google Compute Engine
5589 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
5590 # cluster resides. This field has been deprecated and replaced by the name
5591 # field.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005592 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, cluster) of the cluster to update.
5593 # Specified in the format `projects/*/locations/*/clusters/*`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005594 }
5595
5596 x__xgafv: string, V1 error format.
5597 Allowed values
5598 1 - v1 error format
5599 2 - v2 error format
5600
5601Returns:
5602 An object of the form:
5603
5604 { # This operation resource represents operations that may have happened or are
5605 # happening on the cluster. All fields are output only.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005606 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07005607 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Bu Sun Kim65020912020-05-20 12:08:20 -07005608 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005609 &quot;stages&quot;: [ # Substages of an operation or a stage.
5610 # Object with schema name: OperationProgress
5611 ],
5612 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage.
5613 # Unset for single-stage operations.
5614 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage.
5615 # Unset for single-stage operations.
Bu Sun Kim65020912020-05-20 12:08:20 -07005616 &quot;metrics&quot;: [ # Progress metric bundle, for example:
5617 # metrics: [{name: &quot;nodes done&quot;, int_value: 15},
5618 # {name: &quot;nodes total&quot;, int_value: 32}]
5619 # or
5620 # metrics: [{name: &quot;progress&quot;, double_value: 0.56},
5621 # {name: &quot;progress scale&quot;, double_value: 1.0}]
5622 { # Progress metric is (string, int|float|string) pair.
Bu Sun Kim65020912020-05-20 12:08:20 -07005623 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
Bu Sun Kim65020912020-05-20 12:08:20 -07005624 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005625 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
5626 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Bu Sun Kim65020912020-05-20 12:08:20 -07005627 },
5628 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07005629 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005630 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
5631 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine
5632 # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
5633 # or
5634 # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
5635 # in which the cluster resides.
Bu Sun Kim65020912020-05-20 12:08:20 -07005636 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine
5637 # [zone](https://cloud.google.com/compute/docs/zones#available) in which the
5638 # operation is taking place. This field is deprecated, use location instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005639 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in
5640 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim65020912020-05-20 12:08:20 -07005641 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07005642 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
5643 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
5644 { # StatusCondition describes why a cluster or a node pool has a certain status
5645 # (e.g., ERROR or DEGRADED).
5646 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
5647 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
5648 },
5649 ],
5650 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in
5651 # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
5652 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
5653 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
5654 { # StatusCondition describes why a cluster or a node pool has a certain status
5655 # (e.g., ERROR or DEGRADED).
5656 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
5657 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
5658 },
5659 ],
5660 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07005661 }</pre>
5662</div>
5663
5664</body></html>