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

Getting errors when I install EMR on EKS with Karpenter templates #82

Closed
dalbhanj opened this issue Dec 13, 2022 · 2 comments
Closed

Getting errors when I install EMR on EKS with Karpenter templates #82

dalbhanj opened this issue Dec 13, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@dalbhanj
Copy link
Contributor

Description

I am receiving these errors when I install EMR on EKS with Karpenter templates. I have tried in two different regions and they seem to be reproducible

Here are the errors,

│ Error: could not download chart: failed to download "oci://public.ecr.aws/karpenter/karpenter" at version "v0.18.1"
│ 
│   with module.eks_blueprints_kubernetes_addons.module.karpenter[0].module.helm_addon.helm_release.addon[0],
│   on .terraform/modules/eks_blueprints_kubernetes_addons/modules/kubernetes-addons/helm-addon/main.tf line 1, in resource "helm_release" "addon":
│    1: resource "helm_release" "addon" {
│ 
╵
╷
│ Error: could not download chart: failed to download "oci://public.ecr.aws/kubecost/cost-analyzer" at version "1.97.0"
│ 
│   with module.eks_blueprints_kubernetes_addons.module.kubecost[0].module.helm_addon.helm_release.addon[0],
│   on .terraform/modules/eks_blueprints_kubernetes_addons/modules/kubernetes-addons/helm-addon/main.tf line 1, in resource "helm_release" "addon":
│    1: resource "helm_release" "addon" {
│ 
╵
╷
│ Error: cannot re-use a name that is still in use
│ 
│   with module.eks_blueprints_kubernetes_addons.module.coredns_autoscaler[0].module.helm_addon.helm_release.addon[0],
│   on .terraform/modules/eks_blueprints_kubernetes_addons/modules/kubernetes-addons/helm-addon/main.tf line 1, in resource "helm_release" "addon":
│    1: resource "helm_release" "addon" {
│ 

Versions

  • Terraform version: Terraform v1.2.2
  • Provider version(s):
$ terraform providers -version
Terraform v1.2.2
on darwin_amd64
+ provider registry.terraform.io/gavinbunney/kubectl v1.14.0
+ provider registry.terraform.io/hashicorp/aws v4.46.0
+ provider registry.terraform.io/hashicorp/cloudinit v2.2.0
+ provider registry.terraform.io/hashicorp/helm v2.7.1
+ provider registry.terraform.io/hashicorp/kubernetes v2.16.1
+ provider registry.terraform.io/hashicorp/local v2.2.3
+ provider registry.terraform.io/hashicorp/null v3.2.1
+ provider registry.terraform.io/hashicorp/random v3.4.3
+ provider registry.terraform.io/hashicorp/time v0.9.1
+ provider registry.terraform.io/hashicorp/tls v4.0.4
+ provider registry.terraform.io/terraform-aws-modules/http v2.4.1

Steps to reproduce the behavior:

Follow the steps for deploying the solution
cd data-on-eks/analytics/terraform/emr-eks-karpenter
terraform init
export AWS_REGION="us-west-2"
terraform plan
terraform apply

I have tried in us-east-2 region as well

Expected behavior

Expect to see all resources created without issues. I think Kubecost is not ready yet and can send PR to disable until its ready. Karpenter and other resources should install without hiccups

@dalbhanj dalbhanj added the bug Something isn't working label Dec 13, 2022
@victorgu-github
Copy link
Contributor

@dalbhanj you need to do login before pulling image from ECR. try the command below before running terraform apply
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws

@victorgu-github
Copy link
Contributor

fixed by adding ecr token in terraform

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants