Terraform resource: aws eks node group
(Redirected from Aws eks node group)
Jump to navigation
Jump to search
aws_eks_node_group
(terraform.io)
Arguments[edit]
Examples[edit]
taint { key = "dedicated" value = "gpuGroup" effect = "NO_SCHEDULE" }
Official example[edit]
resource "aws_eks_node_group" "example" { cluster_name = aws_eks_cluster.example.name node_group_name = "example" node_role_arn = aws_iam_role.example.arn subnet_ids = aws_subnet.example[*].id scaling_config { desired_size = 1 max_size = 2 min_size = 1 } update_config { max_unavailable = 1 } # Ensure that IAM Role permissions are created before and deleted after EKS Node Group handling. # Otherwise, EKS will not be able to properly delete EC2 Instances and Elastic Network Interfaces. depends_on = [ aws_iam_role_policy_attachment.example-AmazonEKSWorkerNodePolicy, aws_iam_role_policy_attachment.example-AmazonEKS_CNI_Policy, aws_iam_role_policy_attachment.example-AmazonEC2ContainerRegistryReadOnly, ] }
Errors[edit]
Error: error waiting for EKS Node Group
NodeCreationFailure: Instances failed to join the kubernetes cluster
CREATE_FAILED
in AWS CloudFormationError: waiting for EKS Node Group (YourNodeGroup)
Related[edit]
- Terraform EKS module:
eks_managed_node_groups
aws eks create-nodegroup
- Terraform EKS resources: aws_eks_cluster
aws_iam_role_policy_attachment
See also[edit]
- Terraform EKS resources:
aws_eks_cluster, aws_eks_addon, aws_eks_fargate_profile, aws_eks_node_group, aws_eks_identity_provider_config, kubernetes_config_map_v1_data
- Terraform EKS: EKS module, EKS resources, EKS provider, EKS data sources
Advertising: