feat(elk): add volume for backups
Some checks failed
Terraform Plan and Apply / cicd (push) Successful in 5m35s
Lint / lint (push) Failing after 14m50s

This commit is contained in:
Ben Martin 2025-01-17 21:16:30 +00:00
parent 9f88bbbcc3
commit 4b131849e4
Signed by: ben
GPG key ID: 859A655FCD290E4A

View file

@ -85,6 +85,9 @@ job "elk" {
publish_port: {{ env "NOMAD_HOST_PORT_transport" }}
discovery:
seed_providers: file
path:
repo:
- /mnt/backups
xpack:
security:
enrollment:
@ -155,6 +158,19 @@ job "elk" {
provider = "consul"
port = "transport"
}
volume_mount {
volume = "backups"
destination = "/mnt/backups"
}
}
volume "backups" {
type = "csi"
read_only = false
source = "martinibar_prod_elasticsearch_backups"
attachment_mode = "file-system"
access_mode = "multi-node-multi-writer"
}
}
@ -235,6 +251,9 @@ job "elk" {
publish_port: {{ env "NOMAD_HOST_PORT_transport" }}
discovery:
seed_providers: file
path:
repo:
- /mnt/backups
xpack:
security:
enrollment:
@ -283,6 +302,19 @@ job "elk" {
provider = "consul"
port = "transport"
}
volume_mount {
volume = "backups"
destination = "/mnt/backups"
}
}
volume "backups" {
type = "csi"
read_only = false
source = "martinibar_prod_elasticsearch_backups"
attachment_mode = "file-system"
access_mode = "multi-node-multi-writer"
}
}