简体   繁体   English

从零开始的 AWS EKS - terraform 或 eksctl?

[英]AWS EKS from scratch - terraform or eksctl?

Are there any benefits to spawn a new AWKS EKS cluster by using terraform or eksctl?使用 terraform 或 eksctl 生成新的 AWKS EKS 集群有什么好处吗?

Are there some long-term maintenance benefits of one vs another?两者之间是否存在一些长期维护优势?

Well, although I haven't actually tried this out with Terraform, I can definitely say that the eksctl way is not recommended.好吧,虽然我还没有实际尝试过使用 Terraform,但我可以肯定地说不推荐使用 eksctl 方式。 At least not if you're interested in manageing your infrastructure as code.如果您有兴趣将基础架构作为代码进行管理,至少不会。 With eksctl, most changes to an existing cluster need to be made with specific eksctl commands.使用 eksctl,对现有集群的大多数更改都需要使用特定的 eksctl 命令进行。 Just changing the (declarative) cluster.yaml (or whatever you name) does not apply anything relevant.仅更改(声明性)cluster.yaml(或您命名的任何名称)不会应用任何相关内容。 You want to scale a nodeGroup?您想扩展 nodeGroup 吗? Well, please use eksctl scale nodegroup , as changing the size in the YAML file is not applying anything.好吧,请使用eksctl scale nodegroup ,因为更改 YAML 文件中的大小不会应用任何内容。 I think you get the pattern.我想你得到了模式。 It's really sad that, of all companies, Weaveworks, the "inventors" of GitOps, provide a tool that does not even support basic IaC:(真的很遗憾,在所有公司中,GitOps 的“发明者”Weaveworks 提供了一个甚至不支持基本 IaC 的工具:(

I would highly recommend using terraform .我强烈建议使用terraform It is declarative and provides an interface that can be used to support all of your infrastructure and not just your EKS cluster(s).它是声明性的,并提供一个接口,可用于支持您的所有基础设施,而不仅仅是您的 EKS 集群。

The time and effort you put into learning terraform and implementing it in your pipeline can be easily re-used for other infrastructure needs unlike eksctl .与 eksctl 不同,您在学习eksctl和在管道中实施它所投入的时间和精力可以轻松地重新用于其他基础设施需求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM