Skip to content

Commit

Permalink
Forward clusterSizing queries to aggregator _only_ if a specific (#3149
Browse files Browse the repository at this point in the history
…) (#3159)

environment variable is set.

Co-authored-by: Thomas Nguyen <[email protected]>
  • Loading branch information
gcp-cherry-pick-bot[bot] and thomasvn authored Feb 16, 2024
1 parent f26ec59 commit fff7bb8
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,16 @@ data:
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
{{- if eq .Values.kubecostAggregator.env.MEMORY_INTENSIVE_CLUSTER_SIZING "enabled" }}
location = /model/savings/clusterSizingETL {
proxy_read_timeout 600;
proxy_pass http://aggregator/savings/clusterSizingETL;
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;
}
{{- end }}
location = /model/reports/allocation {
proxy_read_timeout {{ .Values.kubecostFrontend.timeoutSeconds | default 300 }};
proxy_pass http://aggregator/reports/allocation;
Expand Down

0 comments on commit fff7bb8

Please sign in to comment.