我在开发环境中创建一个新的EKS版本1.22有问题。我在Terraform注册表中使用该模块,因为它只用于测试目的(我们只想测试版本1.22),因此对某些部分进行了微调。我使用的VPC是为测试EKS而创建的,还有两个公共子网和两个私有子网。
这是我的main.tf:
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]上)
这就是错误
│ 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,我遗漏了什么?
谢谢
发布于 2022-07-26 06:16:30
addon编码至少需要2个集群节点才能满足其副本集的要求。
https://stackoverflow.com/questions/72292065
复制相似问题