Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade eks module #29

Merged
merged 2 commits into from
Apr 2, 2019
Merged

upgrade eks module #29

merged 2 commits into from
Apr 2, 2019

Conversation

smalltown
Copy link
Contributor

@smalltown smalltown commented Apr 1, 2019

  • upgrade eks module for supporting latest version
  • delete worker-asg, worker-spot, worker-common module, creating eks-worker module by AWS launch template to support spot/on-demand EC2 instance type

Copy link

@owensengoku owensengoku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So many details ~~~

@@ -0,0 +1,39 @@
locals {
ami_owner = "595879546273"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about use coreos_account ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no problem

default = ""
}

variable "cidr_access_eks_endpoint" {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about to rename cidr_access_eks_https for consistency with cidr_access_worker_ssh?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure

default = "./terraform"
}

variable "write_kubeconfig" {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename to kubeconfig_output_flag ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK!

default = true
}

variable "write_aws_auth_config" {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename to aws_auth_config_output_flag ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

@@ -0,0 +1,43 @@
locals {
kubeconfig_name = "${var.kubeconfig_name == "" ? "${var.cluster_name}" : var.kubeconfig_name}"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider to give a default name ?


contexts:
- context:
cluster: ${kubeconfig_name}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course, it does not matter to use the same name, but I guess could consider to use ${cluster_name} here.

@smalltown smalltown merged commit 822c01b into master Apr 2, 2019
@smalltown smalltown deleted the feature/v0.0.15 branch April 2, 2019 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants