kubernetes - 如何用 kops 指定区域 ID?
问题描述
上
kops edit ig nodes
我正进入(状态
error determining default DNS zone: Found multiple hosted zones matching cluster ".domain"; please specify the ID of the zone to use
集群看起来像这样
$ kops get ig
Using cluster from kubectl context: dev3.onchain.live
NAME ROLE MACHINETYPE MIN MAX ZONES
master-us-east-1b Master m4.large 1 1 us-east-1b
nodes Node m4.large 3 3 us-east-1b
添加
--state=$KOPS_STATE_STORE
没有帮助。
解决方案
它位于 ClusterSpec YAML 文件中:
// DNSZone is the DNS zone we should use when configuring DNS
// This is because some clouds let us define a managed zone foo.bar, and then have
// kubernetes.dev.foo.bar, without needing to define dev.foo.bar as a hosted zone.
// DNSZone will probably be a suffix of the MasterPublicName and MasterInternalName
// Note that DNSZone can either by the host name of the zone (containing dots),
// or can be an identifier for the zone.
DNSZone string `json:"dnsZone,omitempty"`
尽管拥有多个通常是 Route53 中的配置问题。或者至少有多个匹配区域是不正常的。
推荐阅读
- javascript - Insert Javascript on every page of the site(s)
- ruby - Mongoid 为什么我应该使用 update_all 而不是简单地循环收集和保存
- java - Java 日期间隔中的动态查询
- sql - 连续付款的客户
- selenium - 运行 selenium webdriver 脚本时无法单击超链接
- sql - SQL Query 获取特定人员的排名、姓名和分数
- javascript - 在地图上绘制多边形时地图不显示
- php - Yii2凉亭错误heroku
- python-3.x - 运行我的python程序时出错
- sql - 按小时分组时间戳 SQLite