I'm setting up nginx to cache files from S3.
I'm getting a random error.
2025/10/22 08:03:11 [error] 81#81: *4256 connect() to [ipv6]:443 failed (101: Network is unreachable) while connecting to upstream, client: 10.200.186.53, server: , request: "GET /a14feca0-274e-4265-a1c0-c541e50c3b99 HTTP/1.1", upstream: "https://[ipv6]:443/a14feca0-274e-4265-a1c0-c541e50c3b99", host: "nginx-s3-gateway.development"
2025/10/22 08:03:11 [warn] 81#81: *4256 upstream server temporarily disabled while Connecting to upstream, client: 10.200.186.53, server: , request: "GET /a14feca0-274e-4265-a1c0-c541e50c3b99 HTTP/1.1", upstream: "https://[ipv6]:443/a14feca0-274e-4265-a1c0-c541e50c3b99", host: "nginx-s3-gateway.development"
Everything is fine locally in Docker. This error appears in Cloud provider, and in the k8s pod, and on a separate Docker node. Could you tell me where to look for this problem? Network, DNS, or something else?
UPD.
upstream is https://s3.yandexcloud.net
And actually it's image https://github.com/nginx/nginx-s3-gateway that I use, so I cant provide exact nginx config.