[英]kubespray openstack terraform “Error: Module not found” error
I am new with Kubespray and want to install Kubernetes cluster on Openstack. 我是Kubespray的新手,并且想在Openstack上安装Kubernetes集群。 I follow https://github.com/kubernetes-sigs/kubespray/tree/master/contrib/terraform/openstack , but got an error when I ran initialization
terraform init ../../contrib/terraform/openstack
我遵循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.
I was getting the same error. 我遇到了同样的错误。 I resolved it by downgrading the terraform to Terraform v0.11.13
我通过将terraform降级为Terraform v0.11.13来解决了它
Please try these steps: 请尝试以下步骤:
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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.