Commit Graph

316 Commits

Author SHA1 Message Date
Thierno IB. BARRY
d6d0975452 add initial lifecycle hooks for autosacling groups (#466) 2019-08-20 15:45:06 +02:00
Thierno IB. BARRY
d8ed7d0b66 add option to recreate ASG when LT or LC changes (#465) 2019-08-20 15:43:18 +02:00
Nick Fisher
5636447de6 Wrapping kubelet_extra_args in double quotes (#473) (#474) 2019-08-20 15:41:16 +02:00
Daniel Piddock
655a75fbd0 Update cluster_security_group_id doc (#472)
You cannot filter the public cluster endpoint.
2019-08-19 16:34:02 +02:00
Scott Crooks
b335819f0e Adding 'capacity-optimized' docs to locals (#469) 2019-08-19 16:22:11 +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
Tarek Abdel Sater
fb71eaf6ff Allow launch template spot instances without mixed policy (#463)
* Add option to enable spot without MixedInstancePolicy

* Update docs
2019-08-06 18:18:06 +02:00
Petri Kero
c9986f5e01 Fix errors from usage of coalesce (#402) (#459)
* Replace coalesce() usage for locals with ternary operator. Fixes terraform errors during destroy when only empty strings were passed to coalesce().

* Update changelog.

* Fix formatting.
2019-08-06 18:05:54 +02:00
Lucas Giacomazzi
ebac6c92bf Adding tags for Log groups and workers IAM role (#448)
* Adding tags for Cloudwatch log group

* Adding tags for workers IAM role

* Update CHANGELOG.md

* Removing change in CHANGELOG.md

* Fixing formatting issues
2019-08-06 18:01:01 +02:00
Daniel Piddock
ac62edc872 Add required_providers to set minimum versions (#464) 2019-08-06 17:46:48 +02:00
Karoline Pauls
630a0cc3fb Fix fmt for v0.12.6 (#460) 2019-08-06 17:26:05 +02:00
Alexandr Grab
c5c3d385b7 Additional tag for autoscaling enabled (#454)
* Additional tag for autoscaling_enabled

* Added changelog
2019-08-01 16:26:41 +02:00
Max Williams
6d0025ea03 move/merge docs (#453) 2019-07-30 16:08:56 +02:00
Max Williams
6ea3582940 new release (#452) 2019-07-30 16:02:21 +02:00
Sergiu Plotnicu
52286a0065 Support for tagging EBS Volumes created by "workers_launch_template*.tf" (#450)
* Added support to tag EBS volumes used by EKS nodes created by workers_launch_template*.tf

* Did terraform fmt on workers_launch_template*.tf
2019-07-30 15:17:49 +02:00
Karoline Pauls
e876ce20b9 VPC: enable_dns_hostnames = true in examples (#446) 2019-07-30 15:05:08 +02:00
James
f755300550 chore: fix README.md worker_groups tags syntax (#405) 2019-07-23 17:35:36 +02:00
Onur Sam
a95ad00b0a added market options to request spot instances without pools (#409)
* added market options to request spot instances without specifying pools in a launch template

* formatted

* simplified implementation

* formatted

* Update CHANGELOG.md
2019-07-23 17:33:16 +02:00
mandarin801
ec64a74019 Update README.md (#436)
fix Error
2019-07-17 12:56:54 +02:00
Alexander Shinkarenko
34b74518e8 Configure 'cpu_credits' for workers (#253) (#426)
* Configure 'cpu_credits' for workers (#253)

* Updated CHANGELOG(#253)

* Moved default to settings for launch templates(#253)
2019-07-12 14:44:54 +02:00
刘相轩
4b1df0c0af Update default override instance types to work with Cluster Autoscaler (#425) 2019-07-08 11:18:13 +02:00
Laurent Godet
65901984e5 Fix suspended_processes to be a type list (#423) 2019-07-05 17:26:30 +02:00
刘相轩
80b0bc79af Remove outdated important issues (#416) 2019-06-27 09:43:40 +02:00
gbooth27
f1041af57c add cloudwatch log group access (#410)
* add cloudwatch log group access

* update readme for outputs

* update outputs

* fix formatting

* add splat for access to name
2019-06-25 17:04:01 +02:00
Alex Romanov
069c2da770 typo (#407) 2019-06-24 15:41:40 +02:00
till-krauss
ba3377360e Added Option to use KMS key for cloudwatch logs group. (#404) 2019-06-24 12:53:43 +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
Camilo Santana
3f0601551f adds tags to resource aws_iam_role.cluster (#390)
* adds tagging to iam role

Signed-off-by: camilo santana <camilo.santana@procore.com>

* emulates name_prefix

Signed-off-by: camilo santana <camilo.santana@procore.com>

* incriment version

Signed-off-by: camilo santana <camilo.santana@procore.com>

* tags iam role

Signed-off-by: camilo santana <camilo.santana@procore.com>

* improve resource name

Signed-off-by: camilo santana <camilo.santana@procore.com>

* removes comments

Signed-off-by: camilo santana <camilo.santana@procore.com>

* reverts erroneous increment to release version

Signed-off-by: camilo santana <camilo.santana@procore.com>

* reverts aws_iam_role.cluster name to orig value

Signed-off-by: camilo santana <camilo.santana@procore.com>

* removes random suffix idea

i was using random_id until i could figure out a datestamp or something here. `name_prefix` does a better job.

Signed-off-by: camilo santana <camilo.santana@procore.com>

* terraform fmt on local.tf

Signed-off-by: camilo santana <camilo.santana@procore.com>
2019-06-13 10:36:58 +02:00
Yurii Polishchuk
bf5dae00e1 Enable log retention for cloudwatch log groups (#387)
* enable log retention for cloudwatch log groups

* revert version bump

* set default retention to 90 days
2019-06-13 10:03:34 +02:00
Mitch Anderson
758fdab1ee Termination Policy Option to worker ASG (#393)
* Adding Worker ASG Option for termination_policies, default set to Default

* Adding setting to launch template and mixed

* Updated a few more things per PR notes

* Change termination_policy default from "Default" to ""
2019-06-12 18:11:24 +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
Gauthier
feb8810af2 Update EBS optimized instances type (#384)
* Update EBS optimized instances type

* Update changelog

* Pin terraform version < 0.12
2019-05-29 16:04:23 +02:00
jnozo
a9753e8303 Fix IAM instance profile toggle for mixed launch templates (#381) 2019-05-15 17:29:25 +02:00
Thuan Duong
763a3d5baa Fix typos (#379) 2019-05-13 09:55:54 +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
f0838165e2 Fix annoying typo: worker_group_xx vs worker_groups_xx (#374) 2019-05-07 18:22:39 +02:00
Max Williams
f155e4062b New release v4.0.0 (#373) 2019-05-07 17:06:39 +02:00
Max Williams
ae2f8e58db Adding new mixed type of worker group with instance overrides and mixed instances policy (#371)
* Adding new mixed type of worker group with instance overrides and mixed instances policy

* moving all count and lifecycle rule parameters to top/bottom

* adding custom IAM parts

* updating doc with new options

* fixes for spot instances
2019-05-07 16:50:42 +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
Touch Ungboriboonpisal
959e5330e3 Support custom IAM roles for cluster and workers (#338)
* allow specifying custom worker IAM instance profiles

* allow specifying custom cluster IAM role

* add doc

* update changelog

* use data.aws_iam_instance_profile.name
2019-05-07 14:46:06 +02:00
Alex Snast
613fb1ca96 adding cluster arn to outputs (#372) 2019-05-07 14:16:32 +02:00
Max Williams
60dfeca191 Adding 2 new outputs: AMI ID and work user-data (#364)
* Adding 2 new outputs: AMI ID and work user-data

* adding separate outputs to include both
2019-05-07 11:09:44 +02:00
Max Williams
1660105970 Disabling ASG process AZRebalance by default (#369) 2019-05-07 11:00:49 +02:00
Max Williams
b27b58257d Adding doc about spot instances (#362)
* Adding doc about spot instances

* updating LT worker group details

* updating doc
2019-05-07 10:59:43 +02:00
Max Williams
3ece32fedf Fixes for Launch Templates (#361)
* Fixes for Launch Templates

* update changelog

* add outputs for 3 LT attributes
2019-05-07 10:59:07 +02:00
Ivan Kovnatsky
2b633a107d Fix small typo (#367) 2019-05-02 11:48:09 +02:00
Võ Anh Duy
18baeea1fc Add option to use custom service linked role for Auto Scaling group (#359) 2019-04-29 10:45:56 +02:00