【发布时间】:2021-10-01 05:38:13
【问题描述】:
我部署了一个具有两个不同 terraform apply 的 Kubernetes 环境。第一个用于部署 EKS 集群本身,第二个用于部署不同的服务。
The most reliable way to configure the Kubernetes provider is to ensure that the cluster
itself and the Kubernetes provider resources can be managed with separate apply
operations. Data-sources can be used to convey values between the two stages as needed.
我开始构建 GitlabCI 管道,并且只想尝试使用 terraform plan 命令来提交合并请求。
如果没有应用第一个模块(未创建 EKS 集群),第二个 terraform plan 将无效,有没有一种方法可以执行第二个模块的持续集成而无需部署集群?
【问题讨论】:
标签: kubernetes terraform gitlab-ci amazon-eks