Skip to content
This repository has been archived by the owner on Feb 5, 2020. It is now read-only.

Commit

Permalink
Make build work
Browse files Browse the repository at this point in the history
  • Loading branch information
aknuds1 committed Jul 19, 2017
1 parent 9e791b9 commit 59aa3de
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 5 deletions.
1 change: 1 addition & 0 deletions modules/digitalocean/ignition/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ variable "kubelet_node_taints" {
variable "bootkube_service" {
type = "string"
description = "The content of the bootkube systemd service unit"
default = ""
}

variable "swap_size" {
Expand Down
2 changes: 1 addition & 1 deletion modules/digitalocean/worker/variables.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
variable "instance_count" {
variable "droplet_count" {
type = "string"
}

Expand Down
4 changes: 2 additions & 2 deletions modules/digitalocean/worker/worker.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resource "digitalocean_droplet" "worker_node" {
count = "${var.instance_count}"
count = "${var.droplet_count}"
name = "${var.cluster_name}-worker-${count.index}"
image = "${var.droplet_image}"
region = "${var.droplet_region}"
Expand All @@ -10,7 +10,7 @@ resource "digitalocean_droplet" "worker_node" {
}

resource "digitalocean_record" "worker" {
count = "${var.instance_count}"
count = "${var.droplet_count}"
domain = "${var.cluster_domain}"
type = "A"
name = "${var.cluster_name}-worker-${count.index}"
Expand Down
4 changes: 4 additions & 0 deletions platforms/digitalocean/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Tectonic Installer for DigitalOcean

## etcd
We create an etcd cluster with a default of 3 droplets (controlled by `tectonic_etcd_count`).
3 changes: 1 addition & 2 deletions platforms/digitalocean/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,13 @@ module "ignition-workers" {
kube_dns_service_ip = "${module.bootkube.kube_dns_service_ip}"
container_images = "${var.tectonic_container_images}"
swap_size = "${var.tectonic_do_worker_swap}"
bootkube_service = ""
cluster_domain = "${var.tectonic_cluster_name}.k8s.${var.tectonic_base_domain}"
}

module "workers" {
source = "../../modules/digitalocean/worker"

instance_count = "${var.tectonic_worker_count}"
droplet_count = "${var.tectonic_worker_count}"
cluster_name = "${var.tectonic_cluster_name}"
droplet_size = "${var.tectonic_do_worker_droplet_size}"
droplet_region = "${var.tectonic_do_droplet_region}"
Expand Down
11 changes: 11 additions & 0 deletions platforms/digitalocean/tectonic.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ module "bootkube" {
etcd_client_key = "${var.tectonic_etcd_client_key_path}"
experimental_enabled = "${var.tectonic_experimental}"
versions = "${var.tectonic_versions}"
master_count = 1
etcd_cert_dns_names = [
"${var.tectonic_cluster_name}-etcd-0.${var.tectonic_base_domain}",
"${var.tectonic_cluster_name}-etcd-1.${var.tectonic_base_domain}",
"${var.tectonic_cluster_name}-etcd-2.${var.tectonic_base_domain}",
"${var.tectonic_cluster_name}-etcd-3.${var.tectonic_base_domain}",
"${var.tectonic_cluster_name}-etcd-4.${var.tectonic_base_domain}",
"${var.tectonic_cluster_name}-etcd-5.${var.tectonic_base_domain}",
"${var.tectonic_cluster_name}-etcd-6.${var.tectonic_base_domain}",
]
}

module "tectonic" {
Expand Down Expand Up @@ -49,6 +59,7 @@ module "tectonic" {
ingress_kind = "NodePort"
experimental = "${var.tectonic_experimental}"
master_count = 1
stats_url = "${var.tectonic_stats_url}"
}

data "archive_file" "assets" {
Expand Down

0 comments on commit 59aa3de

Please sign in to comment.