我收到以下错误 - 我正在使用 docker 桌面在本地机器上执行此操作 - 仅供参考
web-1 | 2024/10/08 01:08:24 [emerg] 12#12:bind() 至 10.101.121.15:443 失败 (99:无法分配请求的地址) web-1 | nginx:[emerg] bind() 至 10.111.121.13:443 失败 (99:无法分配请求的地址)
http {
upstream backend {
server cluster_1.ingress.com:443;
server cluster_2.ingress.com:443; max_fails=2 fail_timeout=1s;
}
server {
listen cluster_1.ingress.com:443;
location / {
resolver dns-default.openshift-dns;
proxy_pass https://backend;
proxy_pass_request_headers on;
proxy_ssl_server_name on;
proxy_ssl_name cluster_1.ingress.com;
proxy_set_header Host cluster_1.ingress.com;
}
}
server {
listen cluster_2.ingress.com;
location / {
resolver dns-default.openshift-dns;
proxy_pass "https://cluster_2.ingress.com";
proxy_pass_request_headers on;
proxy_ssl_server_name on;
proxy_ssl_name cluster_2.ingress.com;
proxy_set_header Host cluster_2.ingress.com;
}
}
server {
listen 8080 default_server;
listen [::]:8080 default_server;
root /usr/share/nginx/html;
server_name _;
add_header Access-Control-Allow-Origin * always;
add_header Access-Control-Allow-Credentials true;
add_header Access-Control-Allow-Headers Authorization,Accept,Origin,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range;
add_header Access-Control-Allow-Methods GET,POST,OPTIONS,PUT,DELETE,PATCH;
location / {
resolver dns-default.openshift-dns;
proxy_pass $backend;
}
}
}