Take default redis resources alloc from .redis
This commit is contained in:
parent
cf95702ad3
commit
aa336670d9
|
@ -16,6 +16,7 @@
|
||||||
image = "[[ .docker.base_images.valkey.image ]]"
|
image = "[[ .docker.base_images.valkey.image ]]"
|
||||||
readonly_rootfs = true
|
readonly_rootfs = true
|
||||||
force_pull = true
|
force_pull = true
|
||||||
|
pids_limit = 100
|
||||||
args = ["/local/valkey.conf"]
|
args = ["/local/valkey.conf"]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,20 +31,6 @@ _EOT
|
||||||
destination = "local/valkey.conf"
|
destination = "local/valkey.conf"
|
||||||
}
|
}
|
||||||
|
|
||||||
resources {
|
[[ template "common/resources" .redis ]]
|
||||||
[[- if and (has . "resources") (has .resources "cpu") ]]
|
|
||||||
cpu = [[ .resources.cpu ]]
|
|
||||||
[[- else ]]
|
|
||||||
cpu = 10
|
|
||||||
[[- end ]]
|
|
||||||
[[- if and (has . "resources") (has .resources "memory") ]]
|
|
||||||
memory = [[ .resources.memory ]]
|
|
||||||
[[- else ]]
|
|
||||||
memory = 20
|
|
||||||
[[- end ]]
|
|
||||||
[[- if and (has . "resources") (has .resources "memory_max") ]]
|
|
||||||
memory_max = [[ .resources.memory_max ]]
|
|
||||||
[[- end ]]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -207,6 +207,13 @@ prometheus:
|
||||||
# Path of the vault PKI used for monitoring
|
# Path of the vault PKI used for monitoring
|
||||||
vault_pki: '[[ .vault.root ]]pki/monitoring'
|
vault_pki: '[[ .vault.root ]]pki/monitoring'
|
||||||
|
|
||||||
|
# Default redis (or valkey) settings
|
||||||
|
redis:
|
||||||
|
image: '[[ .docker.base_images.valkey.image ]]'
|
||||||
|
resources:
|
||||||
|
cpu: 10
|
||||||
|
memory: 20
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
# Your repo where locally built images will be pushed
|
# Your repo where locally built images will be pushed
|
||||||
repo: danielberteaud/
|
repo: danielberteaud/
|
||||||
|
|
Loading…
Reference in New Issue