Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optionally disable green banner #3737

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -987,12 +987,40 @@ data:
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location = /model/debug/orchestrator {
{{ if .Values.kubecostFrontend.orchestratorEnabled }}
proxy_read_timeout {{ .Values.kubecostFrontend.timeoutSeconds | default 300 }};
proxy_pass http://aggregator/debug/orchestrator;
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;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
{{ else }}
default_type 'application/json';
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Allow-Methods' 'GET, PUT, POST, DELETE, OPTIONS' always;
return 200 '{
"fsmCurrent": "orchestrator-disabled",
"dbReadMemLimit": "",
"readDBPath": "/var/configs/waterfowl/duckdb/v0_10_3/kubecost-1718644669.duckdb.read",
"writeDBPath": "/var/configs/waterfowl/duckdb/v0_10_3/kubecost.duckdb.write",
"dbCopyFilePath": "/var/configs/waterfowl/duckdb/v0_10_3/kubecost.duckdb.copy",
"currentBucketRefreshInterval": "orchestrator-disabled",
"bootCyclesCompleted": 4,
"initialCompletionPercentage": 0,
"initialSetupStage": 1,
"initialSetupLabel": "stable",
"ingestedDurationHours": 0,
"ingestedGiB": 0,
"ingestedGiBPerHour": 0,
"pendingGiB": 0,
"estimatedIngestionHoursRemaining": 0,
"storageStats": {
"totalInMiB": 999.999,
"usedInMiB": 999.999,
"freeInMiB": 999.999,
"usedPercent": 0.0 }
}';
{{ end }}
}
location = /model/prediction/speccost {
proxy_read_timeout {{ .Values.kubecostFrontend.timeoutSeconds | default 300 }};
Expand Down
2 changes: 2 additions & 0 deletions cost-analyzer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,8 @@ kubecostFrontend:
# hideDiagnostics: false # useful if the primary is not monitored. Supported in limited environments.
# hideOrphanedResources: false # OrphanedResources works on the primary-cluster's cloud-provider only.

orchestratorEnabled: true # controls the green progress bar on the frontend. This option is experimental and should not be used without Kubecost support.

# set to true to set all upstreams to use <service>.<namespace>.svc.cluster.local instead of just <service>.<namespace>
useDefaultFqdn: false
# api:
Expand Down