Commit Graph

50 Commits

Author SHA1 Message Date
William Morgan
cf3dcc5c58 Support for EKS Managed Node Groups (#602)
* Finished first cut of managed node groups

* Updated formatting and extra fields.

* Updating Changelog and README

* Fixing formatting

* Fixing docs.

* Updating required Version

* Updating changelog

* Adding example for managed node groups

* Managed IAM Roles for Nodegroups now have correct policies. Tags can now be added to node groups.

* Fixing bug where people could set source_security_group_ids without setting ssh key causing a race condition within the aws provider.

* Adding lifecycle create_before_destroy

* Adding random pet names for create_before_destroy

* Updating per comments.

* Updating required versions of terraform

* Updating per comments.

* Updating vars

* Updating minimum version for terraform

* Change worker_groups_managed_node_groups to node_groups

* Using for_each on the random_pet

* Adding changes recommended by @eytanhanig

* Update node_groups.tf
2019-12-04 18:30:36 +01:00
Stijn De Haes
9363662574 Use kubernetes provider to manage aws auth (#355)
This commit changes the way aws auth is managed. Before a local file
was used the generate the template and a null resource to apply it. This
is now switched to the terraform kubernetes provider.
2019-11-28 10:25:13 +01:00
Arnaud Venturi
c90b33780c Increase minimum terraform version to include yamlencode (#570)
* Increase minimum terraform version to include yamlencode

https://github.com/hashicorp/terraform/blob/master/CHANGELOG.md#0122-june-12-2019

* Update Changelog
2019-10-25 11:14:01 +02:00
Max Williams
bf8c324761 New Release v6.0.0 (#514)
* New Release v6.0.0

* bump required AWS provider version and regeneration of variables/outputs
2019-09-18 10:01:38 +02:00
Ali Kahoot
13ee0914b9 add doc for iam permission (#511)
* add doc for minimum iam permission

Signed-off-by: kahootali <kahoot.ali@gmail.com>

* refer iam doc in readme

Signed-off-by: kahootali <kahoot.ali@gmail.com>

* remove iam permissions from examples

* set alphabetically the iam permissons
2019-09-17 15:10:13 +02:00
Sergiu Plotnicu
461cf5482e Support for Mixed Instances ASG in worker_groups_launch_template variable (#468)
* Create ASG tags via for - utility from terraform 12

* Updated support for mixed ASG in worker_groups_launch_template variable

* Updated launch_template example to include spot and mixed ASG with worker_groups_launch_template variable

* Removed old config

* Removed workers_launch_template_mixed.tf file, added support for mixed/spot in workers_launch_template variable

* Updated examples/spot_instances/main.tf with Mixed Spot and ondemand instances

* Removed launch_template_mixed from relevant files

* Updated README.md file

* Removed workers_launch_template.tf.bkp

* Fixed case with null on_demand_allocation_strategy and Spot allocation

* Fixed workers_launch_template.tf, covered spot instances via Launch Template
2019-09-13 16:50:59 +02:00
刘相轩
8580b67813 Support map users and roles to multiple groups (#424)
* Support map users and roles to multiple groups

* Simplify code by rename `user_arn` to `userarn`, `role_arn` to `rolearn`

* Next version should be 6.x because PR this is a breaking change.

* Update example variables.tf

* Change indent to 2

* Fix map-aws-auth.yaml maybe invalid yaml.
2019-08-19 16:15:01 +02:00
Karoline Pauls
b8b3b5820e basic example: correct elb tags (#458)
Added the "kubernetes.io/role/elb" tag to the public subnets in the
basic example.

Per documentation, ELB tag values are supposed to be "1". ELB tag values
being "true" are known not to work with aws-alb-ingress-controller.

https://docs.aws.amazon.com/eks/latest/userguide/load-balancing.html
https://docs.aws.amazon.com/eks/latest/userguide/alb-ingress.html
2019-08-07 09:43:09 +02:00
Max Williams
6d0025ea03 move/merge docs (#453) 2019-07-30 16:08:56 +02:00
Karoline Pauls
e876ce20b9 VPC: enable_dns_hostnames = true in examples (#446) 2019-07-30 15:05:08 +02:00
刘相轩
4b1df0c0af Update default override instance types to work with Cluster Autoscaler (#425) 2019-07-08 11:18:13 +02:00
Gauthier
8260f1095e EKS 1.13 out (#400)
* Update to EKS 1.13

* Revert "Pin terraform version < 0.12"

This reverts commit 4c71b12218378914c276715a85a61ac5aece9fa0.

* Update providers in examples and format
2019-06-20 12:18:12 +02:00
Max Williams
9c3d222bd5 New release: now supporting TF 0.12!! (#399)
* New release: now supporting TF 0.12

* updating precommit hook version
2019-06-19 17:27:25 +02:00
刘相轩
da2c78b8ba Upgrade to terraform 0.12 (#394)
* run terraform upgrade tool

* fix post upgrade TODOs

* use strict typing for variables

* upgrade examples, point them at VPC module tf 0.12 PR

* remove unnecessary `coalesce()` calls

coalesce(lookup(map, key, ""), default) -> lookup(map, key, default)

* Fix autoscaling_enabled broken (#1)

* always set a value for tags, fix coalescelist calls

* always set a value for these tags

* fix tag value

* fix tag value

* default element available

* added default value

* added a general default

without this default - TF is throwing an error when running a destroy

* Fix CI

* Change vpc module back to `terraform-aws-modules/vpc/aws` in example

* Update CHANGELOG.md

* Change type of variable `cluster_log_retention_in_days` to number

* Remove `xx_count` variables

* Actual lists instead of strings with commas

* Remove `xx_count` variable from docs

* Replace element with list indexing

* Change variable `worker_group_tags` to a attribute of worker_group

* Fix workers_launch_template_mixed tags

* Change override_instance_type_x variables to list.

* Update CHANGELOG.md
2019-06-19 09:57:51 +02:00
Feifei Jia
8c61f58a01 add additional policies for control plane log setup. (#377)
* add additional policies for control plane log setup.

* Fix typos (#379)

* Fix IAM instance profile toggle for mixed launch templates (#381)

* add additional policies for control plane log setup.

* add two actions.
2019-05-29 16:06:24 +02:00
Max Williams
d6fa9f48ff Better examples, PR template changes, general tidy up (#375)
* adding 3 examples

* removing old example

* updating PR template

* fix this typo

* update after renaming default example

* add missing launch_template_mixed stuff to aws_auth

* fix 2 examples with public subnets

* update changelog for new minor release
2019-05-08 15:11:05 +02:00
Max Williams
2439c25771 Cleaning up and deduplicating launch template related code (#370)
* cleaning up launch template code

* update changelog

* Remove variable worker_group_launch_template_tags

* misc fixes

* fixing and simplifying example
2019-05-07 15:41:44 +02:00
Max Williams
1a26f353d8 Release v3.0.0 (#347)
Also fixing AWS provider in examples
2019-04-15 17:39:37 +02:00
chenrui
46ec636b36 Update eks module deps (#334) 2019-04-03 13:10:25 +02:00
skang0601
a23c43caf2 Updating example IAM docs to include Launch Template actions (#268) 2019-02-07 16:37:18 +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
skang0601
f3ab7c67da Allows worker groups to be created using AWS Launch Templates (#222) 2019-01-10 16:19:19 +01:00
Diego Rodriguez
1822a677dc Supply count for map_accounts, map_roles and map_users (#205)
* Added map_roles_count and user_roles_count (#1)

* Update readme for new vars

* updated tests to include count

* fix syntax error

* updated changelog

* Added map_accounts_count variable for consistency

* Fix counts in example and user latest terraform-docs to generate readme
2018-12-13 15:50:46 +01:00
Rui Chen
f4a287dced Better version control 2018-10-12 00:10:15 -04:00
Max Williams
77a7690b1c Fixing travis config (#151) 2018-10-04 14:47:54 +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
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
Daniel Piddock
2e2dd0e215 Remove public subnets from eks module call (#106) 2018-08-27 15:42:17 +02:00
Andrew Lavery
09d9817a1d worker nodes on private subnet in example
after all that's the entire reason for this PR in the first place
2018-07-21 00:26:59 -07:00
Andrew Lavery
cf8e8779be add 'worker_group_count' to readme and example 2018-07-19 10:56:21 -07:00
Max Williams
e4263868e8 terraform fmt fix 2018-07-11 10:43:09 +02:00
Max Williams
bb9e241021 finishing doc, tests etc 2018-07-11 10:22:32 +02:00
brandoconnor
abe72915f3 releasing 1.1.0 2018-06-25 01:24:58 -07:00
Brandon J. O'Connor
e860300edf Merge pull request #26 from dreamteam-gg/kubeproxy_restart_removal
Removing kube-proxy restart according to the new worker guide
2018-06-23 01:01:17 -07:00
Leszek Charkiewicz
37f0752f9e Fix typo in module execution IAM policy
Fixed missing service type in the IAM policy.
2018-06-22 15:07:50 +02:00
Igor Borodin
77400e8949 Removing kube-proxy restart according to the new worker guide, bumping EKS provider version in example 2018-06-21 12:54:15 +03:00
brandoconnor
6bda7ee97d workers can now be specified as multiple asgs of different flavors. BYO security group now possible for both workers and cluster 2018-06-11 03:34:13 -07:00
brandoconnor
0ec5df4cae ebs optimization of instances now possible 2018-06-08 04:00:12 -07:00
brandoconnor
99dac053b7 kubectl now configurable by the module 2018-06-08 02:54:18 -07:00
brandoconnor
3823127b07 byo userdata now enabled. refactor some parts into dedicated templates for maintainability 2018-06-08 02:16:26 -07:00
brandoconnor
46e5bf6cda added the ability to optionally specify worker_image_id 2018-06-08 00:48:17 -07:00
brandoconnor
67d2946b58 readme now has instructions for basic kubectl operation testing. locals map used to aid in userdata 2018-06-07 02:52:43 -07:00
brandoconnor
9ed27801be trying once more on CI 2018-06-07 02:03:57 -07:00
brandoconnor
d5086ff87d giving a subnet to the mock command for validation in CI 2018-06-07 00:53:00 -07:00
brandoconnor
dfe77afc7f added config files to local test space on converge 2018-06-07 00:25:15 -07:00
brandoconnor
22b9706705 iam policy updated 2018-06-06 23:23:32 -07:00
brandoconnor
6dab721b2e adding tags I didnt realize were necessary 2018-06-06 22:17:12 -07:00
brandoconnor
283e9b203c cleaning up before initial release 2018-06-06 21:58:12 -07:00
brandoconnor
309e7f7083 testing initial work now 2018-06-06 20:55:44 -07:00
brandoconnor
07aba1b766 first commit 2018-06-06 20:55:23 -07:00