mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-22 00:04:20 +01:00
Make Hydra work under new system
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
8b974684b5
commit
ffc47a5cc5
|
@ -1,7 +1,6 @@
|
|||
resource "nomad_volume" "hydra-db" {
|
||||
# depends_on = [data.nomad_plugin.nomad-driver-containerd]
|
||||
type = "csi"
|
||||
plugin_id = "nfs"
|
||||
plugin_id = "org.democratic-csi.nfs"
|
||||
volume_id = "hydra-db"
|
||||
name = "hydra-db"
|
||||
external_id = "hydra-db"
|
||||
|
@ -14,18 +13,19 @@ resource "nomad_volume" "hydra-db" {
|
|||
context = {
|
||||
server = "blowhole.hosts.in.redalder.org"
|
||||
share = "/var/nfs/hydra-db"
|
||||
node_attach_driver = "nfs"
|
||||
provisioner_driver = "node-manual"
|
||||
}
|
||||
|
||||
mount_options {
|
||||
fs_type = "nfs"
|
||||
mount_flags = [ "nolock", "hard" ]
|
||||
mount_flags = [ "nfsvers=3", "hard", "async" ]
|
||||
}
|
||||
}
|
||||
|
||||
resource "nomad_volume" "hydra-data" {
|
||||
# depends_on = [data.nomad_plugin.nomad-driver-containerd]
|
||||
type = "csi"
|
||||
plugin_id = "nfs"
|
||||
plugin_id = "org.democratic-csi.nfs"
|
||||
volume_id = "hydra-data"
|
||||
name = "hydra-data"
|
||||
external_id = "hydra-data"
|
||||
|
@ -38,18 +38,19 @@ resource "nomad_volume" "hydra-data" {
|
|||
context = {
|
||||
server = "blowhole.hosts.in.redalder.org"
|
||||
share = "/var/nfs/hydra-data"
|
||||
node_attach_driver = "nfs"
|
||||
provisioner_driver = "node-manual"
|
||||
}
|
||||
|
||||
mount_options {
|
||||
fs_type = "nfs"
|
||||
mount_flags = [ "nolock", "hard" ]
|
||||
mount_flags = [ "nfsvers=3", "hard", "async" ]
|
||||
}
|
||||
}
|
||||
|
||||
resource "nomad_volume" "hydra-nix" {
|
||||
# depends_on = [data.nomad_plugin.nomad-driver-containerd]
|
||||
type = "csi"
|
||||
plugin_id = "nfs"
|
||||
plugin_id = "org.democratic-csi.nfs"
|
||||
volume_id = "hydra-nix"
|
||||
name = "hydra-nix"
|
||||
external_id = "hydra-nix"
|
||||
|
@ -62,11 +63,13 @@ resource "nomad_volume" "hydra-nix" {
|
|||
context = {
|
||||
server = "blowhole.hosts.in.redalder.org"
|
||||
share = "/var/nfs/hydra-nix"
|
||||
node_attach_driver = "nfs"
|
||||
provisioner_driver = "node-manual"
|
||||
}
|
||||
|
||||
mount_options {
|
||||
fs_type = "nfs"
|
||||
mount_flags = [ "nolock", "hard" ]
|
||||
mount_flags = [ "nfsvers=3", "hard", "async" ]
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -104,8 +104,8 @@ job "hydra" {
|
|||
|
||||
resources {
|
||||
cpu = 4000
|
||||
memory = 1024
|
||||
memory_max = 3072
|
||||
memory = 4096
|
||||
memory_max = 8096
|
||||
}
|
||||
|
||||
template {
|
||||
|
|
Loading…
Reference in a new issue