kubecost-reports-exporter
Helm chart for exporting kubernetes cost reports to AWS s3 bucket. N/B We have updated chart to use V2 scripts using allocations and assets api. if you are using old installation please use v1 chart
About this chart
kubecost-reports-exporter
Helm chart for exporting kubernetes cost reports to AWS s3 bucket. N/B We have updated chart to use V2 scripts using allocations and assets api. if you are using old installation please use v1 chart
Homepage: https://www.kubecost.com
How to install this chart
A simple install with default values, latest chart version and generated name:
helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/kubecost-reports-exporter
To install a specific version of this chart:
helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/kubecost-reports-exporter --version 2.0.6
To install the chart with the release name my-release:
helm install my-release oci://ghcr.io/deliveryhero/helm-charts/kubecost-reports-exporter
To install with some set values:
helm install my-release oci://ghcr.io/deliveryhero/helm-charts/kubecost-reports-exporter --set values_key1=value1 --set values_key2=value2
To install with custom values file:
helm install my-release oci://ghcr.io/deliveryhero/helm-charts/kubecost-reports-exporter -f values.yaml
Source Code
Values
| Key | Type | Default | Description |
|---|---|---|---|
| activeDeadlineSeconds | int | 20 | |
| affinity | object | {} | |
| concurrencyPolicy | string | "Forbid" | |
| env | object | {} | Extra environment variables |
| failedJobsHistoryLimit | int | 1 | |
| fullnameOverride | string | "" | |
| image.pullPolicy | string | "IfNotPresent" | |
| image.repository | string | "thomasnyambati/kubecost-reports-exporter" | The container image to use |
| image.tag | string | "" | |
| imagePullSecrets | list | [] | |
| kubecost.allocationCostUrl | string | "/model/allocation?window=15m&aggregate=pod&includeAggregatedMetadata=true" | Url for allocation api cost reports |
| kubecost.assetsCostUrl | string | "/model/assets?window=15m&filterCategories=Compute&filterTypes=Node&filterServices=Kubernetes" | Url for assets api cost reports |
| kubecost.bucketName | string | "kubecost-reports-exporter" | S3 Bucket name for reports export |
| kubecost.clusters[0].endpoint | string | "http://kubecost-cost-analyzer:9090" | |
| kubecost.clusters[0].name | string | "default" | |
| kubecost.diagnosticsUrl | string | "/diagnostics/prometheusMetrics" | Url for prometheus diagnostics |
| kubecost.logLevel | string | "info" | exporter log level. |
| nameOverride | string | "" | |
| nodeSelector | object | {} | |
| podAnnotations | object | {} | |
| podSecurityContext | object | {} | |
| resources | object | {} | |
| restartPolicy | string | "OnFailure" | |
| schedule | string | "0 * * * *" | |
| securityContext | object | {} | |
| serviceAccount.annotations | object | {} | |
| serviceAccount.create | bool | false | |
| serviceAccount.name | string | "" | |
| successfulJobsHistoryLimit | int | 1 | |
| tolerations | list | [] | |
| ttlSecondsAfterFinished | int | 0 |
Maintainers
| Name | Url | |
|---|---|---|
| nyambati | [email protected] |
Chart source and versions
Chart source: github.com/deliveryhero/helm-charts/kubecost-reports-exporter
Older chart versions: github.com/deliveryhero/helm-charts/pkgs/container/helm-charts/kubecost-reports-exporter
Deploy kubecost-reports-exporter with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kubecost-reports-exporter on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartkubecost-reports-exporter is pinned at v2.0.6 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply