我是Kubespray的新手,想在Openstack上安装Kubernetes集群。我遵循https://github.com/kubernetes-sigs/kubespray/tree/master/contrib/terraform/openstack,但是运行初始化terraform init ../../contrib/terraform/openstack
The module address "modules/compute" could not be resolved.
If you intended this as a path relative to the current module, use
"./modules/compute" instead. The "./" prefix indicates that the address is a
relative filesystem path.```
I can see modules folder under openstack folder.
```ls ../../contrib/terraform/openstack/modules/
compute ips network```
Any help would be appreciated.
答案 0 :(得分:1)
我遇到了同样的错误。我通过将terraform降级为Terraform v0.11.13
来解决了该问题请尝试以下步骤:
wget https://releases.hashicorp.com/terraform/0.11.13/terraform_0.11.13_linux_amd64.zip
sudo unzip ./terraform_0.11.13_linux_amd64.zip -d /usr/local/bin/
terraform init ../../contrib/terraform/openstack