-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Description
Description
Sub module node_groups should be also allow to standalone usage similar to fargate submodule.
Example of fargate standalone execution:
terraform-aws-eks/examples/fargate/main.tf
Lines 114 to 174 in 56e93d7
| module "fargate_profile_existing_cluster" { | |
| source = "../../modules/fargate" | |
| cluster_name = module.eks.cluster_id | |
| subnets = [module.vpc.private_subnets[0], module.vpc.private_subnets[2]] | |
| fargate_profiles = { | |
| profile1 = { | |
| name = "profile1" | |
| selectors = [ | |
| { | |
| namespace = "kube-system" | |
| labels = { | |
| k8s-app = "kube-dns" | |
| } | |
| }, | |
| { | |
| namespace = "profile" | |
| labels = { | |
| WorkerType = "fargate" | |
| } | |
| } | |
| ] | |
| tags = { | |
| Owner = "profile1" | |
| submodule = "true" | |
| } | |
| } | |
| profile2 = { | |
| name = "profile2" | |
| selectors = [ | |
| { | |
| namespace = "default" | |
| labels = { | |
| Fargate = "profile2" | |
| } | |
| } | |
| ] | |
| # Using specific subnets instead of the ones configured in EKS (`subnets` and `fargate_subnets`) | |
| subnets = [module.vpc.private_subnets[0]] | |
| tags = { | |
| Owner = "profile2" | |
| submodule = "true" | |
| } | |
| timeouts = { | |
| delete = "20m" | |
| } | |
| } | |
| } | |
| tags = { | |
| Example = local.name | |
| GithubRepo = "terraform-aws-eks" | |
| GithubOrg = "terraform-aws-modules" | |
| } | |
| } |
tsurankov and chris-vest
Metadata
Metadata
Assignees
Labels
No labels