简体   繁体   English

kubespray openstack terraform“错误:找不到模块”错误

[英]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.

相关问题 印花布等待etcd错误Kubespray - Calico wait for etcd error Kubespray kubespray 部署无法在 https://apt.dockerproject.org/gpg 下载密钥:HTTP 错误 404:未找到 - kubespray deployment Failed to download key at https://apt.dockerproject.org/gpg: HTTP Error 404: Not Found 在 kubespray 上运行带有标签的 playbook 时出错 - Error when running playbook with tags on kubespray 使用 kubespray 的 Kube.netes kubelet-certificate-authority 导致主节点的证书验证错误 - Kubernetes kubelet-certificate-authority on premise with kubespray causes certificate validation error for master node 对OpenStack Octavia LBaaS v2错误进行故障排除 - Troubleshoot OpenStack Octavia LBaaS v2 ERROR Openstack (train) Populate Magnum 数据库错误 - Openstack (train) Populate Magnum database error Terraform:错误:索引操作无效 - Terraform: Error: Invalid index operation kubespray 中途停止,https://127.0.0.1:6443/healthz,请求失败:<urlopen error tunnel connection failed: 403 forbidden> "</urlopen> - kubespray stops in the middle of the process, https://127.0.0.1:6443/healthz, Request failed: <urlopen error Tunnel connection failed: 403 Forbidden>" Terraform Error&#39;bool&#39;不是有效类型 - Terraform Error 'bool' is not a valid type 使用Terraform在EKS上部署Kubernetes仪表板时出错 - Error to deploy the Kubernetes Dashboard on EKS using terraform
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM