Commit Graph

62 Commits

Author SHA1 Message Date
Scott Crooks
97c79643fb Adding minimum communication security group rule for Kubelet (#318)
* Adding minimum communication

The docs at https://docs.aws.amazon.com/eks/latest/userguide/sec-group-reqs.html specify that port 10250 is needed at a minimum for communication between the control plane, and the worker nodes. If you specify a `worker_sg_ingress_from_port` as something like `30000`, then this minimum communication is never established.

* Adding description to CHANGELOG.md

* Adjusting the naming of the resources

* Ensuring creation is conditional on the value of `worker_sg_ingress_from_port`

* Mistake, should be greater than port 10250
2019-03-25 11:58:55 +01:00
Matheus Fernandes
fd1f149432 Add support for placement groups (#306) 2019-03-20 13:38:41 +01:00
Nicolas Szalay
bef3c36a40 Allow additional policies to be attached to worker nodes (#308)
Example usage : we want our nodes to be able to update route53 record
for using external-dns.

```hcl
data "template_file" "eks_worker_additional_route53_policy" {
  template = "${file("iam/route53_policy.json.tpl")}"
}

resource "aws_iam_policy" "eks_worker_additional_route53_policy" {
  description = "Allow nodes to update our zone"
  name = "${module.k8s_cluster01_label.id}-additional-route53-policy"
  policy = "${data.template_file.eks_worker_additional_route53_policy.rendered}"
}
```

which defines the policy; then in the EKS module :
```hcl
module "cluster01" {
  cluster_name = "cluster01"
<snip>
  workers_addtional_policies = [
    "${aws_iam_policy.eks_worker_additional_route53_policy.arn}"
  ]
  workers_addtional_policies_count = 1
<snip>
```
2019-03-20 13:30:16 +01:00
Taylor Barrella
efaa3d8d60 Add cluster name and ephemeral storage tags for cluster autoscaler (#299) 2019-03-20 13:19:38 +01:00
Sung Kang
28fd3c5530 add ec2:DescribeLaunchTemplateVersions action to worker node iam role 2019-03-07 07:39:44 -06:00
Anders Åslund
3728299161 Add optional iam_path 2019-03-05 12:31:35 +01:00
Dylan Hellems
a1a1644f80 Add optional permissions_boundary (#265)
* Add optional permissions_boundary

* Update CHANGELOG
2019-02-07 16:38:16 +01:00
Stefan Sedich
35747d707a Worker group tags (#252)
* Allow per worker group ASG tags to be set

* Format

* Set correct defaults

* Implement hack that will use the first item in the list if a matching item does not exist for the worker group

* Use a map that will map from the worker group name to the tags to get around the issue where list indexing does not work with a list of lists

* Format

* Cleanup

* Fix sample

* README
2019-01-31 15:38:53 +01:00
Stefano Zaninetta
39f30e9d58 Add enabled_metrics attributes to autoscaling_group (#256)
* make enabled_metrics property configurable

* update changelog
2019-01-30 11:50:41 +01:00
Stefan Sedich
8473c69f25 Enable create_before_destroy for ASG and enable force_delete to be configured (#250)
* Allow force_delete to be passed to the ASG, and set ASG so that it will create before deletion.

* Set default

* Adding CHANGELOG
2019-01-24 10:48:26 +01:00
skang0601
f3ab7c67da Allows worker groups to be created using AWS Launch Templates (#222) 2019-01-10 16:19:19 +01:00
Marcello Romani
646831423a Remove invalid action from policy (#239) 2019-01-10 16:02:37 +01:00
rmakram-ims
9d6740e116 Add ability to pass computed values to cluster_security_group_id and worker_security_group_id (#186)
* Add ability to pass computer values to cluster_security_group_id and worker_security_group_id

* Fix contributer name in CHANGELOG.md

* Format variables.tf file
2018-12-13 17:00:48 +01:00
mark kelly
cddac92757 Destroying cluster causes some issues with removing policies (#196)
* Destroying cluster causes some issues with removing policies

use the force detach

https://www.terraform.io/docs/providers/aws/r/iam_role.html#force_detach_policies

* Destroying cluster causes some issues with removing policies

* formatting

* Destroying cluster causes some issues with removing policies

* CHANGELOG
2018-11-23 14:33:02 +01:00
Zihao Yu
d580369779 Add target_group_arns to worker ASG (#167)
* add target_group_arns to worker default

* add to changelog
2018-10-18 14:13:31 +02:00
Bruno Meneguello
d31bf4f83c Add suspended_processes attributes to autoscaling_group (#159) 2018-10-09 14:38:15 +02:00
Max Williams
ba43786412 Revert "Add suspended_processes attributes to autoscaling_group (#153)" (#157)
This reverts commit c8cc60f46d.
2018-10-09 11:24:42 +02:00
Bruno Meneguello
c8cc60f46d Add suspended_processes attributes to autoscaling_group (#153) 2018-10-09 10:52:12 +02:00
monsterxx03
6de0825644 Add option to change worker placement_tenancy. (#142)
* Add option to change worker placement_tenancy.

* update CHANGELOG.md
2018-10-09 10:46:58 +02:00
Max Williams
5d9d4fb8b8 Allowing 443 to nodes from EKS service (#148) 2018-10-09 10:38:17 +02:00
Max Williams
77a7690b1c Fixing travis config (#151) 2018-10-04 14:47:54 +02:00
Max Williams
3b546a9c1b Fix for ERROR: 'aws_iam_instance_profile.workers' not found (#141) 2018-09-25 22:00:14 +02:00
Max Williams
fdd44c8f38 Cosmetic fixes (#131)
* changing syntax when referring to map keys without lookup function

* Replacing map function with actual maps for easier reading

* replacing map function in example

* replacing map function in workers.tf and readme/main

* update changelog
2018-09-25 12:30:56 +02:00
Andrew Lavery
b623bc234a allow specifying an IAM role for each worker group (#137)
* allow creating an IAM role for each worker group

* moved change from 'changed' to 'added'

* create multiple roles not just profiles

* fix config_map_aws_auth generation

* don't duplicate worker-role templating

* specify ARNs for worker groups individually

todo fix aws_auth configmap

* fixed AWS auth

* fix aws_iam_instance_profile.workers name
fix iam_instance_profile fallback

* fix outputs

* fix iam_instance_profile calculation

* hopefully fix aws auth configmap generation

* manually fill out remainder of arn

* remove depends_on in worker_role_arns template file

this was causing resources to be recreated every time

* fmt

* fix typo, move iam_role_id default to defaults map
2018-09-24 16:08:35 +02:00
Samuel Fredrickson
b6f6a82352 Add worker group option to protect from scale in. (#135)
See [#134](https://github.com/terraform-aws-modules/terraform-aws-eks/issues/134)
2018-09-18 11:24:52 +02:00
Touch Ungboriboonpisal
0448350468 Fix default worker autoscaling_enabled not working (#130) 2018-09-12 11:18:00 +02:00
Touch Ungboriboonpisal
50404a785b fix default worker subnets not working (#122) 2018-09-11 18:03:23 +02:00
mr-joshua
0180644770 Allow additional security groups to be included in worker launch configurations (#112)
* Allow additional security groups to be included for all workers and each worker group #47

* update changelog with reference to issue and be more descriptive

* Update CHANGELOG.md

* address pr comments and rebase

* rebase

* fix bug introduced by PR#115 that sets the AMI id to the default value of "" always

* rebase

* align default value of additional_security_group_ids to be pulled from local var workers_group_defaults_defaults
2018-09-04 17:09:24 +02:00
Max Williams
da6ff7d151 Fix for "" AMI ID error in PR 115 (#117)
* Fix for "" AMI ID

* update changelog
2018-09-04 16:31:23 +02:00
Touch Ungboriboonpisal
5531776e2c Allow a custom AMI to be specified as a default (#115)
* fallback to the default workers group ami_id before the official one

* add CHANGELOG
2018-09-04 12:31:16 +02:00
Daniel Piddock
23647950ad Easier overriding of workers_group_defaults (#107) 2018-08-30 11:21:46 +02:00
Max Williams
949c4428dc reverting calculation of count for worker groups 2018-08-27 17:18:14 +02:00
Max Williams
28f7e9dd41 initial commit 2018-08-27 17:17:32 +02:00
Kevin Pankonen
0c4f27d38a add option to disable enhanced monitoring on workers 2018-08-13 07:39:36 -07:00
Dongseob Park
c3b1822dfb add spot_price option to aws_launch_configuration 2018-08-07 01:59:11 +00:00
Andrew Lavery
5b1cf24931 add var 'worker_group_count' to replace 'length()' calls 2018-07-19 10:38:15 -07:00
Bill Wang
5e941e1c1e Merge branch '#57' of https://github.com/ozbillwang/terraform-aws-eks into #57 2018-07-13 12:31:08 +00:00
Bill Wang
0bc357af26 #57 - manage root volume size and type 2018-07-13 12:30:53 +00:00
Bill Wang
9a6c4be21b rollback the change - can't update launch configuration 2018-07-13 16:35:25 +10:00
Bill Wang
fb69e4c034 can't update launch configuration 2018-07-13 16:13:12 +10:00
Bill Wang
f6da03ab79 merge upstream with release v1.3.0 2018-07-13 15:05:19 +10:00
Bryan Shelton
399f1f213e Optionally define worker subnets 2018-07-11 14:20:14 -07:00
Max Williams
11cd282ec1 reverting some changes after feedback 2018-07-10 10:21:28 +02:00
Bill Wang
2173bbcfa9 #57 - manage root volume size and type 2018-07-09 23:59:34 +00:00
Max Williams
f881745f00 formatting and minor cosmetic fixes 2018-07-09 12:19:16 +02:00
Bill Wang
541f6351fe #34 - asg size changes should be ignored - desired_capacity 2018-06-26 02:36:54 +00:00
Ilya Sotkov
02dc6849fb Fix limiting behavior of workers_ingress_cluster security group
* New variable `worker_sg_ingress_from_port` allows to change the minimum port number from which pods will accept communication
* See https://github.com/terraform-aws-modules/terraform-aws-eks/issues/27
2018-06-23 19:41:41 +03:00
Brandon J. O'Connor
ee66e1df65 Merge pull request #17 from dreamteam-gg/allow_adding_ssh_keys_to_workers
Allow adding SSH keys to worker ASGs
2018-06-15 13:26:12 -07:00
Igor Borodin
6fad724abd Adding configuration for public ip association, moving to name_prefix in worker launch config 2018-06-15 16:28:30 +03:00
Igor Borodin
b075388ebe Allow adding SSH keys to worker ASGs 2018-06-14 14:51:37 +03:00