Skip to content

Commit

Permalink
chore: update minio release
Browse files Browse the repository at this point in the history
Signed-off-by: Bruce Becker <[email protected]>
  • Loading branch information
brucellino committed Apr 19, 2022
1 parent d957ad7 commit 44632ff
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions minio.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,27 @@ variable "secret_key" {
type = string
}

variable "minio_storage_size"{
description = "Size of the minio storage"
type = number
default = 10737418204
}

job "minio" {
datacenters = ["dc1"]
type = "service"

constraint {
distinct_hosts = true
}

constraint {
attribute = "${attr.cpu.arch}"
value = "arm64"
}

group "deploy" {
count = 4
count = 1
reschedule {
attempts = 1
interval = "24h"
Expand Down Expand Up @@ -72,7 +81,7 @@ job "minio" {
destination = "${NOMAD_ALLOC_DIR}/minio"
mode = "file"
options {
checksum = "sha256:aa305e8147722b32873f6aa84ce9a5cce89746df893b530bb6c9fcefa4be8c2f"
checksum = "sha256:665f6690b630a7f7f5326dd3cbbf0647bbbc14c4a6cadbe7dfc919a23d727d56"
}
}

Expand All @@ -97,12 +106,24 @@ job "minio" {
env {
MINIO_ROOT_USER = var.root_username
MINIO_ROOT_PASSWORD = var.root_password
MINIO_VOLUMES="http://${attr.unique.hostname}/mnt/minio"
// MINIO_ACCESS_KEY = var.access_key
// MINIO_SECRET_KEY = var.secret_key
}

resources {
cpu = 1200
memory = 512
}

constraint {
attribute = "${attr.unique.storage.bytesfree}"
operator = ">="
value = "${var.minio_storage_size}"
}

service {
tags = ["minio", "s3", "api"]
tags = ["minio", "s3", "api", "urlprefix-/buckets"]
port = "api"

check {
Expand Down

0 comments on commit 44632ff

Please sign in to comment.