DirectorySecurity AdvisoriesPricing
Sign inTry Starter for free
Directory
opencost logoHELM

opencost

Helm chart
Last changed
Request a free trial

Contact our team to test out this Helm chart and related images for free. Please also indicate any other images you would like to evaluate.

Overview
Chart tags
Default values
Chart metadata
Images

Tag:
Compare:

1
# -- Overwrite the default name of the chart
2
nameOverride: ""
3
# -- Overwrite all resources name created by the chart
4
fullnameOverride: ""
5
# -- Override the deployment namespace
6
namespaceOverride: ""
7
# -- Override the default name of cluster - Can be found in /etc/kubernetes/admin.conf: clusters -> cluster -> name
8
clusterName: "cluster.local"
9
loglevel: info
10
plugins:
11
enabled: false
12
install:
13
enabled: true
14
fullImageName: curlimages/curl:latest
15
securityContext:
16
allowPrivilegeEscalation: false
17
seccompProfile:
18
type: RuntimeDefault
19
capabilities:
20
drop:
21
- ALL
22
readOnlyRootFilesystem: true
23
runAsNonRoot: true
24
runAsUser: 1000
25
# -- List of plugins to download, independent of `plugins.configs`.
26
# When specified, these plugins are downloaded regardless of what's in configs,
27
# which enables using `plugins.existingSecret` for credentials while still
28
# downloading plugin binaries. This list also drives which `<plugin>_config.json`
29
# subPaths the Deployment mounts, so each listed plugin MUST have a matching
30
# config source -- either a `plugins.configs.<plugin>` entry (when
31
# `plugins.existingSecret` is empty) or a `<plugin>_config.json` key in the
32
# Secret referenced by `plugins.existingSecret`. Missing entries cause Pod
33
# startup failures because the mounted subPath will not exist. When
34
# `plugins.existingSecret` is empty, the chart validates this at
35
# template-render time and fails with an actionable error; the check is
36
# skipped when `plugins.existingSecret` is set because the contents of an
37
# externally-managed Secret cannot be introspected from Helm.
38
# Example: ["datadog", "mongodb"].
39
# If empty, falls back to downloading plugins based on keys in configs (legacy behavior).
40
plugins: []
41
folder: /opt/opencost/plugin
42
# leave this commented to always download most recent version of plugins
43
# version: <INSERT_SPECIFIC_PLUGINS_VERSION>
44
# -- Use an existing Secret for plugin configuration instead of generating
45
# one from `plugins.configs`. The referenced Secret MUST contain a
46
# `<plugin>_config.json` key for every entry in `plugins.install.plugins`
47
# (and for every plugin whose configs key would otherwise drive the
48
# install/mount list) -- the Deployment mounts those files via subPath and
49
# missing keys cause Pod startup failures. This is useful when using
50
# ExternalSecrets, Vault, or other secret-management tools so that plugin
51
# credentials do not have to be committed via `plugins.configs`. Mutually
52
# exclusive with `plugins.configs`: when `existingSecret` is set, the chart
53
# does not render a generated Secret and any `plugins.configs` entries would
54
# be silently ignored, so the chart will `fail` template rendering in that
55
# case.
56
existingSecret: ""
57
configs:
58
# datadog: |
59
# {
60
# "datadog_site": "<INSERT_DATADOG_SITE>",
61
# "datadog_api_key": "<INSERT_DATADOG_API_KEY>",
62
# "datadog_app_key": "<INSERT_DATADOG_APP_KEY>"
63
# }
64
# -- List of secret names to use for pulling the images
65
imagePullSecrets: []
66
serviceAccount:
67
# -- Specifies whether a service account should be created
68
create: true
69
# -- Annotations to add to the service account
70
annotations: {}
71
# eks.amazonaws.com/role-arn: arn:aws:iam::123456789012:role/eksctl-opencost
72
# The name of the service account to use.
73
# If not set and create is true, a name is generated using the fullname template
74
name: ""
75
# -- Whether pods running as this service account should have an API token automatically mounted
76
automountServiceAccountToken: true
77
# NetworkPolicies for ingress
78
networkPolicies:
79
# -- Specifies whether networkpolicies should be created
80
enabled: false
81
# -- Internal Prometheus settings related to NetworkPolicies
82
prometheus:
83
# -- Namespace where internal Prometheus is installed
84
namespace: prometheus-system
85
# -- Pod port of in-cluster Prometheus
86
port: 9090
87
# -- Labels applied to the Prometheus server pod(s)
88
labels:
89
app.kubernetes.io/name: prometheus
90
# -- Extra egress rule
91
extraEgress: []
92
# -- Strategy to be used for the Deployment
93
updateStrategy:
94
rollingUpdate:
95
maxSurge: 1
96
maxUnavailable: 1
97
type: RollingUpdate
98
# -- Annotations to add to the all the resources
99
annotations: {}
100
# -- Annotations to add to the OpenCost Pod
101
podAnnotations: {}
102
# -- Annotations to add to the Secret
103
secretAnnotations: {}
104
# -- Labels to add to the OpenCost Pod
105
podLabels: {}
106
# -- Pod priority
107
priorityClassName: ~
108
# -- Enable automounting of service account token at the pod level
109
podAutomountServiceAccountToken: true
110
# -- Holds pod-level security attributes and common container settings
111
podSecurityContext: {}
112
# fsGroup: 2000
113
114
service:
115
enabled: true
116
# -- Annotations to add to the service
117
annotations: {}
118
# -- Labels to add to the service account
119
labels: {}
120
# -- Kubernetes Service type
121
type: ClusterIP
122
# -- NodePort if service type is NodePort
123
nodePort: {}
124
# -- extra ports. Useful for sidecar pods such as oauth-proxy
125
extraPorts: []
126
# - name: oauth-proxy
127
# port: 8081
128
# targetPort: 8081
129
# - name: oauth-metrics
130
# port: 8082
131
# targetPort: 8082
132
# -- LoadBalancer Source IP CIDR if service type is LoadBalancer and cloud provider supports this
133
loadBalancerSourceRanges: []
134
# Create cluster role policies
135
rbac:
136
enabled: true
137
# PodDisruptionBudget for high availability
138
pdb:
139
enabled: false
140
# -- Minimum number of pods that must be available after the eviction
141
minAvailable: ~
142
# -- Maximum number of pods that can be unavailable after the eviction
143
maxUnavailable: ~
144
opencost:
145
# -- Existing Secret containing `cloud-integration.json` for Cloud Costs. See
146
# https://www.opencost.io/docs/configuration/#cloud-costs.
147
# Create with: `kubectl create secret generic <SECRET_NAME> --from-file=cloud-integration.json -n opencost`.
148
# Mutually exclusive with `opencost.cloudIntegrationJSON`.
149
cloudIntegrationSecret: ""
150
# -- Raw JSON for `cloud-integration.json`. Creates a Secret named
151
# `<fullname>-cloud-integration` in the release namespace.
152
# Mutually exclusive with `opencost.cloudIntegrationSecret`.
153
cloudIntegrationJSON: ""
154
# cloudIntegrationJSON: |-
155
# {
156
# "aws": [
157
# {
158
# "athenaBucketName": "s3://AWS_cloud_integration_athenaBucketName",
159
# "athenaRegion": "AWS_cloud_integration_athenaRegion",
160
# "athenaDatabase": "AWS_cloud_integration_athenaDatabase",
161
# "athenaTable": "AWS_cloud_integration_athenaTable",
162
# "projectID": "AWS_cloud_integration_athena_projectID",
163
# "serviceKeyName": "AWS_cloud_integration_athena_serviceKeyName",
164
# "serviceKeySecret": "AWS_cloud_integration_athena_serviceKeySecret"
165
# }
166
# ],
167
# "azure": [
168
# {
169
# "azureSubscriptionID": "my-subscription-id",
170
# "azureStorageAccount": "my-storage-account",
171
# "azureStorageAccessKey": "my-storage-access-key",
172
# "azureStorageContainer": "my-storage-container"
173
# }
174
# ],
175
# "gcp": [
176
# {
177
# "projectID": "my-project-id",
178
# "billingDataDataset": "detailedbilling.my-billing-dataset",
179
# "key": {
180
# "type": "service_account",
181
# "project_id": "my-project-id",
182
# "private_key_id": "my-private-key-id",
183
# "private_key": "my-pem-encoded-private-key",
184
# "client_email": "my-service-account-name@my-project-id.iam.gserviceaccount.com",
185
# "client_id": "my-client-id",
186
# "auth_uri": "auth-uri",
187
# "token_uri": "token-uri",
188
# "auth_provider_x509_cert_url": "my-x509-provider-cert",
189
# "client_x509_cert_url": "my-x509-cert-url"
190
# }
191
# }
192
# ],
193
# "oci": {
194
# "usageApi": [
195
# {
196
# "tenancyID": "ocid1.tenancy.oc1..my-tenancy-ocid",
197
# "region": "us-ashburn-1",
198
# "authorizer": {
199
# "authorizerType": "OCIRawConfigProvider",
200
# "tenancyID": "ocid1.tenancy.oc1..my-tenancy-ocid",
201
# "userID": "ocid1.user.oc1..my-user-ocid",
202
# "region": "us-ashburn-1",
203
# "fingerprint": "xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx",
204
# "privateKey": "REPLACE_WITH_YOUR_OCI_KEY_FILE_CONTENTS"
205
# }
206
# }
207
# ]
208
# }
209
# }
210
211
# -- MCP (Model Context Protocol) Server Configuration
212
# The MCP server provides AI agents with access to cost allocation and asset data
213
mcp:
214
# -- Enable MCP server for AI agent integration (default: true)
215
# Set to false to disable MCP server completely
216
enabled: true
217
# -- HTTP port for MCP server (default: 8081)
218
# Change this if port 8081 conflicts with other services
219
port: 8081
220
ingress:
221
# -- Ingress for MCP server
222
enabled: false
223
# -- Ingress controller which implements the resource
224
ingressClassName: ""
225
# -- Annotations for Ingress resource
226
annotations: {}
227
# kubernetes.io/tls-acme: "true"
228
# -- A list of host rules used to configure the Ingress
229
# @default -- See [values.yaml](values.yaml)
230
hosts:
231
- host: example.local
232
paths:
233
- path: /
234
pathType: Prefix
235
# -- Ingress TLS configuration
236
tls: []
237
# - secretName: chart-example-tls
238
# hosts:
239
# - chart-example.local
240
# -- HTTPRoute for MCP server (Gateway API)
241
httpRoute:
242
# -- Enable HTTPRoute resource
243
enabled: false
244
# -- Gateway API parent references
245
# @default -- See [values.yaml](values.yaml)
246
parentRefs:
247
- name: ""
248
namespace: ""
249
sectionName: ""
250
# -- Hostnames for the HTTPRoute
251
hostnames: []
252
# - mcp.example.local
253
# -- Annotations for HTTPRoute resource
254
annotations: {}
255
# -- Labels for HTTPRoute resource
256
labels: {}
257
# -- HTTPRoute rules. Each rule supports an optional `filters` list at the rule level
258
# and per-backendRef `filters` for Gateway API filter configuration (e.g. basic auth
259
# via `ExtensionRef`, header modification via `RequestHeaderModifier`, etc.).
260
# @default -- See [values.yaml](values.yaml)
261
rules:
262
- matches:
263
- path:
264
type: PathPrefix
265
value: /
266
# filters:
267
# - type: ExtensionRef
268
# extensionRef:
269
# group: gateway.envoyproxy.io
270
# kind: SecurityPolicy
271
# name: basic-auth-policy
272
backendRefs:
273
- name: "" # Will default to service name
274
port: 8081
275
# filters:
276
# - type: RequestHeaderModifier
277
# requestHeaderModifier:
278
# add:
279
# - name: X-Custom-Header
280
# value: my-value
281
exporter:
282
# API_PORT for the cost-model to listen on
283
apiPort: 9003
284
# debugPort: 40000 # for development purposes (debugging with delve) and not for production.
285
# -- The GCP Pricing API requires a key. This is supplied just for evaluation.
286
cloudProviderApiKey: ""
287
# -- Default cluster ID to use if cluster_id is not set in Prometheus metrics.
288
defaultClusterId: 'default-cluster'
289
# -- If clusterIdConfigmap is defined, use user-generated ConfigMap with key CLUSTER_ID as default cluster ID.
290
# -- This overrides the above defaultClusterId. Ensure the ConfigMap exists and contains the required CLUSTER_ID key.
291
# clusterIdConfigmap: cluster-id-configmap
292
image:
293
# -- Exporter container image registry
294
registry: cgr.dev
295
# -- Exporter container image name
296
repository: chainguard-private/opencost
297
# -- Exporter container image tag
298
tag: 1.121.5-r0@sha256:10d9e91a23a83323268c5efe5b1e0eef3d7a1dab8b98aa497073a5b4ce53cf5f
299
# -- Exporter container image pull policy
300
pullPolicy: IfNotPresent
301
# -- Override the full image name for development purposes
302
fullImageName: null
303
# -- List of extra arguments for the command, e.g.: log-format=json
304
extraArgs: []
305
# -- Optional command to override the default container command
306
command: []
307
# -- Number of OpenCost replicas to run
308
replicas: 1
309
resources:
310
# -- CPU/Memory resource requests
311
requests:
312
cpu: '10m'
313
memory: '55Mi'
314
# -- CPU/Memory resource limits
315
limits:
316
memory: '1Gi'
317
# Startup probe configuration
318
startupProbe:
319
# -- Whether probe is enabled
320
enabled: true
321
# -- Probe path
322
path: /healthz
323
# -- Number of seconds before probe is initiated
324
initialDelaySeconds: 10
325
# -- Probe frequency in seconds
326
periodSeconds: 5
327
# -- Number of failures for probe to be considered failed
328
failureThreshold: 30
329
# -- Number of seconds after which the probe times out
330
timeoutSeconds: 1
331
# Liveness probe configuration
332
livenessProbe:
333
# -- Whether probe is enabled
334
enabled: true
335
# -- Probe path
336
path: /healthz
337
# -- Number of seconds before probe is initiated
338
initialDelaySeconds: 10
339
# -- Probe frequency in seconds
340
periodSeconds: 20
341
# -- Number of failures for probe to be considered failed
342
failureThreshold: 3
343
# -- Number of seconds after which the probe times out
344
timeoutSeconds: 1
345
# Readiness probe configuration
346
readinessProbe:
347
# -- Whether probe is enabled
348
enabled: true
349
# -- Probe path
350
path: /healthz
351
# -- Number of seconds before probe is initiated
352
initialDelaySeconds: 10
353
# -- Probe frequency in seconds
354
periodSeconds: 10
355
# -- Number of failures for probe to be considered failed
356
failureThreshold: 3
357
# -- Number of seconds after which the probe times out
358
timeoutSeconds: 1
359
# -- Minimum consecutive successes for the probe to be considered successful after having failed
360
successThreshold: 1
361
# -- The security options the container should be run with
362
securityContext: {}
363
# capabilities:
364
# drop:
365
# - ALL
366
# readOnlyRootFilesystem: true
367
# runAsNonRoot: true
368
# runAsUser: 1000
369
370
# Path of CSV file
371
csv_path: ""
372
prometheusDataSource:
373
# Set the resolution in second that prometheus queries will be performed at
374
queryResolutionSeconds: 300
375
# Collector DataSource collects cluster data without a dependency on Prometheus
376
# It is recommended that persistence is enabled alongside it to preserve the state
377
# between pod restarts
378
collectorDataSource:
379
enabled: false
380
# -- define the interval at which the collector scrapes for data points (10s, 15s, 1m)
381
scrapeInterval: 30s
382
# -- The port at which network pods are open to egress
383
networkPort: 3001
384
# -- The number of 10m intervals the Collector DataSource should maintain
385
retention10m: 36
386
# -- The number of 1h intervals the Collector DataSource should maintain
387
retention1h: 49
388
# -- The number of 1d intervals the Collector DataSource should maintain
389
retention1d: 15
390
# Persistent volume claim for storing the data. eg: csv file
391
persistence:
392
enabled: false
393
# -- The path that the PV will be mounted to the exporter at
394
mountPath: /mnt/export
395
# -- Annotations for persistent volume
396
annotations: {}
397
# -- Access mode for persistent volume
398
accessMode: ""
399
# -- Storage class for persistent volume
400
storageClass: ""
401
# -- Size for persistent volume
402
size: ""
403
# Inference cost tracking configuration for LLM workloads (e.g., vLLM via llm-d)
404
inferenceCostTracking:
405
# -- Enable inference cost tracking
406
enabled: false
407
# -- Pod label whose value is the vLLM model name. Must match the model_name label on vLLM Prometheus metrics
408
modelLabel: "llm-d.ai/model"
409
# -- Pod label key identifying shared infra pods (EPP, gateway)
410
sharedInfraLabel: "llm-d.ai/inference-shared"
411
# -- Label value that marks a pod as shared infra
412
sharedInfraLabelValue: "true"
413
# -- Background collection interval
414
collectionInterval: "2m"
415
aws:
416
# -- AWS secret access key
417
secret_access_key: ""
418
# -- AWS secret key id
419
access_key_id: ""
420
# -- A list of volume mounts to be added to the pod
421
extraVolumeMounts: []
422
# -- List of additional environment variables to set in the container
423
env: []
424
# -- Any extra environment variables you would like to pass on to the pod
425
extraEnv: {}
426
# FOO: BAR
427
# For example, if accessing mimir directly and getting 401 Unauthorized
428
# PROMETHEUS_HEADER_X_SCOPE_ORGID: anonymous
429
# -- Extra environment variables from secrets or configmaps
430
extraEnvFrom: []
431
# - configMapRef:
432
# name: opencost-env
433
# - secretRef:
434
# name: opencost-env-secret
435
# Admin token for write operations (e.g. POST /serviceKey, cloud config endpoints).
436
# Set ADMIN_TOKEN env from a chart-created secret or an existing secret.
437
adminToken:
438
# -- When true, the chart creates the admin-token Secret (if value is set) or mounts existingSecret as ADMIN_TOKEN. When false, ADMIN_TOKEN is not set and no secret is deployed.
439
enabled: false
440
# -- If set, the chart creates a Secret with this value and sets ADMIN_TOKEN from it (not recommended for production; use existingSecret instead).
441
value: ""
442
# -- Use an existing Secret for the admin token (recommended). Secret must contain the key below.
443
existingSecret: ""
444
# -- Key in the Secret that holds the admin token (used for both value-created and existing secrets).
445
secretKey: "ADMIN_TOKEN"
446
apiIngress:
447
# -- Ingress for OpenCost API
448
enabled: false
449
# -- Ingress controller which implements the resource
450
ingressClassName: ""
451
# -- Annotations for Ingress resource
452
annotations: {}
453
# kubernetes.io/tls-acme: "true"
454
# -- A list of host rules used to configure the Ingress
455
# @default -- See [values.yaml](values.yaml)
456
hosts:
457
- host: example.local
458
paths:
459
- path: /
460
pathType: Prefix
461
# -- Redirect ingress to an extraPort defined on the service such as oauth-proxy
462
servicePort: http
463
# servicePort: oauth-proxy
464
# -- Ingress TLS configuration
465
tls: []
466
# - secretName: chart-example-tls
467
# hosts:
468
# - chart-example.local
469
# -- HTTPRoute for OpenCost API (Gateway API)
470
apiHttpRoute:
471
# -- Enable HTTPRoute resource
472
enabled: false
473
# -- Gateway API parent references
474
# @default -- See [values.yaml](values.yaml)
475
parentRefs:
476
- name: ""
477
namespace: ""
478
sectionName: ""
479
# -- Hostnames for the HTTPRoute
480
hostnames: []
481
# - api.example.local
482
# -- Annotations for HTTPRoute resource
483
annotations: {}
484
# -- Labels for HTTPRoute resource
485
labels: {}
486
# -- HTTPRoute rules. Each rule supports an optional `filters` list at the rule level
487
# and per-backendRef `filters` for Gateway API filter configuration (e.g. basic auth
488
# via `ExtensionRef`, header modification via `RequestHeaderModifier`, etc.).
489
# @default -- See [values.yaml](values.yaml)
490
rules:
491
- matches:
492
- path:
493
type: PathPrefix
494
value: /
495
# filters:
496
# - type: ExtensionRef
497
# extensionRef:
498
# group: gateway.envoyproxy.io
499
# kind: SecurityPolicy
500
# name: basic-auth-policy
501
backendRefs:
502
- name: "" # Will default to service name
503
port: 9003
504
# filters:
505
# - type: RequestHeaderModifier
506
# requestHeaderModifier:
507
# add:
508
# - name: X-Custom-Header
509
# value: my-value
510
customPricing:
511
# -- Enables custom pricing configuration
512
enabled: false
513
# -- Customize the configmap name used for custom pricing
514
configmapName: custom-pricing-model
515
# -- Path for the pricing configuration.
516
configPath: /tmp/custom-config
517
# -- Configures the pricing model provided in the values file.
518
createConfigmap: true
519
# -- Sets the provider type for the custom pricing file.
520
provider: custom
521
# -- More information about these values here: https://www.opencost.io/docs/configuration/on-prem#custom-pricing-using-the-opencost-helm-chart
522
costModel:
523
description: Modified pricing configuration.
524
discount: ""
525
CPU: 1.25
526
spotCPU: 0.006655
527
RAM: 0.50
528
spotRAM: 0.000892
529
GPU: 0.95
530
storage: 0.25
531
zoneNetworkEgress: 0.01
532
regionNetworkEgress: 0.01
533
internetNetworkEgress: 0.12
534
retention1d: 15
535
retention1h: 49
536
carbonCost:
537
# -- Enable carbon cost exposed in the API
538
enabled: false
539
cloudCost:
540
# -- Enable cloud cost ingestion and querying, dependant on valid integration credentials
541
enabled: false
542
# -- Number of hours between each run of the Cloud Cost pipeline
543
refreshRateHours: 6
544
# -- Number of days into the past that a Cloud Cost standard run will query for
545
runWindowDays: 3
546
# -- The number of standard runs before a Month-to-Date run occurs
547
monthToDateInterval: 6
548
# -- The max number of days that any single query will be made to construct Cloud Costs
549
queryWindowDays: 7
550
metrics:
551
kubeStateMetrics:
552
# -- (bool) Enable emission of pod annotations
553
emitPodAnnotations: ~
554
# -- (bool) Enable emission of namespace annotations
555
emitNamespaceAnnotations: ~
556
# -- (bool) Enable emission of KSM v1 metrics
557
emitKsmV1Metrics: ~
558
# -- (bool) Enable only emission of KSM v1 metrics that do not exist in KSM 2 by default
559
emitKsmV1MetricsOnly: ~
560
serviceMonitor:
561
# -- Create ServiceMonitor resource for scraping metrics using PrometheusOperator
562
enabled: false
563
# -- Additional labels to add to the ServiceMonitor
564
additionalLabels: {}
565
# -- Specify if the ServiceMonitor will be deployed into a different namespace (blank deploys into same namespace as chart)
566
namespace: ""
567
# -- Interval at which metrics should be scraped
568
scrapeInterval: 30s
569
# -- Timeout after which the scrape is ended
570
scrapeTimeout: 10s
571
# -- HonorLabels chooses the metric's labels on collisions with target labels
572
honorLabels: true
573
# -- RelabelConfigs to apply to samples before scraping. Prometheus Operator automatically adds relabelings for a few standard Kubernetes fields
574
relabelings: []
575
# -- MetricRelabelConfigs to apply to samples before ingestion
576
metricRelabelings: []
577
# -- extra Endpoints to add to the ServiceMonitor. Useful for scraping sidecars
578
extraEndpoints: []
579
# - port: oauth-metrics
580
# path: /metrics
581
# -- HTTP scheme used for scraping. Defaults to `http`
582
scheme: http
583
# -- TLS configuration for scraping metrics
584
tlsConfig: {}
585
# caFile: /etc/prom-certs/root-cert.pem
586
# certFile: /etc/prom-certs/cert-chain.pem
587
# insecureSkipVerify: true
588
# keyFile: /etc/prom-certs/key.pem
589
config:
590
# -- Enables creating the metrics.json configuration as a ConfigMap
591
enabled: false
592
# -- Customize the configmap name used for metrics
593
configmapName: custom-metrics
594
# -- List of metrics to be disabled
595
disabledMetrics: []
596
# - <metric-to-be-disabled>
597
# - <metric-to-be-disabled>
598
prometheus:
599
# -- Secret name that contains credentials for Prometheus
600
secret_name: ~
601
# -- Existing secret name that contains credentials for Prometheus
602
existingSecretName: ~
603
# -- Prometheus Basic auth username
604
username: ""
605
# -- Key in the secret that references the username
606
username_key: DB_BASIC_AUTH_USERNAME
607
# -- Prometheus Basic auth password
608
password: ""
609
# -- Key in the secret that references the password
610
password_key: DB_BASIC_AUTH_PW
611
# -- Prometheus Bearer token
612
bearer_token: ""
613
bearer_token_key: DB_BEARER_TOKEN
614
# -- If true, opencost will use kube-rbac-proxy to authenticate with in cluster Prometheus for openshift
615
kubeRBACProxy: false
616
# -- Whether to disable SSL certificate verification
617
insecureSkipVerify: false
618
external:
619
# -- Use external Prometheus (eg. Grafana Cloud)
620
enabled: false
621
# -- External Prometheus url
622
url: "https://prometheus.example.com/prometheus"
623
internal:
624
# -- Use in-cluster Prometheus
625
enabled: true
626
# -- Service name of in-cluster Prometheus
627
serviceName: prometheus-server
628
# -- Namespace of in-cluster Prometheus
629
namespaceName: prometheus-system
630
# -- Service port of in-cluster Prometheus
631
port: 80
632
# -- Path to access the Prometheus API, this is neccesary if the Prometheus server is behind a reverse proxy(mimir) or has a different path.
633
path: ""
634
# -- Scheme to use for in-cluster Prometheus
635
scheme: http
636
amp:
637
# -- Use Amazon Managed Service for Prometheus (AMP)
638
enabled: false # If true, opencost will be configured to remote_write and query from Amazon Managed Service for Prometheus.
639
# -- Workspace ID for AMP
640
workspaceId: ""
641
thanos:
642
enabled: false
643
queryOffset: ''
644
maxSourceResolution: ''
645
internal:
646
enabled: true
647
serviceName: my-thanos-query
648
namespaceName: opencost
649
port: 10901
650
scheme: http
651
external:
652
enabled: false
653
url: 'https://thanos-query.example.com/thanos'
654
ui:
655
# -- Enable OpenCost UI
656
enabled: true
657
image:
658
# -- UI container image registry
659
registry: cgr.dev
660
# -- UI container image name
661
repository: chainguard-private/opencost-ui
662
# -- UI container image tag
663
# @default -- `""` (use appVersion in Chart.yaml)
664
tag: 1.121.5-r0@sha256:1c023398aa0f91110e113cbf69652272e5f5d2f9bd464461b3a696bba7e992ac
665
# -- UI container image pull policy
666
pullPolicy: IfNotPresent
667
# -- Override the full image name for development purposes
668
fullImageName: null
669
resources:
670
# -- CPU/Memory resource requests
671
requests:
672
cpu: '10m'
673
memory: '55Mi'
674
# -- CPU/Memory resource limits
675
limits:
676
memory: '1Gi'
677
# used in the default.nginx.conf if you want to switch for using with Docker
678
# apiServer: 0.0.0.0
679
uiPort: 9090
680
# Base path for serving the UI.
681
# Requires building a custom image using the build argument "ui_path".
682
uiPath: /
683
# Set to true to use IPv6
684
useIPv6: true
685
# Liveness probe configuration
686
livenessProbe:
687
# -- Whether probe is enabled
688
enabled: true
689
# -- Probe path
690
path: /healthz
691
# -- Number of seconds before probe is initiated
692
initialDelaySeconds: 30
693
# -- Probe frequency in seconds
694
periodSeconds: 10
695
# -- Number of failures for probe to be considered failed
696
failureThreshold: 3
697
# Readiness probe configuration
698
readinessProbe:
699
# -- Whether probe is enabled
700
enabled: true
701
# -- Probe path
702
path: /healthz
703
# -- Number of seconds before probe is initiated
704
initialDelaySeconds: 30
705
# -- Probe frequency in seconds
706
periodSeconds: 10
707
# -- Number of failures for probe to be considered failed
708
failureThreshold: 3
709
# -- The security options the container should be run with
710
securityContext: {}
711
# capabilities:
712
# drop:
713
# - ALL
714
# readOnlyRootFilesystem: true
715
# runAsNonRoot: true
716
# runAsUser: 1000
717
718
# -- A list of environment variables to be added to the pod
719
extraEnv: []
720
# -- A list of volume mounts to be added to the pod
721
extraVolumeMounts: []
722
# set to true to set upstream to use <service>.<namespace>.svc.cluster.local instead of just <service>.<namespace>
723
useDefaultFqdn: false
724
# -- Nginx proxy timeout settings (in seconds)
725
nginx:
726
# -- Timeout for establishing a connection with the proxied server
727
proxyConnectTimeout: 180
728
# -- Timeout for transmitting a request to the proxied server
729
proxySendTimeout: 180
730
# -- Timeout for reading a response from the proxied server
731
proxyReadTimeout: 180
732
# Set the model fqdn to use for the upstream
733
# modelFqdn: opencost.opencost.svc.cluster.local:9003
734
ingress:
735
# -- Ingress for OpenCost UI
736
enabled: false
737
# -- Ingress controller which implements the resource
738
ingressClassName: ""
739
# -- Annotations for Ingress resource
740
annotations: {}
741
# kubernetes.io/tls-acme: "true"
742
# -- A list of host rules used to configure the Ingress
743
# @default -- See [values.yaml](values.yaml)
744
hosts:
745
- host: example.local
746
paths:
747
- /
748
# -- Redirect ingress to an extraPort defined on the service such as oauth-proxy
749
servicePort: http-ui
750
# servicePort: oauth-proxy
751
# -- Ingress TLS configuration
752
tls: []
753
# - secretName: chart-example-tls
754
# hosts:
755
# - chart-example.local
756
route:
757
# -- OpenShift route for OpenCost UI
758
enabled: false
759
# -- Annotations for Ingress resource
760
annotations: {}
761
# haproxy.router.openshift.io/timeout: 1m
762
# @default -- See [values.yaml](values.yaml)
763
host: example.local
764
path:
765
# -- Redirect ingress to an extraPort defined on the service such as oauth-proxy
766
targetPort: http-ui
767
# targetPort: oauth-proxy
768
# -- Route TLS configuration as a map (e.g. with `termination` and `insecureEdgeTerminationPolicy` fields)
769
tls: {}
770
# insecureEdgeTerminationPolicy: Redirect
771
# termination: edge
772
# -- HTTPRoute for OpenCost UI (Gateway API)
773
httpRoute:
774
# -- Enable HTTPRoute resource
775
enabled: false
776
# -- Gateway API parent references
777
# @default -- See [values.yaml](values.yaml)
778
parentRefs:
779
- name: ""
780
namespace: ""
781
sectionName: ""
782
# -- Hostnames for the HTTPRoute
783
hostnames: []
784
# - example.local
785
# -- Annotations for HTTPRoute resource
786
annotations: {}
787
# -- Labels for HTTPRoute resource
788
labels: {}
789
# -- HTTPRoute rules. Each rule supports an optional `filters` list at the rule level
790
# and per-backendRef `filters` for Gateway API filter configuration (e.g. basic auth
791
# via `ExtensionRef`, header modification via `RequestHeaderModifier`, etc.).
792
# @default -- See [values.yaml](values.yaml)
793
rules:
794
- matches:
795
- path:
796
type: PathPrefix
797
value: /
798
# filters:
799
# - type: ExtensionRef
800
# extensionRef:
801
# group: gateway.envoyproxy.io
802
# kind: SecurityPolicy
803
# name: basic-auth-policy
804
backendRefs:
805
- name: "" # Will default to service name
806
port: 9090
807
# filters:
808
# - type: RequestHeaderModifier
809
# requestHeaderModifier:
810
# add:
811
# - name: X-Custom-Header
812
# value: my-value
813
sigV4Proxy:
814
image: public.ecr.aws/aws-observability/aws-sigv4-proxy:latest
815
imagePullPolicy: IfNotPresent
816
name: aps
817
port: 8005
818
region: us-west-2 # The AWS region
819
host: aps-workspaces.us-west-2.amazonaws.com # The hostname for AMP service.
820
# role_arn: arn:aws:iam::<account>:role/role-name # The AWS IAM role to assume.
821
extraEnv: # Pass extra env variables to sigV4Proxy
822
# - name: AWS_ACCESS_KEY_ID
823
# value: <access_key>
824
# - name: AWS_SECRET_ACCESS_KEY
825
# value: <secret_key>
826
resources: {}
827
# limits:
828
# cpu: 200m
829
# memory: 500Mi
830
# requests:
831
# cpu: 20m
832
# memory: 32Mi
833
securityContext: {}
834
# capabilities:
835
# drop:
836
# - ALL
837
# readOnlyRootFilesystem: true
838
# runAsNonRoot: true
839
# runAsUser: 65534
840
# -- Toleration labels for pod assignment
841
tolerations: []
842
# -- Node labels for pod assignment
843
nodeSelector: {}
844
# -- Affinity settings for pod assignment
845
affinity: {}
846
# -- Assign custom TopologySpreadConstraints rules
847
topologySpreadConstraints: []
848
# -- extra sidecars to add to the pod. Useful for things like oauth-proxy for the UI
849
extraContainers: []
850
# - name: oauth-proxy
851
# image: quay.io/oauth2-proxy/oauth2-proxy:v7.5.1
852
# args:
853
# - --upstream=http://127.0.0.1:9090
854
# - --http-address=0.0.0.0:8081
855
# - --metrics-address=0.0.0.0:8082
856
# - ...
857
# ports:
858
# - name: oauth-proxy
859
# containerPort: 8081
860
# protocol: TCP
861
# - name: oauth-metrics
862
# containerPort: 8082
863
# protocol: TCP
864
# resources: {}
865
866
updateCaTrust:
867
enabled: false
868
## Security context settings for the init container.
869
securityContext:
870
runAsUser: 0
871
runAsGroup: 0
872
runAsNonRoot: false
873
allowPrivilegeEscalation: false
874
readOnlyRootFilesystem: true
875
seccompProfile:
876
type: RuntimeDefault
877
caCertsSecret: ca-certs-secret # The name of the Secret containing custom CA certificates to mount to the opencost container.
878
# caCertsConfig: ca-certs-config # The name of the ConfigMap containing the CA trust configuration.
879
resources: {}
880
platforms:
881
openshift:
882
# -- Enable OpenShift specific configurations
883
enabled: false
884
# OPTIONAL. The following configs only to be enabled when using a Prometheus instance already installed in the cluster.
885
# -- If true, the helm chart will create a ClusterRoleBinding to grant the OpenCost ServiceAccount access to query Prometheus.
886
createMonitoringClusterRoleBinding: false
887
# -- If true, create a Role and RoleBinding to allow Prometheus to list and watch OpenCost resources.
888
createMonitoringResourceReaderRoleBinding: false
889
# -- Name of the Prometheus serviceaccount to bind to the Resource Reader Role Binding.
890
monitoringServiceAccountName: prometheus-k8s
891
# -- Namespace of the Prometheus serviceaccount to bind to the Resource Reader Role Binding.
892
monitoringServiceAccountNamespace: openshift-monitoring
893
# -- If true, set Security Context Constraints on serviceaccount for read/write premissions
894
enableSCC: false
895
# -- If true, enable internal prom access
896
enablePromAccess: false
897
# -- A list of volumes to be added to the pod
898
extraVolumes: []
899
# -- Array of extra K8s manifests rendered through `tpl` and owned by the release.
900
extraObjects: []
901
# - apiVersion: external-secrets.io/v1beta1
902
# kind: ExternalSecret
903
# metadata:
904
# name: '{{ include "opencost.fullname" . }}-cloud-integration'
905
906
# External labels allow users to apply custom labels to node assets and
907
# allocations.
908
#
909
# The OpenCost deployment can read external labels from an existing ConfigMap.
910
#
911
# Supported ConfigMap formats:
912
#
913
# 1. Traditional ConfigMap
914
#
915
# data:
916
# cluster: prod
917
# env: dev
918
# region: nam
919
#
920
# In this case, labels are read directly from ConfigMap.data. The
921
# key and route fields are optional and may be omitted.
922
#
923
# 2. Block-scalar ConfigMap
924
#
925
# data:
926
# config.yaml: |
927
# metadata:
928
# externalLabels:
929
# cluster: prod
930
# env: dev
931
# region: nam
932
#
933
# In this case, specify the key that contains the YAML document and
934
# a dot-separated route to the labels map within it.
935
#
936
# Fields:
937
# configMapName - name of the ConfigMap to read.
938
# namespace - namespace of the ConfigMap. Defaults to the agent's
939
# own namespace if left empty.
940
# key - Optional. The ConfigMap data key containing the YAML
941
# document. Required only for block-scalar ConfigMaps.
942
# route - Optional. Dot-separated path to the labels map within
943
# the key's YAML content, e.g. "metadata.externalLabels".
944
# When omitted or empty, labels are read directly from
945
# ConfigMap.data (traditional ConfigMap).
946
#
947
# Traditional ConfigMap example:
948
#
949
# external:
950
# nodeLabels:
951
# configMapName: external-label-configmap
952
# namespace: ""
953
#
954
# Block-scalar ConfigMap example:
955
#
956
# external:
957
# nodeLabels:
958
# configMapName: external-label-configmap
959
# namespace: ""
960
# key: config.yaml
961
# route: metadata.externalLabels
962
external:
963
nodeLabels:
964
configMapName: ""
965
namespace: ""
966
key: ""
967
route: ""
968

The trusted source for open source

Talk to an expert
PrivacyTerms

Product

Chainguard ContainersChainguard LibrariesChainguard VMsChainguard OS PackagesChainguard ActionsChainguard Agent SkillsIntegrationsPricing
© 2026 Chainguard, Inc. All Rights Reserved.
Chainguard® and the Chainguard logo are registered trademarks of Chainguard, Inc. in the United States and/or other countries.
The other respective trademarks mentioned on this page are owned by the respective companies and use of them does not imply any affiliation or endorsement.