I have a nginx open source pod (not ingress controller) in a namespace and i have configured the upstream
in it with 2 services already there like below
## @param serverBlock Custom server block to be added to NGINX configuration
## PHP-FPM example server block:
serverBlock: |-
upstream samplecluster {
server acj-prip:9111;
server acj-scpp:9111;
resolver kube-dns.kube-system.svc.cluster.local valid=5s;
}
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
location / {
proxy_pass http://samplecluster/;
}
}
For some reason nginx is not reaching this, these services are reachable from other pods though, getting the error as below
host not found in upstream "acj-prip:9111" in /opt/bitnami/nginx/conf/server_blocks/server-block.conf:6
nginx: [emerg] host not found in upstream "acj-prip:9111" in /opt/bitnami/nginx/conf/server_blocks/server-block.conf:6
What am i missing here?