@pulumi/eks 2.8.1 → 2.9.0-alpha.1727304793

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/addon.d.ts +61 -13
  2. package/addon.js +45 -18
  3. package/addon.js.map +1 -1
  4. package/cluster.d.ts +291 -585
  5. package/cluster.js +120 -947
  6. package/cluster.js.map +1 -1
  7. package/clusterCreationRoleProvider.d.ts +28 -0
  8. package/clusterCreationRoleProvider.js +47 -0
  9. package/clusterCreationRoleProvider.js.map +1 -0
  10. package/clusterMixins.d.ts +71 -0
  11. package/clusterMixins.js +107 -0
  12. package/clusterMixins.js.map +1 -0
  13. package/index.d.ts +31 -7
  14. package/index.js +80 -34
  15. package/index.js.map +1 -1
  16. package/managedNodeGroup.d.ts +221 -0
  17. package/managedNodeGroup.js +81 -0
  18. package/managedNodeGroup.js.map +1 -0
  19. package/nodeGroup.d.ts +273 -0
  20. package/nodeGroup.js +93 -0
  21. package/nodeGroup.js.map +1 -0
  22. package/nodeGroupSecurityGroup.d.ts +51 -0
  23. package/nodeGroupSecurityGroup.js +60 -0
  24. package/nodeGroupSecurityGroup.js.map +1 -0
  25. package/nodeGroupV2.d.ts +280 -0
  26. package/nodeGroupV2.js +90 -0
  27. package/nodeGroupV2.js.map +1 -0
  28. package/nodegroupMixins.d.ts +203 -0
  29. package/{securitygroup.js → nodegroupMixins.js} +25 -36
  30. package/nodegroupMixins.js.map +1 -0
  31. package/package.json +8 -36
  32. package/provider.d.ts +21 -0
  33. package/provider.js +38 -0
  34. package/provider.js.map +1 -0
  35. package/{storageclass.js → storageclassMixins.js} +1 -14
  36. package/storageclassMixins.js.map +1 -0
  37. package/types/enums/index.d.ts +170 -0
  38. package/types/enums/index.js +145 -0
  39. package/types/enums/index.js.map +1 -0
  40. package/types/index.d.ts +4 -0
  41. package/types/index.js +13 -0
  42. package/types/index.js.map +1 -0
  43. package/types/input.d.ts +745 -0
  44. package/types/input.js +30 -0
  45. package/types/input.js.map +1 -0
  46. package/types/output.d.ts +422 -0
  47. package/types/output.js +5 -0
  48. package/types/output.js.map +1 -0
  49. package/utilities.d.ts +8 -1
  50. package/utilities.js +90 -17
  51. package/utilities.js.map +1 -1
  52. package/vpcCniAddon.d.ts +175 -0
  53. package/vpcCniAddon.js +88 -0
  54. package/vpcCniAddon.js.map +1 -0
  55. package/LICENSE +0 -202
  56. package/README.md +0 -77
  57. package/authenticationMode.d.ts +0 -24
  58. package/authenticationMode.js +0 -172
  59. package/authenticationMode.js.map +0 -1
  60. package/authenticationMode.test.d.ts +0 -1
  61. package/authenticationMode.test.js +0 -208
  62. package/authenticationMode.test.js.map +0 -1
  63. package/cert-thumprint.d.ts +0 -16
  64. package/cert-thumprint.js +0 -113
  65. package/cert-thumprint.js.map +0 -1
  66. package/cmd/provider/addon.d.ts +0 -1
  67. package/cmd/provider/addon.js +0 -40
  68. package/cmd/provider/addon.js.map +0 -1
  69. package/cmd/provider/cluster.d.ts +0 -1
  70. package/cmd/provider/cluster.js +0 -71
  71. package/cmd/provider/cluster.js.map +0 -1
  72. package/cmd/provider/cni.d.ts +0 -2
  73. package/cmd/provider/cni.js +0 -291
  74. package/cmd/provider/cni.js.map +0 -1
  75. package/cmd/provider/index.d.ts +0 -1
  76. package/cmd/provider/index.js +0 -171
  77. package/cmd/provider/index.js.map +0 -1
  78. package/cmd/provider/nodegroup.d.ts +0 -1
  79. package/cmd/provider/nodegroup.js +0 -89
  80. package/cmd/provider/nodegroup.js.map +0 -1
  81. package/cmd/provider/randomSuffix.d.ts +0 -1
  82. package/cmd/provider/randomSuffix.js +0 -52
  83. package/cmd/provider/randomSuffix.js.map +0 -1
  84. package/cmd/provider/schema.json +0 -1909
  85. package/cmd/provider/securitygroup.d.ts +0 -1
  86. package/cmd/provider/securitygroup.js +0 -41
  87. package/cmd/provider/securitygroup.js.map +0 -1
  88. package/cni/README.md +0 -6
  89. package/cni/aws-k8s-cni.yaml +0 -602
  90. package/cni.d.ts +0 -177
  91. package/cni.js +0 -64
  92. package/cni.js.map +0 -1
  93. package/dashboard/heapster-rbac.yaml +0 -12
  94. package/dashboard/heapster.yaml +0 -46
  95. package/dashboard/influxdb.yaml +0 -40
  96. package/dashboard/kubernetes-dashboard.yaml +0 -167
  97. package/dashboard.d.ts +0 -5
  98. package/dashboard.js +0 -58
  99. package/dashboard.js.map +0 -1
  100. package/dependencies.d.ts +0 -2
  101. package/dependencies.js +0 -81
  102. package/dependencies.js.map +0 -1
  103. package/dependencies.test.d.ts +0 -1
  104. package/dependencies.test.js +0 -133
  105. package/dependencies.test.js.map +0 -1
  106. package/nodegroup.d.ts +0 -515
  107. package/nodegroup.js +0 -1152
  108. package/nodegroup.js.map +0 -1
  109. package/nodegroup.test.d.ts +0 -1
  110. package/nodegroup.test.js +0 -336
  111. package/nodegroup.test.js.map +0 -1
  112. package/package.json.dev +0 -67
  113. package/randomSuffix.d.ts +0 -1
  114. package/randomSuffix.js +0 -51
  115. package/randomSuffix.js.map +0 -1
  116. package/securitygroup.d.ts +0 -52
  117. package/securitygroup.js.map +0 -1
  118. package/servicerole.d.ts +0 -43
  119. package/servicerole.js +0 -72
  120. package/servicerole.js.map +0 -1
  121. package/storageclass.js.map +0 -1
  122. package/utils.d.ts +0 -23
  123. package/utils.js +0 -16
  124. package/utils.js.map +0 -1
  125. /package/{storageclass.d.ts → storageclassMixins.d.ts} +0 -0
@@ -0,0 +1,221 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as enums from "./types/enums";
4
+ import * as pulumiAws from "@pulumi/aws";
5
+ import { Cluster } from "./index";
6
+ /**
7
+ * ManagedNodeGroup is a component that wraps creating an AWS managed node group.
8
+ *
9
+ * See for more details:
10
+ * https://docs.aws.amazon.com/eks/latest/userguide/managed-node-groups.html
11
+ */
12
+ export declare class ManagedNodeGroup extends pulumi.ComponentResource {
13
+ /**
14
+ * Returns true if the given object is an instance of ManagedNodeGroup. This is designed to work even
15
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
16
+ */
17
+ static isInstance(obj: any): obj is ManagedNodeGroup;
18
+ /**
19
+ * The AWS managed node group.
20
+ */
21
+ readonly nodeGroup: pulumi.Output<pulumiAws.eks.NodeGroup>;
22
+ /**
23
+ * Create a ManagedNodeGroup resource with the given unique name, arguments, and options.
24
+ *
25
+ * @param name The _unique_ name of the resource.
26
+ * @param args The arguments to use to populate this resource's properties.
27
+ * @param opts A bag of options that control this resource's behavior.
28
+ */
29
+ constructor(name: string, args: ManagedNodeGroupArgs, opts?: pulumi.ComponentResourceOptions);
30
+ }
31
+ /**
32
+ * The set of arguments for constructing a ManagedNodeGroup resource.
33
+ */
34
+ export interface ManagedNodeGroupArgs {
35
+ /**
36
+ * The AMI ID to use for the worker nodes.
37
+ * Defaults to the latest recommended EKS Optimized AMI from the AWS Systems Manager Parameter Store.
38
+ *
39
+ * Note: `amiId` is mutually exclusive with `gpu` and `amiType`.
40
+ *
41
+ * See for more details: https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html.
42
+ */
43
+ amiId?: pulumi.Input<string>;
44
+ /**
45
+ * Type of Amazon Machine Image (AMI) associated with the EKS Node Group. Defaults to `AL2_x86_64`.
46
+ * Note: `amiType` and `amiId` are mutually exclusive.
47
+ *
48
+ * See the AWS documentation (https://docs.aws.amazon.com/eks/latest/APIReference/API_Nodegroup.html#AmazonEKS-Type-Nodegroup-amiType) for valid AMI Types. This provider will only perform drift detection if a configuration value is provided.
49
+ */
50
+ amiType?: pulumi.Input<string>;
51
+ /**
52
+ * Additional args to pass directly to `/etc/eks/bootstrap.sh`. For details on available options, see: https://github.com/awslabs/amazon-eks-ami/blob/master/files/bootstrap.sh. Note that the `--apiserver-endpoint`, `--b64-cluster-ca` and `--kubelet-extra-args` flags are included automatically based on other configuration parameters.
53
+ *
54
+ * Note that this field conflicts with `launchTemplate`.
55
+ */
56
+ bootstrapExtraArgs?: string;
57
+ /**
58
+ * The configuration settings for Bottlerocket OS.
59
+ * The settings will get merged with the base settings the provider uses to configure Bottlerocket.
60
+ *
61
+ * This includes:
62
+ * - settings.kubernetes.api-server
63
+ * - settings.kubernetes.cluster-certificate
64
+ * - settings.kubernetes.cluster-name
65
+ * - settings.kubernetes.cluster-dns-ip
66
+ *
67
+ * For an overview of the available settings, see https://bottlerocket.dev/en/os/1.20.x/api/settings/.
68
+ */
69
+ bottlerocketSettings?: pulumi.Input<{
70
+ [key: string]: any;
71
+ }>;
72
+ /**
73
+ * Type of capacity associated with the EKS Node Group. Valid values: `ON_DEMAND`, `SPOT`. This provider will only perform drift detection if a configuration value is provided.
74
+ */
75
+ capacityType?: pulumi.Input<string>;
76
+ /**
77
+ * The target EKS cluster.
78
+ */
79
+ cluster: pulumi.Input<Cluster | inputs.CoreDataArgs>;
80
+ /**
81
+ * Name of the EKS Cluster.
82
+ */
83
+ clusterName?: pulumi.Input<string>;
84
+ /**
85
+ * Disk size in GiB for worker nodes. Defaults to `20`. This provider will only perform drift detection if a configuration value is provided.
86
+ */
87
+ diskSize?: pulumi.Input<number>;
88
+ /**
89
+ * Enables the ability to use EC2 Instance Metadata Service v2, which provides a more secure way to access instance metadata. For more information, see: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html.
90
+ * Defaults to `false`.
91
+ *
92
+ * Note that this field conflicts with `launchTemplate`. If you are providing a custom `launchTemplate`, you should enable this feature within the `launchTemplateMetadataOptions` of the supplied `launchTemplate`.
93
+ */
94
+ enableIMDSv2?: boolean;
95
+ /**
96
+ * Force version update if existing pods are unable to be drained due to a pod disruption budget issue.
97
+ */
98
+ forceUpdateVersion?: pulumi.Input<boolean>;
99
+ /**
100
+ * Use the latest recommended EKS Optimized AMI with GPU support for the worker nodes.
101
+ * Defaults to false.
102
+ *
103
+ * Note: `gpu` and `amiId` are mutually exclusive.
104
+ *
105
+ * See for more details: https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-amis.html.
106
+ */
107
+ gpu?: pulumi.Input<boolean>;
108
+ /**
109
+ * Whether to ignore changes to the desired size of the Auto Scaling Group. This is useful when using Cluster Autoscaler.
110
+ *
111
+ * See [EKS best practices](https://aws.github.io/aws-eks-best-practices/cluster-autoscaling/) for more details.
112
+ */
113
+ ignoreScalingChanges?: boolean;
114
+ /**
115
+ * Set of instance types associated with the EKS Node Group. Defaults to `["t3.medium"]`. This provider will only perform drift detection if a configuration value is provided. Currently, the EKS API only accepts a single value in the set.
116
+ */
117
+ instanceTypes?: pulumi.Input<pulumi.Input<string>[]>;
118
+ /**
119
+ * Extra args to pass to the Kubelet. Corresponds to the options passed in the `--kubeletExtraArgs` flag to `/etc/eks/bootstrap.sh`. For example, '--port=10251 --address=0.0.0.0'. To escape characters in the extra argsvalue, wrap the value in quotes. For example, `kubeletExtraArgs = '--allowed-unsafe-sysctls "net.core.somaxconn"'`.
120
+ * Note that this field conflicts with `launchTemplate`.
121
+ */
122
+ kubeletExtraArgs?: string;
123
+ /**
124
+ * Key-value map of Kubernetes labels. Only labels that are applied with the EKS API are managed by this argument. Other Kubernetes labels applied to the EKS Node Group will not be managed.
125
+ */
126
+ labels?: pulumi.Input<{
127
+ [key: string]: pulumi.Input<string>;
128
+ }>;
129
+ /**
130
+ * Launch Template settings.
131
+ *
132
+ * Note: This field is mutually exclusive with `kubeletExtraArgs` and `bootstrapExtraArgs`.
133
+ */
134
+ launchTemplate?: pulumi.Input<pulumiAws.types.input.eks.NodeGroupLaunchTemplate>;
135
+ /**
136
+ * Name of the EKS Node Group. If omitted, this provider will assign a random, unique name. Conflicts with `nodeGroupNamePrefix`.
137
+ */
138
+ nodeGroupName?: pulumi.Input<string>;
139
+ /**
140
+ * Creates a unique name beginning with the specified prefix. Conflicts with `nodeGroupName`.
141
+ */
142
+ nodeGroupNamePrefix?: pulumi.Input<string>;
143
+ /**
144
+ * The IAM Role that provides permissions for the EKS Node Group.
145
+ *
146
+ * Note, `nodeRole` and `nodeRoleArn` are mutually exclusive, and a single option must be used.
147
+ */
148
+ nodeRole?: pulumi.Input<pulumiAws.iam.Role>;
149
+ /**
150
+ * Amazon Resource Name (ARN) of the IAM Role that provides permissions for the EKS Node Group.
151
+ *
152
+ * Note, `nodeRoleArn` and `nodeRole` are mutually exclusive, and a single option must be used.
153
+ */
154
+ nodeRoleArn?: pulumi.Input<string>;
155
+ /**
156
+ * Extra nodeadm configuration sections to be added to the nodeadm user data. This can be shell scripts, nodeadm NodeConfig or any other user data compatible script. When configuring additional nodeadm NodeConfig sections, they'll be merged with the base settings the provider sets. You can overwrite base settings or provide additional settings this way.
157
+ * The base settings the provider sets are:
158
+ * - cluster.name
159
+ * - cluster.apiServerEndpoint
160
+ * - cluster.certificateAuthority
161
+ * - cluster.cidr
162
+ *
163
+ * Note: This is only applicable when using AL2023.
164
+ * See for more details:
165
+ * - https://awslabs.github.io/amazon-eks-ami/nodeadm/
166
+ * - https://awslabs.github.io/amazon-eks-ami/nodeadm/doc/api/
167
+ */
168
+ nodeadmExtraOptions?: pulumi.Input<pulumi.Input<inputs.NodeadmOptionsArgs>[]>;
169
+ /**
170
+ * The type of OS to use for the node group. Will be used to determine the right EKS optimized AMI to use based on the instance types and gpu configuration.
171
+ * Valid values are `RECOMMENDED`, `AL2`, `AL2023` and `Bottlerocket`.
172
+ *
173
+ * Defaults to the current recommended OS.
174
+ */
175
+ operatingSystem?: pulumi.Input<enums.OperatingSystem>;
176
+ /**
177
+ * AMI version of the EKS Node Group. Defaults to latest version for Kubernetes version.
178
+ */
179
+ releaseVersion?: pulumi.Input<string>;
180
+ /**
181
+ * Remote access settings.
182
+ */
183
+ remoteAccess?: pulumi.Input<pulumiAws.types.input.eks.NodeGroupRemoteAccess>;
184
+ /**
185
+ * Scaling settings.
186
+ *
187
+ * Default scaling amounts of the node group autoscaling group are:
188
+ * - desiredSize: 2
189
+ * - minSize: 1
190
+ * - maxSize: 2
191
+ */
192
+ scalingConfig?: pulumi.Input<pulumiAws.types.input.eks.NodeGroupScalingConfig>;
193
+ /**
194
+ * Identifiers of EC2 Subnets to associate with the EKS Node Group. These subnets must have the following resource tag: `kubernetes.io/cluster/CLUSTER_NAME` (where `CLUSTER_NAME` is replaced with the name of the EKS Cluster).
195
+ *
196
+ * Default subnetIds is chosen from the following list, in order, if subnetIds arg is not set:
197
+ * - core.subnetIds
198
+ * - core.privateIds
199
+ * - core.publicSubnetIds
200
+ *
201
+ * This default logic is based on the existing subnet IDs logic of this package: https://git.io/JeM11
202
+ */
203
+ subnetIds?: pulumi.Input<pulumi.Input<string>[]>;
204
+ /**
205
+ * Key-value mapping of resource tags.
206
+ */
207
+ tags?: pulumi.Input<{
208
+ [key: string]: pulumi.Input<string>;
209
+ }>;
210
+ /**
211
+ * The Kubernetes taints to be applied to the nodes in the node group. Maximum of 50 taints per node group.
212
+ */
213
+ taints?: pulumi.Input<pulumi.Input<pulumiAws.types.input.eks.NodeGroupTaint>[]>;
214
+ /**
215
+ * User specified code to run on node startup. This is expected to handle the full AWS EKS node bootstrapping. If omitted, the provider will configure the user data.
216
+ *
217
+ * See for more details: https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html#launch-template-user-data.
218
+ */
219
+ userData?: pulumi.Input<string>;
220
+ version?: pulumi.Input<string>;
221
+ }
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-gen-eks. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.ManagedNodeGroup = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * ManagedNodeGroup is a component that wraps creating an AWS managed node group.
10
+ *
11
+ * See for more details:
12
+ * https://docs.aws.amazon.com/eks/latest/userguide/managed-node-groups.html
13
+ */
14
+ class ManagedNodeGroup extends pulumi.ComponentResource {
15
+ /**
16
+ * Returns true if the given object is an instance of ManagedNodeGroup. This is designed to work even
17
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
18
+ */
19
+ static isInstance(obj) {
20
+ if (obj === undefined || obj === null) {
21
+ return false;
22
+ }
23
+ return obj['__pulumiType'] === ManagedNodeGroup.__pulumiType;
24
+ }
25
+ /**
26
+ * Create a ManagedNodeGroup resource with the given unique name, arguments, and options.
27
+ *
28
+ * @param name The _unique_ name of the resource.
29
+ * @param args The arguments to use to populate this resource's properties.
30
+ * @param opts A bag of options that control this resource's behavior.
31
+ */
32
+ constructor(name, args, opts) {
33
+ let resourceInputs = {};
34
+ opts = opts || {};
35
+ if (!opts.id) {
36
+ if ((!args || args.cluster === undefined) && !opts.urn) {
37
+ throw new Error("Missing required property 'cluster'");
38
+ }
39
+ resourceInputs["amiId"] = args ? args.amiId : undefined;
40
+ resourceInputs["amiType"] = args ? args.amiType : undefined;
41
+ resourceInputs["bootstrapExtraArgs"] = args ? args.bootstrapExtraArgs : undefined;
42
+ resourceInputs["bottlerocketSettings"] = args ? args.bottlerocketSettings : undefined;
43
+ resourceInputs["capacityType"] = args ? args.capacityType : undefined;
44
+ resourceInputs["cluster"] = args ? args.cluster : undefined;
45
+ resourceInputs["clusterName"] = args ? args.clusterName : undefined;
46
+ resourceInputs["diskSize"] = args ? args.diskSize : undefined;
47
+ resourceInputs["enableIMDSv2"] = args ? args.enableIMDSv2 : undefined;
48
+ resourceInputs["forceUpdateVersion"] = args ? args.forceUpdateVersion : undefined;
49
+ resourceInputs["gpu"] = args ? args.gpu : undefined;
50
+ resourceInputs["ignoreScalingChanges"] = args ? args.ignoreScalingChanges : undefined;
51
+ resourceInputs["instanceTypes"] = args ? args.instanceTypes : undefined;
52
+ resourceInputs["kubeletExtraArgs"] = args ? args.kubeletExtraArgs : undefined;
53
+ resourceInputs["labels"] = args ? args.labels : undefined;
54
+ resourceInputs["launchTemplate"] = args ? args.launchTemplate : undefined;
55
+ resourceInputs["nodeGroupName"] = args ? args.nodeGroupName : undefined;
56
+ resourceInputs["nodeGroupNamePrefix"] = args ? args.nodeGroupNamePrefix : undefined;
57
+ resourceInputs["nodeRole"] = args ? args.nodeRole : undefined;
58
+ resourceInputs["nodeRoleArn"] = args ? args.nodeRoleArn : undefined;
59
+ resourceInputs["nodeadmExtraOptions"] = args ? args.nodeadmExtraOptions : undefined;
60
+ resourceInputs["operatingSystem"] = args ? args.operatingSystem : undefined;
61
+ resourceInputs["releaseVersion"] = args ? args.releaseVersion : undefined;
62
+ resourceInputs["remoteAccess"] = args ? args.remoteAccess : undefined;
63
+ resourceInputs["scalingConfig"] = args ? args.scalingConfig : undefined;
64
+ resourceInputs["subnetIds"] = args ? args.subnetIds : undefined;
65
+ resourceInputs["tags"] = args ? args.tags : undefined;
66
+ resourceInputs["taints"] = args ? args.taints : undefined;
67
+ resourceInputs["userData"] = args ? args.userData : undefined;
68
+ resourceInputs["version"] = args ? args.version : undefined;
69
+ resourceInputs["nodeGroup"] = undefined /*out*/;
70
+ }
71
+ else {
72
+ resourceInputs["nodeGroup"] = undefined /*out*/;
73
+ }
74
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
75
+ super(ManagedNodeGroup.__pulumiType, name, resourceInputs, opts, true /*remote*/);
76
+ }
77
+ }
78
+ exports.ManagedNodeGroup = ManagedNodeGroup;
79
+ /** @internal */
80
+ ManagedNodeGroup.__pulumiType = 'eks:index:ManagedNodeGroup';
81
+ //# sourceMappingURL=managedNodeGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"managedNodeGroup.js","sourceRoot":"","sources":["../managedNodeGroup.ts"],"names":[],"mappings":";AAAA,8DAA8D;AAC9D,iFAAiF;;;AAEjF,yCAAyC;AAIzC,yCAAyC;AAOzC;;;;;GAKG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,iBAAiB;IAI1D;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,C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AS,CAAC;YAC5D,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;aAAM;YACH,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IACtF,CAAC;;AAtEL,4CAuEC;AAtEG,gBAAgB;AACO,6BAAY,GAAG,4BAA4B,CAAC"}
package/nodeGroup.d.ts ADDED
@@ -0,0 +1,273 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as enums from "./types/enums";
4
+ import * as pulumiAws from "@pulumi/aws";
5
+ import { Cluster } from "./index";
6
+ /**
7
+ * NodeGroup is a component that wraps the AWS EC2 instances that provide compute capacity for an EKS cluster.
8
+ *
9
+ * @deprecated NodeGroup uses AWS EC2 LaunchConfiguration which has been deprecated by AWS and doesn't support the newest instance types. Please use NodeGroupV2 instead.
10
+ */
11
+ export declare class NodeGroup extends pulumi.ComponentResource {
12
+ /**
13
+ * Returns true if the given object is an instance of NodeGroup. This is designed to work even
14
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
15
+ */
16
+ static isInstance(obj: any): obj is NodeGroup;
17
+ /**
18
+ * The AutoScalingGroup name for the Node group.
19
+ */
20
+ readonly autoScalingGroupName: pulumi.Output<string>;
21
+ /**
22
+ * The CloudFormation Stack which defines the Node AutoScalingGroup.
23
+ */
24
+ readonly cfnStack: pulumi.Output<pulumiAws.cloudformation.Stack>;
25
+ /**
26
+ * The additional security groups for the node group that captures user-specific rules.
27
+ */
28
+ readonly extraNodeSecurityGroups: pulumi.Output<pulumiAws.ec2.SecurityGroup[]>;
29
+ /**
30
+ * The security group for the node group to communicate with the cluster.
31
+ */
32
+ readonly nodeSecurityGroup: pulumi.Output<pulumiAws.ec2.SecurityGroup>;
33
+ /**
34
+ * Create a NodeGroup resource with the given unique name, arguments, and options.
35
+ *
36
+ * @param name The _unique_ name of the resource.
37
+ * @param args The arguments to use to populate this resource's properties.
38
+ * @param opts A bag of options that control this resource's behavior.
39
+ */
40
+ /** @deprecated NodeGroup uses AWS EC2 LaunchConfiguration which has been deprecated by AWS and doesn't support the newest instance types. Please use NodeGroupV2 instead. */
41
+ constructor(name: string, args: NodeGroupArgs, opts?: pulumi.ComponentResourceOptions);
42
+ }
43
+ /**
44
+ * The set of arguments for constructing a NodeGroup resource.
45
+ */
46
+ export interface NodeGroupArgs {
47
+ /**
48
+ * The AMI ID to use for the worker nodes.
49
+ *
50
+ * Defaults to the latest recommended EKS Optimized Linux AMI from the AWS Systems Manager Parameter Store.
51
+ *
52
+ * Note: `amiId` and `gpu` are mutually exclusive.
53
+ *
54
+ * See for more details:
55
+ * - https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html.
56
+ */
57
+ amiId?: pulumi.Input<string>;
58
+ /**
59
+ * The AMI Type to use for the worker nodes.
60
+ *
61
+ * Only applicable when setting an AMI ID that is of type `arm64`.
62
+ *
63
+ * Note: `amiType` and `gpu` are mutually exclusive.
64
+ */
65
+ amiType?: pulumi.Input<string>;
66
+ /**
67
+ * The tags to apply to the NodeGroup's AutoScalingGroup in the CloudFormation Stack.
68
+ *
69
+ * Per AWS, all stack-level tags, including automatically created tags, and the `cloudFormationTags` option are propagated to resources that AWS CloudFormation supports, including the AutoScalingGroup. See https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html
70
+ *
71
+ * Note: Given the inheritance of auto-generated CF tags and `cloudFormationTags`, you should either supply the tag in `autoScalingGroupTags` or `cloudFormationTags`, but not both.
72
+ */
73
+ autoScalingGroupTags?: pulumi.Input<{
74
+ [key: string]: pulumi.Input<string>;
75
+ }>;
76
+ /**
77
+ * Additional args to pass directly to `/etc/eks/bootstrap.sh`. For details on available options, see: https://github.com/awslabs/amazon-eks-ami/blob/master/files/bootstrap.sh. Note that the `--apiserver-endpoint`, `--b64-cluster-ca` and `--kubelet-extra-args` flags are included automatically based on other configuration parameters.
78
+ */
79
+ bootstrapExtraArgs?: string;
80
+ /**
81
+ * The configuration settings for Bottlerocket OS.
82
+ * The settings will get merged with the base settings the provider uses to configure Bottlerocket.
83
+ *
84
+ * This includes:
85
+ * - settings.kubernetes.api-server
86
+ * - settings.kubernetes.cluster-certificate
87
+ * - settings.kubernetes.cluster-name
88
+ * - settings.kubernetes.cluster-dns-ip
89
+ *
90
+ * For an overview of the available settings, see https://bottlerocket.dev/en/os/1.20.x/api/settings/.
91
+ */
92
+ bottlerocketSettings?: pulumi.Input<{
93
+ [key: string]: any;
94
+ }>;
95
+ /**
96
+ * The tags to apply to the CloudFormation Stack of the Worker NodeGroup.
97
+ *
98
+ * Note: Given the inheritance of auto-generated CF tags and `cloudFormationTags`, you should either supply the tag in `autoScalingGroupTags` or `cloudFormationTags`, but not both.
99
+ */
100
+ cloudFormationTags?: pulumi.Input<{
101
+ [key: string]: pulumi.Input<string>;
102
+ }>;
103
+ /**
104
+ * The target EKS cluster.
105
+ */
106
+ cluster: pulumi.Input<Cluster | inputs.CoreDataArgs>;
107
+ /**
108
+ * The ingress rule that gives node group access.
109
+ */
110
+ clusterIngressRule?: pulumi.Input<pulumiAws.ec2.SecurityGroupRule>;
111
+ /**
112
+ * The number of worker nodes that should be running in the cluster. Defaults to 2.
113
+ */
114
+ desiredCapacity?: pulumi.Input<number>;
115
+ /**
116
+ * Enables/disables detailed monitoring of the EC2 instances.
117
+ *
118
+ * With detailed monitoring, all metrics, including status check metrics, are available in 1-minute intervals.
119
+ * When enabled, you can also get aggregated data across groups of similar instances.
120
+ *
121
+ * Note: You are charged per metric that is sent to CloudWatch. You are not charged for data storage.
122
+ * For more information, see "Paid tier" and "Example 1 - EC2 Detailed Monitoring" here https://aws.amazon.com/cloudwatch/pricing/.
123
+ */
124
+ enableDetailedMonitoring?: pulumi.Input<boolean>;
125
+ /**
126
+ * Encrypt the root block device of the nodes in the node group.
127
+ */
128
+ encryptRootBlockDevice?: pulumi.Input<boolean>;
129
+ /**
130
+ * Extra security groups to attach on all nodes in this worker node group.
131
+ *
132
+ * This additional set of security groups captures any user application rules that will be needed for the nodes.
133
+ */
134
+ extraNodeSecurityGroups?: pulumi.Input<pulumi.Input<pulumiAws.ec2.SecurityGroup>[]>;
135
+ /**
136
+ * Use the latest recommended EKS Optimized Linux AMI with GPU support for the worker nodes from the AWS Systems Manager Parameter Store.
137
+ *
138
+ * Defaults to false.
139
+ *
140
+ * Note: `gpu` and `amiId` are mutually exclusive.
141
+ *
142
+ * See for more details:
143
+ * - https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html
144
+ * - https://docs.aws.amazon.com/eks/latest/userguide/retrieve-ami-id.html
145
+ */
146
+ gpu?: pulumi.Input<boolean>;
147
+ /**
148
+ * The ingress rule that gives node group access.
149
+ */
150
+ instanceProfile?: pulumiAws.iam.InstanceProfile;
151
+ /**
152
+ * The instance type to use for the cluster's nodes. Defaults to "t3.medium".
153
+ */
154
+ instanceType?: pulumi.Input<string>;
155
+ /**
156
+ * Name of the key pair to use for SSH access to worker nodes.
157
+ */
158
+ keyName?: pulumi.Input<string>;
159
+ /**
160
+ * Extra args to pass to the Kubelet. Corresponds to the options passed in the `--kubeletExtraArgs` flag to `/etc/eks/bootstrap.sh`. For example, '--port=10251 --address=0.0.0.0'. Note that the `labels` and `taints` properties will be applied to this list (using `--node-labels` and `--register-with-taints` respectively) after to the explicit `kubeletExtraArgs`.
161
+ */
162
+ kubeletExtraArgs?: string;
163
+ /**
164
+ * Custom k8s node labels to be attached to each worker node. Adds the given key/value pairs to the `--node-labels` kubelet argument.
165
+ */
166
+ labels?: {
167
+ [key: string]: string;
168
+ };
169
+ /**
170
+ * The maximum number of worker nodes running in the cluster. Defaults to 2.
171
+ */
172
+ maxSize?: pulumi.Input<number>;
173
+ /**
174
+ * The minimum number of worker nodes running in the cluster. Defaults to 1.
175
+ */
176
+ minSize?: pulumi.Input<number>;
177
+ /**
178
+ * Whether or not to auto-assign public IP addresses on the EKS worker nodes. If this toggle is set to true, the EKS workers will be auto-assigned public IPs. If false, they will not be auto-assigned public IPs.
179
+ */
180
+ nodeAssociatePublicIpAddress?: boolean;
181
+ /**
182
+ * Public key material for SSH access to worker nodes. See allowed formats at:
183
+ * https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html
184
+ * If not provided, no SSH access is enabled on VMs.
185
+ */
186
+ nodePublicKey?: pulumi.Input<string>;
187
+ /**
188
+ * Whether the root block device should be deleted on termination of the instance. Defaults to true.
189
+ */
190
+ nodeRootVolumeDeleteOnTermination?: pulumi.Input<boolean>;
191
+ /**
192
+ * Whether to encrypt a cluster node's root volume. Defaults to false.
193
+ */
194
+ nodeRootVolumeEncrypted?: pulumi.Input<boolean>;
195
+ /**
196
+ * The amount of provisioned IOPS. This is only valid with a volumeType of 'io1'.
197
+ */
198
+ nodeRootVolumeIops?: pulumi.Input<number>;
199
+ /**
200
+ * The size in GiB of a cluster node's root volume. Defaults to 20.
201
+ */
202
+ nodeRootVolumeSize?: pulumi.Input<number>;
203
+ /**
204
+ * Provisioned throughput performance in integer MiB/s for a cluster node's root volume. This is only valid with a volumeType of 'gp3'.
205
+ */
206
+ nodeRootVolumeThroughput?: pulumi.Input<number>;
207
+ /**
208
+ * Configured EBS type for a cluster node's root volume. Default is 'gp2'. Supported values are 'standard', 'gp2', 'gp3', 'st1', 'sc1', 'io1'.
209
+ */
210
+ nodeRootVolumeType?: pulumi.Input<string>;
211
+ /**
212
+ * The security group for the worker node group to communicate with the cluster.
213
+ *
214
+ * This security group requires specific inbound and outbound rules.
215
+ *
216
+ * See for more details:
217
+ * https://docs.aws.amazon.com/eks/latest/userguide/sec-group-reqs.html
218
+ *
219
+ * Note: The `nodeSecurityGroup` option and the cluster option`nodeSecurityGroupTags` are mutually exclusive.
220
+ */
221
+ nodeSecurityGroup?: pulumi.Input<pulumiAws.ec2.SecurityGroup>;
222
+ /**
223
+ * The set of subnets to override and use for the worker node group.
224
+ *
225
+ * Setting this option overrides which subnets to use for the worker node group, regardless if the cluster's `subnetIds` is set, or if `publicSubnetIds` and/or `privateSubnetIds` were set.
226
+ */
227
+ nodeSubnetIds?: pulumi.Input<pulumi.Input<string>[]>;
228
+ /**
229
+ * Extra code to run on node startup. This code will run after the AWS EKS bootstrapping code and before the node signals its readiness to the managing CloudFormation stack. This code must be a typical user data script: critically it must begin with an interpreter directive (i.e. a `#!`).
230
+ */
231
+ nodeUserData?: pulumi.Input<string>;
232
+ /**
233
+ * User specified code to run on node startup. This code is expected to handle the full AWS EKS bootstrapping code and signal node readiness to the managing CloudFormation stack. This code must be a complete and executable user data script in bash (Linux) or powershell (Windows).
234
+ *
235
+ * See for more details: https://docs.aws.amazon.com/eks/latest/userguide/worker.html
236
+ */
237
+ nodeUserDataOverride?: pulumi.Input<string>;
238
+ /**
239
+ * Extra nodeadm configuration sections to be added to the nodeadm user data. This can be shell scripts, nodeadm NodeConfig or any other user data compatible script. When configuring additional nodeadm NodeConfig sections, they'll be merged with the base settings the provider sets. You can overwrite base settings or provide additional settings this way.
240
+ * The base settings the provider sets are:
241
+ * - cluster.name
242
+ * - cluster.apiServerEndpoint
243
+ * - cluster.certificateAuthority
244
+ * - cluster.cidr
245
+ *
246
+ * Note: This is only applicable when using AL2023.
247
+ * See for more details:
248
+ * - https://awslabs.github.io/amazon-eks-ami/nodeadm/
249
+ * - https://awslabs.github.io/amazon-eks-ami/nodeadm/doc/api/
250
+ */
251
+ nodeadmExtraOptions?: pulumi.Input<pulumi.Input<inputs.NodeadmOptionsArgs>[]>;
252
+ /**
253
+ * The type of OS to use for the node group. Will be used to determine the right EKS optimized AMI to use based on the instance types and gpu configuration.
254
+ * Valid values are `RECOMMENDED`, `AL2`, `AL2023` and `Bottlerocket`.
255
+ *
256
+ * Defaults to the current recommended OS.
257
+ */
258
+ operatingSystem?: pulumi.Input<enums.OperatingSystem>;
259
+ /**
260
+ * Bidding price for spot instance. If set, only spot instances will be added as worker node.
261
+ */
262
+ spotPrice?: pulumi.Input<string>;
263
+ /**
264
+ * Custom k8s node taints to be attached to each worker node. Adds the given taints to the `--register-with-taints` kubelet argument
265
+ */
266
+ taints?: {
267
+ [key: string]: inputs.TaintArgs;
268
+ };
269
+ /**
270
+ * Desired Kubernetes master / control plane version. If you do not specify a value, the latest available version is used.
271
+ */
272
+ version?: pulumi.Input<string>;
273
+ }