【问题标题】:setting up gke autopilot in terraform good example在 terraform 中设置 gke 自动驾驶仪的好例子
【发布时间】:2021-12-12 12:03:58
【问题描述】:

我正在尝试在自动驾驶仪上使用 terraform 设置 GKE。到目前为止,我看着它的文档有点混乱。我正在寻找让事情运行的基本设置。我在网上做了一些搜索,发现了以下https://www.youtube.com/watch?v=XTcos7s0iDo,但这包含有关设置 vpc 和所有内容的太多细节,有没有我可以使用的基本示例?

【问题讨论】:

  • 请添加更多详细信息 - 您想要达到的具体目标,您想要的设置。

标签: terraform google-kubernetes-engine


【解决方案1】:

您可以编辑现有的 gke.tf 配置并添加

maintenance_policy {
recurring_window {
  start_time = "2021-06-18T00:00:00Z"
  end_time   = "2050-01-01T04:00:00Z"
  recurrence = "FREQ=WEEKLY"
  }
}

{
enable_autopilot = true
  }
release_channel {
  channel = "REGULAR"
  }

【讨论】:

  • 您的答案可以通过额外的支持信息得到改进。请edit 添加更多详细信息,例如引用或文档,以便其他人可以确认您的答案是正确的。你可以找到更多关于如何写好答案的信息in the help center
猜你喜欢
  • 2022-11-03
  • 1970-01-01
  • 2022-01-22
  • 2021-11-06
  • 1970-01-01
  • 1970-01-01
  • 2021-12-23
  • 2021-07-29
  • 1970-01-01
相关资源
最近更新 更多