Editing Module.eks managed node group
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | {{lc}} | |
+ | <code>module.eks_managed_node_group</code> | ||
+ | |||
+ | * [[Submodule]]: https://registry.terraform.io/modules/terraform-aws-modules/eks/aws/latest/submodules/eks-managed-node-group | ||
+ | * Example: https://registry.terraform.io/modules/terraform-aws-modules/eks/aws/latest/examples/eks_managed_node_group | ||
+ | |||
+ | <code>[[module.]]eks_managed_node_group</code> | ||
+ | |||
+ | [[instance_types]] | ||
+ | |||
+ | == Oficcial example == | ||
+ | <pre> | ||
+ | module "eks_managed_node_group" { | ||
+ | source = "terraform-aws-modules/eks/aws//modules/eks-managed-node-group" | ||
+ | |||
+ | name = "separate-eks-mng" | ||
+ | cluster_name = "my-cluster" | ||
+ | cluster_version = "1.24" | ||
+ | |||
+ | subnet_ids = ["subnet-abcde012", "subnet-bcde012a", "subnet-fghi345a"] | ||
+ | |||
+ | // The following variables are necessary if you decide to use the module outside of the parent EKS module context. | ||
+ | // Without it, the security groups of the nodes are empty and thus won't join the cluster. | ||
+ | cluster_primary_security_group_id = module.eks.cluster_primary_security_group_id | ||
+ | vpc_security_group_ids = [module.eks.node_security_group_id] | ||
+ | |||
+ | // Note: `disk_size`, and `remote_access` can only be set when using the EKS managed node group default launch template | ||
+ | // This module defaults to providing a custom launch template to allow for custom security groups, tag propagation, etc. | ||
+ | // use_custom_launch_template = false | ||
+ | // disk_size = 50 | ||
+ | // | ||
+ | // # Remote access cannot be specified with a launch template | ||
+ | // remote_access = { | ||
+ | // ec2_ssh_key = module.key_pair.key_pair_name | ||
+ | // source_security_group_ids = [aws_security_group.remote_access.id] | ||
+ | // } | ||
+ | |||
+ | min_size = 1 | ||
+ | max_size = 10 | ||
+ | desired_size = 1 | ||
+ | |||
+ | instance_types = ["t3.large"] | ||
+ | capacity_type = "SPOT" | ||
+ | |||
+ | labels = { | ||
+ | Environment = "test" | ||
+ | GithubRepo = "terraform-aws-eks" | ||
+ | GithubOrg = "terraform-aws-modules" | ||
+ | } | ||
+ | </pre> | ||
+ | |||
+ | [[taints]] = { | ||
+ | dedicated = { | ||
+ | key = "dedicated" | ||
+ | value = "gpuGroup" | ||
+ | effect = "NO_SCHEDULE" | ||
+ | } | ||
+ | } | ||
+ | |||
+ | tags = { | ||
+ | Environment = "dev" | ||
+ | Terraform = "true" | ||
+ | } | ||
+ | } | ||
+ | |||
+ | == Related == | ||
+ | [[eks_managed_node_groups]] | ||
+ | [[Terraform submodule]] | ||
+ | |||
+ | == See also == | ||
+ | * {{Terraform EKS module}} | ||
+ | |||
+ | [[Category:Terraform]] |
Advertising: