diff --git a/gce-bootkube-controller/cl/bootkube-controller.yaml.tmpl b/google-cloud/container-linux/controllers/cl/controller.yaml.tmpl similarity index 100% rename from gce-bootkube-controller/cl/bootkube-controller.yaml.tmpl rename to google-cloud/container-linux/controllers/cl/controller.yaml.tmpl diff --git a/gce-bootkube-controller/controller.tf b/google-cloud/container-linux/controllers/controllers.tf similarity index 92% rename from gce-bootkube-controller/controller.tf rename to google-cloud/container-linux/controllers/controllers.tf index 57f0d701..3c353fea 100644 --- a/gce-bootkube-controller/controller.tf +++ b/google-cloud/container-linux/controllers/controllers.tf @@ -16,9 +16,9 @@ resource "google_compute_instance_group_manager" "controllers" { ] } -# bootkube-controller Container Linux config +# Controller Container Linux Config data "template_file" "controller_config" { - template = "${file("${path.module}/cl/bootkube-controller.yaml.tmpl")}" + template = "${file("${path.module}/cl/controller.yaml.tmpl")}" vars = { k8s_dns_service_ip = "${cidrhost(var.service_cidr, 10)}" @@ -38,7 +38,7 @@ data "ct_config" "controller_ign" { resource "google_compute_instance_template" "controller" { name_prefix = "${var.cluster_name}-controller-" - description = "bootkube-controller Instance template" + description = "Controller Instance template" machine_type = "${var.machine_type}" metadata { diff --git a/gce-bootkube-controller/network.tf b/google-cloud/container-linux/controllers/network.tf similarity index 100% rename from gce-bootkube-controller/network.tf rename to google-cloud/container-linux/controllers/network.tf diff --git a/gce-bootkube-controller/variables.tf b/google-cloud/container-linux/controllers/variables.tf similarity index 100% rename from gce-bootkube-controller/variables.tf rename to google-cloud/container-linux/controllers/variables.tf diff --git a/gce-bootkube/bootkube.tf b/google-cloud/container-linux/kubernetes/bootkube.tf similarity index 100% rename from gce-bootkube/bootkube.tf rename to google-cloud/container-linux/kubernetes/bootkube.tf diff --git a/gce-bootkube/cluster.tf b/google-cloud/container-linux/kubernetes/cluster.tf similarity index 93% rename from gce-bootkube/cluster.tf rename to google-cloud/container-linux/kubernetes/cluster.tf index 2d8bde73..d709bba8 100644 --- a/gce-bootkube/cluster.tf +++ b/google-cloud/container-linux/kubernetes/cluster.tf @@ -1,5 +1,5 @@ module "controllers" { - source = "../gce-bootkube-controller" + source = "../controllers" cluster_name = "${var.cluster_name}" ssh_authorized_key = "${var.ssh_authorized_key}" @@ -23,7 +23,7 @@ module "controllers" { } module "workers" { - source = "../gce-bootkube-worker" + source = "../workers" cluster_name = "${var.cluster_name}" ssh_authorized_key = "${var.ssh_authorized_key}" diff --git a/gce-bootkube/network.tf b/google-cloud/container-linux/kubernetes/network.tf similarity index 100% rename from gce-bootkube/network.tf rename to google-cloud/container-linux/kubernetes/network.tf diff --git a/gce-bootkube/outputs.tf b/google-cloud/container-linux/kubernetes/outputs.tf similarity index 100% rename from gce-bootkube/outputs.tf rename to google-cloud/container-linux/kubernetes/outputs.tf diff --git a/gce-bootkube/ssh.tf b/google-cloud/container-linux/kubernetes/ssh.tf similarity index 100% rename from gce-bootkube/ssh.tf rename to google-cloud/container-linux/kubernetes/ssh.tf diff --git a/gce-bootkube/variables.tf b/google-cloud/container-linux/kubernetes/variables.tf similarity index 100% rename from gce-bootkube/variables.tf rename to google-cloud/container-linux/kubernetes/variables.tf diff --git a/gce-bootkube-worker/cl/bootkube-worker.yaml.tmpl b/google-cloud/container-linux/workers/cl/worker.yaml.tmpl similarity index 100% rename from gce-bootkube-worker/cl/bootkube-worker.yaml.tmpl rename to google-cloud/container-linux/workers/cl/worker.yaml.tmpl diff --git a/gce-bootkube-worker/network.tf b/google-cloud/container-linux/workers/network.tf similarity index 100% rename from gce-bootkube-worker/network.tf rename to google-cloud/container-linux/workers/network.tf diff --git a/gce-bootkube-worker/outputs.tf b/google-cloud/container-linux/workers/outputs.tf similarity index 100% rename from gce-bootkube-worker/outputs.tf rename to google-cloud/container-linux/workers/outputs.tf diff --git a/gce-bootkube-worker/variables.tf b/google-cloud/container-linux/workers/variables.tf similarity index 100% rename from gce-bootkube-worker/variables.tf rename to google-cloud/container-linux/workers/variables.tf diff --git a/gce-bootkube-worker/worker.tf b/google-cloud/container-linux/workers/workers.tf similarity index 93% rename from gce-bootkube-worker/worker.tf rename to google-cloud/container-linux/workers/workers.tf index 5e2f0af4..148bb69f 100644 --- a/gce-bootkube-worker/worker.tf +++ b/google-cloud/container-linux/workers/workers.tf @@ -16,9 +16,9 @@ resource "google_compute_instance_group_manager" "workers" { ] } -# bootkube-worker Container Linux config +# Worker Container Linux Config data "template_file" "worker_config" { - template = "${file("${path.module}/cl/bootkube-worker.yaml.tmpl")}" + template = "${file("${path.module}/cl/worker.yaml.tmpl")}" vars = { k8s_dns_service_ip = "${cidrhost(var.service_cidr, 10)}" @@ -38,7 +38,7 @@ data "ct_config" "worker_ign" { resource "google_compute_instance_template" "worker" { name_prefix = "${var.cluster_name}-worker-" - description = "bootkube-worker Instance template" + description = "Worker Instance template" machine_type = "${var.machine_type}" metadata {