Complete the code to specify a managed node group in an EKS cluster.
eks_cluster.add_nodegroup('[1]')
The managed node group is created and managed by AWS for EKS clusters.
Complete the code to create a self-managed node group using EC2 instances.
ec2.create_instances({ 'InstanceType': '[1]', 'MinCount': 1, 'MaxCount': 3 })EC2 instance types like t2.micro are used for self-managed node groups.
Fix the error in the Fargate profile creation code by completing the missing field.
eks.create_fargate_profile(clusterName='myCluster', fargateProfileName='[1]', podExecutionRoleArn=role_arn, selectors=[{'namespace': 'default'}])
The Fargate profile name should be a descriptive string like defaultProfile.
Fill both blanks to define a managed node group with a specific instance type and desired capacity.
eks_cluster.add_nodegroup(instance_types=['[1]'], desired_capacity=[2])
The instance type t3.medium is valid and the desired capacity 3 sets the number of nodes.
Fill all three blanks to create a Fargate profile with a namespace selector and a profile name.
eks.create_fargate_profile(clusterName='myCluster', fargateProfileName='[1]', podExecutionRoleArn=role_arn, selectors=[{'namespace': '[2]'}], subnets=['[3]'])
The profile name fargateProfile1, namespace default, and subnet ID subnet-123abc are valid values for creating a Fargate profile.