0

我是 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.
4

1 回答 1

2

我遇到了同样的错误。我通过将 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
于 2019-06-21T04:08:18.777 回答