coreos / terraform-aws-kubernetes

Install a Kubernetes cluster the CoreOS Tectonic Way: HA, self-hosted, RBAC, etcd Operator, and more
Apache License 2.0
117 stars 67 forks source link

Error:unknown variable accessed: kube_dns_service_ip #3

Closed aholbreich closed 7 years ago

aholbreich commented 7 years ago

master version (https://github.com/coreos/terraform-aws-kubernetes/tree/e50ed698445430db6006d893dafe33f9b83a263a) of the module produeced following:

module.kubernetes.module.workers.aws_autoscaling_group.workers: Creation complete after 59s (ID: tectonic-testcluster-workers)
Error applying plan:

1 error(s) occurred:

* module.kubernetes.module.tectonic.template_dir.tectonic: 1 error(s) occurred:

* template_dir.tectonic: failed to render /home/alho/ws_terraform/kubernetes-tektonik/.terraform/modules/9427d33e7fb697ae705f99f3435b0b36/modules/tectonic/resources/manifests/cluster-config.yaml: 37:24: unknown variable accessed: kube_dns_service_ip

Terraform does not automatically rollback in the face of errors.

My config:

module "kubernetes" {
    source = "git::ssh://git@github.com/coreos/terraform-aws-kubernetes.git?ref=master"

  tectonic_admin_email = "aholbreich@xy.org"
  tectonic_admin_password = "secret"

  tectonic_autoscaling_group_extra_tags = [ { key = "project", value = "slack", propagate_at_launch = true } ]

  tectonic_aws_etcd_ec2_type = "t2.medium"
  tectonic_aws_worker_ec2_type = "t2.medium"
  tectonic_aws_master_ec2_type = "t2.medium"

  tectonic_etcd_count = "0"
  tectonic_master_count = "1"
  tectonic_worker_count = "2"

  tectonic_base_domain = "dev.aws.xz.org"

  tectonic_cluster_name = "tectonic-testcluster"

  tectonic_vanilla_k8s = true

  tectonic_aws_external_master_subnet_ids = ["subnet-49af1521","subnet-de7cb2a4"]
  tectonic_aws_external_vpc_id = "vpc-xzy"

   tectonic_aws_external_worker_subnet_ids = ["subnet-xyz","subnet-xyzz"]

  tectonic_aws_extra_tags = [ { key = "project", value = "slack"} ]

  tectonic_aws_private_endpoints = true
  tectonic_aws_region = "eu-central-1"
  tectonic_aws_ssh_key = "xy"
}
squat commented 7 years ago

@aholbreich thanks for finding this! Sorry, master was broken this week by a bad commit https://github.com/coreos/tectonic-installer/pull/2014/commits/9d1c39725efab97d9b9c66048735b431bb9ad3db. I am updating master in this repo now to add the patch. Please re-open if you continue to experience this.

squat commented 7 years ago

Fixed in https://github.com/coreos/terraform-aws-kubernetes/commit/9ac88f379d462c3adfaaf73dfc7864d8a9d5ab7b