/
managedKubernetes.go
929 lines (869 loc) · 69.2 KB
/
managedKubernetes.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
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package cs
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
// ## Import
//
// Kubernetes cluster can be imported using the id, e.g. Then complete the main.tf accords to the result of `terraform plan`.
//
// ```sh
// $ pulumi import alicloud:cs/managedKubernetes:ManagedKubernetes alicloud_cs_managed_kubernetes.main cluster_id
// ```
type ManagedKubernetes struct {
pulumi.CustomResourceState
Addons ManagedKubernetesAddonArrayOutput `pulumi:"addons"`
// A list of API audiences for [Service Account Token Volume Projection](https://www.alibabacloud.com/help/doc-detail/160384.htm). Set this to `["kubernetes.default.svc"]` if you want to enable the Token Volume Projection feature (requires specifying `serviceAccountIssuer` as well.
ApiAudiences pulumi.StringArrayOutput `pulumi:"apiAudiences"`
// The Zone where new kubernetes cluster will be located. If it is not be specified, the `vswitchIds` should be set, its value will be vswitch's zone.
AvailabilityZone pulumi.StringOutput `pulumi:"availabilityZone"`
// (Available in 1.105.0+) Nested attribute containing certificate authority data for your cluster.
CertificateAuthority ManagedKubernetesCertificateAuthorityOutput `pulumi:"certificateAuthority"`
// The path of client certificate, like `~/.kube/client-cert.pem`.
ClientCert pulumi.StringPtrOutput `pulumi:"clientCert"`
// The path of client key, like `~/.kube/client-key.pem`.
ClientKey pulumi.StringPtrOutput `pulumi:"clientKey"`
// The path of cluster ca certificate, like `~/.kube/cluster-ca-cert.pem`
ClusterCaCert pulumi.StringPtrOutput `pulumi:"clusterCaCert"`
// Cluster local domain name, Default to `cluster.local`. A domain name consists of one or more sections separated by a decimal point (.), each of which is up to 63 characters long, and can be lowercase, numerals, and underscores (-), and must be lowercase or numerals at the beginning and end.
ClusterDomain pulumi.StringPtrOutput `pulumi:"clusterDomain"`
// The cluster specifications of kubernetes cluster,which can be empty.Valid values:
// * ack.standard : Standard managed clusters.
// * ack.pro.small : Professional managed clusters.
ClusterSpec pulumi.StringOutput `pulumi:"clusterSpec"`
// Map of kubernetes cluster connection information.
Connections ManagedKubernetesConnectionsOutput `pulumi:"connections"`
// Kubelet cpu policy. For Kubernetes 1.12.6 and later, its valid value is either `static` or `none`. Default to `none`.
CpuPolicy pulumi.StringPtrOutput `pulumi:"cpuPolicy"`
// Customize the certificate SAN, multiple IP or domain names are separated by English commas (,).
CustomSan pulumi.StringPtrOutput `pulumi:"customSan"`
// Whether to enable cluster deletion protection.
DeletionProtection pulumi.BoolPtrOutput `pulumi:"deletionProtection"`
// Enable login to the node through SSH. Default to `false`.
EnableSsh pulumi.BoolPtrOutput `pulumi:"enableSsh"`
// The disk encryption key.
EncryptionProviderKey pulumi.StringPtrOutput `pulumi:"encryptionProviderKey"`
// Exclude autoscaler nodes from `workerNodes`. Default to `false`.
ExcludeAutoscalerNodes pulumi.BoolPtrOutput `pulumi:"excludeAutoscalerNodes"`
// Custom Image support. Must based on CentOS7 or AliyunLinux2.
ImageId pulumi.StringPtrOutput `pulumi:"imageId"`
// Install cloud monitor agent on ECS. Default to `true`.
InstallCloudMonitor pulumi.BoolPtrOutput `pulumi:"installCloudMonitor"`
// Enable to create advanced security group. default: false. See [Advanced security group](https://www.alibabacloud.com/help/doc-detail/120621.htm).
IsEnterpriseSecurityGroup pulumi.BoolOutput `pulumi:"isEnterpriseSecurityGroup"`
// The keypair of ssh login cluster node, you have to create it first. You have to specify one of `password` `keyName` `kmsEncryptedPassword` fields. From ersion 1.109.1, It is not necessary in the professional managed cluster.
KeyName pulumi.StringPtrOutput `pulumi:"keyName"`
// An KMS encrypts password used to a cs kubernetes. You have to specify one of `password` `keyName` `kmsEncryptedPassword` fields.
KmsEncryptedPassword pulumi.StringPtrOutput `pulumi:"kmsEncryptedPassword"`
// An KMS encryption context used to decrypt `kmsEncryptedPassword` before creating or updating a cs kubernetes with `kmsEncryptedPassword`. See [Encryption Context](https://www.alibabacloud.com/help/doc-detail/42975.htm). It is valid when `kmsEncryptedPassword` is set.
KmsEncryptionContext pulumi.MapOutput `pulumi:"kmsEncryptionContext"`
// The path of kube config, like `~/.kube/config`.
KubeConfig pulumi.StringPtrOutput `pulumi:"kubeConfig"`
// The cluster api server load balance instance specification, default `slb.s1.small`. For more information on how to select a LB instance specification, see [SLB instance overview](https://help.aliyun.com/document_detail/85931.html).
LoadBalancerSpec pulumi.StringPtrOutput `pulumi:"loadBalancerSpec"`
// The cluster maintenance window,effective only in the professional managed cluster. Managed node pool will use it. Detailed below.
MaintenanceWindow ManagedKubernetesMaintenanceWindowOutput `pulumi:"maintenanceWindow"`
// The kubernetes cluster's name. It is unique in one Alicloud account.
Name pulumi.StringOutput `pulumi:"name"`
NamePrefix pulumi.StringPtrOutput `pulumi:"namePrefix"`
// The ID of nat gateway used to launch kubernetes cluster.
NatGatewayId pulumi.StringOutput `pulumi:"natGatewayId"`
// Whether to create a new nat gateway while creating kubernetes cluster. Default to true. Then openapi in Alibaba Cloud are not all on intranet, So turn this option on is a good choice.
NewNatGateway pulumi.BoolPtrOutput `pulumi:"newNatGateway"`
// The node cidr block to specific how many pods can run on single node. 24-28 is allowed. 24 means 2^(32-24)-1=255 and the node can run at most 255 pods. default: 24
NodeCidrMask pulumi.IntPtrOutput `pulumi:"nodeCidrMask"`
// Each node name consists of a prefix, an IP substring, and a suffix. For example, if the node IP address is 192.168.0.55, the prefix is aliyun.com, IP substring length is 5, and the suffix is test, the node name will be `aliyun.com00055test`.
NodeNameMode pulumi.StringPtrOutput `pulumi:"nodeNameMode"`
// The service port range of nodes, valid values: `30000` to `65535`. Default to `30000-32767`.
NodePortRange pulumi.StringPtrOutput `pulumi:"nodePortRange"`
// The operating system of the nodes that run pods, its valid value is either `Linux` or `Windows`. Default to `Linux`.
OsType pulumi.StringPtrOutput `pulumi:"osType"`
// The password of ssh login cluster node. You have to specify one of `password` `keyName` `kmsEncryptedPassword` fields. From ersion 1.109.1, It is not necessary in the professional managed cluster.
Password pulumi.StringPtrOutput `pulumi:"password"`
// The architecture of the nodes that run pods, its valid value is either `CentOS` or `AliyunLinux`. Default to `CentOS`.
Platform pulumi.StringPtrOutput `pulumi:"platform"`
// - [Flannel Specific] The CIDR block for the pod network when using Flannel.
PodCidr pulumi.StringPtrOutput `pulumi:"podCidr"`
// - [Terway Specific] The vswitches for the pod network when using Terway.Be careful the `podVswitchIds` can not equal to `workerVswtichIds` or `masterVswtichIds` but must be in same availability zones.
PodVswitchIds pulumi.StringArrayOutput `pulumi:"podVswitchIds"`
// Proxy mode is option of kube-proxy. options: iptables|ipvs. default: ipvs.
ProxyMode pulumi.StringPtrOutput `pulumi:"proxyMode"`
// RDS instance list, You can choose which RDS instances whitelist to add instances to.
RdsInstances pulumi.StringArrayOutput `pulumi:"rdsInstances"`
// The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
ResourceGroupId pulumi.StringOutput `pulumi:"resourceGroupId"`
// The runtime of containers. Default to `docker`. If you select another container runtime, see [How do I select between Docker and Sandboxed-Container](https://www.alibabacloud.com/help/doc-detail/160313.htm?spm=a2c63.p38356.b99.440.22563866AJkBgI). Detailed below.
Runtime ManagedKubernetesRuntimePtrOutput `pulumi:"runtime"`
// The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
SecurityGroupId pulumi.StringOutput `pulumi:"securityGroupId"`
// The issuer of the Service Account token for [Service Account Token Volume Projection](https://www.alibabacloud.com/help/doc-detail/160384.htm), corresponds to the `iss` field in the token payload. Set this to `"kubernetes.default.svc"` to enable the Token Volume Projection feature (requires specifying `apiAudiences` as well).
ServiceAccountIssuer pulumi.StringPtrOutput `pulumi:"serviceAccountIssuer"`
// The CIDR block for the service network. It cannot be duplicated with the VPC CIDR and CIDR used by Kubernetes cluster in VPC, cannot be modified after creation.
ServiceCidr pulumi.StringPtrOutput `pulumi:"serviceCidr"`
// Deprecated: Field 'slb_id' has been deprecated from provider version 1.9.2. New field 'slb_internet' replaces it.
SlbId pulumi.StringOutput `pulumi:"slbId"`
SlbInternet pulumi.StringOutput `pulumi:"slbInternet"`
// Whether to create internet load balancer for API Server. Default to true.
SlbInternetEnabled pulumi.BoolPtrOutput `pulumi:"slbInternetEnabled"`
// The ID of private load balancer where the current cluster master node is located.
SlbIntranet pulumi.StringOutput `pulumi:"slbIntranet"`
// Default nil, A map of tags assigned to the kubernetes cluster and work nodes . Detailed below.
Tags pulumi.MapOutput `pulumi:"tags"`
// Taints ensure pods are not scheduled onto inappropriate nodes. One or more taints are applied to a node; this marks that the node should not accept any pods that do not tolerate the taints. For more information, see [Taints and Tolerations](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/). Detailed below.
Taints ManagedKubernetesTaintArrayOutput `pulumi:"taints"`
// When you create a cluster, set the time zones for the Master and Woker nodes. You can only change the managed node time zone if you create a cluster. Once the cluster is created, you can only change the time zone of the Worker node.
Timezone pulumi.StringPtrOutput `pulumi:"timezone"`
// The path of customized CA cert, you can use this CA to sign client certs to connect your cluster.
UserCa pulumi.StringPtrOutput `pulumi:"userCa"`
// Custom data that can execute on nodes. For more information, see [Prepare user data](https://www.alibabacloud.com/help/doc-detail/49121.htm).
UserData pulumi.StringPtrOutput `pulumi:"userData"`
// Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used and no upgrades will occur except you set a higher version number. The value must be configured and increased to upgrade the version when desired. Downgrades are not supported by ACK.
Version pulumi.StringOutput `pulumi:"version"`
// The ID of VPC where the current cluster is located.
VpcId pulumi.StringOutput `pulumi:"vpcId"`
// Enable worker payment auto-renew, defaults to false.
WorkerAutoRenew pulumi.BoolPtrOutput `pulumi:"workerAutoRenew"`
// Worker payment auto-renew period,, it can be one of {1, 2, 3, 6, 12}.
WorkerAutoRenewPeriod pulumi.IntPtrOutput `pulumi:"workerAutoRenewPeriod"`
WorkerDataDiskCategory pulumi.StringPtrOutput `pulumi:"workerDataDiskCategory"`
WorkerDataDiskSize pulumi.IntPtrOutput `pulumi:"workerDataDiskSize"`
// The data disk configurations of worker nodes, such as the disk type and disk size.
WorkerDataDisks ManagedKubernetesWorkerDataDiskArrayOutput `pulumi:"workerDataDisks"`
// The system disk category of worker node. Its valid value are `cloud`, `cloudSsd`, `cloudEssd` and `cloudEfficiency`. Default to `cloudEfficiency`.
WorkerDiskCategory pulumi.StringPtrOutput `pulumi:"workerDiskCategory"`
// Worker node system disk performance level, when `workerDiskCategory` values `cloudEssd`, the optional values are `PL0`, `PL1`, `PL2` or `PL3`, but the specific performance level is related to the disk capacity. For more information, see [Enhanced SSDs](https://www.alibabacloud.com/help/doc-detail/122389.htm). Default is `PL1`.
WorkerDiskPerformanceLevel pulumi.StringPtrOutput `pulumi:"workerDiskPerformanceLevel"`
// The system disk size of worker node. Its valid value range [40~500] in GB. Default to 40.
WorkerDiskSize pulumi.IntPtrOutput `pulumi:"workerDiskSize"`
// Worker node system disk auto snapshot policy.
WorkerDiskSnapshotPolicyId pulumi.StringPtrOutput `pulumi:"workerDiskSnapshotPolicyId"`
// Worker payment type, its valid value is either or `PostPaid` or `PrePaid`. Defaults to `PostPaid`. If value is `PrePaid`, the files `workerPeriod`, `workerPeriodUnit`, `workerAutoRenew` and `workerAutoRenewPeriod` are required.
WorkerInstanceChargeType pulumi.StringPtrOutput `pulumi:"workerInstanceChargeType"`
// The instance type of worker node. Specify one type for single AZ Cluster, three types for MultiAZ Cluster. From version 1.109.1, It is not necessary in the professional managed cluster, but it is necessary in other types of clusters.
WorkerInstanceTypes pulumi.StringArrayOutput `pulumi:"workerInstanceTypes"`
// List of cluster worker nodes.
WorkerNodes ManagedKubernetesWorkerNodeArrayOutput `pulumi:"workerNodes"`
// The worker node number of the kubernetes cluster. Default to 3. It is limited up to 50 and if you want to enlarge it, please apply white list or contact with us. From version 1.109.1, It is not necessary in the professional managed cluster, but it is necessary in other types of clusters.
WorkerNumber pulumi.IntPtrOutput `pulumi:"workerNumber"`
// Worker payment period. The unit is `Month`. Its valid value is one of {1, 2, 3, 6, 12, 24, 36, 48, 60}.
WorkerPeriod pulumi.IntPtrOutput `pulumi:"workerPeriod"`
// Worker payment period unit, the valid value is `Month`.
WorkerPeriodUnit pulumi.StringPtrOutput `pulumi:"workerPeriodUnit"`
// The RamRole Name attached to worker node.
WorkerRamRoleName pulumi.StringOutput `pulumi:"workerRamRoleName"`
WorkerVswitchIds pulumi.StringArrayOutput `pulumi:"workerVswitchIds"`
}
// NewManagedKubernetes registers a new resource with the given unique name, arguments, and options.
func NewManagedKubernetes(ctx *pulumi.Context,
name string, args *ManagedKubernetesArgs, opts ...pulumi.ResourceOption) (*ManagedKubernetes, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.WorkerVswitchIds == nil {
return nil, errors.New("invalid value for required argument 'WorkerVswitchIds'")
}
var resource ManagedKubernetes
err := ctx.RegisterResource("alicloud:cs/managedKubernetes:ManagedKubernetes", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetManagedKubernetes gets an existing ManagedKubernetes 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 GetManagedKubernetes(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *ManagedKubernetesState, opts ...pulumi.ResourceOption) (*ManagedKubernetes, error) {
var resource ManagedKubernetes
err := ctx.ReadResource("alicloud:cs/managedKubernetes:ManagedKubernetes", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering ManagedKubernetes resources.
type managedKubernetesState struct {
Addons []ManagedKubernetesAddon `pulumi:"addons"`
// A list of API audiences for [Service Account Token Volume Projection](https://www.alibabacloud.com/help/doc-detail/160384.htm). Set this to `["kubernetes.default.svc"]` if you want to enable the Token Volume Projection feature (requires specifying `serviceAccountIssuer` as well.
ApiAudiences []string `pulumi:"apiAudiences"`
// The Zone where new kubernetes cluster will be located. If it is not be specified, the `vswitchIds` should be set, its value will be vswitch's zone.
AvailabilityZone *string `pulumi:"availabilityZone"`
// (Available in 1.105.0+) Nested attribute containing certificate authority data for your cluster.
CertificateAuthority *ManagedKubernetesCertificateAuthority `pulumi:"certificateAuthority"`
// The path of client certificate, like `~/.kube/client-cert.pem`.
ClientCert *string `pulumi:"clientCert"`
// The path of client key, like `~/.kube/client-key.pem`.
ClientKey *string `pulumi:"clientKey"`
// The path of cluster ca certificate, like `~/.kube/cluster-ca-cert.pem`
ClusterCaCert *string `pulumi:"clusterCaCert"`
// Cluster local domain name, Default to `cluster.local`. A domain name consists of one or more sections separated by a decimal point (.), each of which is up to 63 characters long, and can be lowercase, numerals, and underscores (-), and must be lowercase or numerals at the beginning and end.
ClusterDomain *string `pulumi:"clusterDomain"`
// The cluster specifications of kubernetes cluster,which can be empty.Valid values:
// * ack.standard : Standard managed clusters.
// * ack.pro.small : Professional managed clusters.
ClusterSpec *string `pulumi:"clusterSpec"`
// Map of kubernetes cluster connection information.
Connections *ManagedKubernetesConnections `pulumi:"connections"`
// Kubelet cpu policy. For Kubernetes 1.12.6 and later, its valid value is either `static` or `none`. Default to `none`.
CpuPolicy *string `pulumi:"cpuPolicy"`
// Customize the certificate SAN, multiple IP or domain names are separated by English commas (,).
CustomSan *string `pulumi:"customSan"`
// Whether to enable cluster deletion protection.
DeletionProtection *bool `pulumi:"deletionProtection"`
// Enable login to the node through SSH. Default to `false`.
EnableSsh *bool `pulumi:"enableSsh"`
// The disk encryption key.
EncryptionProviderKey *string `pulumi:"encryptionProviderKey"`
// Exclude autoscaler nodes from `workerNodes`. Default to `false`.
ExcludeAutoscalerNodes *bool `pulumi:"excludeAutoscalerNodes"`
// Custom Image support. Must based on CentOS7 or AliyunLinux2.
ImageId *string `pulumi:"imageId"`
// Install cloud monitor agent on ECS. Default to `true`.
InstallCloudMonitor *bool `pulumi:"installCloudMonitor"`
// Enable to create advanced security group. default: false. See [Advanced security group](https://www.alibabacloud.com/help/doc-detail/120621.htm).
IsEnterpriseSecurityGroup *bool `pulumi:"isEnterpriseSecurityGroup"`
// The keypair of ssh login cluster node, you have to create it first. You have to specify one of `password` `keyName` `kmsEncryptedPassword` fields. From ersion 1.109.1, It is not necessary in the professional managed cluster.
KeyName *string `pulumi:"keyName"`
// An KMS encrypts password used to a cs kubernetes. You have to specify one of `password` `keyName` `kmsEncryptedPassword` fields.
KmsEncryptedPassword *string `pulumi:"kmsEncryptedPassword"`
// An KMS encryption context used to decrypt `kmsEncryptedPassword` before creating or updating a cs kubernetes with `kmsEncryptedPassword`. See [Encryption Context](https://www.alibabacloud.com/help/doc-detail/42975.htm). It is valid when `kmsEncryptedPassword` is set.
KmsEncryptionContext map[string]interface{} `pulumi:"kmsEncryptionContext"`
// The path of kube config, like `~/.kube/config`.
KubeConfig *string `pulumi:"kubeConfig"`
// The cluster api server load balance instance specification, default `slb.s1.small`. For more information on how to select a LB instance specification, see [SLB instance overview](https://help.aliyun.com/document_detail/85931.html).
LoadBalancerSpec *string `pulumi:"loadBalancerSpec"`
// The cluster maintenance window,effective only in the professional managed cluster. Managed node pool will use it. Detailed below.
MaintenanceWindow *ManagedKubernetesMaintenanceWindow `pulumi:"maintenanceWindow"`
// The kubernetes cluster's name. It is unique in one Alicloud account.
Name *string `pulumi:"name"`
NamePrefix *string `pulumi:"namePrefix"`
// The ID of nat gateway used to launch kubernetes cluster.
NatGatewayId *string `pulumi:"natGatewayId"`
// Whether to create a new nat gateway while creating kubernetes cluster. Default to true. Then openapi in Alibaba Cloud are not all on intranet, So turn this option on is a good choice.
NewNatGateway *bool `pulumi:"newNatGateway"`
// The node cidr block to specific how many pods can run on single node. 24-28 is allowed. 24 means 2^(32-24)-1=255 and the node can run at most 255 pods. default: 24
NodeCidrMask *int `pulumi:"nodeCidrMask"`
// Each node name consists of a prefix, an IP substring, and a suffix. For example, if the node IP address is 192.168.0.55, the prefix is aliyun.com, IP substring length is 5, and the suffix is test, the node name will be `aliyun.com00055test`.
NodeNameMode *string `pulumi:"nodeNameMode"`
// The service port range of nodes, valid values: `30000` to `65535`. Default to `30000-32767`.
NodePortRange *string `pulumi:"nodePortRange"`
// The operating system of the nodes that run pods, its valid value is either `Linux` or `Windows`. Default to `Linux`.
OsType *string `pulumi:"osType"`
// The password of ssh login cluster node. You have to specify one of `password` `keyName` `kmsEncryptedPassword` fields. From ersion 1.109.1, It is not necessary in the professional managed cluster.
Password *string `pulumi:"password"`
// The architecture of the nodes that run pods, its valid value is either `CentOS` or `AliyunLinux`. Default to `CentOS`.
Platform *string `pulumi:"platform"`
// - [Flannel Specific] The CIDR block for the pod network when using Flannel.
PodCidr *string `pulumi:"podCidr"`
// - [Terway Specific] The vswitches for the pod network when using Terway.Be careful the `podVswitchIds` can not equal to `workerVswtichIds` or `masterVswtichIds` but must be in same availability zones.
PodVswitchIds []string `pulumi:"podVswitchIds"`
// Proxy mode is option of kube-proxy. options: iptables|ipvs. default: ipvs.
ProxyMode *string `pulumi:"proxyMode"`
// RDS instance list, You can choose which RDS instances whitelist to add instances to.
RdsInstances []string `pulumi:"rdsInstances"`
// The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
ResourceGroupId *string `pulumi:"resourceGroupId"`
// The runtime of containers. Default to `docker`. If you select another container runtime, see [How do I select between Docker and Sandboxed-Container](https://www.alibabacloud.com/help/doc-detail/160313.htm?spm=a2c63.p38356.b99.440.22563866AJkBgI). Detailed below.
Runtime *ManagedKubernetesRuntime `pulumi:"runtime"`
// The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
SecurityGroupId *string `pulumi:"securityGroupId"`
// The issuer of the Service Account token for [Service Account Token Volume Projection](https://www.alibabacloud.com/help/doc-detail/160384.htm), corresponds to the `iss` field in the token payload. Set this to `"kubernetes.default.svc"` to enable the Token Volume Projection feature (requires specifying `apiAudiences` as well).
ServiceAccountIssuer *string `pulumi:"serviceAccountIssuer"`
// The CIDR block for the service network. It cannot be duplicated with the VPC CIDR and CIDR used by Kubernetes cluster in VPC, cannot be modified after creation.
ServiceCidr *string `pulumi:"serviceCidr"`
// Deprecated: Field 'slb_id' has been deprecated from provider version 1.9.2. New field 'slb_internet' replaces it.
SlbId *string `pulumi:"slbId"`
SlbInternet *string `pulumi:"slbInternet"`
// Whether to create internet load balancer for API Server. Default to true.
SlbInternetEnabled *bool `pulumi:"slbInternetEnabled"`
// The ID of private load balancer where the current cluster master node is located.
SlbIntranet *string `pulumi:"slbIntranet"`
// Default nil, A map of tags assigned to the kubernetes cluster and work nodes . Detailed below.
Tags map[string]interface{} `pulumi:"tags"`
// Taints ensure pods are not scheduled onto inappropriate nodes. One or more taints are applied to a node; this marks that the node should not accept any pods that do not tolerate the taints. For more information, see [Taints and Tolerations](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/). Detailed below.
Taints []ManagedKubernetesTaint `pulumi:"taints"`
// When you create a cluster, set the time zones for the Master and Woker nodes. You can only change the managed node time zone if you create a cluster. Once the cluster is created, you can only change the time zone of the Worker node.
Timezone *string `pulumi:"timezone"`
// The path of customized CA cert, you can use this CA to sign client certs to connect your cluster.
UserCa *string `pulumi:"userCa"`
// Custom data that can execute on nodes. For more information, see [Prepare user data](https://www.alibabacloud.com/help/doc-detail/49121.htm).
UserData *string `pulumi:"userData"`
// Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used and no upgrades will occur except you set a higher version number. The value must be configured and increased to upgrade the version when desired. Downgrades are not supported by ACK.
Version *string `pulumi:"version"`
// The ID of VPC where the current cluster is located.
VpcId *string `pulumi:"vpcId"`
// Enable worker payment auto-renew, defaults to false.
WorkerAutoRenew *bool `pulumi:"workerAutoRenew"`
// Worker payment auto-renew period,, it can be one of {1, 2, 3, 6, 12}.
WorkerAutoRenewPeriod *int `pulumi:"workerAutoRenewPeriod"`
WorkerDataDiskCategory *string `pulumi:"workerDataDiskCategory"`
WorkerDataDiskSize *int `pulumi:"workerDataDiskSize"`
// The data disk configurations of worker nodes, such as the disk type and disk size.
WorkerDataDisks []ManagedKubernetesWorkerDataDisk `pulumi:"workerDataDisks"`
// The system disk category of worker node. Its valid value are `cloud`, `cloudSsd`, `cloudEssd` and `cloudEfficiency`. Default to `cloudEfficiency`.
WorkerDiskCategory *string `pulumi:"workerDiskCategory"`
// Worker node system disk performance level, when `workerDiskCategory` values `cloudEssd`, the optional values are `PL0`, `PL1`, `PL2` or `PL3`, but the specific performance level is related to the disk capacity. For more information, see [Enhanced SSDs](https://www.alibabacloud.com/help/doc-detail/122389.htm). Default is `PL1`.
WorkerDiskPerformanceLevel *string `pulumi:"workerDiskPerformanceLevel"`
// The system disk size of worker node. Its valid value range [40~500] in GB. Default to 40.
WorkerDiskSize *int `pulumi:"workerDiskSize"`
// Worker node system disk auto snapshot policy.
WorkerDiskSnapshotPolicyId *string `pulumi:"workerDiskSnapshotPolicyId"`
// Worker payment type, its valid value is either or `PostPaid` or `PrePaid`. Defaults to `PostPaid`. If value is `PrePaid`, the files `workerPeriod`, `workerPeriodUnit`, `workerAutoRenew` and `workerAutoRenewPeriod` are required.
WorkerInstanceChargeType *string `pulumi:"workerInstanceChargeType"`
// The instance type of worker node. Specify one type for single AZ Cluster, three types for MultiAZ Cluster. From version 1.109.1, It is not necessary in the professional managed cluster, but it is necessary in other types of clusters.
WorkerInstanceTypes []string `pulumi:"workerInstanceTypes"`
// List of cluster worker nodes.
WorkerNodes []ManagedKubernetesWorkerNode `pulumi:"workerNodes"`
// The worker node number of the kubernetes cluster. Default to 3. It is limited up to 50 and if you want to enlarge it, please apply white list or contact with us. From version 1.109.1, It is not necessary in the professional managed cluster, but it is necessary in other types of clusters.
WorkerNumber *int `pulumi:"workerNumber"`
// Worker payment period. The unit is `Month`. Its valid value is one of {1, 2, 3, 6, 12, 24, 36, 48, 60}.
WorkerPeriod *int `pulumi:"workerPeriod"`
// Worker payment period unit, the valid value is `Month`.
WorkerPeriodUnit *string `pulumi:"workerPeriodUnit"`
// The RamRole Name attached to worker node.
WorkerRamRoleName *string `pulumi:"workerRamRoleName"`
WorkerVswitchIds []string `pulumi:"workerVswitchIds"`
}
type ManagedKubernetesState struct {
Addons ManagedKubernetesAddonArrayInput
// A list of API audiences for [Service Account Token Volume Projection](https://www.alibabacloud.com/help/doc-detail/160384.htm). Set this to `["kubernetes.default.svc"]` if you want to enable the Token Volume Projection feature (requires specifying `serviceAccountIssuer` as well.
ApiAudiences pulumi.StringArrayInput
// The Zone where new kubernetes cluster will be located. If it is not be specified, the `vswitchIds` should be set, its value will be vswitch's zone.
AvailabilityZone pulumi.StringPtrInput
// (Available in 1.105.0+) Nested attribute containing certificate authority data for your cluster.
CertificateAuthority ManagedKubernetesCertificateAuthorityPtrInput
// The path of client certificate, like `~/.kube/client-cert.pem`.
ClientCert pulumi.StringPtrInput
// The path of client key, like `~/.kube/client-key.pem`.
ClientKey pulumi.StringPtrInput
// The path of cluster ca certificate, like `~/.kube/cluster-ca-cert.pem`
ClusterCaCert pulumi.StringPtrInput
// Cluster local domain name, Default to `cluster.local`. A domain name consists of one or more sections separated by a decimal point (.), each of which is up to 63 characters long, and can be lowercase, numerals, and underscores (-), and must be lowercase or numerals at the beginning and end.
ClusterDomain pulumi.StringPtrInput
// The cluster specifications of kubernetes cluster,which can be empty.Valid values:
// * ack.standard : Standard managed clusters.
// * ack.pro.small : Professional managed clusters.
ClusterSpec pulumi.StringPtrInput
// Map of kubernetes cluster connection information.
Connections ManagedKubernetesConnectionsPtrInput
// Kubelet cpu policy. For Kubernetes 1.12.6 and later, its valid value is either `static` or `none`. Default to `none`.
CpuPolicy pulumi.StringPtrInput
// Customize the certificate SAN, multiple IP or domain names are separated by English commas (,).
CustomSan pulumi.StringPtrInput
// Whether to enable cluster deletion protection.
DeletionProtection pulumi.BoolPtrInput
// Enable login to the node through SSH. Default to `false`.
EnableSsh pulumi.BoolPtrInput
// The disk encryption key.
EncryptionProviderKey pulumi.StringPtrInput
// Exclude autoscaler nodes from `workerNodes`. Default to `false`.
ExcludeAutoscalerNodes pulumi.BoolPtrInput
// Custom Image support. Must based on CentOS7 or AliyunLinux2.
ImageId pulumi.StringPtrInput
// Install cloud monitor agent on ECS. Default to `true`.
InstallCloudMonitor pulumi.BoolPtrInput
// Enable to create advanced security group. default: false. See [Advanced security group](https://www.alibabacloud.com/help/doc-detail/120621.htm).
IsEnterpriseSecurityGroup pulumi.BoolPtrInput
// The keypair of ssh login cluster node, you have to create it first. You have to specify one of `password` `keyName` `kmsEncryptedPassword` fields. From ersion 1.109.1, It is not necessary in the professional managed cluster.
KeyName pulumi.StringPtrInput
// An KMS encrypts password used to a cs kubernetes. You have to specify one of `password` `keyName` `kmsEncryptedPassword` fields.
KmsEncryptedPassword pulumi.StringPtrInput
// An KMS encryption context used to decrypt `kmsEncryptedPassword` before creating or updating a cs kubernetes with `kmsEncryptedPassword`. See [Encryption Context](https://www.alibabacloud.com/help/doc-detail/42975.htm). It is valid when `kmsEncryptedPassword` is set.
KmsEncryptionContext pulumi.MapInput
// The path of kube config, like `~/.kube/config`.
KubeConfig pulumi.StringPtrInput
// The cluster api server load balance instance specification, default `slb.s1.small`. For more information on how to select a LB instance specification, see [SLB instance overview](https://help.aliyun.com/document_detail/85931.html).
LoadBalancerSpec pulumi.StringPtrInput
// The cluster maintenance window,effective only in the professional managed cluster. Managed node pool will use it. Detailed below.
MaintenanceWindow ManagedKubernetesMaintenanceWindowPtrInput
// The kubernetes cluster's name. It is unique in one Alicloud account.
Name pulumi.StringPtrInput
NamePrefix pulumi.StringPtrInput
// The ID of nat gateway used to launch kubernetes cluster.
NatGatewayId pulumi.StringPtrInput
// Whether to create a new nat gateway while creating kubernetes cluster. Default to true. Then openapi in Alibaba Cloud are not all on intranet, So turn this option on is a good choice.
NewNatGateway pulumi.BoolPtrInput
// The node cidr block to specific how many pods can run on single node. 24-28 is allowed. 24 means 2^(32-24)-1=255 and the node can run at most 255 pods. default: 24
NodeCidrMask pulumi.IntPtrInput
// Each node name consists of a prefix, an IP substring, and a suffix. For example, if the node IP address is 192.168.0.55, the prefix is aliyun.com, IP substring length is 5, and the suffix is test, the node name will be `aliyun.com00055test`.
NodeNameMode pulumi.StringPtrInput
// The service port range of nodes, valid values: `30000` to `65535`. Default to `30000-32767`.
NodePortRange pulumi.StringPtrInput
// The operating system of the nodes that run pods, its valid value is either `Linux` or `Windows`. Default to `Linux`.
OsType pulumi.StringPtrInput
// The password of ssh login cluster node. You have to specify one of `password` `keyName` `kmsEncryptedPassword` fields. From ersion 1.109.1, It is not necessary in the professional managed cluster.
Password pulumi.StringPtrInput
// The architecture of the nodes that run pods, its valid value is either `CentOS` or `AliyunLinux`. Default to `CentOS`.
Platform pulumi.StringPtrInput
// - [Flannel Specific] The CIDR block for the pod network when using Flannel.
PodCidr pulumi.StringPtrInput
// - [Terway Specific] The vswitches for the pod network when using Terway.Be careful the `podVswitchIds` can not equal to `workerVswtichIds` or `masterVswtichIds` but must be in same availability zones.
PodVswitchIds pulumi.StringArrayInput
// Proxy mode is option of kube-proxy. options: iptables|ipvs. default: ipvs.
ProxyMode pulumi.StringPtrInput
// RDS instance list, You can choose which RDS instances whitelist to add instances to.
RdsInstances pulumi.StringArrayInput
// The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
ResourceGroupId pulumi.StringPtrInput
// The runtime of containers. Default to `docker`. If you select another container runtime, see [How do I select between Docker and Sandboxed-Container](https://www.alibabacloud.com/help/doc-detail/160313.htm?spm=a2c63.p38356.b99.440.22563866AJkBgI). Detailed below.
Runtime ManagedKubernetesRuntimePtrInput
// The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
SecurityGroupId pulumi.StringPtrInput
// The issuer of the Service Account token for [Service Account Token Volume Projection](https://www.alibabacloud.com/help/doc-detail/160384.htm), corresponds to the `iss` field in the token payload. Set this to `"kubernetes.default.svc"` to enable the Token Volume Projection feature (requires specifying `apiAudiences` as well).
ServiceAccountIssuer pulumi.StringPtrInput
// The CIDR block for the service network. It cannot be duplicated with the VPC CIDR and CIDR used by Kubernetes cluster in VPC, cannot be modified after creation.
ServiceCidr pulumi.StringPtrInput
// Deprecated: Field 'slb_id' has been deprecated from provider version 1.9.2. New field 'slb_internet' replaces it.
SlbId pulumi.StringPtrInput
SlbInternet pulumi.StringPtrInput
// Whether to create internet load balancer for API Server. Default to true.
SlbInternetEnabled pulumi.BoolPtrInput
// The ID of private load balancer where the current cluster master node is located.
SlbIntranet pulumi.StringPtrInput
// Default nil, A map of tags assigned to the kubernetes cluster and work nodes . Detailed below.
Tags pulumi.MapInput
// Taints ensure pods are not scheduled onto inappropriate nodes. One or more taints are applied to a node; this marks that the node should not accept any pods that do not tolerate the taints. For more information, see [Taints and Tolerations](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/). Detailed below.
Taints ManagedKubernetesTaintArrayInput
// When you create a cluster, set the time zones for the Master and Woker nodes. You can only change the managed node time zone if you create a cluster. Once the cluster is created, you can only change the time zone of the Worker node.
Timezone pulumi.StringPtrInput
// The path of customized CA cert, you can use this CA to sign client certs to connect your cluster.
UserCa pulumi.StringPtrInput
// Custom data that can execute on nodes. For more information, see [Prepare user data](https://www.alibabacloud.com/help/doc-detail/49121.htm).
UserData pulumi.StringPtrInput
// Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used and no upgrades will occur except you set a higher version number. The value must be configured and increased to upgrade the version when desired. Downgrades are not supported by ACK.
Version pulumi.StringPtrInput
// The ID of VPC where the current cluster is located.
VpcId pulumi.StringPtrInput
// Enable worker payment auto-renew, defaults to false.
WorkerAutoRenew pulumi.BoolPtrInput
// Worker payment auto-renew period,, it can be one of {1, 2, 3, 6, 12}.
WorkerAutoRenewPeriod pulumi.IntPtrInput
WorkerDataDiskCategory pulumi.StringPtrInput
WorkerDataDiskSize pulumi.IntPtrInput
// The data disk configurations of worker nodes, such as the disk type and disk size.
WorkerDataDisks ManagedKubernetesWorkerDataDiskArrayInput
// The system disk category of worker node. Its valid value are `cloud`, `cloudSsd`, `cloudEssd` and `cloudEfficiency`. Default to `cloudEfficiency`.
WorkerDiskCategory pulumi.StringPtrInput
// Worker node system disk performance level, when `workerDiskCategory` values `cloudEssd`, the optional values are `PL0`, `PL1`, `PL2` or `PL3`, but the specific performance level is related to the disk capacity. For more information, see [Enhanced SSDs](https://www.alibabacloud.com/help/doc-detail/122389.htm). Default is `PL1`.
WorkerDiskPerformanceLevel pulumi.StringPtrInput
// The system disk size of worker node. Its valid value range [40~500] in GB. Default to 40.
WorkerDiskSize pulumi.IntPtrInput
// Worker node system disk auto snapshot policy.
WorkerDiskSnapshotPolicyId pulumi.StringPtrInput
// Worker payment type, its valid value is either or `PostPaid` or `PrePaid`. Defaults to `PostPaid`. If value is `PrePaid`, the files `workerPeriod`, `workerPeriodUnit`, `workerAutoRenew` and `workerAutoRenewPeriod` are required.
WorkerInstanceChargeType pulumi.StringPtrInput
// The instance type of worker node. Specify one type for single AZ Cluster, three types for MultiAZ Cluster. From version 1.109.1, It is not necessary in the professional managed cluster, but it is necessary in other types of clusters.
WorkerInstanceTypes pulumi.StringArrayInput
// List of cluster worker nodes.
WorkerNodes ManagedKubernetesWorkerNodeArrayInput
// The worker node number of the kubernetes cluster. Default to 3. It is limited up to 50 and if you want to enlarge it, please apply white list or contact with us. From version 1.109.1, It is not necessary in the professional managed cluster, but it is necessary in other types of clusters.
WorkerNumber pulumi.IntPtrInput
// Worker payment period. The unit is `Month`. Its valid value is one of {1, 2, 3, 6, 12, 24, 36, 48, 60}.
WorkerPeriod pulumi.IntPtrInput
// Worker payment period unit, the valid value is `Month`.
WorkerPeriodUnit pulumi.StringPtrInput
// The RamRole Name attached to worker node.
WorkerRamRoleName pulumi.StringPtrInput
WorkerVswitchIds pulumi.StringArrayInput
}
func (ManagedKubernetesState) ElementType() reflect.Type {
return reflect.TypeOf((*managedKubernetesState)(nil)).Elem()
}
type managedKubernetesArgs struct {
Addons []ManagedKubernetesAddon `pulumi:"addons"`
// A list of API audiences for [Service Account Token Volume Projection](https://www.alibabacloud.com/help/doc-detail/160384.htm). Set this to `["kubernetes.default.svc"]` if you want to enable the Token Volume Projection feature (requires specifying `serviceAccountIssuer` as well.
ApiAudiences []string `pulumi:"apiAudiences"`
// The Zone where new kubernetes cluster will be located. If it is not be specified, the `vswitchIds` should be set, its value will be vswitch's zone.
AvailabilityZone *string `pulumi:"availabilityZone"`
// The path of client certificate, like `~/.kube/client-cert.pem`.
ClientCert *string `pulumi:"clientCert"`
// The path of client key, like `~/.kube/client-key.pem`.
ClientKey *string `pulumi:"clientKey"`
// The path of cluster ca certificate, like `~/.kube/cluster-ca-cert.pem`
ClusterCaCert *string `pulumi:"clusterCaCert"`
// Cluster local domain name, Default to `cluster.local`. A domain name consists of one or more sections separated by a decimal point (.), each of which is up to 63 characters long, and can be lowercase, numerals, and underscores (-), and must be lowercase or numerals at the beginning and end.
ClusterDomain *string `pulumi:"clusterDomain"`
// The cluster specifications of kubernetes cluster,which can be empty.Valid values:
// * ack.standard : Standard managed clusters.
// * ack.pro.small : Professional managed clusters.
ClusterSpec *string `pulumi:"clusterSpec"`
// Kubelet cpu policy. For Kubernetes 1.12.6 and later, its valid value is either `static` or `none`. Default to `none`.
CpuPolicy *string `pulumi:"cpuPolicy"`
// Customize the certificate SAN, multiple IP or domain names are separated by English commas (,).
CustomSan *string `pulumi:"customSan"`
// Whether to enable cluster deletion protection.
DeletionProtection *bool `pulumi:"deletionProtection"`
// Enable login to the node through SSH. Default to `false`.
EnableSsh *bool `pulumi:"enableSsh"`
// The disk encryption key.
EncryptionProviderKey *string `pulumi:"encryptionProviderKey"`
// Exclude autoscaler nodes from `workerNodes`. Default to `false`.
ExcludeAutoscalerNodes *bool `pulumi:"excludeAutoscalerNodes"`
// Custom Image support. Must based on CentOS7 or AliyunLinux2.
ImageId *string `pulumi:"imageId"`
// Install cloud monitor agent on ECS. Default to `true`.
InstallCloudMonitor *bool `pulumi:"installCloudMonitor"`
// Enable to create advanced security group. default: false. See [Advanced security group](https://www.alibabacloud.com/help/doc-detail/120621.htm).
IsEnterpriseSecurityGroup *bool `pulumi:"isEnterpriseSecurityGroup"`
// The keypair of ssh login cluster node, you have to create it first. You have to specify one of `password` `keyName` `kmsEncryptedPassword` fields. From ersion 1.109.1, It is not necessary in the professional managed cluster.
KeyName *string `pulumi:"keyName"`
// An KMS encrypts password used to a cs kubernetes. You have to specify one of `password` `keyName` `kmsEncryptedPassword` fields.
KmsEncryptedPassword *string `pulumi:"kmsEncryptedPassword"`
// An KMS encryption context used to decrypt `kmsEncryptedPassword` before creating or updating a cs kubernetes with `kmsEncryptedPassword`. See [Encryption Context](https://www.alibabacloud.com/help/doc-detail/42975.htm). It is valid when `kmsEncryptedPassword` is set.
KmsEncryptionContext map[string]interface{} `pulumi:"kmsEncryptionContext"`
// The path of kube config, like `~/.kube/config`.
KubeConfig *string `pulumi:"kubeConfig"`
// The cluster api server load balance instance specification, default `slb.s1.small`. For more information on how to select a LB instance specification, see [SLB instance overview](https://help.aliyun.com/document_detail/85931.html).
LoadBalancerSpec *string `pulumi:"loadBalancerSpec"`
// The cluster maintenance window,effective only in the professional managed cluster. Managed node pool will use it. Detailed below.
MaintenanceWindow *ManagedKubernetesMaintenanceWindow `pulumi:"maintenanceWindow"`
// The kubernetes cluster's name. It is unique in one Alicloud account.
Name *string `pulumi:"name"`
NamePrefix *string `pulumi:"namePrefix"`
// Whether to create a new nat gateway while creating kubernetes cluster. Default to true. Then openapi in Alibaba Cloud are not all on intranet, So turn this option on is a good choice.
NewNatGateway *bool `pulumi:"newNatGateway"`
// The node cidr block to specific how many pods can run on single node. 24-28 is allowed. 24 means 2^(32-24)-1=255 and the node can run at most 255 pods. default: 24
NodeCidrMask *int `pulumi:"nodeCidrMask"`
// Each node name consists of a prefix, an IP substring, and a suffix. For example, if the node IP address is 192.168.0.55, the prefix is aliyun.com, IP substring length is 5, and the suffix is test, the node name will be `aliyun.com00055test`.
NodeNameMode *string `pulumi:"nodeNameMode"`
// The service port range of nodes, valid values: `30000` to `65535`. Default to `30000-32767`.
NodePortRange *string `pulumi:"nodePortRange"`
// The operating system of the nodes that run pods, its valid value is either `Linux` or `Windows`. Default to `Linux`.
OsType *string `pulumi:"osType"`
// The password of ssh login cluster node. You have to specify one of `password` `keyName` `kmsEncryptedPassword` fields. From ersion 1.109.1, It is not necessary in the professional managed cluster.
Password *string `pulumi:"password"`
// The architecture of the nodes that run pods, its valid value is either `CentOS` or `AliyunLinux`. Default to `CentOS`.
Platform *string `pulumi:"platform"`
// - [Flannel Specific] The CIDR block for the pod network when using Flannel.
PodCidr *string `pulumi:"podCidr"`
// - [Terway Specific] The vswitches for the pod network when using Terway.Be careful the `podVswitchIds` can not equal to `workerVswtichIds` or `masterVswtichIds` but must be in same availability zones.
PodVswitchIds []string `pulumi:"podVswitchIds"`
// Proxy mode is option of kube-proxy. options: iptables|ipvs. default: ipvs.
ProxyMode *string `pulumi:"proxyMode"`
// RDS instance list, You can choose which RDS instances whitelist to add instances to.
RdsInstances []string `pulumi:"rdsInstances"`
// The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
ResourceGroupId *string `pulumi:"resourceGroupId"`
// The runtime of containers. Default to `docker`. If you select another container runtime, see [How do I select between Docker and Sandboxed-Container](https://www.alibabacloud.com/help/doc-detail/160313.htm?spm=a2c63.p38356.b99.440.22563866AJkBgI). Detailed below.
Runtime *ManagedKubernetesRuntime `pulumi:"runtime"`
// The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
SecurityGroupId *string `pulumi:"securityGroupId"`
// The issuer of the Service Account token for [Service Account Token Volume Projection](https://www.alibabacloud.com/help/doc-detail/160384.htm), corresponds to the `iss` field in the token payload. Set this to `"kubernetes.default.svc"` to enable the Token Volume Projection feature (requires specifying `apiAudiences` as well).
ServiceAccountIssuer *string `pulumi:"serviceAccountIssuer"`
// The CIDR block for the service network. It cannot be duplicated with the VPC CIDR and CIDR used by Kubernetes cluster in VPC, cannot be modified after creation.
ServiceCidr *string `pulumi:"serviceCidr"`
// Whether to create internet load balancer for API Server. Default to true.
SlbInternetEnabled *bool `pulumi:"slbInternetEnabled"`
// Default nil, A map of tags assigned to the kubernetes cluster and work nodes . Detailed below.
Tags map[string]interface{} `pulumi:"tags"`
// Taints ensure pods are not scheduled onto inappropriate nodes. One or more taints are applied to a node; this marks that the node should not accept any pods that do not tolerate the taints. For more information, see [Taints and Tolerations](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/). Detailed below.
Taints []ManagedKubernetesTaint `pulumi:"taints"`
// When you create a cluster, set the time zones for the Master and Woker nodes. You can only change the managed node time zone if you create a cluster. Once the cluster is created, you can only change the time zone of the Worker node.
Timezone *string `pulumi:"timezone"`
// The path of customized CA cert, you can use this CA to sign client certs to connect your cluster.
UserCa *string `pulumi:"userCa"`
// Custom data that can execute on nodes. For more information, see [Prepare user data](https://www.alibabacloud.com/help/doc-detail/49121.htm).
UserData *string `pulumi:"userData"`
// Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used and no upgrades will occur except you set a higher version number. The value must be configured and increased to upgrade the version when desired. Downgrades are not supported by ACK.
Version *string `pulumi:"version"`
// Enable worker payment auto-renew, defaults to false.
WorkerAutoRenew *bool `pulumi:"workerAutoRenew"`
// Worker payment auto-renew period,, it can be one of {1, 2, 3, 6, 12}.
WorkerAutoRenewPeriod *int `pulumi:"workerAutoRenewPeriod"`
WorkerDataDiskCategory *string `pulumi:"workerDataDiskCategory"`
WorkerDataDiskSize *int `pulumi:"workerDataDiskSize"`
// The data disk configurations of worker nodes, such as the disk type and disk size.
WorkerDataDisks []ManagedKubernetesWorkerDataDisk `pulumi:"workerDataDisks"`
// The system disk category of worker node. Its valid value are `cloud`, `cloudSsd`, `cloudEssd` and `cloudEfficiency`. Default to `cloudEfficiency`.
WorkerDiskCategory *string `pulumi:"workerDiskCategory"`
// Worker node system disk performance level, when `workerDiskCategory` values `cloudEssd`, the optional values are `PL0`, `PL1`, `PL2` or `PL3`, but the specific performance level is related to the disk capacity. For more information, see [Enhanced SSDs](https://www.alibabacloud.com/help/doc-detail/122389.htm). Default is `PL1`.
WorkerDiskPerformanceLevel *string `pulumi:"workerDiskPerformanceLevel"`
// The system disk size of worker node. Its valid value range [40~500] in GB. Default to 40.
WorkerDiskSize *int `pulumi:"workerDiskSize"`
// Worker node system disk auto snapshot policy.
WorkerDiskSnapshotPolicyId *string `pulumi:"workerDiskSnapshotPolicyId"`
// Worker payment type, its valid value is either or `PostPaid` or `PrePaid`. Defaults to `PostPaid`. If value is `PrePaid`, the files `workerPeriod`, `workerPeriodUnit`, `workerAutoRenew` and `workerAutoRenewPeriod` are required.
WorkerInstanceChargeType *string `pulumi:"workerInstanceChargeType"`
// The instance type of worker node. Specify one type for single AZ Cluster, three types for MultiAZ Cluster. From version 1.109.1, It is not necessary in the professional managed cluster, but it is necessary in other types of clusters.
WorkerInstanceTypes []string `pulumi:"workerInstanceTypes"`
// The worker node number of the kubernetes cluster. Default to 3. It is limited up to 50 and if you want to enlarge it, please apply white list or contact with us. From version 1.109.1, It is not necessary in the professional managed cluster, but it is necessary in other types of clusters.
WorkerNumber *int `pulumi:"workerNumber"`
// Worker payment period. The unit is `Month`. Its valid value is one of {1, 2, 3, 6, 12, 24, 36, 48, 60}.
WorkerPeriod *int `pulumi:"workerPeriod"`
// Worker payment period unit, the valid value is `Month`.
WorkerPeriodUnit *string `pulumi:"workerPeriodUnit"`
WorkerVswitchIds []string `pulumi:"workerVswitchIds"`
}
// The set of arguments for constructing a ManagedKubernetes resource.
type ManagedKubernetesArgs struct {
Addons ManagedKubernetesAddonArrayInput
// A list of API audiences for [Service Account Token Volume Projection](https://www.alibabacloud.com/help/doc-detail/160384.htm). Set this to `["kubernetes.default.svc"]` if you want to enable the Token Volume Projection feature (requires specifying `serviceAccountIssuer` as well.
ApiAudiences pulumi.StringArrayInput
// The Zone where new kubernetes cluster will be located. If it is not be specified, the `vswitchIds` should be set, its value will be vswitch's zone.
AvailabilityZone pulumi.StringPtrInput
// The path of client certificate, like `~/.kube/client-cert.pem`.
ClientCert pulumi.StringPtrInput
// The path of client key, like `~/.kube/client-key.pem`.
ClientKey pulumi.StringPtrInput
// The path of cluster ca certificate, like `~/.kube/cluster-ca-cert.pem`
ClusterCaCert pulumi.StringPtrInput
// Cluster local domain name, Default to `cluster.local`. A domain name consists of one or more sections separated by a decimal point (.), each of which is up to 63 characters long, and can be lowercase, numerals, and underscores (-), and must be lowercase or numerals at the beginning and end.
ClusterDomain pulumi.StringPtrInput
// The cluster specifications of kubernetes cluster,which can be empty.Valid values:
// * ack.standard : Standard managed clusters.
// * ack.pro.small : Professional managed clusters.
ClusterSpec pulumi.StringPtrInput
// Kubelet cpu policy. For Kubernetes 1.12.6 and later, its valid value is either `static` or `none`. Default to `none`.
CpuPolicy pulumi.StringPtrInput
// Customize the certificate SAN, multiple IP or domain names are separated by English commas (,).
CustomSan pulumi.StringPtrInput
// Whether to enable cluster deletion protection.
DeletionProtection pulumi.BoolPtrInput
// Enable login to the node through SSH. Default to `false`.
EnableSsh pulumi.BoolPtrInput
// The disk encryption key.
EncryptionProviderKey pulumi.StringPtrInput
// Exclude autoscaler nodes from `workerNodes`. Default to `false`.
ExcludeAutoscalerNodes pulumi.BoolPtrInput
// Custom Image support. Must based on CentOS7 or AliyunLinux2.
ImageId pulumi.StringPtrInput
// Install cloud monitor agent on ECS. Default to `true`.
InstallCloudMonitor pulumi.BoolPtrInput
// Enable to create advanced security group. default: false. See [Advanced security group](https://www.alibabacloud.com/help/doc-detail/120621.htm).
IsEnterpriseSecurityGroup pulumi.BoolPtrInput
// The keypair of ssh login cluster node, you have to create it first. You have to specify one of `password` `keyName` `kmsEncryptedPassword` fields. From ersion 1.109.1, It is not necessary in the professional managed cluster.
KeyName pulumi.StringPtrInput
// An KMS encrypts password used to a cs kubernetes. You have to specify one of `password` `keyName` `kmsEncryptedPassword` fields.
KmsEncryptedPassword pulumi.StringPtrInput
// An KMS encryption context used to decrypt `kmsEncryptedPassword` before creating or updating a cs kubernetes with `kmsEncryptedPassword`. See [Encryption Context](https://www.alibabacloud.com/help/doc-detail/42975.htm). It is valid when `kmsEncryptedPassword` is set.
KmsEncryptionContext pulumi.MapInput
// The path of kube config, like `~/.kube/config`.
KubeConfig pulumi.StringPtrInput
// The cluster api server load balance instance specification, default `slb.s1.small`. For more information on how to select a LB instance specification, see [SLB instance overview](https://help.aliyun.com/document_detail/85931.html).
LoadBalancerSpec pulumi.StringPtrInput
// The cluster maintenance window,effective only in the professional managed cluster. Managed node pool will use it. Detailed below.
MaintenanceWindow ManagedKubernetesMaintenanceWindowPtrInput
// The kubernetes cluster's name. It is unique in one Alicloud account.
Name pulumi.StringPtrInput
NamePrefix pulumi.StringPtrInput
// Whether to create a new nat gateway while creating kubernetes cluster. Default to true. Then openapi in Alibaba Cloud are not all on intranet, So turn this option on is a good choice.
NewNatGateway pulumi.BoolPtrInput
// The node cidr block to specific how many pods can run on single node. 24-28 is allowed. 24 means 2^(32-24)-1=255 and the node can run at most 255 pods. default: 24
NodeCidrMask pulumi.IntPtrInput
// Each node name consists of a prefix, an IP substring, and a suffix. For example, if the node IP address is 192.168.0.55, the prefix is aliyun.com, IP substring length is 5, and the suffix is test, the node name will be `aliyun.com00055test`.
NodeNameMode pulumi.StringPtrInput
// The service port range of nodes, valid values: `30000` to `65535`. Default to `30000-32767`.
NodePortRange pulumi.StringPtrInput
// The operating system of the nodes that run pods, its valid value is either `Linux` or `Windows`. Default to `Linux`.
OsType pulumi.StringPtrInput
// The password of ssh login cluster node. You have to specify one of `password` `keyName` `kmsEncryptedPassword` fields. From ersion 1.109.1, It is not necessary in the professional managed cluster.
Password pulumi.StringPtrInput
// The architecture of the nodes that run pods, its valid value is either `CentOS` or `AliyunLinux`. Default to `CentOS`.
Platform pulumi.StringPtrInput
// - [Flannel Specific] The CIDR block for the pod network when using Flannel.
PodCidr pulumi.StringPtrInput
// - [Terway Specific] The vswitches for the pod network when using Terway.Be careful the `podVswitchIds` can not equal to `workerVswtichIds` or `masterVswtichIds` but must be in same availability zones.
PodVswitchIds pulumi.StringArrayInput
// Proxy mode is option of kube-proxy. options: iptables|ipvs. default: ipvs.
ProxyMode pulumi.StringPtrInput
// RDS instance list, You can choose which RDS instances whitelist to add instances to.
RdsInstances pulumi.StringArrayInput
// The ID of the resource group,by default these cloud resources are automatically assigned to the default resource group.
ResourceGroupId pulumi.StringPtrInput
// The runtime of containers. Default to `docker`. If you select another container runtime, see [How do I select between Docker and Sandboxed-Container](https://www.alibabacloud.com/help/doc-detail/160313.htm?spm=a2c63.p38356.b99.440.22563866AJkBgI). Detailed below.
Runtime ManagedKubernetesRuntimePtrInput
// The ID of the security group to which the ECS instances in the cluster belong. If it is not specified, a new Security group will be built.
SecurityGroupId pulumi.StringPtrInput
// The issuer of the Service Account token for [Service Account Token Volume Projection](https://www.alibabacloud.com/help/doc-detail/160384.htm), corresponds to the `iss` field in the token payload. Set this to `"kubernetes.default.svc"` to enable the Token Volume Projection feature (requires specifying `apiAudiences` as well).
ServiceAccountIssuer pulumi.StringPtrInput
// The CIDR block for the service network. It cannot be duplicated with the VPC CIDR and CIDR used by Kubernetes cluster in VPC, cannot be modified after creation.
ServiceCidr pulumi.StringPtrInput
// Whether to create internet load balancer for API Server. Default to true.
SlbInternetEnabled pulumi.BoolPtrInput
// Default nil, A map of tags assigned to the kubernetes cluster and work nodes . Detailed below.
Tags pulumi.MapInput
// Taints ensure pods are not scheduled onto inappropriate nodes. One or more taints are applied to a node; this marks that the node should not accept any pods that do not tolerate the taints. For more information, see [Taints and Tolerations](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/). Detailed below.
Taints ManagedKubernetesTaintArrayInput
// When you create a cluster, set the time zones for the Master and Woker nodes. You can only change the managed node time zone if you create a cluster. Once the cluster is created, you can only change the time zone of the Worker node.
Timezone pulumi.StringPtrInput
// The path of customized CA cert, you can use this CA to sign client certs to connect your cluster.
UserCa pulumi.StringPtrInput
// Custom data that can execute on nodes. For more information, see [Prepare user data](https://www.alibabacloud.com/help/doc-detail/49121.htm).
UserData pulumi.StringPtrInput
// Desired Kubernetes version. If you do not specify a value, the latest available version at resource creation is used and no upgrades will occur except you set a higher version number. The value must be configured and increased to upgrade the version when desired. Downgrades are not supported by ACK.
Version pulumi.StringPtrInput
// Enable worker payment auto-renew, defaults to false.
WorkerAutoRenew pulumi.BoolPtrInput
// Worker payment auto-renew period,, it can be one of {1, 2, 3, 6, 12}.
WorkerAutoRenewPeriod pulumi.IntPtrInput
WorkerDataDiskCategory pulumi.StringPtrInput
WorkerDataDiskSize pulumi.IntPtrInput
// The data disk configurations of worker nodes, such as the disk type and disk size.
WorkerDataDisks ManagedKubernetesWorkerDataDiskArrayInput
// The system disk category of worker node. Its valid value are `cloud`, `cloudSsd`, `cloudEssd` and `cloudEfficiency`. Default to `cloudEfficiency`.
WorkerDiskCategory pulumi.StringPtrInput
// Worker node system disk performance level, when `workerDiskCategory` values `cloudEssd`, the optional values are `PL0`, `PL1`, `PL2` or `PL3`, but the specific performance level is related to the disk capacity. For more information, see [Enhanced SSDs](https://www.alibabacloud.com/help/doc-detail/122389.htm). Default is `PL1`.
WorkerDiskPerformanceLevel pulumi.StringPtrInput
// The system disk size of worker node. Its valid value range [40~500] in GB. Default to 40.
WorkerDiskSize pulumi.IntPtrInput
// Worker node system disk auto snapshot policy.
WorkerDiskSnapshotPolicyId pulumi.StringPtrInput
// Worker payment type, its valid value is either or `PostPaid` or `PrePaid`. Defaults to `PostPaid`. If value is `PrePaid`, the files `workerPeriod`, `workerPeriodUnit`, `workerAutoRenew` and `workerAutoRenewPeriod` are required.
WorkerInstanceChargeType pulumi.StringPtrInput
// The instance type of worker node. Specify one type for single AZ Cluster, three types for MultiAZ Cluster. From version 1.109.1, It is not necessary in the professional managed cluster, but it is necessary in other types of clusters.
WorkerInstanceTypes pulumi.StringArrayInput
// The worker node number of the kubernetes cluster. Default to 3. It is limited up to 50 and if you want to enlarge it, please apply white list or contact with us. From version 1.109.1, It is not necessary in the professional managed cluster, but it is necessary in other types of clusters.
WorkerNumber pulumi.IntPtrInput
// Worker payment period. The unit is `Month`. Its valid value is one of {1, 2, 3, 6, 12, 24, 36, 48, 60}.
WorkerPeriod pulumi.IntPtrInput
// Worker payment period unit, the valid value is `Month`.
WorkerPeriodUnit pulumi.StringPtrInput
WorkerVswitchIds pulumi.StringArrayInput
}
func (ManagedKubernetesArgs) ElementType() reflect.Type {
return reflect.TypeOf((*managedKubernetesArgs)(nil)).Elem()
}
type ManagedKubernetesInput interface {
pulumi.Input
ToManagedKubernetesOutput() ManagedKubernetesOutput
ToManagedKubernetesOutputWithContext(ctx context.Context) ManagedKubernetesOutput
}
func (*ManagedKubernetes) ElementType() reflect.Type {
return reflect.TypeOf((*ManagedKubernetes)(nil))
}
func (i *ManagedKubernetes) ToManagedKubernetesOutput() ManagedKubernetesOutput {
return i.ToManagedKubernetesOutputWithContext(context.Background())
}
func (i *ManagedKubernetes) ToManagedKubernetesOutputWithContext(ctx context.Context) ManagedKubernetesOutput {
return pulumi.ToOutputWithContext(ctx, i).(ManagedKubernetesOutput)
}
func (i *ManagedKubernetes) ToManagedKubernetesPtrOutput() ManagedKubernetesPtrOutput {
return i.ToManagedKubernetesPtrOutputWithContext(context.Background())
}
func (i *ManagedKubernetes) ToManagedKubernetesPtrOutputWithContext(ctx context.Context) ManagedKubernetesPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ManagedKubernetesPtrOutput)
}
type ManagedKubernetesPtrInput interface {
pulumi.Input
ToManagedKubernetesPtrOutput() ManagedKubernetesPtrOutput
ToManagedKubernetesPtrOutputWithContext(ctx context.Context) ManagedKubernetesPtrOutput
}
type managedKubernetesPtrType ManagedKubernetesArgs
func (*managedKubernetesPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ManagedKubernetes)(nil))
}
func (i *managedKubernetesPtrType) ToManagedKubernetesPtrOutput() ManagedKubernetesPtrOutput {
return i.ToManagedKubernetesPtrOutputWithContext(context.Background())
}
func (i *managedKubernetesPtrType) ToManagedKubernetesPtrOutputWithContext(ctx context.Context) ManagedKubernetesPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ManagedKubernetesPtrOutput)
}
// ManagedKubernetesArrayInput is an input type that accepts ManagedKubernetesArray and ManagedKubernetesArrayOutput values.
// You can construct a concrete instance of `ManagedKubernetesArrayInput` via:
//
// ManagedKubernetesArray{ ManagedKubernetesArgs{...} }
type ManagedKubernetesArrayInput interface {
pulumi.Input
ToManagedKubernetesArrayOutput() ManagedKubernetesArrayOutput
ToManagedKubernetesArrayOutputWithContext(context.Context) ManagedKubernetesArrayOutput
}
type ManagedKubernetesArray []ManagedKubernetesInput
func (ManagedKubernetesArray) ElementType() reflect.Type {
return reflect.TypeOf(([]*ManagedKubernetes)(nil))
}
func (i ManagedKubernetesArray) ToManagedKubernetesArrayOutput() ManagedKubernetesArrayOutput {
return i.ToManagedKubernetesArrayOutputWithContext(context.Background())
}
func (i ManagedKubernetesArray) ToManagedKubernetesArrayOutputWithContext(ctx context.Context) ManagedKubernetesArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ManagedKubernetesArrayOutput)
}
// ManagedKubernetesMapInput is an input type that accepts ManagedKubernetesMap and ManagedKubernetesMapOutput values.
// You can construct a concrete instance of `ManagedKubernetesMapInput` via:
//
// ManagedKubernetesMap{ "key": ManagedKubernetesArgs{...} }
type ManagedKubernetesMapInput interface {
pulumi.Input
ToManagedKubernetesMapOutput() ManagedKubernetesMapOutput
ToManagedKubernetesMapOutputWithContext(context.Context) ManagedKubernetesMapOutput
}
type ManagedKubernetesMap map[string]ManagedKubernetesInput
func (ManagedKubernetesMap) ElementType() reflect.Type {
return reflect.TypeOf((map[string]*ManagedKubernetes)(nil))
}
func (i ManagedKubernetesMap) ToManagedKubernetesMapOutput() ManagedKubernetesMapOutput {
return i.ToManagedKubernetesMapOutputWithContext(context.Background())
}
func (i ManagedKubernetesMap) ToManagedKubernetesMapOutputWithContext(ctx context.Context) ManagedKubernetesMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(ManagedKubernetesMapOutput)
}
type ManagedKubernetesOutput struct {
*pulumi.OutputState
}
func (ManagedKubernetesOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ManagedKubernetes)(nil))
}
func (o ManagedKubernetesOutput) ToManagedKubernetesOutput() ManagedKubernetesOutput {
return o
}
func (o ManagedKubernetesOutput) ToManagedKubernetesOutputWithContext(ctx context.Context) ManagedKubernetesOutput {
return o
}
func (o ManagedKubernetesOutput) ToManagedKubernetesPtrOutput() ManagedKubernetesPtrOutput {
return o.ToManagedKubernetesPtrOutputWithContext(context.Background())
}
func (o ManagedKubernetesOutput) ToManagedKubernetesPtrOutputWithContext(ctx context.Context) ManagedKubernetesPtrOutput {
return o.ApplyT(func(v ManagedKubernetes) *ManagedKubernetes {
return &v
}).(ManagedKubernetesPtrOutput)
}
type ManagedKubernetesPtrOutput struct {
*pulumi.OutputState
}
func (ManagedKubernetesPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ManagedKubernetes)(nil))
}
func (o ManagedKubernetesPtrOutput) ToManagedKubernetesPtrOutput() ManagedKubernetesPtrOutput {
return o
}
func (o ManagedKubernetesPtrOutput) ToManagedKubernetesPtrOutputWithContext(ctx context.Context) ManagedKubernetesPtrOutput {
return o
}
type ManagedKubernetesArrayOutput struct{ *pulumi.OutputState }
func (ManagedKubernetesArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]ManagedKubernetes)(nil))
}
func (o ManagedKubernetesArrayOutput) ToManagedKubernetesArrayOutput() ManagedKubernetesArrayOutput {
return o
}
func (o ManagedKubernetesArrayOutput) ToManagedKubernetesArrayOutputWithContext(ctx context.Context) ManagedKubernetesArrayOutput {
return o
}
func (o ManagedKubernetesArrayOutput) Index(i pulumi.IntInput) ManagedKubernetesOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) ManagedKubernetes {
return vs[0].([]ManagedKubernetes)[vs[1].(int)]
}).(ManagedKubernetesOutput)
}
type ManagedKubernetesMapOutput struct{ *pulumi.OutputState }
func (ManagedKubernetesMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]ManagedKubernetes)(nil))
}
func (o ManagedKubernetesMapOutput) ToManagedKubernetesMapOutput() ManagedKubernetesMapOutput {
return o
}
func (o ManagedKubernetesMapOutput) ToManagedKubernetesMapOutputWithContext(ctx context.Context) ManagedKubernetesMapOutput {
return o
}
func (o ManagedKubernetesMapOutput) MapIndex(k pulumi.StringInput) ManagedKubernetesOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) ManagedKubernetes {
return vs[0].(map[string]ManagedKubernetes)[vs[1].(string)]
}).(ManagedKubernetesOutput)
}
func init() {
pulumi.RegisterOutputType(ManagedKubernetesOutput{})
pulumi.RegisterOutputType(ManagedKubernetesPtrOutput{})
pulumi.RegisterOutputType(ManagedKubernetesArrayOutput{})
pulumi.RegisterOutputType(ManagedKubernetesMapOutput{})
}