You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just hit a care where interpolation works for check = script while check = tcp does not interpolate.
# this service is used to give all sentinel servers
# a common connection point when bootstrapping the cluster.
#
# we only really use NOMAD_ALLOC_INDEX = 0
service {
name = "redis-discovery"
port = "redis"
tags = ["index-${NOMAD_ALLOC_INDEX}"]
check {
type = "tcp"
name = "redis-discovery tcp check #${NOMAD_ALLOC_INDEX}"
port = "redis"
interval = "10s"
timeout = "2s"
}
}
# this service will register any redis instance that
# have more than env(REQUIRED_NUMBER_OF_SLAVES || 0) slaves
#
service {
name = "redis"
port = "redis"
tags = ["master"]
check {
type = "script"
name = "redis script check #${NOMAD_ALLOC_INDEX}"
interval = "10s"
timeout = "5s"
command = "/usr/local/bin/check-redis-master"
}
}
The text was updated successfully, but these errors were encountered:
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Hi,
I've just hit a care where interpolation works for
check = script
whilecheck = tcp
does not interpolate.The text was updated successfully, but these errors were encountered: