68 lines
1.4 KiB
HCL
68 lines
1.4 KiB
HCL
provider "nomad" {
|
|
# For some reason nomad is binding to the tailscale IP but not the (local) IP that we get for the same hostname
|
|
address = "http://jaglan-beta-m01:4646"
|
|
}
|
|
|
|
resource "nomad_job" "glance" {
|
|
jobspec = file("glance.nomad.hcl")
|
|
}
|
|
|
|
resource "nomad_job" "hello_world" {
|
|
jobspec = file("hello-world.nomad.hcl")
|
|
}
|
|
|
|
resource "nomad_job" "traefik" {
|
|
jobspec = file("traefik.nomad.hcl")
|
|
}
|
|
|
|
resource "nomad_job" "authelia" {
|
|
jobspec = file("authelia.nomad.hcl")
|
|
}
|
|
|
|
resource "nomad_job" "webapp" {
|
|
jobspec = file("webapp.nomad.hcl")
|
|
}
|
|
|
|
resource "nomad_job" "csi-smb" {
|
|
jobspec = file("csi-smb.nomad.hcl")
|
|
}
|
|
|
|
data "nomad_plugin" "smb" {
|
|
plugin_id = "smb"
|
|
wait_for_healthy = true
|
|
}
|
|
|
|
resource "nomad_csi_volume_registration" "unraid_transfer" {
|
|
#Note: Before chaning the definition of this volume you need to stop the jobs that are using it
|
|
depends_on = [data.nomad_plugin.smb]
|
|
plugin_id = "smb"
|
|
|
|
volume_id = "unraid_transfer"
|
|
name = "unraid_transfer"
|
|
|
|
external_id = "unraid_transfer"
|
|
|
|
capability {
|
|
access_mode = "single-node-writer"
|
|
attachment_mode = "file-system"
|
|
}
|
|
|
|
context = {
|
|
source = "//192.168.1.192/transfer"
|
|
}
|
|
|
|
parameters = {
|
|
"csi.storage.k8s.io/node-stage-secret-name" = "smbcreds"
|
|
"csi.storage.k8s.io/node-stage-secret-namespace" = "default"
|
|
}
|
|
|
|
secrets = {
|
|
"username" = "anon"
|
|
"password" = ""
|
|
}
|
|
}
|
|
|
|
resource "nomad_job" "transfer" {
|
|
jobspec = file("transfer.nomad.hcl")
|
|
}
|