第一次尝试设置kubernetes-anywhere,我遇到了使用我在vCenter中设置的分布式端口组使用terraform的挑战。错误消息是:
* vsphere_virtual_machine.kubevm1: 1 error(s) occured:
* vsphere_virtual_machine.kubevm1: cannot traverse type VmwareDistributedVirtualSwitch
相关的terraform设置:
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网络广告资源: distributed port group directory tree
我们正在尝试使用分布式端口组dvDHCP115。任何帮助将不胜感激 - 我花了太长时间在这上面!
答案 0 :(得分:0)
找到解决方案:
使用标签&#34;开发/ dvDHCP115&#34;,而不是&#34;开发/ dvDevCluster / dvDHCP115&#34;
当Terraform包含分布式交换机(例如dvDevCluster)时,它似乎无法处理端口组的完整路径。