1

第一次尝试在任何地方设置 kubernetes,我在让 terraform 使用我在 vCenter 中设置的分布式端口组方面遇到了挑战。错误信息是:

* vsphere_virtual_machine.kubevm1: 1 error(s) occured:

* vsphere_virtual_machine.kubevm1: cannot traverse type VmwareDistributedVirtualSwitch

相关的地形设置:

network_interface.#:                     "" => "1"
network_interface.0.ip_address:          "" => "<computed>"
network_interface.0.ipv4_address:        "" => "<computed>"
network_interface.0.ipv4_gateway:        "" => "<computed>"
network_interface.0.ipv4_prefix_length:  "" => "<computed>"
network_interface.0.ipv6_address:        "" => "<computed>"
network_interface.0.ipv6_gateway:        "" => "<computed>"
network_interface.0.ipv6_prefix_length:  "" => "<computed>"
network_interface.0.label:               "" => "Development/dvDevCluster/dvDHCP115"
network_interface.0.mac_address:         "" => "<computed>"
network_interface.0.subnet_mask:         "" => "<computed>"

我们vCenter的网络清单: 分布式端口组目录树

我们正在尝试使用分布式端口组 dvDHCP115。任何帮助将不胜感激 - 我在这方面花了太长时间!

4

1 回答 1

0

找到了解决方案:

使用标签“Development/dvDHCP115”,而不是“Development/dvDevCluster/dvDHCP115”

当 Terraform 包含分布式交换机(例如 dvDevCluster)时,它似乎无法处理端口组的完整路径。

于 2017-10-18T14:56:53.793 回答