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

Manage vpc-cni, coredns and kube-proxy via eks addons #232

Closed
wants to merge 7 commits into from
Closed

Conversation

errm
Copy link
Member

@errm errm commented Aug 6, 2021

@errm errm requested a review from a team as a code owner August 6, 2021 14:59
@errm errm requested review from aidy and ettiee and removed request for a team August 6, 2021 14:59
@errm
Copy link
Member Author

errm commented Aug 6, 2021

Makes a start on #224

@github-actions

This comment has been minimized.

@github-actions
Copy link

github-actions bot commented Aug 9, 2021

terraform validate Failed


Error: Invalid resource type

  on ../../modules/cluster/addons.tf line 31, in resource "aws_eks_addon" "kube-proxy":
  31: resource "aws_eks_addon" "kube-proxy" {

The provider provider.aws does not support resource type "aws_eks_addon".


Error: Invalid resource type

  on ../../modules/cluster/addons.tf line 38, in resource "aws_eks_addon" "vpc-cni":
  38: resource "aws_eks_addon" "vpc-cni" {

The provider provider.aws does not support resource type "aws_eks_addon".


Error: Invalid resource type

  on ../../modules/cluster/addons.tf line 45, in resource "aws_eks_addon" "coredns":
  45: resource "aws_eks_addon" "coredns" {

The provider provider.aws does not support resource type "aws_eks_addon".


Error: Reference to undeclared local value

  on ../../modules/cluster/outputs.tf line 11, in locals:
  11:     dns_cluster_ip        = local.dns_cluster_ip

A local value with the name "dns_cluster_ip" has not been declared.

Workflow: .github/workflows/ci.yml, Action: __hashicorp_terraform-github-actions_3, Working Directory: examples/cluster, Workspace: default

@github-actions
Copy link

terraform init Failed

Initializing modules...
- cluster in ../../modules/cluster
- cluster.aws_auth in ../../modules/cluster/kubectl
- cluster.aws_ebs_csi_driver in ../../modules/cluster/kubectl
- cluster.aws_node_termination_handler in ../../modules/cluster/kubectl
- cluster.cluster_autoscaler in ../../modules/cluster/kubectl
- cluster.critical_addons_node_group in ../../modules/asg_node_group
- cluster.metrics_server in ../../modules/cluster/kubectl
- cluster.nvidia_device_plugin in ../../modules/cluster/kubectl
- cluster.pod_nanny in ../../modules/cluster/kubectl
- cluster.prometheus_node_exporter in ../../modules/cluster/kubectl
- cluster.storage_classes in ../../modules/cluster/kubectl

Initializing the backend...

Initializing provider plugins...
- Checking for available provider plugins...
- Downloading plugin for provider "null" (hashicorp/null) 3.1.0...
- Downloading plugin for provider "template" (hashicorp/template) 2.2.0...

No provider "aws" plugins meet the constraint "3.53.0".

The version constraint is derived from the "version" argument within the
provider "aws" block in configuration. Child modules may also apply
provider version constraints. To view the provider versions requested by each
module in the current configuration, run "terraform providers".

To proceed, the version constraints for this provider must be relaxed by
either adjusting or removing the "version" argument in the provider blocks
throughout the configuration.


Warning: registry.terraform.io: This version of Terraform has an outdated GPG key and is unable to verify new provider releases. Please upgrade Terraform to at least 0.12.31 to receive new provider updates. For details see: https://discuss.hashicorp.com/t/hcsec-2021-12-codecov-security-event-and-hashicorp-gpg-key-exposure/23512



Warning: registry.terraform.io: This version of Terraform has an outdated GPG key and is unable to verify new provider releases. Please upgrade Terraform to at least 0.12.31 to receive new provider updates. For details see: https://discuss.hashicorp.com/t/hcsec-2021-12-codecov-security-event-and-hashicorp-gpg-key-exposure/23512



Warning: registry.terraform.io: This version of Terraform has an outdated GPG key and is unable to verify new provider releases. Please upgrade Terraform to at least 0.12.31 to receive new provider updates. For details see: https://discuss.hashicorp.com/t/hcsec-2021-12-codecov-security-event-and-hashicorp-gpg-key-exposure/23512



Error: no suitable version is available


Workflow: .github/workflows/ci.yml, Action: __hashicorp_terraform-github-actions_2, Working Directory: examples/cluster, Workspace: default

@github-actions
Copy link

terraform init Failed

Initializing modules...
- cluster in ../../modules/cluster
- cluster.aws_auth in ../../modules/cluster/kubectl
- cluster.aws_ebs_csi_driver in ../../modules/cluster/kubectl
- cluster.aws_node_termination_handler in ../../modules/cluster/kubectl
- cluster.cluster_autoscaler in ../../modules/cluster/kubectl
- cluster.critical_addons_node_group in ../../modules/asg_node_group
- cluster.metrics_server in ../../modules/cluster/kubectl
- cluster.nvidia_device_plugin in ../../modules/cluster/kubectl
- cluster.pod_nanny in ../../modules/cluster/kubectl
- cluster.prometheus_node_exporter in ../../modules/cluster/kubectl
- cluster.storage_classes in ../../modules/cluster/kubectl

Initializing the backend...

Initializing provider plugins...
- Checking for available provider plugins...
- Downloading plugin for provider "template" (hashicorp/template) 2.2.0...

No provider "aws" plugins meet the constraint "3.53.0".

The version constraint is derived from the "version" argument within the
provider "aws" block in configuration. Child modules may also apply
provider version constraints. To view the provider versions requested by each
module in the current configuration, run "terraform providers".

To proceed, the version constraints for this provider must be relaxed by
either adjusting or removing the "version" argument in the provider blocks
throughout the configuration.

- Downloading plugin for provider "null" (hashicorp/null) 3.1.0...

Warning: registry.terraform.io: This version of Terraform has an outdated GPG key and is unable to verify new provider releases. Please upgrade Terraform to at least 0.12.31 to receive new provider updates. For details see: https://discuss.hashicorp.com/t/hcsec-2021-12-codecov-security-event-and-hashicorp-gpg-key-exposure/23512



Warning: registry.terraform.io: This version of Terraform has an outdated GPG key and is unable to verify new provider releases. Please upgrade Terraform to at least 0.12.31 to receive new provider updates. For details see: https://discuss.hashicorp.com/t/hcsec-2021-12-codecov-security-event-and-hashicorp-gpg-key-exposure/23512



Warning: registry.terraform.io: This version of Terraform has an outdated GPG key and is unable to verify new provider releases. Please upgrade Terraform to at least 0.12.31 to receive new provider updates. For details see: https://discuss.hashicorp.com/t/hcsec-2021-12-codecov-security-event-and-hashicorp-gpg-key-exposure/23512



Error: no suitable version is available


Workflow: .github/workflows/ci.yml, Action: __hashicorp_terraform-github-actions_2, Working Directory: examples/cluster, Workspace: default

@github-actions
Copy link

terraform fmt Failed

./modules/asg_node_group/main.tf
 data "template_file" "cloud_config" {
   template = file("${path.module}/cloud_config.tpl")
   vars = {
-    cluster_name   = var.cluster_config.name
-    labels         = join(",", [for label, value in local.labels : "${label}=${value}"])
-    taints         = join(",", [for taint, value_effect in var.taints : "${taint}=${value_effect}"])
+    cluster_name = var.cluster_config.name
+    labels       = join(",", [for label, value in local.labels : "${label}=${value}"])
+    taints       = join(",", [for taint, value_effect in var.taints : "${taint}=${value_effect}"])
   }
 }
 

Workflow: .github/workflows/ci.yml, Action: __hashicorp_terraform-github-actions, Working Directory: ., Workspace: default

@errm
Copy link
Member Author

errm commented Aug 12, 2021

📝 This seems to not work well, I am hitting this error every time I try to apply.

Error: unexpected EKS Add-On (terraform-aws-eks-testing-jPfg0J:coredns) state returned during creation: unexpected state 'DEGRADED', wanted target 'ACTIVE'. last error: %!!(MISSING)s(<nil>)

I will loop back to this and test again on 1.20 or 1.21

@takanabe
Copy link
Contributor

takanabe commented Nov 8, 2021

@errm Do you have any progresses on the PR? If not I will take a look at this 👀

@aidy
Copy link
Contributor

aidy commented Nov 24, 2021

fyi I'm poking about with this in #276

@aidy
Copy link
Contributor

aidy commented Nov 25, 2021

Closing in favour of #276

@aidy aidy closed this Nov 25, 2021
@errm errm deleted the eks-addons branch July 20, 2022 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants