Skip to content

Commit

Permalink
Merge pull request #3781 from kubecost/remove-old-api-port
Browse files Browse the repository at this point in the history
Remove-old-api-port
  • Loading branch information
jessegoodier authored Dec 17, 2024
2 parents 836cb3f + 2174413 commit 0a2fa2f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,6 @@ data:
text/x-component
text/x-cross-domain-policy;
upstream api {
{{- if .Values.kubecostFrontend.useDefaultFqdn }}
server {{ $serviceName }}.{{ .Release.Namespace }}.svc.cluster.local:9001;
{{- else if (.Values.kubecostFrontend.api).fqdn }}
server {{ .Values.kubecostFrontend.api.fqdn }};
{{- else }}
server {{ $serviceName }}.{{ .Release.Namespace }}:9001;
{{- end }}
}

upstream model {
{{- if .Values.kubecostFrontend.useDefaultFqdn }}
server {{ $serviceName }}.{{ .Release.Namespace }}.svc.cluster.local:9003;
Expand Down Expand Up @@ -226,17 +216,7 @@ data:
listen [::]:{{ .Values.service.targetPort }};
{{- end }}
{{- end }}
location /api/ {
{{- if or .Values.saml.enabled .Values.oidc.enabled }}
auth_request /auth;
{{- end }}
proxy_pass http://api/;
proxy_redirect off;
proxy_http_version 1.1;
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/ {
proxy_connect_timeout {{ .Values.kubecostFrontend.timeoutSeconds | default 300 }};
proxy_send_timeout {{ .Values.kubecostFrontend.timeoutSeconds | default 300 }};
Expand Down
2 changes: 0 additions & 2 deletions cost-analyzer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -485,8 +485,6 @@ kubecostFrontend:

# set to true to set all upstreams to use <service>.<namespace>.svc.cluster.local instead of just <service>.<namespace>
useDefaultFqdn: false
# api:
# fqdn: kubecost-api.kubecost.svc.cluster.local:9001
# model:
# fqdn: kubecost-model.kubecost.svc.cluster.local:9003
# forecasting:
Expand Down

0 comments on commit 0a2fa2f

Please sign in to comment.