From cb84b939302f39d9277fded6a88d30823edf95c2 Mon Sep 17 00:00:00 2001 From: Dan Bode Date: Mon, 21 Nov 2016 10:44:13 -0800 Subject: [PATCH] Decouple etcd/k8s-cluster roles in ec2 terraform Currently, the terraform script in contrib adds etcd role as a child of k8s-cluster in its generated inventory file. This is problematic when the etcd role is deployed on separate nodes from the k8s master and nodes. In this case, this leads to failures of the k8s node since the PKI certs required for that role have not been propogated. --- contrib/terraform/aws/01-create-inventory.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/terraform/aws/01-create-inventory.tf b/contrib/terraform/aws/01-create-inventory.tf index ee00e7de3..ce5652181 100755 --- a/contrib/terraform/aws/01-create-inventory.tf +++ b/contrib/terraform/aws/01-create-inventory.tf @@ -32,6 +32,6 @@ resource "null_resource" "ansible-provision" { } provisioner "local-exec" { - command = "echo \"\n[k8s-cluster:children]\nkube-node\nkube-master\netcd\" >> inventory" + command = "echo \"\n[k8s-cluster:children]\nkube-node\nkube-master\" >> inventory" } }