Commit Graph
680 Commits
Author SHA1 Message Date
Xiangxuan Liu 347db3e230 Improve CI pipeline 2019-09-19 10:20:29 +08:00
irti 0d49f8265a [add-notes] update local.tf file 2019-09-19 00:13:20 +05:00
Thierno IB. BARRYandMax Williams b6125b8501 output empty string when cluster identity is empty (#516) 2019-09-18 16:43:01 +02:00
Max WilliamsandGitHub 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 KahootandMax Williams 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
russwhelanandMax Williams 2b88e506e3 Add URL for OIDC issuer to allow IAM roles for Pods (#506)
* Add URL for OIDC issuer to allow IAM roles for Pods

* Update Documentation
2019-09-16 11:45:35 +02:00
Tomas OstaseviciusandMax Williams 4f4d9c304d Fix launch template market option expansion (#508)
* Fix launch template market option expansion

* Update changelog
2019-09-16 11:32:39 +02:00
Marcello RomaniandMax Williams f88220a8eb Fix link to docs so it doesn't 404 when published on terraform registry page (#507) 2019-09-13 16:52:10 +02:00
Sergiu PlotnicuandMax Williams 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
IvanichandMax Williams a47f464221 Allow to set user defined workers role name (#496)
* Allow to set user defined workers role name

* Add changelog entry

* Keep single variable for worker role name
2019-09-12 17:45:04 +02:00
Thierno IB. BARRYandMax Williams 4264a5fe6e use default_iam_role_id interpolation for aws_iam_instance_profile (#489) 2019-09-11 18:25:33 +02:00
刘相轩andMax Williams 2254ab709e Replace travis with GitHub Actions (#497) 2019-09-11 16:59:58 +02:00
刘相轩andMax Williams 6c3e4ec510 Update to EKS 1.14 (#498) 2019-09-09 10:46:02 +02:00
Thierno IB. BARRYandMax Williams 97df53c099 launch configuration doen't have version (#482)
close #479
2019-08-27 17:49:21 +02:00
Thierno IB. BARRYandMax Williams d6d0975452 add initial lifecycle hooks for autosacling groups (#466) 2019-08-20 15:45:06 +02:00
Thierno IB. BARRYandMax Williams d8ed7d0b66 add option to recreate ASG when LT or LC changes (#465) 2019-08-20 15:43:18 +02:00
Nick FisherandMax Williams 5636447de6 Wrapping kubelet_extra_args in double quotes (#473) (#474) 2019-08-20 15:41:16 +02:00
Daniel PiddockandMax Williams 655a75fbd0 Update cluster_security_group_id doc (#472)
You cannot filter the public cluster endpoint.
2019-08-19 16:34:02 +02:00
Scott CrooksandMax Williams b335819f0e Adding 'capacity-optimized' docs to locals (#469) 2019-08-19 16:22:11 +02:00
刘相轩andMax Williams 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 PaulsandMax Williams 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 SaterandMax Williams 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 KeroandMax Williams 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 GiacomazziandMax Williams 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 PiddockandMax Williams ac62edc872 Add required_providers to set minimum versions (#464) 2019-08-06 17:46:48 +02:00
Karoline PaulsandMax Williams 630a0cc3fb Fix fmt for v0.12.6 (#460) 2019-08-06 17:26:05 +02:00
Alexandr GrabandMax Williams c5c3d385b7 Additional tag for autoscaling enabled (#454)
* Additional tag for autoscaling_enabled

* Added changelog
2019-08-01 16:26:41 +02:00
Max WilliamsandGitHub 6d0025ea03 move/merge docs (#453) 2019-07-30 16:08:56 +02:00
Max WilliamsandGitHub 6ea3582940 new release (#452) 2019-07-30 16:02:21 +02:00
Sergiu PlotnicuandMax Williams 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 PaulsandMax Williams e876ce20b9 VPC: enable_dns_hostnames = true in examples (#446) 2019-07-30 15:05:08 +02:00
JamesandMax Williams f755300550 chore: fix README.md worker_groups tags syntax (#405) 2019-07-23 17:35:36 +02:00
Onur SamandMax Williams 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
mandarin801andMax Williams ec64a74019 Update README.md (#436)
fix Error
2019-07-17 12:56:54 +02:00
Alexander ShinkarenkoandMax Williams 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
刘相轩andMax Williams 4b1df0c0af Update default override instance types to work with Cluster Autoscaler (#425) 2019-07-08 11:18:13 +02:00
Laurent GodetandMax Williams 65901984e5 Fix suspended_processes to be a type list (#423) 2019-07-05 17:26:30 +02:00
刘相轩andMax Williams 80b0bc79af Remove outdated important issues (#416) 2019-06-27 09:43:40 +02:00
gbooth27andMax Williams 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 RomanovandMax Williams 069c2da770 typo (#407) 2019-06-24 15:41:40 +02:00
till-kraussandMax Williams ba3377360e Added Option to use KMS key for cloudwatch logs group. (#404) 2019-06-24 12:53:43 +02:00
GauthierandMax Williams 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 WilliamsandGitHub 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
刘相轩andMax Williams 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 SantanaandMax Williams 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 PolishchukandMax Williams 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 AndersonandMax Williams 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 JiaandMax Williams 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
GauthierandMax Williams 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
jnozoandMax Williams a9753e8303 Fix IAM instance profile toggle for mixed launch templates (#381) 2019-05-15 17:29:25 +02:00