Difference between revisions of "Terraform resource: aws eks node group"

From wikieduonline
Jump to navigation Jump to search
 
(35 intermediate revisions by 5 users not shown)
Line 1: Line 1:
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/eks_node_group
+
<code>[[aws_eks_node_group]]</code> ([https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/eks_node_group terraform.io])
 +
 
 +
== Arguments ==
 +
* <code>[[cluster_name]]</code>
 +
* <code>[[desired_size]]</code>
 +
* <code>[[taint]]</code> <ref>https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/eks_node_group#taint</ref>
 +
* <code>[[scaling_config]]</code>
 +
 
 +
== Examples ==
 +
  taint {
 +
    key    = "dedicated"
 +
    value  = "gpuGroup"
 +
    [[effect]] = "[[NO_SCHEDULE]]"
 +
  }
 +
 
 +
== Official example ==
 +
{{aws_eks_node_group official example}}
 +
 
 +
== Errors ==
 +
* <code>[[Error: error waiting for EKS Node Group]]</code>
 +
* <code>[[NodeCreationFailure: Instances failed to join the kubernetes cluster]]</code>
 +
* <code>[[CREATE_FAILED]]</code> in [[AWS CloudFormation]]
 +
* <code>[[Error: waiting for EKS Node Group (YourNodeGroup)]]</code>
 +
 
 +
== Related ==
 +
* [[Terraform EKS module]]: <code>[[Terraform: eks managed node groups|eks_managed_node_groups]]</code>
 +
* <code>[[aws eks create-nodegroup]]</code>
 +
* [[Terraform EKS resources: aws_eks_cluster]]
 +
* <code>[[aws_iam_role_policy_attachment]]</code>
  
 
== See also ==
 
== See also ==
* {{EKS}}
+
* {{tf eks resources}}
* {{Terraform}}
+
* {{tf eks}}
  
 
[[Category:Terraform]]
 
[[Category:Terraform]]

Latest revision as of 02:27, 17 June 2024

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]

Related[edit]

See also[edit]

  • https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/eks_node_group#taint
  • Advertising: