Enable the Cost Estimation feature
To enable cost-estimation, Cloud provider price need to be injested regularly.
Cronjob can be enabled per cloud-provider to injest price with the following variables:
- Cycloid Self-Hosted Instances
- Cycloid Self-Hosted Kubernetes
environments/cycloid.yml
#############################
# Cost Estimation injestion #
#############################
cycloid_job_cost_estimation_injection_aws: true
cycloid_job_cost_estimation_injection_azure: true
# can't enable gcp import without a valid gcp cred json
# To enable gcp ingestion, a gcp json credential need to be provided with
# cost_estimation_gcp_cred_json: "{....}"
# cost_estimation_gcp_project: "gcp_project_name"
# cycloid_job_cost_estimation_injection_gcp: true
# Default Every sunday
# cost_estimation_ingestion_schedule: "Sun *-*-* 00:00:00"
Service can be started to force an ingestion
systemctl start cycloid-job-cost-estimation-ingestion_container.service
To automate price ingestion, you can enable a Kubernetes CronJob.
AWS prices ingestion:
backend:
cronJob:
costEstimation:
aws:
enabled: true
schedule: "0 0 * * 0"
Azure prices ingestion:
backend:
cronJob:
costEstimation:
azure:
enabled: true
schedule: "0 0 * * 0"
GCP prices ingestion:
The GCP Pricing API requires authentication. You can use a Kubernetes secret to provide GCP credentials to the ingestion job. First, obtain your gcp-credentials.json
file and create the secret as follows:
kubectl create secret generic pricing-ingest-google-credential --from-file=gcp-credentials.json
Then enable GCP price ingestion:
backend:
cronJob:
costEstimation:
gcp:
enabled: false
schedule: "0 0 * * 0"
secretName: pricing-ingest-google-credential