我已经扫描了所有资源,仍然找不到一种方法来更改 Kind 集群中的 extraPortMappings
而不删除并重新创建。
这可能吗?如何实现?
最佳答案
官方文档中没有明确说明,但我找到了一些引用资料证实:您的想法是正确的,更改 extraPortMappings
(以及其他集群设置)只有通过重新创建这种类型才有可能集群。
if you use extraPortMappings in your config, they are “fixed” and cannot be modified, unless you recreate the cluster.
Note that the cluster configuration cannot be changed. The only workaround is to delete the cluster (see below) and create another one with the new configuration.
However, there are obvious disadvantages in the configuration and update of the cluster, and the cluster can only be configured and updated by recreating the cluster. So you need to consider configuration options when you initialize the cluster.
关于kubernetes - 在 kind 集群中编辑 extraPortMappings,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68257934/