1
嘗試首次設置kubernetes-anywhere,並且在使terraform使用我在vCenter中設置的分佈式端口組時遇到了挑戰。該錯誤信息是:Terraform:無法遍歷VmwareDistributedVirtualSwitch類型
* 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。任何幫助將不勝感激 - 我花了太多時間在這個!
這實際上是使用分佈式交換機中的端口組,還是在交換機之外創建了一個新端口組?我們的網絡如下所示:https://i.imgur.com/vIrOu7L.png我試圖讓kubernetes在分佈式交換機內部使用「虛擬機網絡」,而不是外部的虛擬機網絡,它不合作。 – alzee
通過創建一個文件夾並將分佈式交換機移動到其中,然後複製您使用此答案所做的操作來解決上述問題。不是「高興」的,但它的作品! – alzee