|
@@ -31,6 +31,13 @@ gzip_types
|
|
|
text/xml
|
|
text/xml
|
|
|
text/x-component
|
|
text/x-component
|
|
|
text/x-cross-domain-policy;
|
|
text/x-cross-domain-policy;
|
|
|
|
|
+
|
|
|
|
|
+upstream model {
|
|
|
|
|
+ # Update to the cost model endpoint
|
|
|
|
|
+ # Example: host.docker.internal:9003;
|
|
|
|
|
+ server 0.0.0.0:9003;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
server {
|
|
server {
|
|
|
server_name _;
|
|
server_name _;
|
|
|
root /var/www;
|
|
root /var/www;
|
|
@@ -51,7 +58,6 @@ server {
|
|
|
add_header ETag "1.96.0";
|
|
add_header ETag "1.96.0";
|
|
|
listen 9090;
|
|
listen 9090;
|
|
|
listen [::]:9090;
|
|
listen [::]:9090;
|
|
|
- resolver kube-dns.kube-system.svc.cluster.local valid=5s;
|
|
|
|
|
location /healthz {
|
|
location /healthz {
|
|
|
return 200 'OK';
|
|
return 200 'OK';
|
|
|
}
|
|
}
|
|
@@ -59,8 +65,7 @@ server {
|
|
|
proxy_connect_timeout 180;
|
|
proxy_connect_timeout 180;
|
|
|
proxy_send_timeout 180;
|
|
proxy_send_timeout 180;
|
|
|
proxy_read_timeout 180;
|
|
proxy_read_timeout 180;
|
|
|
- set $server http://opencost.opencost.svc.cluster.local.:9003;
|
|
|
|
|
- proxy_pass $server;
|
|
|
|
|
|
|
+ proxy_pass http://model/;
|
|
|
proxy_redirect off;
|
|
proxy_redirect off;
|
|
|
proxy_http_version 1.1;
|
|
proxy_http_version 1.1;
|
|
|
proxy_set_header Connection "";
|
|
proxy_set_header Connection "";
|