kubernetes - 在 kind 集群中编辑 extraPortMappings

标签 kubernetes kind

我已经扫描了所有资源,仍然找不到一种方法来更改 Kind 集群中的 extraPortMappings 而不删除并重新创建。

这可能吗?如何实现?

最佳答案

官方文档中没有明确说明,但我找到了一些引用资料证实:您的想法是正确的,更改 extraPortMappings(以及其他集群设置)只有通过重新创建这种类型才有可能集群。

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

关于kubernetes - 在 kind 集群中编辑 extraPortMappings,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68257934/

相关文章:

kubernetes - 在 kubernetes 中自动缩放期间某些请求失败

docker - `kind create cluster`的--network选项有什么作用?

docker - 如何在 Kind 中引用本地卷(docker 中的 kubernetes)

go - 为什么解码返回结果为空

docker - 使用config而不是API创建kubernetes命名空间

Kubernetes kubectl 复制命令失败

docker - 使用KinD创建本地集群,CPU保持高使用率

functional-programming - 我如何在 kind 的 monads 中重复 monadic 指令?

kubernetes - 使用 Bastion 通过 SSH 连接到 Kubernetes Pod