Terraform:无法遍历类型 VmwareDistributedVirtualSwitch
Terraform: cannot traverse type VmwareDistributedVirtualSwitch
第一次尝试设置 kubernetes-anywhere,我在让 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 网络清单:
distributed port group directory tree
我们正在尝试使用分布式端口组 dvDHCP115。任何帮助将不胜感激 - 我在这上面花了太多时间!
找到解决方案:
使用标签 "Development/dvDHCP115",而不是 "Development/dvDevCluster/dvDHCP115"
当 Terraform 包含分布式交换机(例如 dvDevCluster)时,它似乎无法处理端口组的完整路径。
第一次尝试设置 kubernetes-anywhere,我在让 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 网络清单: distributed port group directory tree
我们正在尝试使用分布式端口组 dvDHCP115。任何帮助将不胜感激 - 我在这上面花了太多时间!
找到解决方案:
使用标签 "Development/dvDHCP115",而不是 "Development/dvDevCluster/dvDHCP115"
当 Terraform 包含分布式交换机(例如 dvDevCluster)时,它似乎无法处理端口组的完整路径。