-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: NVME bootstrapping * Better handling of tolerations * One proxy per network * Fix proxy per network approach * Improve health check
- Loading branch information
1 parent
e27daad
commit bd60447
Showing
32 changed files
with
717 additions
and
294 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
module "pvc" { | ||
source = "../pvc" | ||
|
||
namespace = var.namespace | ||
name = "pvc-${var.salt}" | ||
storage_size = var.storage_size | ||
storage_class = var.storage_class | ||
volume_name = var.volume_name | ||
} | ||
|
||
module "instances" { | ||
for_each = var.instances | ||
source = "../instance" | ||
|
||
namespace = var.namespace | ||
tolerations = var.tolerations | ||
salt = var.salt | ||
instance_name = each.key | ||
network = each.key | ||
pvc_name = "pvc-${var.salt}" | ||
dolos_version = each.value.dolos_version | ||
replicas = coalesce(each.value.replicas, 1) | ||
resources = coalesce(each.value.resources, { | ||
requests = { | ||
cpu = "50m" | ||
memory = "512Mi" | ||
} | ||
limits = { | ||
cpu = "1000m" | ||
memory = "512Mi" | ||
} | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
variable "namespace" { | ||
type = string | ||
} | ||
|
||
variable "salt" { | ||
type = string | ||
} | ||
|
||
variable "extension_subdomain" { | ||
type = string | ||
} | ||
|
||
variable "dns_zone" { | ||
default = "demeter.run" | ||
} | ||
|
||
variable "storage_size" { | ||
type = string | ||
} | ||
|
||
variable "storage_class" { | ||
type = string | ||
} | ||
|
||
variable "volume_name" { | ||
type = string | ||
} | ||
|
||
variable "tolerations" { | ||
type = list(object({ | ||
effect = string | ||
key = string | ||
operator = string | ||
value = string | ||
})) | ||
default = [ | ||
{ | ||
effect = "NoSchedule" | ||
key = "demeter.run/compute-profile" | ||
operator = "Equal" | ||
value = "disk-intensive" | ||
}, | ||
{ | ||
effect = "NoSchedule" | ||
key = "demeter.run/compute-arch" | ||
operator = "Equal" | ||
value = "arm64" | ||
}, | ||
{ | ||
effect = "NoSchedule" | ||
key = "demeter.run/availability-sla" | ||
operator = "Equal" | ||
value = "consistent" | ||
} | ||
] | ||
} | ||
|
||
// Instances | ||
variable "instances" { | ||
type = map(object({ | ||
dolos_version = string | ||
replicas = optional(number) | ||
resources = optional(object({ | ||
limits = object({ | ||
cpu = string | ||
memory = string | ||
}) | ||
requests = object({ | ||
cpu = string | ||
memory = string | ||
}) | ||
})) | ||
})) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Oops, something went wrong.