用terraform在谷歌云安装dc/os,官网的步骤报错?

peter19ji
  • 0
新手上路,请多包涵

问题描述

terraform init可以,plan报错,Mesosphere提供的教程https://docs.mesosphere.com/1... 没提到这个错误,也没提到要配置转发策略,https://www.terraform.io/docs... 不知道应该怎样为DC/OS配置。

问题出现的环境背景及自己尝试过哪些方法

wsl ubuntu 16.04,谷歌云,使用sstap方式联网

相关代码

// 请把代码文本粘贴到下方(请勿用图片代替代码)
variable "dcos_install_mode" {
description = "specifies which type of command to execute. Options: install or upgrade"
default = "install"
}

data "http" "whatismyip" {
url = "http://whatismyip.akamai.com/"
}

module "dcos" {
source = "dcos-terraform/dcos/gcp"

cluster_name = "my-open-dcos"
ssh_public_key_file = "~/.ssh/id_rsa.pub"
admin_ips = ["${data.http.whatismyip.body}/32"]

num_masters = "1"
num_private_agents = "2"
num_public_agents = "1"

dcos_version = "1.10.9"

# dcos_variant = "ee"
# dcos_license_key_contents = "${file("./license.txt")}"
dcos_variant = "open"

dcos_install_mode = "${var.dcos_install_mode}"
}

output "masters-ips" {
value = "${module.dcos.masters-ips}"
}

output "cluster-address" {
value = "${module.dcos.masters-loadbalancer}"
}

output "public-agents-loadbalancer" {
value = "${module.dcos.public-agents-loadbalancer}"
}

你期待的结果是什么?实际看到的错误信息又是什么?

Error: module.dcos.module.dcos-infrastructure.module.dcos-forwarding-rules.module.dcos-forwarding-rule-masters.module.dcos-forwarding-rule-masters.google_compute_forwarding_rule.forwarding_rule_config[0]: : invalid or unknown key: labels

Error: module.dcos.module.dcos-infrastructure.module.dcos-forwarding-rules.module.dcos-forwarding-rule-masters.module.dcos-forwarding-rule-masters.google_compute_forwarding_rule.forwarding_rule_config[1]: : invalid or unknown key: labels

Error: module.dcos.module.dcos-infrastructure.module.dcos-forwarding-rules.module.dcos-forwarding-rule-public-agents.module.dcos-forwarding-rule-public-agents.google_compute_forwarding_rule.forwarding_rule_config: : invalid or unknown key: labels

回复
阅读 1k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
你知道吗?

宣传栏