while the interpolation in the above case seems to work, when I'm trying to use the same variable for the readiness_probe, The PC_REPLICA_NUM variable is no longer correctly interpolated:
readiness_probe:
http_get:
host: 127.0.0.1
scheme: http
path: "/api/management/health"
port: 808$$PC_REPLICA_NUM # <---What should I use here?
initial_delay_seconds: 5
period_seconds: 5
timeout_seconds: 20
success_threshold: 1
failure_threshold: 3
and the process is terminated because the probe doesn't use the correct port.
Update: I've tried several interpolation patterns with no success and it looks like the actual value of PC_REPLICA_NUM variable is not available for readiness_probe or liveness_probe interpolation (always empty). Is this by design?
Hi, I'm starting multiple replicas of the same web server process using the PC_REPLICA_NUM to inject the listening port number:
while the interpolation in the above case seems to work, when I'm trying to use the same variable for the
readiness_probe
, ThePC_REPLICA_NUM
variable is no longer correctly interpolated:and the process is terminated because the probe doesn't use the correct port.
Update: I've tried several interpolation patterns with no success and it looks like the actual value of
PC_REPLICA_NUM
variable is not available forreadiness_probe
orliveness_probe
interpolation (always empty). Is this by design?