Commit Graph

42 Commits

Author SHA1 Message Date
刘相轩
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
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
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
Max Williams
8b2e1c2dd8 Replacing enable_docker_bridge with a generic option called bootstrap_extra_args (#320)
* Replacing enable_docker_bridge with a generic option called bootstrap_extra_args

* making breaking change more obvious
2019-03-26 17:20:39 +01:00
michaelmccord
80085f50ab Add enable_docker_bridge (#302) 2019-03-13 17:30:41 +01:00
Max Williams
95986471f0 Adding optional name filter variable to be able to pin worker AMI to a release 2019-03-05 14:57:22 +01:00
leonsodhi-lf
dfd5a8f808 Use launch template defaults for launch template userdata (#255)
* User launch template defaults for launch template userdata

* Updated changelog
2019-01-30 11:42:31 +01:00
skang0601
f3ab7c67da Allows worker groups to be created using AWS Launch Templates (#222) 2019-01-10 16:19:19 +01:00
Max Williams
e6671e45ae Changing AMI data resource to filter for k8s version of cluster (#215)
* Changing AMI data resource to only use k8s version of cluster

* Reverting this method as it doesn't work
2018-12-17 09:43:53 +01:00
Nic Grayson
e1e265bf21 allow user to overwrite the kubeconfig default args (#129)
* allow user to overwrite the kubeconfig default args

* quote args to auth command
2018-11-01 17:14:07 +01: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
Touch Ungboriboonpisal
21f43b8341 Add support for the new amazon-eks-node-* AMI (#100)
* add support for the new amazon-eks-node-* AMI

* add CHANGELOG

* remove kubelet_node_labels
2018-09-04 12:19:02 +02:00
Daniel Piddock
23647950ad Easier overriding of workers_group_defaults (#107) 2018-08-30 11:21:46 +02:00
Daniel Piddock
13e1adc419 Remove unnecessary http callout and security rule
EKS masters are publicly accessible. You cannot restrict access nor
need to explicitly grant access.
https://github.com/terraform-aws-modules/terraform-aws-eks/pull/69#issuecomment-406123233
2018-08-03 21:52:16 +02:00
Andrew Lavery
5b1cf24931 add var 'worker_group_count' to replace 'length()' calls 2018-07-19 10:38:15 -07:00
Max Williams
58c4a0e30f initial commit 2018-07-11 10:21:53 +02:00
Max Williams
11cd282ec1 reverting some changes after feedback 2018-07-10 10:21:28 +02:00
Max Williams
f881745f00 formatting and minor cosmetic fixes 2018-07-09 12:19:16 +02:00
Brandon J. O'Connor
f385415c88 Merge pull request #52 from max-rocket-internet/kubeconfig-fixes
Making kubeconfig file path and generated config unique
2018-07-09 02:46:10 -07:00
Max Williams
7e4e93eeec Removing region from kubectl config and adding override variable 2018-07-09 10:40:51 +02:00
Bryan Shelton
9876ddbe71 Add a worker_groups option to define kubelet --node-labels 2018-07-07 17:26:03 -07:00
Max Williams
0ffa4932f6 clean up unused variables 2018-07-06 16:39:00 +02:00
Steve Davids
34cf66b47d Fixed terraform formatting 2018-06-29 20:49:40 -04:00
Steve Davids
efecd2ed87 Allowing a more configurable kubeconfig 2018-06-29 18:39:22 -04:00
jimbecker
81755336e8 added support for specifying user data for the worker launch config that runs before anything else 2018-06-27 11:51:34 -04:00
Tsubasa Takayama
0a42962625 Access icanhazip.com via https 2018-06-24 14:11:43 +09:00
Tsubasa Takayama
ef23677a28 Get only ipv4 address 2018-06-24 14:10:47 +09: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
Kevin Pullin
0107a9b914 Support creating multiple worker auto scaling groups, similar to KOPS 2018-06-08 16:40:50 -07:00
brandoconnor
8b5e18be9f renamign teh submodule 2018-06-08 04:21:53 -07:00
brandoconnor
8a217358c7 trying relative path with ./ 2018-06-08 04:09:08 -07:00
brandoconnor
0ec5df4cae ebs optimization of instances now possible 2018-06-08 04:00:12 -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
6a137f751e somehow missed fmt 2018-06-06 22:32:15 -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