change how terraform generates apiserver variables (#1922)

pull/1923/head
Aivars Sterns 2017-11-02 14:26:11 +02:00 committed by Matthew Mosesohn
parent c0e989b17c
commit e6c88db0a0
2 changed files with 2 additions and 4 deletions

View File

@ -172,8 +172,7 @@ data "template_file" "inventory" {
list_node = "${join("\n",aws_instance.k8s-worker.*.tags.Name)}"
list_etcd = "${join("\n",aws_instance.k8s-etcd.*.tags.Name)}"
elb_api_fqdn = "apiserver_loadbalancer_domain_name=\"${module.aws-elb.aws_elb_api_fqdn}\""
elb_api_port = "loadbalancer_apiserver.port=${var.aws_elb_api_port}"
loadbalancer_apiserver_address = "loadbalancer_apiserver.address=${var.loadbalancer_apiserver_address}"
elb_api_server = "loadbalancer_apiserver={\"port\": ${var.aws_elb_api_port}, \"address\": \"${var.loadbalancer_apiserver_address}\"}"
}
}

View File

@ -25,5 +25,4 @@ kube-master
[k8s-cluster:vars]
${elb_api_fqdn}
${elb_api_port}
${loadbalancer_apiserver_address}
${elb_api_server}