kinvolk / lokomotive

🪦 DISCONTINUED Further Lokomotive development has been discontinued. Lokomotive is a 100% open-source, easy to use and secure Kubernetes distribution from the volks at Kinvolk
https://kinvolk.io/lokomotive-kubernetes/
Apache License 2.0
321 stars 49 forks source link

Tinkerbell: Can't deploy multiple controllers #1431

Open johananl opened 3 years ago

johananl commented 3 years ago

When deploying a Tinkerbell cluster with multiple controllers, the following error is shown:

module.controllers.null_resource.copy-controller-secrets[0]: Creation complete after 3m24s [id=4321032068653746242]

Error: Invalid index: The given key does not identify an element in this collection value.

Error: Invalid index: The given key does not identify an element in this collection value.

FATA[0416] Applying cluster failed: applying platform: failed checking execution status: exit status 1  args="[]" command="lokoctl cluster apply"

Sample config file:

cluster "tinkerbell" {
  asset_dir               = "./assets"
  name                    = "demo"
  dns_zone                = "example.com"
  ssh_public_keys         = ["ssh-rsa ..."]
  controller_ip_addresses = [
    "10.17.3.4",
    "10.17.3.5",
    "10.17.3.6",
  ]

  experimental_sandbox {
    pool_path          = "/home/johannes/pool"
    flatcar_image_path = "/home/johannes/cluster/flatcar_production_qemu_image.img"
    hosts_cidr         = "10.17.3.0/24"
  }

  worker_pool "pool1" {
    ip_addresses    = [
      "10.17.3.7",
      "10.17.3.8",
      "10.17.3.9",
    ]
  }
}

component "httpbin" {
  ingress_host = "httpbin.example.com"
}
johananl commented 3 years ago

cc @invidian