Skip to content

Commit

Permalink
[ENG-2674] Add routes
Browse files Browse the repository at this point in the history
  • Loading branch information
biancaburtoiu committed Sep 6, 2024
1 parent f07aedf commit e64c55e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,14 @@ data:
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location = /model/savings/recommendations/allowLists {
proxy_read_timeout {{ .Values.kubecostFrontend.timeoutSeconds | default 300 }};
proxy_pass http://aggregator/savings/recommendations/allowLists;
proxy_redirect off;
proxy_set_header Connection "";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location = /model/cloudCost {
proxy_read_timeout {{ .Values.kubecostFrontend.timeoutSeconds | default 300 }};
proxy_pass http://aggregator/cloudCost;
Expand Down
16 changes: 16 additions & 0 deletions kubecost.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,22 @@ data:
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location = /model/savings/nodeGroupSizingETL {
proxy_read_timeout 300;
proxy_pass http://aggregator/savings/nodeGroupSizingETL;
proxy_redirect off;
proxy_set_header Connection "";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location = /model/savings/recommendations/allowLists {
proxy_read_timeout 300;
proxy_pass http://aggregator/savings/recommendations/allowLists;
proxy_redirect off;
proxy_set_header Connection "";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location = /model/cloudCost {
proxy_read_timeout 300;
proxy_pass http://aggregator/cloudCost;
Expand Down

0 comments on commit e64c55e

Please # to comment.