在 kind 集群中编辑 extraPortMappings

Edit extraPortMappings in kind cluster

我已经扫描了所有资源,仍然找不到在不删除并重新创建的情况下更改 extraPortMappings Kind 集群的方法。

这可能吗?如何实现?

官方文档中没有明确说明,但我找到了一些参考资料证实:您的想法是正确的,更改 extraPortMappings(以及其他集群设置)只能通过重新创建 kind 集群来实现.

if you use extraPortMappings in your config, they are “fixed” and cannot be modified, unless you recreate the cluster.

Source - Issues I Came Across

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.

Source - Kind Installation

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.

Source - Restrictions