gpt4 book ai didi

amazon-web-services - 创建具有相同名称的 ekscluster 时出错

转载 作者:行者123 更新时间:2023-12-02 11:33:07 24 4
gpt4 key购买 nike

我创建了名为“prod”的 ekscluster。在我删除它之后,我在这个“prod”集群上工作。我已经删除了所有关联的 vpc、接口(interface)、安全组。但是,如果我尝试创建具有相同名称“prod”的 ekscluster,则会出现以下错误。你能帮我解决这个问题吗?

[centos@ip-172-31-23-128 ~]$ eksctl create cluster --name prod
--region us-east-2 [ℹ] eksctl version 0.13.0 [ℹ] using region us-east-2 [ℹ] setting availability zones to [us-east-2b us-east-2c us-east-2a] [ℹ] subnets for us-east-2b - public:192.168.0.0/19 private:192.168.96.0/19 [ℹ] subnets for us-east-2c - public:192.168.32.0/19 private:192.168.128.0/19 [ℹ] subnets for us-east-2a - public:192.168.64.0/19 private:192.168.160.0/19 [ℹ] nodegroup "ng-1902b9c1" will use "ami-080fbb09ee2d4d3fa" [AmazonLinux2/1.14] [ℹ] using Kubernetes version 1.14 [ℹ] creating EKS cluster "prod" in "us-east-2" region with un-managed nodes [ℹ] will create 2 separate CloudFormation stacks for cluster itself and the initial nodegroup [ℹ] if you encounter any issues, check CloudFormation console or try 'eksctl utils describe-stacks
--region=us-east-2 --cluster=prod' [ℹ] CloudWatch logging will not be enabled for cluster "prod" in "us-east-2" [ℹ] you can enable it with 'eksctl utils update-cluster-logging --region=us-east-2
--cluster=prod' [ℹ] Kubernetes API endpoint access will use default of {publicAccess=true, privateAccess=false} for cluster "prod" in "us-east-2" [ℹ] 2 sequential tasks: { create cluster control plane "prod", create nodegroup "ng-1902b9c1" } [ℹ] building cluster stack "eksctl-prod-cluster" [ℹ] 1 error(s) occurred and cluster hasn't been created properly, you may wish to check CloudFormation console [ℹ] to cleanup resources, run 'eksctl delete cluster --region=us-east-2
--name=prod' [✖] creating CloudFormation stack "eksctl-prod-cluster": AlreadyExistsException: Stack [eksctl-prod-cluster] already exists status code: 400, request id: 49258141-e03a-42af-ba8a-3fef9176063e Error: failed to create cluster "prod"

最佳答案

这里有两件事需要考虑。

  1. delete 命令不会等待所有资源实际消失。您应该添加 --wait 标志以让它完成。通常需要大约 10-15 分钟。

  2. 如果这仍然不够,您应该确保删除 CloudFormation 对象。它看起来像这样(调整命名):

    #删除集群:
    -删除cloudformation堆栈
    aws cloudformation 列表堆栈 --query StackSummaries[].StackName
    aws cloudformation delete-stack --stack-name 工作节点堆栈
    aws eks delete-cluster --name EKStestcluster

如果有帮助,请告诉我。

关于amazon-web-services - 创建具有相同名称的 ekscluster 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60094016/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com