在创建集群时,kops为我们提供了一组参数,用于配置用于主实例和节点实例的镜像,如create cluster命令的kops文档中所述:https://github.com/kubernetes/kops/blob/master/docs/cli/kops_create_cluster.md
--image string Set image for all instances.
--master-image string Set image for masters. Takes precedence over --image
--node-image string Set image for nodes. Takes precedence over --image假设我在创建集群时忘记添加这些参数,我如何编辑集群并更新这些内容?
在运行kops edit cluster时,集群配置将作为yaml打开。但是我应该在哪里添加这些东西呢?
有没有完整的kops集群yaml可以参考来修改我的集群?
发布于 2020-11-06 13:04:24
您需要在创建群集后编辑instance group,以添加/编辑镜像名称。
kops get ig
kops edit ig <ig-name>完成所有主节点和节点的更新后,执行
kops update cluster <cluster-name>
kops update cluster <cluster-name> --yes然后在云控制台进行滚动更新或一次重启/停止一个实例
kops rolling-update cluster <cluster-name>
kops rolling-update cluster <cluster-name> --yes 在另一个终端kops validate cluster <cluster-name>中验证集群
执行滚动更新时,我们还可以使用其他标志
您还可以在实例组中添加、更新和编辑其他参数-查看documentation了解更多信息
https://stackoverflow.com/questions/64699922
复制相似问题