/
cluster.go
879 lines (782 loc) · 71.7 KB
/
cluster.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
// Code generated by the Pulumi SDK Generator DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package v1
import (
"context"
"reflect"
"github.com/pulumi/pulumi-google-native/sdk/go/google/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Creates a cluster, consisting of the specified number and type of Google Compute Engine instances. By default, the cluster is created in the project's [default network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). One firewall is added for the cluster. After cluster creation, the Kubelet creates routes for each node to allow the containers on that node to communicate with all other instances in the cluster. Finally, an entry is added to the project's global metadata indicating which CIDR range the cluster is using.
type Cluster struct {
pulumi.CustomResourceState
// Configurations for the various addons available to run in the cluster.
AddonsConfig AddonsConfigResponseOutput `pulumi:"addonsConfig"`
// Configuration controlling RBAC group membership information.
AuthenticatorGroupsConfig AuthenticatorGroupsConfigResponseOutput `pulumi:"authenticatorGroupsConfig"`
// Autopilot configuration for the cluster.
Autopilot AutopilotResponseOutput `pulumi:"autopilot"`
// Cluster-level autoscaling configuration.
Autoscaling ClusterAutoscalingResponseOutput `pulumi:"autoscaling"`
// Configuration for Binary Authorization.
BinaryAuthorization BinaryAuthorizationResponseOutput `pulumi:"binaryAuthorization"`
// The IP address range of the container pods in this cluster, in [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/14`). Leave blank to have one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
ClusterIpv4Cidr pulumi.StringOutput `pulumi:"clusterIpv4Cidr"`
// Which conditions caused the current cluster state.
Conditions StatusConditionResponseArrayOutput `pulumi:"conditions"`
// Configuration of Confidential Nodes. All the nodes in the cluster will be Confidential VM once enabled.
ConfidentialNodes ConfidentialNodesResponseOutput `pulumi:"confidentialNodes"`
// Configuration for the fine-grained cost management feature.
CostManagementConfig CostManagementConfigResponseOutput `pulumi:"costManagementConfig"`
// [Output only] The time the cluster was created, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
CreateTime pulumi.StringOutput `pulumi:"createTime"`
// [Output only] The current software version of the master endpoint.
CurrentMasterVersion pulumi.StringOutput `pulumi:"currentMasterVersion"`
// [Output only] The number of nodes currently in the cluster. Deprecated. Call Kubernetes API directly to retrieve node information.
//
// Deprecated: [Output only] The number of nodes currently in the cluster. Deprecated. Call Kubernetes API directly to retrieve node information.
CurrentNodeCount pulumi.IntOutput `pulumi:"currentNodeCount"`
// [Output only] Deprecated, use [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools) instead. The current version of the node software components. If they are currently at multiple versions because they're in the process of being upgraded, this reflects the minimum version of all nodes.
CurrentNodeVersion pulumi.StringOutput `pulumi:"currentNodeVersion"`
// Configuration of etcd encryption.
DatabaseEncryption DatabaseEncryptionResponseOutput `pulumi:"databaseEncryption"`
// The default constraint on the maximum number of pods that can be run simultaneously on a node in the node pool of this cluster. Only honored if cluster created with IP Alias support.
DefaultMaxPodsConstraint MaxPodsConstraintResponseOutput `pulumi:"defaultMaxPodsConstraint"`
// An optional description of this cluster.
Description pulumi.StringOutput `pulumi:"description"`
// Beta APIs Config
EnableK8sBetaApis K8sBetaAPIConfigResponseOutput `pulumi:"enableK8sBetaApis"`
// Kubernetes alpha features are enabled on this cluster. This includes alpha API groups (e.g. v1alpha1) and features that may not be production ready in the kubernetes version of the master and nodes. The cluster has no SLA for uptime and master/node upgrades are disabled. Alpha enabled clusters are automatically deleted thirty days after creation.
EnableKubernetesAlpha pulumi.BoolOutput `pulumi:"enableKubernetesAlpha"`
// Enable the ability to use Cloud TPUs in this cluster.
EnableTpu pulumi.BoolOutput `pulumi:"enableTpu"`
// [Output only] The IP address of this cluster's master endpoint. The endpoint can be accessed from the internet at `https://username:password@endpoint/`. See the `masterAuth` property of this resource for username and password information.
Endpoint pulumi.StringOutput `pulumi:"endpoint"`
// GKE Enterprise Configuration.
EnterpriseConfig EnterpriseConfigResponseOutput `pulumi:"enterpriseConfig"`
// This checksum is computed by the server based on the value of cluster fields, and may be sent on update requests to ensure the client has an up-to-date value before proceeding.
Etag pulumi.StringOutput `pulumi:"etag"`
// [Output only] The time the cluster will be automatically deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
ExpireTime pulumi.StringOutput `pulumi:"expireTime"`
// Fleet information for the cluster.
Fleet FleetResponseOutput `pulumi:"fleet"`
// Configuration for Identity Service component.
IdentityServiceConfig IdentityServiceConfigResponseOutput `pulumi:"identityServiceConfig"`
// The initial Kubernetes version for this cluster. Valid versions are those found in validMasterVersions returned by getServerConfig. The version can be upgraded over time; such upgrades are reflected in currentMasterVersion and currentNodeVersion. Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior: - "latest": picks the highest valid Kubernetes version - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - "1.X.Y-gke.N": picks an explicit Kubernetes version - "","-": picks the default Kubernetes version
InitialClusterVersion pulumi.StringOutput `pulumi:"initialClusterVersion"`
// The number of nodes to create in this cluster. You must ensure that your Compute Engine [resource quota](https://cloud.google.com/compute/quotas) is sufficient for this number of instances. You must also have available firewall and routes quota. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "node_config") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time. This field is deprecated, use node_pool.initial_node_count instead.
//
// Deprecated: The number of nodes to create in this cluster. You must ensure that your Compute Engine [resource quota](https://cloud.google.com/compute/quotas) is sufficient for this number of instances. You must also have available firewall and routes quota. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "node_config") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time. This field is deprecated, use node_pool.initial_node_count instead.
InitialNodeCount pulumi.IntOutput `pulumi:"initialNodeCount"`
// Deprecated. Use node_pools.instance_group_urls.
//
// Deprecated: Deprecated. Use node_pools.instance_group_urls.
InstanceGroupUrls pulumi.StringArrayOutput `pulumi:"instanceGroupUrls"`
// Configuration for cluster IP allocation.
IpAllocationPolicy IPAllocationPolicyResponseOutput `pulumi:"ipAllocationPolicy"`
// The fingerprint of the set of labels for this cluster.
LabelFingerprint pulumi.StringOutput `pulumi:"labelFingerprint"`
// Configuration for the legacy ABAC authorization mode.
LegacyAbac LegacyAbacResponseOutput `pulumi:"legacyAbac"`
Location pulumi.StringOutput `pulumi:"location"`
// The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes should be located. This field provides a default value if [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) are not specified during node pool creation. Warning: changing cluster locations will update the [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) of all node pools and will result in nodes being added and/or removed.
Locations pulumi.StringArrayOutput `pulumi:"locations"`
// Logging configuration for the cluster.
LoggingConfig LoggingConfigResponseOutput `pulumi:"loggingConfig"`
// The logging service the cluster should use to write logs. Currently available options: * `logging.googleapis.com/kubernetes` - The Cloud Logging service with a Kubernetes-native resource model * `logging.googleapis.com` - The legacy Cloud Logging service (no longer available as of GKE 1.15). * `none` - no logs will be exported from the cluster. If left as an empty string,`logging.googleapis.com/kubernetes` will be used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
LoggingService pulumi.StringOutput `pulumi:"loggingService"`
// Configure the maintenance policy for this cluster.
MaintenancePolicy MaintenancePolicyResponseOutput `pulumi:"maintenancePolicy"`
// The authentication information for accessing the master endpoint. If unspecified, the defaults are used: For clusters before v1.12, if master_auth is unspecified, `username` will be set to "admin", a random password will be generated, and a client certificate will be issued.
MasterAuth MasterAuthResponseOutput `pulumi:"masterAuth"`
// The configuration options for master authorized networks feature.
MasterAuthorizedNetworksConfig MasterAuthorizedNetworksConfigResponseOutput `pulumi:"masterAuthorizedNetworksConfig"`
// Configuration for issuance of mTLS keys and certificates to Kubernetes pods.
MeshCertificates MeshCertificatesResponseOutput `pulumi:"meshCertificates"`
// Monitoring configuration for the cluster.
MonitoringConfig MonitoringConfigResponseOutput `pulumi:"monitoringConfig"`
// The monitoring service the cluster should use to write metrics. Currently available options: * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring service with a Kubernetes-native resource model * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no longer available as of GKE 1.15). * `none` - No metrics will be exported from the cluster. If left as an empty string,`monitoring.googleapis.com/kubernetes` will be used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
MonitoringService pulumi.StringOutput `pulumi:"monitoringService"`
// The name of this cluster. The name must be unique within this project and location (e.g. zone or region), and can be up to 40 characters with the following restrictions: * Lowercase letters, numbers, and hyphens only. * Must start with a letter. * Must end with a number or a letter.
Name pulumi.StringOutput `pulumi:"name"`
// The name of the Google Compute Engine [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the cluster is connected. If left unspecified, the `default` network will be used.
Network pulumi.StringOutput `pulumi:"network"`
// Configuration for cluster networking.
NetworkConfig NetworkConfigResponseOutput `pulumi:"networkConfig"`
// Configuration options for the NetworkPolicy feature.
NetworkPolicy NetworkPolicyResponseOutput `pulumi:"networkPolicy"`
// Parameters used in creating the cluster's nodes. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "initial_node_count") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time. For responses, this field will be populated with the node configuration of the first node pool. (For configuration of each node pool, see `node_pool.config`) If unspecified, the defaults are used. This field is deprecated, use node_pool.config instead.
//
// Deprecated: Parameters used in creating the cluster's nodes. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "initial_node_count") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time. For responses, this field will be populated with the node configuration of the first node pool. (For configuration of each node pool, see `node_pool.config`) If unspecified, the defaults are used. This field is deprecated, use node_pool.config instead.
NodeConfig NodeConfigResponseOutput `pulumi:"nodeConfig"`
// [Output only] The size of the address space on each node for hosting containers. This is provisioned from within the `container_ipv4_cidr` range. This field will only be set when cluster is in route-based network mode.
NodeIpv4CidrSize pulumi.IntOutput `pulumi:"nodeIpv4CidrSize"`
// Node pool configs that apply to all auto-provisioned node pools in autopilot clusters and node auto-provisioning enabled clusters.
NodePoolAutoConfig NodePoolAutoConfigResponseOutput `pulumi:"nodePoolAutoConfig"`
// Default NodePool settings for the entire cluster. These settings are overridden if specified on the specific NodePool object.
NodePoolDefaults NodePoolDefaultsResponseOutput `pulumi:"nodePoolDefaults"`
// The node pools associated with this cluster. This field should not be set if "node_config" or "initial_node_count" are specified.
NodePools NodePoolResponseArrayOutput `pulumi:"nodePools"`
// Notification configuration of the cluster.
NotificationConfig NotificationConfigResponseOutput `pulumi:"notificationConfig"`
// The configuration of the parent product of the cluster. This field is used by Google internal products that are built on top of the GKE cluster and take the ownership of the cluster.
ParentProductConfig ParentProductConfigResponseOutput `pulumi:"parentProductConfig"`
// Configuration for private cluster.
PrivateClusterConfig PrivateClusterConfigResponseOutput `pulumi:"privateClusterConfig"`
Project pulumi.StringOutput `pulumi:"project"`
// Release channel configuration. If left unspecified on cluster creation and a version is specified, the cluster is enrolled in the most mature release channel where the version is available (first checking STABLE, then REGULAR, and finally RAPID). Otherwise, if no release channel configuration and no version is specified, the cluster is enrolled in the REGULAR channel with its default version.
ReleaseChannel ReleaseChannelResponseOutput `pulumi:"releaseChannel"`
// The resource labels for the cluster to use to annotate any related Google Compute Engine resources.
ResourceLabels pulumi.StringMapOutput `pulumi:"resourceLabels"`
// Configuration for exporting resource usages. Resource usage export is disabled when this config is unspecified.
ResourceUsageExportConfig ResourceUsageExportConfigResponseOutput `pulumi:"resourceUsageExportConfig"`
// Enable/Disable Security Posture API features for the cluster.
SecurityPostureConfig SecurityPostureConfigResponseOutput `pulumi:"securityPostureConfig"`
// [Output only] Server-defined URL for the resource.
SelfLink pulumi.StringOutput `pulumi:"selfLink"`
// [Output only] The IP address range of the Kubernetes services in this cluster, in [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `1.2.3.4/29`). Service addresses are typically put in the last `/16` from the container CIDR.
ServicesIpv4Cidr pulumi.StringOutput `pulumi:"servicesIpv4Cidr"`
// Shielded Nodes configuration.
ShieldedNodes ShieldedNodesResponseOutput `pulumi:"shieldedNodes"`
// [Output only] The current status of this cluster.
Status pulumi.StringOutput `pulumi:"status"`
// [Output only] Deprecated. Use conditions instead. Additional information about the current status of this cluster, if available.
//
// Deprecated: [Output only] Deprecated. Use conditions instead. Additional information about the current status of this cluster, if available.
StatusMessage pulumi.StringOutput `pulumi:"statusMessage"`
// The name of the Google Compute Engine [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which the cluster is connected.
Subnetwork pulumi.StringOutput `pulumi:"subnetwork"`
// [Output only] The IP address range of the Cloud TPUs in this cluster, in [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `1.2.3.4/29`).
TpuIpv4CidrBlock pulumi.StringOutput `pulumi:"tpuIpv4CidrBlock"`
// Cluster-level Vertical Pod Autoscaling configuration.
VerticalPodAutoscaling VerticalPodAutoscalingResponseOutput `pulumi:"verticalPodAutoscaling"`
// Configuration for the use of Kubernetes Service Accounts in GCP IAM policies.
WorkloadIdentityConfig WorkloadIdentityConfigResponseOutput `pulumi:"workloadIdentityConfig"`
// [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field is deprecated, use location instead.
//
// Deprecated: [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field is deprecated, use location instead.
Zone pulumi.StringOutput `pulumi:"zone"`
}
// NewCluster registers a new resource with the given unique name, arguments, and options.
func NewCluster(ctx *pulumi.Context,
name string, args *ClusterArgs, opts ...pulumi.ResourceOption) (*Cluster, error) {
if args == nil {
args = &ClusterArgs{}
}
replaceOnChanges := pulumi.ReplaceOnChanges([]string{
"location",
"project",
})
opts = append(opts, replaceOnChanges)
opts = internal.PkgResourceDefaultOpts(opts)
var resource Cluster
err := ctx.RegisterResource("google-native:container/v1:Cluster", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetCluster gets an existing Cluster resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetCluster(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *ClusterState, opts ...pulumi.ResourceOption) (*Cluster, error) {
var resource Cluster
err := ctx.ReadResource("google-native:container/v1:Cluster", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering Cluster resources.
type clusterState struct {
}
type ClusterState struct {
}
func (ClusterState) ElementType() reflect.Type {
return reflect.TypeOf((*clusterState)(nil)).Elem()
}
type clusterArgs struct {
// Configurations for the various addons available to run in the cluster.
AddonsConfig *AddonsConfig `pulumi:"addonsConfig"`
// Configuration controlling RBAC group membership information.
AuthenticatorGroupsConfig *AuthenticatorGroupsConfig `pulumi:"authenticatorGroupsConfig"`
// Autopilot configuration for the cluster.
Autopilot *Autopilot `pulumi:"autopilot"`
// Cluster-level autoscaling configuration.
Autoscaling *ClusterAutoscaling `pulumi:"autoscaling"`
// Configuration for Binary Authorization.
BinaryAuthorization *BinaryAuthorization `pulumi:"binaryAuthorization"`
// The IP address range of the container pods in this cluster, in [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/14`). Leave blank to have one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
ClusterIpv4Cidr *string `pulumi:"clusterIpv4Cidr"`
// Which conditions caused the current cluster state.
Conditions []StatusCondition `pulumi:"conditions"`
// Configuration of Confidential Nodes. All the nodes in the cluster will be Confidential VM once enabled.
ConfidentialNodes *ConfidentialNodes `pulumi:"confidentialNodes"`
// Configuration for the fine-grained cost management feature.
CostManagementConfig *CostManagementConfig `pulumi:"costManagementConfig"`
// Configuration of etcd encryption.
DatabaseEncryption *DatabaseEncryption `pulumi:"databaseEncryption"`
// The default constraint on the maximum number of pods that can be run simultaneously on a node in the node pool of this cluster. Only honored if cluster created with IP Alias support.
DefaultMaxPodsConstraint *MaxPodsConstraint `pulumi:"defaultMaxPodsConstraint"`
// An optional description of this cluster.
Description *string `pulumi:"description"`
// Beta APIs Config
EnableK8sBetaApis *K8sBetaAPIConfig `pulumi:"enableK8sBetaApis"`
// Kubernetes alpha features are enabled on this cluster. This includes alpha API groups (e.g. v1alpha1) and features that may not be production ready in the kubernetes version of the master and nodes. The cluster has no SLA for uptime and master/node upgrades are disabled. Alpha enabled clusters are automatically deleted thirty days after creation.
EnableKubernetesAlpha *bool `pulumi:"enableKubernetesAlpha"`
// Enable the ability to use Cloud TPUs in this cluster.
EnableTpu *bool `pulumi:"enableTpu"`
// GKE Enterprise Configuration.
EnterpriseConfig *EnterpriseConfig `pulumi:"enterpriseConfig"`
// This checksum is computed by the server based on the value of cluster fields, and may be sent on update requests to ensure the client has an up-to-date value before proceeding.
Etag *string `pulumi:"etag"`
// Fleet information for the cluster.
Fleet *Fleet `pulumi:"fleet"`
// Configuration for Identity Service component.
IdentityServiceConfig *IdentityServiceConfig `pulumi:"identityServiceConfig"`
// The initial Kubernetes version for this cluster. Valid versions are those found in validMasterVersions returned by getServerConfig. The version can be upgraded over time; such upgrades are reflected in currentMasterVersion and currentNodeVersion. Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior: - "latest": picks the highest valid Kubernetes version - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - "1.X.Y-gke.N": picks an explicit Kubernetes version - "","-": picks the default Kubernetes version
InitialClusterVersion *string `pulumi:"initialClusterVersion"`
// The number of nodes to create in this cluster. You must ensure that your Compute Engine [resource quota](https://cloud.google.com/compute/quotas) is sufficient for this number of instances. You must also have available firewall and routes quota. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "node_config") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time. This field is deprecated, use node_pool.initial_node_count instead.
//
// Deprecated: The number of nodes to create in this cluster. You must ensure that your Compute Engine [resource quota](https://cloud.google.com/compute/quotas) is sufficient for this number of instances. You must also have available firewall and routes quota. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "node_config") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time. This field is deprecated, use node_pool.initial_node_count instead.
InitialNodeCount *int `pulumi:"initialNodeCount"`
// Deprecated. Use node_pools.instance_group_urls.
//
// Deprecated: Deprecated. Use node_pools.instance_group_urls.
InstanceGroupUrls []string `pulumi:"instanceGroupUrls"`
// Configuration for cluster IP allocation.
IpAllocationPolicy *IPAllocationPolicy `pulumi:"ipAllocationPolicy"`
// Configuration for the legacy ABAC authorization mode.
LegacyAbac *LegacyAbac `pulumi:"legacyAbac"`
Location *string `pulumi:"location"`
// The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes should be located. This field provides a default value if [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) are not specified during node pool creation. Warning: changing cluster locations will update the [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) of all node pools and will result in nodes being added and/or removed.
Locations []string `pulumi:"locations"`
// Logging configuration for the cluster.
LoggingConfig *LoggingConfig `pulumi:"loggingConfig"`
// The logging service the cluster should use to write logs. Currently available options: * `logging.googleapis.com/kubernetes` - The Cloud Logging service with a Kubernetes-native resource model * `logging.googleapis.com` - The legacy Cloud Logging service (no longer available as of GKE 1.15). * `none` - no logs will be exported from the cluster. If left as an empty string,`logging.googleapis.com/kubernetes` will be used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
LoggingService *string `pulumi:"loggingService"`
// Configure the maintenance policy for this cluster.
MaintenancePolicy *MaintenancePolicy `pulumi:"maintenancePolicy"`
// The authentication information for accessing the master endpoint. If unspecified, the defaults are used: For clusters before v1.12, if master_auth is unspecified, `username` will be set to "admin", a random password will be generated, and a client certificate will be issued.
MasterAuth *MasterAuth `pulumi:"masterAuth"`
// The configuration options for master authorized networks feature.
MasterAuthorizedNetworksConfig *MasterAuthorizedNetworksConfig `pulumi:"masterAuthorizedNetworksConfig"`
// Configuration for issuance of mTLS keys and certificates to Kubernetes pods.
MeshCertificates *MeshCertificates `pulumi:"meshCertificates"`
// Monitoring configuration for the cluster.
MonitoringConfig *MonitoringConfig `pulumi:"monitoringConfig"`
// The monitoring service the cluster should use to write metrics. Currently available options: * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring service with a Kubernetes-native resource model * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no longer available as of GKE 1.15). * `none` - No metrics will be exported from the cluster. If left as an empty string,`monitoring.googleapis.com/kubernetes` will be used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
MonitoringService *string `pulumi:"monitoringService"`
// The name of this cluster. The name must be unique within this project and location (e.g. zone or region), and can be up to 40 characters with the following restrictions: * Lowercase letters, numbers, and hyphens only. * Must start with a letter. * Must end with a number or a letter.
Name *string `pulumi:"name"`
// The name of the Google Compute Engine [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the cluster is connected. If left unspecified, the `default` network will be used.
Network *string `pulumi:"network"`
// Configuration for cluster networking.
NetworkConfig *NetworkConfig `pulumi:"networkConfig"`
// Configuration options for the NetworkPolicy feature.
NetworkPolicy *NetworkPolicy `pulumi:"networkPolicy"`
// Parameters used in creating the cluster's nodes. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "initial_node_count") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time. For responses, this field will be populated with the node configuration of the first node pool. (For configuration of each node pool, see `node_pool.config`) If unspecified, the defaults are used. This field is deprecated, use node_pool.config instead.
//
// Deprecated: Parameters used in creating the cluster's nodes. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "initial_node_count") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time. For responses, this field will be populated with the node configuration of the first node pool. (For configuration of each node pool, see `node_pool.config`) If unspecified, the defaults are used. This field is deprecated, use node_pool.config instead.
NodeConfig *NodeConfig `pulumi:"nodeConfig"`
// Node pool configs that apply to all auto-provisioned node pools in autopilot clusters and node auto-provisioning enabled clusters.
NodePoolAutoConfig *NodePoolAutoConfig `pulumi:"nodePoolAutoConfig"`
// Default NodePool settings for the entire cluster. These settings are overridden if specified on the specific NodePool object.
NodePoolDefaults *NodePoolDefaults `pulumi:"nodePoolDefaults"`
// The node pools associated with this cluster. This field should not be set if "node_config" or "initial_node_count" are specified.
NodePools []NodePoolType `pulumi:"nodePools"`
// Notification configuration of the cluster.
NotificationConfig *NotificationConfig `pulumi:"notificationConfig"`
// The parent (project and location) where the cluster will be created. Specified in the format `projects/*/locations/*`.
Parent *string `pulumi:"parent"`
// The configuration of the parent product of the cluster. This field is used by Google internal products that are built on top of the GKE cluster and take the ownership of the cluster.
ParentProductConfig *ParentProductConfig `pulumi:"parentProductConfig"`
// Configuration for private cluster.
PrivateClusterConfig *PrivateClusterConfig `pulumi:"privateClusterConfig"`
// Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the parent field.
//
// Deprecated: Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the parent field.
Project *string `pulumi:"project"`
// Release channel configuration. If left unspecified on cluster creation and a version is specified, the cluster is enrolled in the most mature release channel where the version is available (first checking STABLE, then REGULAR, and finally RAPID). Otherwise, if no release channel configuration and no version is specified, the cluster is enrolled in the REGULAR channel with its default version.
ReleaseChannel *ReleaseChannel `pulumi:"releaseChannel"`
// The resource labels for the cluster to use to annotate any related Google Compute Engine resources.
ResourceLabels map[string]string `pulumi:"resourceLabels"`
// Configuration for exporting resource usages. Resource usage export is disabled when this config is unspecified.
ResourceUsageExportConfig *ResourceUsageExportConfig `pulumi:"resourceUsageExportConfig"`
// Enable/Disable Security Posture API features for the cluster.
SecurityPostureConfig *SecurityPostureConfig `pulumi:"securityPostureConfig"`
// Shielded Nodes configuration.
ShieldedNodes *ShieldedNodes `pulumi:"shieldedNodes"`
// The name of the Google Compute Engine [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which the cluster is connected.
Subnetwork *string `pulumi:"subnetwork"`
// Cluster-level Vertical Pod Autoscaling configuration.
VerticalPodAutoscaling *VerticalPodAutoscaling `pulumi:"verticalPodAutoscaling"`
// Configuration for the use of Kubernetes Service Accounts in GCP IAM policies.
WorkloadIdentityConfig *WorkloadIdentityConfig `pulumi:"workloadIdentityConfig"`
// Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the parent field.
//
// Deprecated: Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the parent field.
Zone *string `pulumi:"zone"`
}
// The set of arguments for constructing a Cluster resource.
type ClusterArgs struct {
// Configurations for the various addons available to run in the cluster.
AddonsConfig AddonsConfigPtrInput
// Configuration controlling RBAC group membership information.
AuthenticatorGroupsConfig AuthenticatorGroupsConfigPtrInput
// Autopilot configuration for the cluster.
Autopilot AutopilotPtrInput
// Cluster-level autoscaling configuration.
Autoscaling ClusterAutoscalingPtrInput
// Configuration for Binary Authorization.
BinaryAuthorization BinaryAuthorizationPtrInput
// The IP address range of the container pods in this cluster, in [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/14`). Leave blank to have one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
ClusterIpv4Cidr pulumi.StringPtrInput
// Which conditions caused the current cluster state.
Conditions StatusConditionArrayInput
// Configuration of Confidential Nodes. All the nodes in the cluster will be Confidential VM once enabled.
ConfidentialNodes ConfidentialNodesPtrInput
// Configuration for the fine-grained cost management feature.
CostManagementConfig CostManagementConfigPtrInput
// Configuration of etcd encryption.
DatabaseEncryption DatabaseEncryptionPtrInput
// The default constraint on the maximum number of pods that can be run simultaneously on a node in the node pool of this cluster. Only honored if cluster created with IP Alias support.
DefaultMaxPodsConstraint MaxPodsConstraintPtrInput
// An optional description of this cluster.
Description pulumi.StringPtrInput
// Beta APIs Config
EnableK8sBetaApis K8sBetaAPIConfigPtrInput
// Kubernetes alpha features are enabled on this cluster. This includes alpha API groups (e.g. v1alpha1) and features that may not be production ready in the kubernetes version of the master and nodes. The cluster has no SLA for uptime and master/node upgrades are disabled. Alpha enabled clusters are automatically deleted thirty days after creation.
EnableKubernetesAlpha pulumi.BoolPtrInput
// Enable the ability to use Cloud TPUs in this cluster.
EnableTpu pulumi.BoolPtrInput
// GKE Enterprise Configuration.
EnterpriseConfig EnterpriseConfigPtrInput
// This checksum is computed by the server based on the value of cluster fields, and may be sent on update requests to ensure the client has an up-to-date value before proceeding.
Etag pulumi.StringPtrInput
// Fleet information for the cluster.
Fleet FleetPtrInput
// Configuration for Identity Service component.
IdentityServiceConfig IdentityServiceConfigPtrInput
// The initial Kubernetes version for this cluster. Valid versions are those found in validMasterVersions returned by getServerConfig. The version can be upgraded over time; such upgrades are reflected in currentMasterVersion and currentNodeVersion. Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior: - "latest": picks the highest valid Kubernetes version - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - "1.X.Y-gke.N": picks an explicit Kubernetes version - "","-": picks the default Kubernetes version
InitialClusterVersion pulumi.StringPtrInput
// The number of nodes to create in this cluster. You must ensure that your Compute Engine [resource quota](https://cloud.google.com/compute/quotas) is sufficient for this number of instances. You must also have available firewall and routes quota. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "node_config") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time. This field is deprecated, use node_pool.initial_node_count instead.
//
// Deprecated: The number of nodes to create in this cluster. You must ensure that your Compute Engine [resource quota](https://cloud.google.com/compute/quotas) is sufficient for this number of instances. You must also have available firewall and routes quota. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "node_config") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time. This field is deprecated, use node_pool.initial_node_count instead.
InitialNodeCount pulumi.IntPtrInput
// Deprecated. Use node_pools.instance_group_urls.
//
// Deprecated: Deprecated. Use node_pools.instance_group_urls.
InstanceGroupUrls pulumi.StringArrayInput
// Configuration for cluster IP allocation.
IpAllocationPolicy IPAllocationPolicyPtrInput
// Configuration for the legacy ABAC authorization mode.
LegacyAbac LegacyAbacPtrInput
Location pulumi.StringPtrInput
// The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes should be located. This field provides a default value if [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) are not specified during node pool creation. Warning: changing cluster locations will update the [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) of all node pools and will result in nodes being added and/or removed.
Locations pulumi.StringArrayInput
// Logging configuration for the cluster.
LoggingConfig LoggingConfigPtrInput
// The logging service the cluster should use to write logs. Currently available options: * `logging.googleapis.com/kubernetes` - The Cloud Logging service with a Kubernetes-native resource model * `logging.googleapis.com` - The legacy Cloud Logging service (no longer available as of GKE 1.15). * `none` - no logs will be exported from the cluster. If left as an empty string,`logging.googleapis.com/kubernetes` will be used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
LoggingService pulumi.StringPtrInput
// Configure the maintenance policy for this cluster.
MaintenancePolicy MaintenancePolicyPtrInput
// The authentication information for accessing the master endpoint. If unspecified, the defaults are used: For clusters before v1.12, if master_auth is unspecified, `username` will be set to "admin", a random password will be generated, and a client certificate will be issued.
MasterAuth MasterAuthPtrInput
// The configuration options for master authorized networks feature.
MasterAuthorizedNetworksConfig MasterAuthorizedNetworksConfigPtrInput
// Configuration for issuance of mTLS keys and certificates to Kubernetes pods.
MeshCertificates MeshCertificatesPtrInput
// Monitoring configuration for the cluster.
MonitoringConfig MonitoringConfigPtrInput
// The monitoring service the cluster should use to write metrics. Currently available options: * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring service with a Kubernetes-native resource model * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no longer available as of GKE 1.15). * `none` - No metrics will be exported from the cluster. If left as an empty string,`monitoring.googleapis.com/kubernetes` will be used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
MonitoringService pulumi.StringPtrInput
// The name of this cluster. The name must be unique within this project and location (e.g. zone or region), and can be up to 40 characters with the following restrictions: * Lowercase letters, numbers, and hyphens only. * Must start with a letter. * Must end with a number or a letter.
Name pulumi.StringPtrInput
// The name of the Google Compute Engine [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the cluster is connected. If left unspecified, the `default` network will be used.
Network pulumi.StringPtrInput
// Configuration for cluster networking.
NetworkConfig NetworkConfigPtrInput
// Configuration options for the NetworkPolicy feature.
NetworkPolicy NetworkPolicyPtrInput
// Parameters used in creating the cluster's nodes. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "initial_node_count") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time. For responses, this field will be populated with the node configuration of the first node pool. (For configuration of each node pool, see `node_pool.config`) If unspecified, the defaults are used. This field is deprecated, use node_pool.config instead.
//
// Deprecated: Parameters used in creating the cluster's nodes. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "initial_node_count") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time. For responses, this field will be populated with the node configuration of the first node pool. (For configuration of each node pool, see `node_pool.config`) If unspecified, the defaults are used. This field is deprecated, use node_pool.config instead.
NodeConfig NodeConfigPtrInput
// Node pool configs that apply to all auto-provisioned node pools in autopilot clusters and node auto-provisioning enabled clusters.
NodePoolAutoConfig NodePoolAutoConfigPtrInput
// Default NodePool settings for the entire cluster. These settings are overridden if specified on the specific NodePool object.
NodePoolDefaults NodePoolDefaultsPtrInput
// The node pools associated with this cluster. This field should not be set if "node_config" or "initial_node_count" are specified.
NodePools NodePoolTypeArrayInput
// Notification configuration of the cluster.
NotificationConfig NotificationConfigPtrInput
// The parent (project and location) where the cluster will be created. Specified in the format `projects/*/locations/*`.
Parent pulumi.StringPtrInput
// The configuration of the parent product of the cluster. This field is used by Google internal products that are built on top of the GKE cluster and take the ownership of the cluster.
ParentProductConfig ParentProductConfigPtrInput
// Configuration for private cluster.
PrivateClusterConfig PrivateClusterConfigPtrInput
// Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the parent field.
//
// Deprecated: Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the parent field.
Project pulumi.StringPtrInput
// Release channel configuration. If left unspecified on cluster creation and a version is specified, the cluster is enrolled in the most mature release channel where the version is available (first checking STABLE, then REGULAR, and finally RAPID). Otherwise, if no release channel configuration and no version is specified, the cluster is enrolled in the REGULAR channel with its default version.
ReleaseChannel ReleaseChannelPtrInput
// The resource labels for the cluster to use to annotate any related Google Compute Engine resources.
ResourceLabels pulumi.StringMapInput
// Configuration for exporting resource usages. Resource usage export is disabled when this config is unspecified.
ResourceUsageExportConfig ResourceUsageExportConfigPtrInput
// Enable/Disable Security Posture API features for the cluster.
SecurityPostureConfig SecurityPostureConfigPtrInput
// Shielded Nodes configuration.
ShieldedNodes ShieldedNodesPtrInput
// The name of the Google Compute Engine [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which the cluster is connected.
Subnetwork pulumi.StringPtrInput
// Cluster-level Vertical Pod Autoscaling configuration.
VerticalPodAutoscaling VerticalPodAutoscalingPtrInput
// Configuration for the use of Kubernetes Service Accounts in GCP IAM policies.
WorkloadIdentityConfig WorkloadIdentityConfigPtrInput
// Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the parent field.
//
// Deprecated: Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the parent field.
Zone pulumi.StringPtrInput
}
func (ClusterArgs) ElementType() reflect.Type {
return reflect.TypeOf((*clusterArgs)(nil)).Elem()
}
// Generate a kubeconfig for cluster authentication.
//
// The kubeconfig generated is automatically stringified for ease of use with the pulumi/kubernetes provider.
// The kubeconfig uses the new `gke-gcloud-auth-plugin` authentication plugin as recommended by Google.
//
// See for more details:
// - https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke
func (r *Cluster) GetKubeconfig(ctx *pulumi.Context) (pulumi.StringOutput, error) {
out, err := ctx.Call("google-native:container/v1:Cluster/getKubeconfig", nil, clusterGetKubeconfigResultOutput{}, r)
if err != nil {
return pulumi.StringOutput{}, err
}
return out.(clusterGetKubeconfigResultOutput).Kubeconfig(), nil
}
type clusterGetKubeconfigResult struct {
Kubeconfig string `pulumi:"kubeconfig"`
}
type clusterGetKubeconfigResultOutput struct{ *pulumi.OutputState }
func (clusterGetKubeconfigResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*clusterGetKubeconfigResult)(nil)).Elem()
}
func (o clusterGetKubeconfigResultOutput) Kubeconfig() pulumi.StringOutput {
return o.ApplyT(func(v clusterGetKubeconfigResult) string { return v.Kubeconfig }).(pulumi.StringOutput)
}
type ClusterInput interface {
pulumi.Input
ToClusterOutput() ClusterOutput
ToClusterOutputWithContext(ctx context.Context) ClusterOutput
}
func (*Cluster) ElementType() reflect.Type {
return reflect.TypeOf((**Cluster)(nil)).Elem()
}
func (i *Cluster) ToClusterOutput() ClusterOutput {
return i.ToClusterOutputWithContext(context.Background())
}
func (i *Cluster) ToClusterOutputWithContext(ctx context.Context) ClusterOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterOutput)
}
type ClusterOutput struct{ *pulumi.OutputState }
func (ClusterOutput) ElementType() reflect.Type {
return reflect.TypeOf((**Cluster)(nil)).Elem()
}
func (o ClusterOutput) ToClusterOutput() ClusterOutput {
return o
}
func (o ClusterOutput) ToClusterOutputWithContext(ctx context.Context) ClusterOutput {
return o
}
// Configurations for the various addons available to run in the cluster.
func (o ClusterOutput) AddonsConfig() AddonsConfigResponseOutput {
return o.ApplyT(func(v *Cluster) AddonsConfigResponseOutput { return v.AddonsConfig }).(AddonsConfigResponseOutput)
}
// Configuration controlling RBAC group membership information.
func (o ClusterOutput) AuthenticatorGroupsConfig() AuthenticatorGroupsConfigResponseOutput {
return o.ApplyT(func(v *Cluster) AuthenticatorGroupsConfigResponseOutput { return v.AuthenticatorGroupsConfig }).(AuthenticatorGroupsConfigResponseOutput)
}
// Autopilot configuration for the cluster.
func (o ClusterOutput) Autopilot() AutopilotResponseOutput {
return o.ApplyT(func(v *Cluster) AutopilotResponseOutput { return v.Autopilot }).(AutopilotResponseOutput)
}
// Cluster-level autoscaling configuration.
func (o ClusterOutput) Autoscaling() ClusterAutoscalingResponseOutput {
return o.ApplyT(func(v *Cluster) ClusterAutoscalingResponseOutput { return v.Autoscaling }).(ClusterAutoscalingResponseOutput)
}
// Configuration for Binary Authorization.
func (o ClusterOutput) BinaryAuthorization() BinaryAuthorizationResponseOutput {
return o.ApplyT(func(v *Cluster) BinaryAuthorizationResponseOutput { return v.BinaryAuthorization }).(BinaryAuthorizationResponseOutput)
}
// The IP address range of the container pods in this cluster, in [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/14`). Leave blank to have one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
func (o ClusterOutput) ClusterIpv4Cidr() pulumi.StringOutput {
return o.ApplyT(func(v *Cluster) pulumi.StringOutput { return v.ClusterIpv4Cidr }).(pulumi.StringOutput)
}
// Which conditions caused the current cluster state.
func (o ClusterOutput) Conditions() StatusConditionResponseArrayOutput {
return o.ApplyT(func(v *Cluster) StatusConditionResponseArrayOutput { return v.Conditions }).(StatusConditionResponseArrayOutput)
}
// Configuration of Confidential Nodes. All the nodes in the cluster will be Confidential VM once enabled.
func (o ClusterOutput) ConfidentialNodes() ConfidentialNodesResponseOutput {
return o.ApplyT(func(v *Cluster) ConfidentialNodesResponseOutput { return v.ConfidentialNodes }).(ConfidentialNodesResponseOutput)
}
// Configuration for the fine-grained cost management feature.
func (o ClusterOutput) CostManagementConfig() CostManagementConfigResponseOutput {
return o.ApplyT(func(v *Cluster) CostManagementConfigResponseOutput { return v.CostManagementConfig }).(CostManagementConfigResponseOutput)
}
// [Output only] The time the cluster was created, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
func (o ClusterOutput) CreateTime() pulumi.StringOutput {
return o.ApplyT(func(v *Cluster) pulumi.StringOutput { return v.CreateTime }).(pulumi.StringOutput)
}
// [Output only] The current software version of the master endpoint.
func (o ClusterOutput) CurrentMasterVersion() pulumi.StringOutput {
return o.ApplyT(func(v *Cluster) pulumi.StringOutput { return v.CurrentMasterVersion }).(pulumi.StringOutput)
}
// [Output only] The number of nodes currently in the cluster. Deprecated. Call Kubernetes API directly to retrieve node information.
//
// Deprecated: [Output only] The number of nodes currently in the cluster. Deprecated. Call Kubernetes API directly to retrieve node information.
func (o ClusterOutput) CurrentNodeCount() pulumi.IntOutput {
return o.ApplyT(func(v *Cluster) pulumi.IntOutput { return v.CurrentNodeCount }).(pulumi.IntOutput)
}
// [Output only] Deprecated, use [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools) instead. The current version of the node software components. If they are currently at multiple versions because they're in the process of being upgraded, this reflects the minimum version of all nodes.
func (o ClusterOutput) CurrentNodeVersion() pulumi.StringOutput {
return o.ApplyT(func(v *Cluster) pulumi.StringOutput { return v.CurrentNodeVersion }).(pulumi.StringOutput)
}
// Configuration of etcd encryption.
func (o ClusterOutput) DatabaseEncryption() DatabaseEncryptionResponseOutput {
return o.ApplyT(func(v *Cluster) DatabaseEncryptionResponseOutput { return v.DatabaseEncryption }).(DatabaseEncryptionResponseOutput)
}
// The default constraint on the maximum number of pods that can be run simultaneously on a node in the node pool of this cluster. Only honored if cluster created with IP Alias support.
func (o ClusterOutput) DefaultMaxPodsConstraint() MaxPodsConstraintResponseOutput {
return o.ApplyT(func(v *Cluster) MaxPodsConstraintResponseOutput { return v.DefaultMaxPodsConstraint }).(MaxPodsConstraintResponseOutput)
}
// An optional description of this cluster.
func (o ClusterOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v *Cluster) pulumi.StringOutput { return v.Description }).(pulumi.StringOutput)
}
// Beta APIs Config
func (o ClusterOutput) EnableK8sBetaApis() K8sBetaAPIConfigResponseOutput {
return o.ApplyT(func(v *Cluster) K8sBetaAPIConfigResponseOutput { return v.EnableK8sBetaApis }).(K8sBetaAPIConfigResponseOutput)
}
// Kubernetes alpha features are enabled on this cluster. This includes alpha API groups (e.g. v1alpha1) and features that may not be production ready in the kubernetes version of the master and nodes. The cluster has no SLA for uptime and master/node upgrades are disabled. Alpha enabled clusters are automatically deleted thirty days after creation.
func (o ClusterOutput) EnableKubernetesAlpha() pulumi.BoolOutput {
return o.ApplyT(func(v *Cluster) pulumi.BoolOutput { return v.EnableKubernetesAlpha }).(pulumi.BoolOutput)
}
// Enable the ability to use Cloud TPUs in this cluster.
func (o ClusterOutput) EnableTpu() pulumi.BoolOutput {
return o.ApplyT(func(v *Cluster) pulumi.BoolOutput { return v.EnableTpu }).(pulumi.BoolOutput)
}
// [Output only] The IP address of this cluster's master endpoint. The endpoint can be accessed from the internet at `https://username:password@endpoint/`. See the `masterAuth` property of this resource for username and password information.
func (o ClusterOutput) Endpoint() pulumi.StringOutput {
return o.ApplyT(func(v *Cluster) pulumi.StringOutput { return v.Endpoint }).(pulumi.StringOutput)
}
// GKE Enterprise Configuration.
func (o ClusterOutput) EnterpriseConfig() EnterpriseConfigResponseOutput {
return o.ApplyT(func(v *Cluster) EnterpriseConfigResponseOutput { return v.EnterpriseConfig }).(EnterpriseConfigResponseOutput)
}
// This checksum is computed by the server based on the value of cluster fields, and may be sent on update requests to ensure the client has an up-to-date value before proceeding.
func (o ClusterOutput) Etag() pulumi.StringOutput {
return o.ApplyT(func(v *Cluster) pulumi.StringOutput { return v.Etag }).(pulumi.StringOutput)
}
// [Output only] The time the cluster will be automatically deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
func (o ClusterOutput) ExpireTime() pulumi.StringOutput {
return o.ApplyT(func(v *Cluster) pulumi.StringOutput { return v.ExpireTime }).(pulumi.StringOutput)
}
// Fleet information for the cluster.
func (o ClusterOutput) Fleet() FleetResponseOutput {
return o.ApplyT(func(v *Cluster) FleetResponseOutput { return v.Fleet }).(FleetResponseOutput)
}
// Configuration for Identity Service component.
func (o ClusterOutput) IdentityServiceConfig() IdentityServiceConfigResponseOutput {
return o.ApplyT(func(v *Cluster) IdentityServiceConfigResponseOutput { return v.IdentityServiceConfig }).(IdentityServiceConfigResponseOutput)
}
// The initial Kubernetes version for this cluster. Valid versions are those found in validMasterVersions returned by getServerConfig. The version can be upgraded over time; such upgrades are reflected in currentMasterVersion and currentNodeVersion. Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior: - "latest": picks the highest valid Kubernetes version - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - "1.X.Y-gke.N": picks an explicit Kubernetes version - "","-": picks the default Kubernetes version
func (o ClusterOutput) InitialClusterVersion() pulumi.StringOutput {
return o.ApplyT(func(v *Cluster) pulumi.StringOutput { return v.InitialClusterVersion }).(pulumi.StringOutput)
}
// The number of nodes to create in this cluster. You must ensure that your Compute Engine [resource quota](https://cloud.google.com/compute/quotas) is sufficient for this number of instances. You must also have available firewall and routes quota. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "node_config") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time. This field is deprecated, use node_pool.initial_node_count instead.
//
// Deprecated: The number of nodes to create in this cluster. You must ensure that your Compute Engine [resource quota](https://cloud.google.com/compute/quotas) is sufficient for this number of instances. You must also have available firewall and routes quota. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "node_config") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time. This field is deprecated, use node_pool.initial_node_count instead.
func (o ClusterOutput) InitialNodeCount() pulumi.IntOutput {
return o.ApplyT(func(v *Cluster) pulumi.IntOutput { return v.InitialNodeCount }).(pulumi.IntOutput)
}
// Deprecated. Use node_pools.instance_group_urls.
//
// Deprecated: Deprecated. Use node_pools.instance_group_urls.
func (o ClusterOutput) InstanceGroupUrls() pulumi.StringArrayOutput {
return o.ApplyT(func(v *Cluster) pulumi.StringArrayOutput { return v.InstanceGroupUrls }).(pulumi.StringArrayOutput)
}
// Configuration for cluster IP allocation.
func (o ClusterOutput) IpAllocationPolicy() IPAllocationPolicyResponseOutput {
return o.ApplyT(func(v *Cluster) IPAllocationPolicyResponseOutput { return v.IpAllocationPolicy }).(IPAllocationPolicyResponseOutput)
}
// The fingerprint of the set of labels for this cluster.
func (o ClusterOutput) LabelFingerprint() pulumi.StringOutput {
return o.ApplyT(func(v *Cluster) pulumi.StringOutput { return v.LabelFingerprint }).(pulumi.StringOutput)
}
// Configuration for the legacy ABAC authorization mode.
func (o ClusterOutput) LegacyAbac() LegacyAbacResponseOutput {
return o.ApplyT(func(v *Cluster) LegacyAbacResponseOutput { return v.LegacyAbac }).(LegacyAbacResponseOutput)
}
func (o ClusterOutput) Location() pulumi.StringOutput {
return o.ApplyT(func(v *Cluster) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput)
}
// The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes should be located. This field provides a default value if [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) are not specified during node pool creation. Warning: changing cluster locations will update the [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) of all node pools and will result in nodes being added and/or removed.
func (o ClusterOutput) Locations() pulumi.StringArrayOutput {
return o.ApplyT(func(v *Cluster) pulumi.StringArrayOutput { return v.Locations }).(pulumi.StringArrayOutput)
}
// Logging configuration for the cluster.
func (o ClusterOutput) LoggingConfig() LoggingConfigResponseOutput {
return o.ApplyT(func(v *Cluster) LoggingConfigResponseOutput { return v.LoggingConfig }).(LoggingConfigResponseOutput)
}
// The logging service the cluster should use to write logs. Currently available options: * `logging.googleapis.com/kubernetes` - The Cloud Logging service with a Kubernetes-native resource model * `logging.googleapis.com` - The legacy Cloud Logging service (no longer available as of GKE 1.15). * `none` - no logs will be exported from the cluster. If left as an empty string,`logging.googleapis.com/kubernetes` will be used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
func (o ClusterOutput) LoggingService() pulumi.StringOutput {
return o.ApplyT(func(v *Cluster) pulumi.StringOutput { return v.LoggingService }).(pulumi.StringOutput)
}
// Configure the maintenance policy for this cluster.
func (o ClusterOutput) MaintenancePolicy() MaintenancePolicyResponseOutput {
return o.ApplyT(func(v *Cluster) MaintenancePolicyResponseOutput { return v.MaintenancePolicy }).(MaintenancePolicyResponseOutput)
}
// The authentication information for accessing the master endpoint. If unspecified, the defaults are used: For clusters before v1.12, if master_auth is unspecified, `username` will be set to "admin", a random password will be generated, and a client certificate will be issued.
func (o ClusterOutput) MasterAuth() MasterAuthResponseOutput {
return o.ApplyT(func(v *Cluster) MasterAuthResponseOutput { return v.MasterAuth }).(MasterAuthResponseOutput)
}
// The configuration options for master authorized networks feature.
func (o ClusterOutput) MasterAuthorizedNetworksConfig() MasterAuthorizedNetworksConfigResponseOutput {
return o.ApplyT(func(v *Cluster) MasterAuthorizedNetworksConfigResponseOutput { return v.MasterAuthorizedNetworksConfig }).(MasterAuthorizedNetworksConfigResponseOutput)
}
// Configuration for issuance of mTLS keys and certificates to Kubernetes pods.
func (o ClusterOutput) MeshCertificates() MeshCertificatesResponseOutput {
return o.ApplyT(func(v *Cluster) MeshCertificatesResponseOutput { return v.MeshCertificates }).(MeshCertificatesResponseOutput)
}
// Monitoring configuration for the cluster.
func (o ClusterOutput) MonitoringConfig() MonitoringConfigResponseOutput {
return o.ApplyT(func(v *Cluster) MonitoringConfigResponseOutput { return v.MonitoringConfig }).(MonitoringConfigResponseOutput)
}
// The monitoring service the cluster should use to write metrics. Currently available options: * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring service with a Kubernetes-native resource model * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no longer available as of GKE 1.15). * `none` - No metrics will be exported from the cluster. If left as an empty string,`monitoring.googleapis.com/kubernetes` will be used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
func (o ClusterOutput) MonitoringService() pulumi.StringOutput {
return o.ApplyT(func(v *Cluster) pulumi.StringOutput { return v.MonitoringService }).(pulumi.StringOutput)
}
// The name of this cluster. The name must be unique within this project and location (e.g. zone or region), and can be up to 40 characters with the following restrictions: * Lowercase letters, numbers, and hyphens only. * Must start with a letter. * Must end with a number or a letter.
func (o ClusterOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *Cluster) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// The name of the Google Compute Engine [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the cluster is connected. If left unspecified, the `default` network will be used.
func (o ClusterOutput) Network() pulumi.StringOutput {
return o.ApplyT(func(v *Cluster) pulumi.StringOutput { return v.Network }).(pulumi.StringOutput)
}
// Configuration for cluster networking.
func (o ClusterOutput) NetworkConfig() NetworkConfigResponseOutput {
return o.ApplyT(func(v *Cluster) NetworkConfigResponseOutput { return v.NetworkConfig }).(NetworkConfigResponseOutput)
}
// Configuration options for the NetworkPolicy feature.
func (o ClusterOutput) NetworkPolicy() NetworkPolicyResponseOutput {
return o.ApplyT(func(v *Cluster) NetworkPolicyResponseOutput { return v.NetworkPolicy }).(NetworkPolicyResponseOutput)
}
// Parameters used in creating the cluster's nodes. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "initial_node_count") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time. For responses, this field will be populated with the node configuration of the first node pool. (For configuration of each node pool, see `node_pool.config`) If unspecified, the defaults are used. This field is deprecated, use node_pool.config instead.
//
// Deprecated: Parameters used in creating the cluster's nodes. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "initial_node_count") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time. For responses, this field will be populated with the node configuration of the first node pool. (For configuration of each node pool, see `node_pool.config`) If unspecified, the defaults are used. This field is deprecated, use node_pool.config instead.
func (o ClusterOutput) NodeConfig() NodeConfigResponseOutput {
return o.ApplyT(func(v *Cluster) NodeConfigResponseOutput { return v.NodeConfig }).(NodeConfigResponseOutput)
}
// [Output only] The size of the address space on each node for hosting containers. This is provisioned from within the `container_ipv4_cidr` range. This field will only be set when cluster is in route-based network mode.
func (o ClusterOutput) NodeIpv4CidrSize() pulumi.IntOutput {
return o.ApplyT(func(v *Cluster) pulumi.IntOutput { return v.NodeIpv4CidrSize }).(pulumi.IntOutput)
}
// Node pool configs that apply to all auto-provisioned node pools in autopilot clusters and node auto-provisioning enabled clusters.
func (o ClusterOutput) NodePoolAutoConfig() NodePoolAutoConfigResponseOutput {
return o.ApplyT(func(v *Cluster) NodePoolAutoConfigResponseOutput { return v.NodePoolAutoConfig }).(NodePoolAutoConfigResponseOutput)
}
// Default NodePool settings for the entire cluster. These settings are overridden if specified on the specific NodePool object.
func (o ClusterOutput) NodePoolDefaults() NodePoolDefaultsResponseOutput {
return o.ApplyT(func(v *Cluster) NodePoolDefaultsResponseOutput { return v.NodePoolDefaults }).(NodePoolDefaultsResponseOutput)
}
// The node pools associated with this cluster. This field should not be set if "node_config" or "initial_node_count" are specified.
func (o ClusterOutput) NodePools() NodePoolResponseArrayOutput {
return o.ApplyT(func(v *Cluster) NodePoolResponseArrayOutput { return v.NodePools }).(NodePoolResponseArrayOutput)
}
// Notification configuration of the cluster.
func (o ClusterOutput) NotificationConfig() NotificationConfigResponseOutput {
return o.ApplyT(func(v *Cluster) NotificationConfigResponseOutput { return v.NotificationConfig }).(NotificationConfigResponseOutput)
}
// The configuration of the parent product of the cluster. This field is used by Google internal products that are built on top of the GKE cluster and take the ownership of the cluster.
func (o ClusterOutput) ParentProductConfig() ParentProductConfigResponseOutput {
return o.ApplyT(func(v *Cluster) ParentProductConfigResponseOutput { return v.ParentProductConfig }).(ParentProductConfigResponseOutput)
}
// Configuration for private cluster.
func (o ClusterOutput) PrivateClusterConfig() PrivateClusterConfigResponseOutput {
return o.ApplyT(func(v *Cluster) PrivateClusterConfigResponseOutput { return v.PrivateClusterConfig }).(PrivateClusterConfigResponseOutput)
}
func (o ClusterOutput) Project() pulumi.StringOutput {
return o.ApplyT(func(v *Cluster) pulumi.StringOutput { return v.Project }).(pulumi.StringOutput)
}
// Release channel configuration. If left unspecified on cluster creation and a version is specified, the cluster is enrolled in the most mature release channel where the version is available (first checking STABLE, then REGULAR, and finally RAPID). Otherwise, if no release channel configuration and no version is specified, the cluster is enrolled in the REGULAR channel with its default version.
func (o ClusterOutput) ReleaseChannel() ReleaseChannelResponseOutput {
return o.ApplyT(func(v *Cluster) ReleaseChannelResponseOutput { return v.ReleaseChannel }).(ReleaseChannelResponseOutput)
}
// The resource labels for the cluster to use to annotate any related Google Compute Engine resources.
func (o ClusterOutput) ResourceLabels() pulumi.StringMapOutput {
return o.ApplyT(func(v *Cluster) pulumi.StringMapOutput { return v.ResourceLabels }).(pulumi.StringMapOutput)
}
// Configuration for exporting resource usages. Resource usage export is disabled when this config is unspecified.
func (o ClusterOutput) ResourceUsageExportConfig() ResourceUsageExportConfigResponseOutput {
return o.ApplyT(func(v *Cluster) ResourceUsageExportConfigResponseOutput { return v.ResourceUsageExportConfig }).(ResourceUsageExportConfigResponseOutput)
}
// Enable/Disable Security Posture API features for the cluster.
func (o ClusterOutput) SecurityPostureConfig() SecurityPostureConfigResponseOutput {
return o.ApplyT(func(v *Cluster) SecurityPostureConfigResponseOutput { return v.SecurityPostureConfig }).(SecurityPostureConfigResponseOutput)
}
// [Output only] Server-defined URL for the resource.
func (o ClusterOutput) SelfLink() pulumi.StringOutput {
return o.ApplyT(func(v *Cluster) pulumi.StringOutput { return v.SelfLink }).(pulumi.StringOutput)
}
// [Output only] The IP address range of the Kubernetes services in this cluster, in [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `1.2.3.4/29`). Service addresses are typically put in the last `/16` from the container CIDR.
func (o ClusterOutput) ServicesIpv4Cidr() pulumi.StringOutput {
return o.ApplyT(func(v *Cluster) pulumi.StringOutput { return v.ServicesIpv4Cidr }).(pulumi.StringOutput)
}
// Shielded Nodes configuration.
func (o ClusterOutput) ShieldedNodes() ShieldedNodesResponseOutput {
return o.ApplyT(func(v *Cluster) ShieldedNodesResponseOutput { return v.ShieldedNodes }).(ShieldedNodesResponseOutput)
}
// [Output only] The current status of this cluster.
func (o ClusterOutput) Status() pulumi.StringOutput {
return o.ApplyT(func(v *Cluster) pulumi.StringOutput { return v.Status }).(pulumi.StringOutput)
}
// [Output only] Deprecated. Use conditions instead. Additional information about the current status of this cluster, if available.
//
// Deprecated: [Output only] Deprecated. Use conditions instead. Additional information about the current status of this cluster, if available.
func (o ClusterOutput) StatusMessage() pulumi.StringOutput {
return o.ApplyT(func(v *Cluster) pulumi.StringOutput { return v.StatusMessage }).(pulumi.StringOutput)
}
// The name of the Google Compute Engine [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which the cluster is connected.
func (o ClusterOutput) Subnetwork() pulumi.StringOutput {
return o.ApplyT(func(v *Cluster) pulumi.StringOutput { return v.Subnetwork }).(pulumi.StringOutput)
}
// [Output only] The IP address range of the Cloud TPUs in this cluster, in [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `1.2.3.4/29`).
func (o ClusterOutput) TpuIpv4CidrBlock() pulumi.StringOutput {
return o.ApplyT(func(v *Cluster) pulumi.StringOutput { return v.TpuIpv4CidrBlock }).(pulumi.StringOutput)
}
// Cluster-level Vertical Pod Autoscaling configuration.
func (o ClusterOutput) VerticalPodAutoscaling() VerticalPodAutoscalingResponseOutput {
return o.ApplyT(func(v *Cluster) VerticalPodAutoscalingResponseOutput { return v.VerticalPodAutoscaling }).(VerticalPodAutoscalingResponseOutput)
}
// Configuration for the use of Kubernetes Service Accounts in GCP IAM policies.
func (o ClusterOutput) WorkloadIdentityConfig() WorkloadIdentityConfigResponseOutput {
return o.ApplyT(func(v *Cluster) WorkloadIdentityConfigResponseOutput { return v.WorkloadIdentityConfig }).(WorkloadIdentityConfigResponseOutput)
}
// [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field is deprecated, use location instead.
//
// Deprecated: [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field is deprecated, use location instead.
func (o ClusterOutput) Zone() pulumi.StringOutput {
return o.ApplyT(func(v *Cluster) pulumi.StringOutput { return v.Zone }).(pulumi.StringOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*ClusterInput)(nil)).Elem(), &Cluster{})
pulumi.RegisterOutputType(ClusterOutput{})
pulumi.RegisterOutputType(clusterGetKubeconfigResultOutput{})
}