aws-sdk-eks 1.39.0 → 1.40.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-eks.rb +1 -1
- data/lib/aws-sdk-eks/client.rb +143 -29
- data/lib/aws-sdk-eks/client_api.rb +9 -0
- data/lib/aws-sdk-eks/types.rb +214 -50
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2502b7c20f821fb7587d2d9183a9bc7d6e566be56e2dfc4051c1762119629575
|
4
|
+
data.tar.gz: 2a133ad4ef0d4e61e1b468482ad687c9de7be1e478efaa802e94c578937680cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05e0e71a37bab3718bdb8929da4ef865273e50c98cf311a026f03414069403c71086332fef895688f06da23f1ce51b183a88f67848c0d31388ce31075ce1f4a5
|
7
|
+
data.tar.gz: 33e404741bd4c50b45fb12a0e1c6819f14ab8a28408b9bd2a1ef47ae38e852b027e5c66e341ba01660e9fc563376e009605f4305d9ca73fbf1efa5bcfc5de916
|
data/lib/aws-sdk-eks.rb
CHANGED
data/lib/aws-sdk-eks/client.rb
CHANGED
@@ -375,9 +375,9 @@ module Aws::EKS
|
|
375
375
|
#
|
376
376
|
# @option params [required, String] :role_arn
|
377
377
|
# The Amazon Resource Name (ARN) of the IAM role that provides
|
378
|
-
# permissions for
|
379
|
-
# on your behalf. For more information, see [Amazon EKS
|
380
|
-
# Role][1] in the <i> <i>Amazon EKS User Guide</i> </i>.
|
378
|
+
# permissions for the Kubernetes control plane to make calls to AWS API
|
379
|
+
# operations on your behalf. For more information, see [Amazon EKS
|
380
|
+
# Service IAM Role][1] in the <i> <i>Amazon EKS User Guide</i> </i>.
|
381
381
|
#
|
382
382
|
#
|
383
383
|
#
|
@@ -677,17 +677,20 @@ module Aws::EKS
|
|
677
677
|
# only create a node group for your cluster that is equal to the current
|
678
678
|
# Kubernetes version for the cluster. All node groups are created with
|
679
679
|
# the latest AMI release version for the respective minor Kubernetes
|
680
|
-
# version of the cluster
|
680
|
+
# version of the cluster, unless you deploy a custom AMI using a launch
|
681
|
+
# template. For more information about using launch templates, see
|
682
|
+
# [Launch template support][1].
|
681
683
|
#
|
682
684
|
# An Amazon EKS managed node group is an Amazon EC2 Auto Scaling group
|
683
685
|
# and associated Amazon EC2 instances that are managed by AWS for an
|
684
686
|
# Amazon EKS cluster. Each node group uses a version of the Amazon
|
685
687
|
# EKS-optimized Amazon Linux 2 AMI. For more information, see [Managed
|
686
|
-
# Node Groups][
|
688
|
+
# Node Groups][2] in the *Amazon EKS User Guide*.
|
687
689
|
#
|
688
690
|
#
|
689
691
|
#
|
690
|
-
# [1]: https://docs.aws.amazon.com/eks/latest/userguide/
|
692
|
+
# [1]: https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html
|
693
|
+
# [2]: https://docs.aws.amazon.com/eks/latest/userguide/managed-node-groups.html
|
691
694
|
#
|
692
695
|
# @option params [required, String] :cluster_name
|
693
696
|
# The name of the cluster to create the node group in.
|
@@ -701,28 +704,68 @@ module Aws::EKS
|
|
701
704
|
#
|
702
705
|
# @option params [Integer] :disk_size
|
703
706
|
# The root device disk size (in GiB) for your node group instances. The
|
704
|
-
# default disk size is 20 GiB.
|
707
|
+
# default disk size is 20 GiB. If you specify `launchTemplate`, then
|
708
|
+
# don't specify `diskSize`, or the node group deployment will fail. For
|
709
|
+
# more information about using launch templates with Amazon EKS, see
|
710
|
+
# [Launch template support][1] in the Amazon EKS User Guide.
|
711
|
+
#
|
712
|
+
#
|
713
|
+
#
|
714
|
+
# [1]: https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html
|
705
715
|
#
|
706
716
|
# @option params [required, Array<String>] :subnets
|
707
717
|
# The subnets to use for the Auto Scaling group that is created for your
|
708
718
|
# node group. These subnets must have the tag key
|
709
719
|
# `kubernetes.io/cluster/CLUSTER_NAME` with a value of `shared`, where
|
710
|
-
# `CLUSTER_NAME` is replaced with the name of your cluster.
|
720
|
+
# `CLUSTER_NAME` is replaced with the name of your cluster. If you
|
721
|
+
# specify `launchTemplate`, then don't specify [ `SubnetId` ][1] in
|
722
|
+
# your launch template, or the node group deployment will fail. For more
|
723
|
+
# information about using launch templates with Amazon EKS, see [Launch
|
724
|
+
# template support][2] in the Amazon EKS User Guide.
|
725
|
+
#
|
726
|
+
#
|
727
|
+
#
|
728
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateNetworkInterface.html
|
729
|
+
# [2]: https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html
|
711
730
|
#
|
712
731
|
# @option params [Array<String>] :instance_types
|
713
|
-
# The instance type to use for your node group.
|
714
|
-
#
|
715
|
-
#
|
716
|
-
#
|
732
|
+
# The instance type to use for your node group. You can specify a single
|
733
|
+
# instance type for a node group. The default value for `instanceTypes`
|
734
|
+
# is `t3.medium`. If you choose a GPU instance type, be sure to specify
|
735
|
+
# `AL2_x86_64_GPU` with the `amiType` parameter. If you specify
|
736
|
+
# `launchTemplate`, then don't specify `instanceTypes`, or the node
|
737
|
+
# group deployment will fail. For more information about using launch
|
738
|
+
# templates with Amazon EKS, see [Launch template support][1] in the
|
739
|
+
# Amazon EKS User Guide.
|
740
|
+
#
|
741
|
+
#
|
742
|
+
#
|
743
|
+
# [1]: https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html
|
717
744
|
#
|
718
745
|
# @option params [String] :ami_type
|
719
746
|
# The AMI type for your node group. GPU instance types should use the
|
720
747
|
# `AL2_x86_64_GPU` AMI type, which uses the Amazon EKS-optimized Linux
|
721
748
|
# AMI with GPU support. Non-GPU instances should use the `AL2_x86_64`
|
722
|
-
# AMI type, which uses the Amazon EKS-optimized Linux AMI.
|
749
|
+
# AMI type, which uses the Amazon EKS-optimized Linux AMI. If you
|
750
|
+
# specify `launchTemplate`, and your launch template uses a custom AMI,
|
751
|
+
# then don't specify `amiType`, or the node group deployment will fail.
|
752
|
+
# For more information about using launch templates with Amazon EKS, see
|
753
|
+
# [Launch template support][1] in the Amazon EKS User Guide.
|
754
|
+
#
|
755
|
+
#
|
756
|
+
#
|
757
|
+
# [1]: https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html
|
723
758
|
#
|
724
759
|
# @option params [Types::RemoteAccessConfig] :remote_access
|
725
|
-
# The remote access (SSH) configuration to use with your node group.
|
760
|
+
# The remote access (SSH) configuration to use with your node group. If
|
761
|
+
# you specify `launchTemplate`, then don't specify `remoteAccess`, or
|
762
|
+
# the node group deployment will fail. For more information about using
|
763
|
+
# launch templates with Amazon EKS, see [Launch template support][1] in
|
764
|
+
# the Amazon EKS User Guide.
|
765
|
+
#
|
766
|
+
#
|
767
|
+
#
|
768
|
+
# [1]: https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html
|
726
769
|
#
|
727
770
|
# @option params [required, String] :node_role
|
728
771
|
# The Amazon Resource Name (ARN) of the IAM role to associate with your
|
@@ -732,11 +775,17 @@ module Aws::EKS
|
|
732
775
|
# Before you can launch worker nodes and register them into a cluster,
|
733
776
|
# you must create an IAM role for those worker nodes to use when they
|
734
777
|
# are launched. For more information, see [Amazon EKS Worker Node IAM
|
735
|
-
# Role][1] in the <i> <i>Amazon EKS User Guide</i> </i>.
|
778
|
+
# Role][1] in the <i> <i>Amazon EKS User Guide</i> </i>. If you specify
|
779
|
+
# `launchTemplate`, then don't specify [ `IamInstanceProfile` ][2] in
|
780
|
+
# your launch template, or the node group deployment will fail. For more
|
781
|
+
# information about using launch templates with Amazon EKS, see [Launch
|
782
|
+
# template support][3] in the Amazon EKS User Guide.
|
736
783
|
#
|
737
784
|
#
|
738
785
|
#
|
739
786
|
# [1]: https://docs.aws.amazon.com/eks/latest/userguide/worker_node_IAM_role.html
|
787
|
+
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_IamInstanceProfile.html
|
788
|
+
# [3]: https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html
|
740
789
|
#
|
741
790
|
# @option params [Hash<String,String>] :labels
|
742
791
|
# The Kubernetes labels to be applied to the nodes in the node group
|
@@ -756,21 +805,40 @@ module Aws::EKS
|
|
756
805
|
# **A suitable default value is auto-generated.** You should normally
|
757
806
|
# not need to pass this option.**
|
758
807
|
#
|
808
|
+
# @option params [Types::LaunchTemplateSpecification] :launch_template
|
809
|
+
# An object representing a node group's launch template specification.
|
810
|
+
# If specified, then do not specify `instanceTypes`, `diskSize`, or
|
811
|
+
# `remoteAccess`. If specified, make sure that the launch template meets
|
812
|
+
# the requirements in `launchTemplateSpecification`.
|
813
|
+
#
|
759
814
|
# @option params [String] :version
|
760
815
|
# The Kubernetes version to use for your managed nodes. By default, the
|
761
816
|
# Kubernetes version of the cluster is used, and this is the only
|
762
|
-
# accepted specified value.
|
817
|
+
# accepted specified value. If you specify `launchTemplate`, and your
|
818
|
+
# launch template uses a custom AMI, then don't specify `version`, or
|
819
|
+
# the node group deployment will fail. For more information about using
|
820
|
+
# launch templates with Amazon EKS, see [Launch template support][1] in
|
821
|
+
# the Amazon EKS User Guide.
|
822
|
+
#
|
823
|
+
#
|
824
|
+
#
|
825
|
+
# [1]: https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html
|
763
826
|
#
|
764
827
|
# @option params [String] :release_version
|
765
828
|
# The AMI version of the Amazon EKS-optimized AMI to use with your node
|
766
829
|
# group. By default, the latest available AMI version for the node
|
767
830
|
# group's current Kubernetes version is used. For more information, see
|
768
831
|
# [Amazon EKS-Optimized Linux AMI Versions][1] in the *Amazon EKS User
|
769
|
-
# Guide*.
|
832
|
+
# Guide*. If you specify `launchTemplate`, and your launch template uses
|
833
|
+
# a custom AMI, then don't specify `releaseVersion`, or the node group
|
834
|
+
# deployment will fail. For more information about using launch
|
835
|
+
# templates with Amazon EKS, see [Launch template support][2] in the
|
836
|
+
# Amazon EKS User Guide.
|
770
837
|
#
|
771
838
|
#
|
772
839
|
#
|
773
840
|
# [1]: https://docs.aws.amazon.com/eks/latest/userguide/eks-linux-ami-versions.html
|
841
|
+
# [2]: https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html
|
774
842
|
#
|
775
843
|
# @return [Types::CreateNodegroupResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
776
844
|
#
|
@@ -789,7 +857,7 @@ module Aws::EKS
|
|
789
857
|
# disk_size: 1,
|
790
858
|
# subnets: ["String"], # required
|
791
859
|
# instance_types: ["String"],
|
792
|
-
# ami_type: "AL2_x86_64", # accepts AL2_x86_64, AL2_x86_64_GPU
|
860
|
+
# ami_type: "AL2_x86_64", # accepts AL2_x86_64, AL2_x86_64_GPU, AL2_ARM_64
|
793
861
|
# remote_access: {
|
794
862
|
# ec2_ssh_key: "String",
|
795
863
|
# source_security_groups: ["String"],
|
@@ -802,6 +870,11 @@ module Aws::EKS
|
|
802
870
|
# "TagKey" => "TagValue",
|
803
871
|
# },
|
804
872
|
# client_request_token: "String",
|
873
|
+
# launch_template: {
|
874
|
+
# name: "String",
|
875
|
+
# version: "String",
|
876
|
+
# id: "String",
|
877
|
+
# },
|
805
878
|
# version: "String",
|
806
879
|
# release_version: "String",
|
807
880
|
# })
|
@@ -826,7 +899,7 @@ module Aws::EKS
|
|
826
899
|
# resp.nodegroup.remote_access.ec2_ssh_key #=> String
|
827
900
|
# resp.nodegroup.remote_access.source_security_groups #=> Array
|
828
901
|
# resp.nodegroup.remote_access.source_security_groups[0] #=> String
|
829
|
-
# resp.nodegroup.ami_type #=> String, one of "AL2_x86_64", "AL2_x86_64_GPU"
|
902
|
+
# resp.nodegroup.ami_type #=> String, one of "AL2_x86_64", "AL2_x86_64_GPU", "AL2_ARM_64"
|
830
903
|
# resp.nodegroup.node_role #=> String
|
831
904
|
# resp.nodegroup.labels #=> Hash
|
832
905
|
# resp.nodegroup.labels["labelKey"] #=> String
|
@@ -839,6 +912,9 @@ module Aws::EKS
|
|
839
912
|
# resp.nodegroup.health.issues[0].message #=> String
|
840
913
|
# resp.nodegroup.health.issues[0].resource_ids #=> Array
|
841
914
|
# resp.nodegroup.health.issues[0].resource_ids[0] #=> String
|
915
|
+
# resp.nodegroup.launch_template.name #=> String
|
916
|
+
# resp.nodegroup.launch_template.version #=> String
|
917
|
+
# resp.nodegroup.launch_template.id #=> String
|
842
918
|
# resp.nodegroup.tags #=> Hash
|
843
919
|
# resp.nodegroup.tags["TagKey"] #=> String
|
844
920
|
#
|
@@ -1033,7 +1109,7 @@ module Aws::EKS
|
|
1033
1109
|
# resp.nodegroup.remote_access.ec2_ssh_key #=> String
|
1034
1110
|
# resp.nodegroup.remote_access.source_security_groups #=> Array
|
1035
1111
|
# resp.nodegroup.remote_access.source_security_groups[0] #=> String
|
1036
|
-
# resp.nodegroup.ami_type #=> String, one of "AL2_x86_64", "AL2_x86_64_GPU"
|
1112
|
+
# resp.nodegroup.ami_type #=> String, one of "AL2_x86_64", "AL2_x86_64_GPU", "AL2_ARM_64"
|
1037
1113
|
# resp.nodegroup.node_role #=> String
|
1038
1114
|
# resp.nodegroup.labels #=> Hash
|
1039
1115
|
# resp.nodegroup.labels["labelKey"] #=> String
|
@@ -1046,6 +1122,9 @@ module Aws::EKS
|
|
1046
1122
|
# resp.nodegroup.health.issues[0].message #=> String
|
1047
1123
|
# resp.nodegroup.health.issues[0].resource_ids #=> Array
|
1048
1124
|
# resp.nodegroup.health.issues[0].resource_ids[0] #=> String
|
1125
|
+
# resp.nodegroup.launch_template.name #=> String
|
1126
|
+
# resp.nodegroup.launch_template.version #=> String
|
1127
|
+
# resp.nodegroup.launch_template.id #=> String
|
1049
1128
|
# resp.nodegroup.tags #=> Hash
|
1050
1129
|
# resp.nodegroup.tags["TagKey"] #=> String
|
1051
1130
|
#
|
@@ -1256,7 +1335,7 @@ module Aws::EKS
|
|
1256
1335
|
# resp.nodegroup.remote_access.ec2_ssh_key #=> String
|
1257
1336
|
# resp.nodegroup.remote_access.source_security_groups #=> Array
|
1258
1337
|
# resp.nodegroup.remote_access.source_security_groups[0] #=> String
|
1259
|
-
# resp.nodegroup.ami_type #=> String, one of "AL2_x86_64", "AL2_x86_64_GPU"
|
1338
|
+
# resp.nodegroup.ami_type #=> String, one of "AL2_x86_64", "AL2_x86_64_GPU", "AL2_ARM_64"
|
1260
1339
|
# resp.nodegroup.node_role #=> String
|
1261
1340
|
# resp.nodegroup.labels #=> Hash
|
1262
1341
|
# resp.nodegroup.labels["labelKey"] #=> String
|
@@ -1269,6 +1348,9 @@ module Aws::EKS
|
|
1269
1348
|
# resp.nodegroup.health.issues[0].message #=> String
|
1270
1349
|
# resp.nodegroup.health.issues[0].resource_ids #=> Array
|
1271
1350
|
# resp.nodegroup.health.issues[0].resource_ids[0] #=> String
|
1351
|
+
# resp.nodegroup.launch_template.name #=> String
|
1352
|
+
# resp.nodegroup.launch_template.version #=> String
|
1353
|
+
# resp.nodegroup.launch_template.id #=> String
|
1272
1354
|
# resp.nodegroup.tags #=> Hash
|
1273
1355
|
# resp.nodegroup.tags["TagKey"] #=> String
|
1274
1356
|
#
|
@@ -1949,12 +2031,20 @@ module Aws::EKS
|
|
1949
2031
|
# Updates the Kubernetes version or AMI version of an Amazon EKS managed
|
1950
2032
|
# node group.
|
1951
2033
|
#
|
1952
|
-
# You can update
|
1953
|
-
#
|
1954
|
-
#
|
1955
|
-
#
|
1956
|
-
#
|
1957
|
-
#
|
2034
|
+
# You can update a node group using a launch template only if the node
|
2035
|
+
# group was originally deployed with a launch template. If you need to
|
2036
|
+
# update a custom AMI in a node group that was deployed with a launch
|
2037
|
+
# template, then update your custom AMI, specify the new ID in a new
|
2038
|
+
# version of the launch template, and then update the node group to the
|
2039
|
+
# new version of the launch template.
|
2040
|
+
#
|
2041
|
+
# If you update without a launch template, then you can update to the
|
2042
|
+
# latest available AMI version of a node group's current Kubernetes
|
2043
|
+
# version by not specifying a Kubernetes version in the request. You can
|
2044
|
+
# update to the latest AMI version of your cluster's current Kubernetes
|
2045
|
+
# version by specifying your cluster's Kubernetes version in the
|
2046
|
+
# request. For more information, see [Amazon EKS-Optimized Linux AMI
|
2047
|
+
# Versions][1] in the *Amazon EKS User Guide*.
|
1958
2048
|
#
|
1959
2049
|
# You cannot roll back a node group to an earlier Kubernetes version or
|
1960
2050
|
# AMI version.
|
@@ -1980,17 +2070,36 @@ module Aws::EKS
|
|
1980
2070
|
# The Kubernetes version to update to. If no version is specified, then
|
1981
2071
|
# the Kubernetes version of the node group does not change. You can
|
1982
2072
|
# specify the Kubernetes version of the cluster to update the node group
|
1983
|
-
# to the latest AMI version of the cluster's Kubernetes version.
|
2073
|
+
# to the latest AMI version of the cluster's Kubernetes version. If you
|
2074
|
+
# specify `launchTemplate`, and your launch template uses a custom AMI,
|
2075
|
+
# then don't specify `version`, or the node group update will fail. For
|
2076
|
+
# more information about using launch templates with Amazon EKS, see
|
2077
|
+
# [Launch template support][1] in the Amazon EKS User Guide.
|
2078
|
+
#
|
2079
|
+
#
|
2080
|
+
#
|
2081
|
+
# [1]: https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html
|
1984
2082
|
#
|
1985
2083
|
# @option params [String] :release_version
|
1986
2084
|
# The AMI version of the Amazon EKS-optimized AMI to use for the update.
|
1987
2085
|
# By default, the latest available AMI version for the node group's
|
1988
2086
|
# Kubernetes version is used. For more information, see [Amazon
|
1989
2087
|
# EKS-Optimized Linux AMI Versions ][1] in the *Amazon EKS User Guide*.
|
2088
|
+
# If you specify `launchTemplate`, and your launch template uses a
|
2089
|
+
# custom AMI, then don't specify `releaseVersion`, or the node group
|
2090
|
+
# update will fail. For more information about using launch templates
|
2091
|
+
# with Amazon EKS, see [Launch template support][2] in the Amazon EKS
|
2092
|
+
# User Guide.
|
1990
2093
|
#
|
1991
2094
|
#
|
1992
2095
|
#
|
1993
2096
|
# [1]: https://docs.aws.amazon.com/eks/latest/userguide/eks-linux-ami-versions.html
|
2097
|
+
# [2]: https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html
|
2098
|
+
#
|
2099
|
+
# @option params [Types::LaunchTemplateSpecification] :launch_template
|
2100
|
+
# An object representing a node group's launch template specification.
|
2101
|
+
# You can only update a node group using a launch template if the node
|
2102
|
+
# group was originally deployed with a launch template.
|
1994
2103
|
#
|
1995
2104
|
# @option params [Boolean] :force
|
1996
2105
|
# Force the update if the existing node group's pods are unable to be
|
@@ -2017,6 +2126,11 @@ module Aws::EKS
|
|
2017
2126
|
# nodegroup_name: "String", # required
|
2018
2127
|
# version: "String",
|
2019
2128
|
# release_version: "String",
|
2129
|
+
# launch_template: {
|
2130
|
+
# name: "String",
|
2131
|
+
# version: "String",
|
2132
|
+
# id: "String",
|
2133
|
+
# },
|
2020
2134
|
# force: false,
|
2021
2135
|
# client_request_token: "String",
|
2022
2136
|
# })
|
@@ -2058,7 +2172,7 @@ module Aws::EKS
|
|
2058
2172
|
params: params,
|
2059
2173
|
config: config)
|
2060
2174
|
context[:gem_name] = 'aws-sdk-eks'
|
2061
|
-
context[:gem_version] = '1.
|
2175
|
+
context[:gem_version] = '1.40.0'
|
2062
2176
|
Seahorse::Client::Request.new(handlers, context)
|
2063
2177
|
end
|
2064
2178
|
|
@@ -62,6 +62,7 @@ module Aws::EKS
|
|
62
62
|
InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException')
|
63
63
|
Issue = Shapes::StructureShape.new(name: 'Issue')
|
64
64
|
IssueList = Shapes::ListShape.new(name: 'IssueList')
|
65
|
+
LaunchTemplateSpecification = Shapes::StructureShape.new(name: 'LaunchTemplateSpecification')
|
65
66
|
ListClustersRequest = Shapes::StructureShape.new(name: 'ListClustersRequest')
|
66
67
|
ListClustersRequestMaxResults = Shapes::IntegerShape.new(name: 'ListClustersRequestMaxResults')
|
67
68
|
ListClustersResponse = Shapes::StructureShape.new(name: 'ListClustersResponse')
|
@@ -199,6 +200,7 @@ module Aws::EKS
|
|
199
200
|
CreateNodegroupRequest.add_member(:labels, Shapes::ShapeRef.new(shape: labelsMap, location_name: "labels"))
|
200
201
|
CreateNodegroupRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
201
202
|
CreateNodegroupRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: String, location_name: "clientRequestToken", metadata: {"idempotencyToken"=>true}))
|
203
|
+
CreateNodegroupRequest.add_member(:launch_template, Shapes::ShapeRef.new(shape: LaunchTemplateSpecification, location_name: "launchTemplate"))
|
202
204
|
CreateNodegroupRequest.add_member(:version, Shapes::ShapeRef.new(shape: String, location_name: "version"))
|
203
205
|
CreateNodegroupRequest.add_member(:release_version, Shapes::ShapeRef.new(shape: String, location_name: "releaseVersion"))
|
204
206
|
CreateNodegroupRequest.struct_class = Types::CreateNodegroupRequest
|
@@ -308,6 +310,11 @@ module Aws::EKS
|
|
308
310
|
|
309
311
|
IssueList.member = Shapes::ShapeRef.new(shape: Issue)
|
310
312
|
|
313
|
+
LaunchTemplateSpecification.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
|
314
|
+
LaunchTemplateSpecification.add_member(:version, Shapes::ShapeRef.new(shape: String, location_name: "version"))
|
315
|
+
LaunchTemplateSpecification.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "id"))
|
316
|
+
LaunchTemplateSpecification.struct_class = Types::LaunchTemplateSpecification
|
317
|
+
|
311
318
|
ListClustersRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListClustersRequestMaxResults, location: "querystring", location_name: "maxResults"))
|
312
319
|
ListClustersRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "nextToken"))
|
313
320
|
ListClustersRequest.struct_class = Types::ListClustersRequest
|
@@ -379,6 +386,7 @@ module Aws::EKS
|
|
379
386
|
Nodegroup.add_member(:resources, Shapes::ShapeRef.new(shape: NodegroupResources, location_name: "resources"))
|
380
387
|
Nodegroup.add_member(:disk_size, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "diskSize"))
|
381
388
|
Nodegroup.add_member(:health, Shapes::ShapeRef.new(shape: NodegroupHealth, location_name: "health"))
|
389
|
+
Nodegroup.add_member(:launch_template, Shapes::ShapeRef.new(shape: LaunchTemplateSpecification, location_name: "launchTemplate"))
|
382
390
|
Nodegroup.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
|
383
391
|
Nodegroup.struct_class = Types::Nodegroup
|
384
392
|
|
@@ -499,6 +507,7 @@ module Aws::EKS
|
|
499
507
|
UpdateNodegroupVersionRequest.add_member(:nodegroup_name, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "nodegroupName"))
|
500
508
|
UpdateNodegroupVersionRequest.add_member(:version, Shapes::ShapeRef.new(shape: String, location_name: "version"))
|
501
509
|
UpdateNodegroupVersionRequest.add_member(:release_version, Shapes::ShapeRef.new(shape: String, location_name: "releaseVersion"))
|
510
|
+
UpdateNodegroupVersionRequest.add_member(:launch_template, Shapes::ShapeRef.new(shape: LaunchTemplateSpecification, location_name: "launchTemplate"))
|
502
511
|
UpdateNodegroupVersionRequest.add_member(:force, Shapes::ShapeRef.new(shape: Boolean, location_name: "force"))
|
503
512
|
UpdateNodegroupVersionRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: String, location_name: "clientRequestToken", metadata: {"idempotencyToken"=>true}))
|
504
513
|
UpdateNodegroupVersionRequest.struct_class = Types::UpdateNodegroupVersionRequest
|
data/lib/aws-sdk-eks/types.rb
CHANGED
@@ -238,9 +238,9 @@ module Aws::EKS
|
|
238
238
|
#
|
239
239
|
# @!attribute [rw] role_arn
|
240
240
|
# The Amazon Resource Name (ARN) of the IAM role that provides
|
241
|
-
# permissions for
|
242
|
-
# on your behalf. For more information, see [Amazon EKS
|
243
|
-
# Role][1] in the <i> <i>Amazon EKS User Guide</i> </i>.
|
241
|
+
# permissions for the Kubernetes control plane to make calls to AWS
|
242
|
+
# API operations on your behalf. For more information, see [Amazon EKS
|
243
|
+
# Service IAM Role][1] in the <i> <i>Amazon EKS User Guide</i> </i>.
|
244
244
|
#
|
245
245
|
#
|
246
246
|
#
|
@@ -439,7 +439,7 @@ module Aws::EKS
|
|
439
439
|
# disk_size: 1,
|
440
440
|
# subnets: ["String"], # required
|
441
441
|
# instance_types: ["String"],
|
442
|
-
# ami_type: "AL2_x86_64", # accepts AL2_x86_64, AL2_x86_64_GPU
|
442
|
+
# ami_type: "AL2_x86_64", # accepts AL2_x86_64, AL2_x86_64_GPU, AL2_ARM_64
|
443
443
|
# remote_access: {
|
444
444
|
# ec2_ssh_key: "String",
|
445
445
|
# source_security_groups: ["String"],
|
@@ -452,6 +452,11 @@ module Aws::EKS
|
|
452
452
|
# "TagKey" => "TagValue",
|
453
453
|
# },
|
454
454
|
# client_request_token: "String",
|
455
|
+
# launch_template: {
|
456
|
+
# name: "String",
|
457
|
+
# version: "String",
|
458
|
+
# id: "String",
|
459
|
+
# },
|
455
460
|
# version: "String",
|
456
461
|
# release_version: "String",
|
457
462
|
# }
|
@@ -471,33 +476,73 @@ module Aws::EKS
|
|
471
476
|
#
|
472
477
|
# @!attribute [rw] disk_size
|
473
478
|
# The root device disk size (in GiB) for your node group instances.
|
474
|
-
# The default disk size is 20 GiB.
|
479
|
+
# The default disk size is 20 GiB. If you specify `launchTemplate`,
|
480
|
+
# then don't specify `diskSize`, or the node group deployment will
|
481
|
+
# fail. For more information about using launch templates with Amazon
|
482
|
+
# EKS, see [Launch template support][1] in the Amazon EKS User Guide.
|
483
|
+
#
|
484
|
+
#
|
485
|
+
#
|
486
|
+
# [1]: https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html
|
475
487
|
# @return [Integer]
|
476
488
|
#
|
477
489
|
# @!attribute [rw] subnets
|
478
490
|
# The subnets to use for the Auto Scaling group that is created for
|
479
491
|
# your node group. These subnets must have the tag key
|
480
492
|
# `kubernetes.io/cluster/CLUSTER_NAME` with a value of `shared`, where
|
481
|
-
# `CLUSTER_NAME` is replaced with the name of your cluster.
|
493
|
+
# `CLUSTER_NAME` is replaced with the name of your cluster. If you
|
494
|
+
# specify `launchTemplate`, then don't specify [ `SubnetId` ][1] in
|
495
|
+
# your launch template, or the node group deployment will fail. For
|
496
|
+
# more information about using launch templates with Amazon EKS, see
|
497
|
+
# [Launch template support][2] in the Amazon EKS User Guide.
|
498
|
+
#
|
499
|
+
#
|
500
|
+
#
|
501
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateNetworkInterface.html
|
502
|
+
# [2]: https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html
|
482
503
|
# @return [Array<String>]
|
483
504
|
#
|
484
505
|
# @!attribute [rw] instance_types
|
485
|
-
# The instance type to use for your node group.
|
486
|
-
#
|
487
|
-
#
|
488
|
-
#
|
489
|
-
#
|
506
|
+
# The instance type to use for your node group. You can specify a
|
507
|
+
# single instance type for a node group. The default value for
|
508
|
+
# `instanceTypes` is `t3.medium`. If you choose a GPU instance type,
|
509
|
+
# be sure to specify `AL2_x86_64_GPU` with the `amiType` parameter. If
|
510
|
+
# you specify `launchTemplate`, then don't specify `instanceTypes`,
|
511
|
+
# or the node group deployment will fail. For more information about
|
512
|
+
# using launch templates with Amazon EKS, see [Launch template
|
513
|
+
# support][1] in the Amazon EKS User Guide.
|
514
|
+
#
|
515
|
+
#
|
516
|
+
#
|
517
|
+
# [1]: https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html
|
490
518
|
# @return [Array<String>]
|
491
519
|
#
|
492
520
|
# @!attribute [rw] ami_type
|
493
521
|
# The AMI type for your node group. GPU instance types should use the
|
494
522
|
# `AL2_x86_64_GPU` AMI type, which uses the Amazon EKS-optimized Linux
|
495
523
|
# AMI with GPU support. Non-GPU instances should use the `AL2_x86_64`
|
496
|
-
# AMI type, which uses the Amazon EKS-optimized Linux AMI.
|
524
|
+
# AMI type, which uses the Amazon EKS-optimized Linux AMI. If you
|
525
|
+
# specify `launchTemplate`, and your launch template uses a custom
|
526
|
+
# AMI, then don't specify `amiType`, or the node group deployment
|
527
|
+
# will fail. For more information about using launch templates with
|
528
|
+
# Amazon EKS, see [Launch template support][1] in the Amazon EKS User
|
529
|
+
# Guide.
|
530
|
+
#
|
531
|
+
#
|
532
|
+
#
|
533
|
+
# [1]: https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html
|
497
534
|
# @return [String]
|
498
535
|
#
|
499
536
|
# @!attribute [rw] remote_access
|
500
537
|
# The remote access (SSH) configuration to use with your node group.
|
538
|
+
# If you specify `launchTemplate`, then don't specify `remoteAccess`,
|
539
|
+
# or the node group deployment will fail. For more information about
|
540
|
+
# using launch templates with Amazon EKS, see [Launch template
|
541
|
+
# support][1] in the Amazon EKS User Guide.
|
542
|
+
#
|
543
|
+
#
|
544
|
+
#
|
545
|
+
# [1]: https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html
|
501
546
|
# @return [Types::RemoteAccessConfig]
|
502
547
|
#
|
503
548
|
# @!attribute [rw] node_role
|
@@ -508,11 +553,18 @@ module Aws::EKS
|
|
508
553
|
# policies. Before you can launch worker nodes and register them into
|
509
554
|
# a cluster, you must create an IAM role for those worker nodes to use
|
510
555
|
# when they are launched. For more information, see [Amazon EKS Worker
|
511
|
-
# Node IAM Role][1] in the <i> <i>Amazon EKS User Guide</i> </i>.
|
556
|
+
# Node IAM Role][1] in the <i> <i>Amazon EKS User Guide</i> </i>. If
|
557
|
+
# you specify `launchTemplate`, then don't specify [
|
558
|
+
# `IamInstanceProfile` ][2] in your launch template, or the node group
|
559
|
+
# deployment will fail. For more information about using launch
|
560
|
+
# templates with Amazon EKS, see [Launch template support][3] in the
|
561
|
+
# Amazon EKS User Guide.
|
512
562
|
#
|
513
563
|
#
|
514
564
|
#
|
515
565
|
# [1]: https://docs.aws.amazon.com/eks/latest/userguide/worker_node_IAM_role.html
|
566
|
+
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_IamInstanceProfile.html
|
567
|
+
# [3]: https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html
|
516
568
|
# @return [String]
|
517
569
|
#
|
518
570
|
# @!attribute [rw] labels
|
@@ -536,10 +588,26 @@ module Aws::EKS
|
|
536
588
|
# not need to pass this option.
|
537
589
|
# @return [String]
|
538
590
|
#
|
591
|
+
# @!attribute [rw] launch_template
|
592
|
+
# An object representing a node group's launch template
|
593
|
+
# specification. If specified, then do not specify `instanceTypes`,
|
594
|
+
# `diskSize`, or `remoteAccess`. If specified, make sure that the
|
595
|
+
# launch template meets the requirements in
|
596
|
+
# `launchTemplateSpecification`.
|
597
|
+
# @return [Types::LaunchTemplateSpecification]
|
598
|
+
#
|
539
599
|
# @!attribute [rw] version
|
540
600
|
# The Kubernetes version to use for your managed nodes. By default,
|
541
601
|
# the Kubernetes version of the cluster is used, and this is the only
|
542
|
-
# accepted specified value.
|
602
|
+
# accepted specified value. If you specify `launchTemplate`, and your
|
603
|
+
# launch template uses a custom AMI, then don't specify `version`, or
|
604
|
+
# the node group deployment will fail. For more information about
|
605
|
+
# using launch templates with Amazon EKS, see [Launch template
|
606
|
+
# support][1] in the Amazon EKS User Guide.
|
607
|
+
#
|
608
|
+
#
|
609
|
+
#
|
610
|
+
# [1]: https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html
|
543
611
|
# @return [String]
|
544
612
|
#
|
545
613
|
# @!attribute [rw] release_version
|
@@ -547,11 +615,16 @@ module Aws::EKS
|
|
547
615
|
# node group. By default, the latest available AMI version for the
|
548
616
|
# node group's current Kubernetes version is used. For more
|
549
617
|
# information, see [Amazon EKS-Optimized Linux AMI Versions][1] in the
|
550
|
-
# *Amazon EKS User Guide*.
|
618
|
+
# *Amazon EKS User Guide*. If you specify `launchTemplate`, and your
|
619
|
+
# launch template uses a custom AMI, then don't specify
|
620
|
+
# `releaseVersion`, or the node group deployment will fail. For more
|
621
|
+
# information about using launch templates with Amazon EKS, see
|
622
|
+
# [Launch template support][2] in the Amazon EKS User Guide.
|
551
623
|
#
|
552
624
|
#
|
553
625
|
#
|
554
626
|
# [1]: https://docs.aws.amazon.com/eks/latest/userguide/eks-linux-ami-versions.html
|
627
|
+
# [2]: https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html
|
555
628
|
# @return [String]
|
556
629
|
#
|
557
630
|
# @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/CreateNodegroupRequest AWS API Documentation
|
@@ -569,6 +642,7 @@ module Aws::EKS
|
|
569
642
|
:labels,
|
570
643
|
:tags,
|
571
644
|
:client_request_token,
|
645
|
+
:launch_template,
|
572
646
|
:version,
|
573
647
|
:release_version)
|
574
648
|
SENSITIVE = []
|
@@ -1117,6 +1191,14 @@ module Aws::EKS
|
|
1117
1191
|
# version that Amazon EKS created. You may be able to revert to the
|
1118
1192
|
# version that Amazon EKS created to recover.
|
1119
1193
|
#
|
1194
|
+
# * **Ec2SubnetInvalidConfiguration**\: One or more Amazon EC2 subnets
|
1195
|
+
# specified for a node group do not automatically assign public IP
|
1196
|
+
# addresses to instances launched into it. If you want your
|
1197
|
+
# instances to be assigned a public IP address, then you need to
|
1198
|
+
# enable the `auto-assign public IP address` setting for the subnet.
|
1199
|
+
# See [Modifying the public IPv4 addressing attribute for your
|
1200
|
+
# subnet][1] in the Amazon VPC User Guide.
|
1201
|
+
#
|
1120
1202
|
# * **IamInstanceProfileNotFound**\: We couldn't find the IAM
|
1121
1203
|
# instance profile for your managed node group. You may be able to
|
1122
1204
|
# recreate an instance profile with the same settings to recover.
|
@@ -1130,7 +1212,7 @@ module Aws::EKS
|
|
1130
1212
|
#
|
1131
1213
|
# * **NodeCreationFailure**\: Your launched instances are unable to
|
1132
1214
|
# register with your Amazon EKS cluster. Common causes of this
|
1133
|
-
# failure are insufficient [worker node IAM role][
|
1215
|
+
# failure are insufficient [worker node IAM role][2] permissions or
|
1134
1216
|
# lack of outbound internet access for the nodes.
|
1135
1217
|
#
|
1136
1218
|
# * **InstanceLimitExceeded**\: Your AWS account is unable to launch
|
@@ -1149,7 +1231,8 @@ module Aws::EKS
|
|
1149
1231
|
#
|
1150
1232
|
#
|
1151
1233
|
#
|
1152
|
-
# [1]: https://docs.aws.amazon.com/
|
1234
|
+
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-ip-addressing.html#subnet-public-ip
|
1235
|
+
# [2]: https://docs.aws.amazon.com/eks/latest/userguide/worker_node_IAM_role.html
|
1153
1236
|
# @return [String]
|
1154
1237
|
#
|
1155
1238
|
# @!attribute [rw] message
|
@@ -1170,6 +1253,60 @@ module Aws::EKS
|
|
1170
1253
|
include Aws::Structure
|
1171
1254
|
end
|
1172
1255
|
|
1256
|
+
# An object representing a node group launch template specification. The
|
1257
|
+
# launch template cannot include [ `SubnetId` ][1], [
|
1258
|
+
# `IamInstanceProfile` ][2], [ `RequestSpotInstances` ][3], [
|
1259
|
+
# `HibernationOptions` ][4], or [ `TerminateInstances` ][5], or the node
|
1260
|
+
# group deployment or update will fail. For more information about
|
1261
|
+
# launch templates, see [ `CreateLaunchTemplate` ][6] in the Amazon EC2
|
1262
|
+
# API Reference. For more information about using launch templates with
|
1263
|
+
# Amazon EKS, see [Launch template support][7] in the Amazon EKS User
|
1264
|
+
# Guide.
|
1265
|
+
#
|
1266
|
+
# Specify either `name` or `id`, but not both.
|
1267
|
+
#
|
1268
|
+
#
|
1269
|
+
#
|
1270
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateNetworkInterface.html
|
1271
|
+
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_IamInstanceProfile.html
|
1272
|
+
# [3]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotInstances.html
|
1273
|
+
# [4]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_HibernationOptionsRequest.html
|
1274
|
+
# [5]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_TerminateInstances.html
|
1275
|
+
# [6]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateLaunchTemplate.html
|
1276
|
+
# [7]: https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html
|
1277
|
+
#
|
1278
|
+
# @note When making an API call, you may pass LaunchTemplateSpecification
|
1279
|
+
# data as a hash:
|
1280
|
+
#
|
1281
|
+
# {
|
1282
|
+
# name: "String",
|
1283
|
+
# version: "String",
|
1284
|
+
# id: "String",
|
1285
|
+
# }
|
1286
|
+
#
|
1287
|
+
# @!attribute [rw] name
|
1288
|
+
# The name of the launch template.
|
1289
|
+
# @return [String]
|
1290
|
+
#
|
1291
|
+
# @!attribute [rw] version
|
1292
|
+
# The version of the launch template to use. If no version is
|
1293
|
+
# specified, then the template's default version is used.
|
1294
|
+
# @return [String]
|
1295
|
+
#
|
1296
|
+
# @!attribute [rw] id
|
1297
|
+
# The ID of the launch template.
|
1298
|
+
# @return [String]
|
1299
|
+
#
|
1300
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/LaunchTemplateSpecification AWS API Documentation
|
1301
|
+
#
|
1302
|
+
class LaunchTemplateSpecification < Struct.new(
|
1303
|
+
:name,
|
1304
|
+
:version,
|
1305
|
+
:id)
|
1306
|
+
SENSITIVE = []
|
1307
|
+
include Aws::Structure
|
1308
|
+
end
|
1309
|
+
|
1173
1310
|
# @note When making an API call, you may pass ListClustersRequest
|
1174
1311
|
# data as a hash:
|
1175
1312
|
#
|
@@ -1541,13 +1678,11 @@ module Aws::EKS
|
|
1541
1678
|
# @return [String]
|
1542
1679
|
#
|
1543
1680
|
# @!attribute [rw] release_version
|
1544
|
-
#
|
1545
|
-
#
|
1546
|
-
#
|
1547
|
-
#
|
1548
|
-
#
|
1549
|
-
#
|
1550
|
-
# [1]: https://docs.aws.amazon.com/eks/latest/userguide/eks-linux-ami-versions.html
|
1681
|
+
# If the node group was deployed using a launch template with a custom
|
1682
|
+
# AMI, then this is the AMI ID that was specified in the launch
|
1683
|
+
# template. For node groups that weren't deployed using a launch
|
1684
|
+
# template, this is the version of the Amazon EKS-optimized AMI that
|
1685
|
+
# the node group was deployed with.
|
1551
1686
|
# @return [String]
|
1552
1687
|
#
|
1553
1688
|
# @!attribute [rw] created_at
|
@@ -1570,42 +1705,36 @@ module Aws::EKS
|
|
1570
1705
|
# @return [Types::NodegroupScalingConfig]
|
1571
1706
|
#
|
1572
1707
|
# @!attribute [rw] instance_types
|
1573
|
-
#
|
1708
|
+
# If the node group wasn't deployed with a launch template, then this
|
1709
|
+
# is the instance type that is associated with the node group. If the
|
1710
|
+
# node group was deployed with a launch template, then `instanceTypes`
|
1711
|
+
# is `null`.
|
1574
1712
|
# @return [Array<String>]
|
1575
1713
|
#
|
1576
1714
|
# @!attribute [rw] subnets
|
1577
|
-
# The subnets
|
1578
|
-
# with your node group.
|
1579
|
-
# `kubernetes.io/cluster/CLUSTER_NAME`, where `CLUSTER_NAME` is
|
1580
|
-
# replaced with the name of your cluster.
|
1715
|
+
# The subnets that were specified for the Auto Scaling group that is
|
1716
|
+
# associated with your node group.
|
1581
1717
|
# @return [Array<String>]
|
1582
1718
|
#
|
1583
1719
|
# @!attribute [rw] remote_access
|
1584
|
-
#
|
1585
|
-
# node
|
1720
|
+
# If the node group wasn't deployed with a launch template, then this
|
1721
|
+
# is the remote access configuration that is associated with the node
|
1722
|
+
# group. If the node group was deployed with a launch template, then
|
1723
|
+
# `remoteAccess` is `null`.
|
1586
1724
|
# @return [Types::RemoteAccessConfig]
|
1587
1725
|
#
|
1588
1726
|
# @!attribute [rw] ami_type
|
1589
|
-
#
|
1590
|
-
#
|
1591
|
-
#
|
1592
|
-
#
|
1593
|
-
# Linux AMI.
|
1727
|
+
# If the node group was deployed using a launch template with a custom
|
1728
|
+
# AMI, then this is `CUSTOM`. For node groups that weren't deployed
|
1729
|
+
# using a launch template, this is the AMI type that was specified in
|
1730
|
+
# the node group configuration.
|
1594
1731
|
# @return [String]
|
1595
1732
|
#
|
1596
1733
|
# @!attribute [rw] node_role
|
1597
1734
|
# The IAM role associated with your node group. The Amazon EKS worker
|
1598
1735
|
# node `kubelet` daemon makes calls to AWS APIs on your behalf. Worker
|
1599
1736
|
# nodes receive permissions for these API calls through an IAM
|
1600
|
-
# instance profile and associated policies.
|
1601
|
-
# worker nodes and register them into a cluster, you must create an
|
1602
|
-
# IAM role for those worker nodes to use when they are launched. For
|
1603
|
-
# more information, see [Amazon EKS Worker Node IAM Role][1] in the
|
1604
|
-
# <i> <i>Amazon EKS User Guide</i> </i>.
|
1605
|
-
#
|
1606
|
-
#
|
1607
|
-
#
|
1608
|
-
# [1]: https://docs.aws.amazon.com/eks/latest/userguide/worker_node_IAM_role.html
|
1737
|
+
# instance profile and associated policies.
|
1609
1738
|
# @return [String]
|
1610
1739
|
#
|
1611
1740
|
# @!attribute [rw] labels
|
@@ -1624,8 +1753,9 @@ module Aws::EKS
|
|
1624
1753
|
# @return [Types::NodegroupResources]
|
1625
1754
|
#
|
1626
1755
|
# @!attribute [rw] disk_size
|
1627
|
-
#
|
1628
|
-
#
|
1756
|
+
# If the node group wasn't deployed with a launch template, then this
|
1757
|
+
# is the disk size in the node group configuration. If the node group
|
1758
|
+
# was deployed with a launch template, then `diskSize` is `null`.
|
1629
1759
|
# @return [Integer]
|
1630
1760
|
#
|
1631
1761
|
# @!attribute [rw] health
|
@@ -1633,6 +1763,11 @@ module Aws::EKS
|
|
1633
1763
|
# node group's health, they are listed here.
|
1634
1764
|
# @return [Types::NodegroupHealth]
|
1635
1765
|
#
|
1766
|
+
# @!attribute [rw] launch_template
|
1767
|
+
# If a launch template was used to create the node group, then this is
|
1768
|
+
# the launch template that was used.
|
1769
|
+
# @return [Types::LaunchTemplateSpecification]
|
1770
|
+
#
|
1636
1771
|
# @!attribute [rw] tags
|
1637
1772
|
# The metadata applied to the node group to assist with categorization
|
1638
1773
|
# and organization. Each tag consists of a key and an optional value,
|
@@ -1662,6 +1797,7 @@ module Aws::EKS
|
|
1662
1797
|
:resources,
|
1663
1798
|
:disk_size,
|
1664
1799
|
:health,
|
1800
|
+
:launch_template,
|
1665
1801
|
:tags)
|
1666
1802
|
SENSITIVE = []
|
1667
1803
|
include Aws::Structure
|
@@ -1703,7 +1839,9 @@ module Aws::EKS
|
|
1703
1839
|
end
|
1704
1840
|
|
1705
1841
|
# An object representing the scaling configuration details for the Auto
|
1706
|
-
# Scaling group that is associated with your node group.
|
1842
|
+
# Scaling group that is associated with your node group. If you specify
|
1843
|
+
# a value for any property, then you must specify values for all of the
|
1844
|
+
# properties.
|
1707
1845
|
#
|
1708
1846
|
# @note When making an API call, you may pass NodegroupScalingConfig
|
1709
1847
|
# data as a hash:
|
@@ -2336,6 +2474,11 @@ module Aws::EKS
|
|
2336
2474
|
# nodegroup_name: "String", # required
|
2337
2475
|
# version: "String",
|
2338
2476
|
# release_version: "String",
|
2477
|
+
# launch_template: {
|
2478
|
+
# name: "String",
|
2479
|
+
# version: "String",
|
2480
|
+
# id: "String",
|
2481
|
+
# },
|
2339
2482
|
# force: false,
|
2340
2483
|
# client_request_token: "String",
|
2341
2484
|
# }
|
@@ -2354,7 +2497,15 @@ module Aws::EKS
|
|
2354
2497
|
# then the Kubernetes version of the node group does not change. You
|
2355
2498
|
# can specify the Kubernetes version of the cluster to update the node
|
2356
2499
|
# group to the latest AMI version of the cluster's Kubernetes
|
2357
|
-
# version.
|
2500
|
+
# version. If you specify `launchTemplate`, and your launch template
|
2501
|
+
# uses a custom AMI, then don't specify `version`, or the node group
|
2502
|
+
# update will fail. For more information about using launch templates
|
2503
|
+
# with Amazon EKS, see [Launch template support][1] in the Amazon EKS
|
2504
|
+
# User Guide.
|
2505
|
+
#
|
2506
|
+
#
|
2507
|
+
#
|
2508
|
+
# [1]: https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html
|
2358
2509
|
# @return [String]
|
2359
2510
|
#
|
2360
2511
|
# @!attribute [rw] release_version
|
@@ -2362,13 +2513,25 @@ module Aws::EKS
|
|
2362
2513
|
# update. By default, the latest available AMI version for the node
|
2363
2514
|
# group's Kubernetes version is used. For more information, see
|
2364
2515
|
# [Amazon EKS-Optimized Linux AMI Versions ][1] in the *Amazon EKS
|
2365
|
-
# User Guide*.
|
2516
|
+
# User Guide*. If you specify `launchTemplate`, and your launch
|
2517
|
+
# template uses a custom AMI, then don't specify `releaseVersion`, or
|
2518
|
+
# the node group update will fail. For more information about using
|
2519
|
+
# launch templates with Amazon EKS, see [Launch template support][2]
|
2520
|
+
# in the Amazon EKS User Guide.
|
2366
2521
|
#
|
2367
2522
|
#
|
2368
2523
|
#
|
2369
2524
|
# [1]: https://docs.aws.amazon.com/eks/latest/userguide/eks-linux-ami-versions.html
|
2525
|
+
# [2]: https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html
|
2370
2526
|
# @return [String]
|
2371
2527
|
#
|
2528
|
+
# @!attribute [rw] launch_template
|
2529
|
+
# An object representing a node group's launch template
|
2530
|
+
# specification. You can only update a node group using a launch
|
2531
|
+
# template if the node group was originally deployed with a launch
|
2532
|
+
# template.
|
2533
|
+
# @return [Types::LaunchTemplateSpecification]
|
2534
|
+
#
|
2372
2535
|
# @!attribute [rw] force
|
2373
2536
|
# Force the update if the existing node group's pods are unable to be
|
2374
2537
|
# drained due to a pod disruption budget issue. If an update fails
|
@@ -2392,6 +2555,7 @@ module Aws::EKS
|
|
2392
2555
|
:nodegroup_name,
|
2393
2556
|
:version,
|
2394
2557
|
:release_version,
|
2558
|
+
:launch_template,
|
2395
2559
|
:force,
|
2396
2560
|
:client_request_token)
|
2397
2561
|
SENSITIVE = []
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-eks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.40.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|