We trying set a communication from our Front end container (nginx pod) to backend container service and getting below error .
nginx Node port service → nginx pod (UI)–> Backend Cluster IP service -->Back end Pod (rest service)
[error] 19#19: *9 connect() failed (111: Connection refused) while connecting to upstream
Unable to troubleshoot this issue, any idea on the root cause ?
nginx conf --------
upstream back-service{
server back-service:8443;
}
server {
listen 80;
location /api {
proxy_pass http://back-service;
}
}