首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法用地形创建新的EKS

无法用地形创建新的EKS
EN

Stack Overflow用户
提问于 2022-05-18 15:33:49
回答 1查看 580关注 0票数 0

我在开发环境中创建一个新的EKS版本1.22有问题。我在Terraform注册表中使用该模块,因为它只用于测试目的(我们只想测试版本1.22),因此对某些部分进行了微调。我使用的VPC是为测试EKS而创建的,还有两个公共子网和两个私有子网。

这是我的main.tf:

代码语言:javascript
复制
module "eks" {
  source  = "terraform-aws-modules/eks/aws"
  version = "18.21.0"

  cluster_name    = "EKSv2-update-test"
  cluster_version = "1.22"

  cluster_endpoint_private_access = true
  cluster_endpoint_public_access  = true

  cluster_addons = {
    coredns = {
      resolve_conflicts = "OVERWRITE"
    }
    kube-proxy = {}
    vpc-cni = {
      resolve_conflicts = "OVERWRITE"
    }
  }


  vpc_id     = "vpc-xxx" # eks-vpc
  subnet_ids = ["subnet-priv-1-xxx", "subnet-priv-2-xxx", "subnet-pub-1-xxx", "subnet-pub-2-xxx"]
}

Terraform在20分钟后应用超时(它只挂在module.eks.aws_eks_addon.this["coredns"]: Still creating... [20m0s elapsed]上)

这就是错误

代码语言:javascript
复制
│ Error: unexpected EKS Add-On (EKSv2-update-test:coredns) state returned during creation: timeout while waiting for state to become 'ACTIVE' (last state: 'DEGRADED', timeout: 20m0s)
│ [WARNING] Running terraform apply again will remove the kubernetes add-on and attempt to create it again effectively purging previous add-on configuration
│ 
│   with module.eks.aws_eks_addon.this["coredns"],
│   on .terraform/modules/eks/main.tf line 305, in resource "aws_eks_addon" "this":
│  305: resource "aws_eks_addon" "this" {

EKS被创建,但这显然不是要走的路。关于coredns,我遗漏了什么?

谢谢

EN

回答 1

Stack Overflow用户

发布于 2022-07-26 06:16:30

addon编码至少需要2个集群节点才能满足其副本集的要求。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72292065

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档