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 ]]"
|
||||
readonly_rootfs = true
|
||||
force_pull = true
|
||||
pids_limit = 100
|
||||
args = ["/local/valkey.conf"]
|
||||
}
|
||||
|
||||
|
@ -30,20 +31,6 @@ _EOT
|
|||
destination = "local/valkey.conf"
|
||||
}
|
||||
|
||||
resources {
|
||||
[[- 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 ]]
|
||||
}
|
||||
[[ template "common/resources" .redis ]]
|
||||
}
|
||||
|
||||
|
|
|
@ -207,6 +207,13 @@ prometheus:
|
|||
# Path of the vault PKI used for 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:
|
||||
# Your repo where locally built images will be pushed
|
||||
repo: danielberteaud/
|
||||
|
|
Loading…
Reference in New Issue