diff --git a/charts/opencost/README.md b/charts/opencost/README.md index 984219b..a542802 100644 --- a/charts/opencost/README.md +++ b/charts/opencost/README.md @@ -59,6 +59,7 @@ $ helm install opencost opencost/opencost | opencost.exporter.apiPort | int | `9003` | | | opencost.exporter.aws.access_key_id | string | `""` | AWS secret key id | | opencost.exporter.aws.secret_access_key | string | `""` | AWS secret access key | +| opencost.exporter.linode.tokenSecret | string | `""` | Linode API token secret name | | opencost.exporter.cloudProviderApiKey | string | `""` | The GCP Pricing API requires a key. This is supplied just for evaluation. | | opencost.exporter.csv_path | string | `""` | | | opencost.exporter.defaultClusterId | string | `"default-cluster"` | Default cluster ID to use if cluster_id is not set in Prometheus metrics. | diff --git a/charts/opencost/templates/deployment.yaml b/charts/opencost/templates/deployment.yaml index 7fbee2d..ffc894c 100644 --- a/charts/opencost/templates/deployment.yaml +++ b/charts/opencost/templates/deployment.yaml @@ -150,6 +150,13 @@ spec: name: {{ include "opencost.prometheus.secretname" . }} key: AWS_SECRET_ACCESS_KEY {{- end }} + {{- if .Values.opencost.exporter.linode.tokenSecret }} + - name: LINODE_TOKEN + valueFrom: + secretKeyRef: + name: {{ .Values.opencost.exporter.linode.tokenSecret | quote }} + key: token + {{- end }} {{- if and .Values.opencost.prometheus.username_key (or .Values.opencost.prometheus.username .Values.opencost.prometheus.existingSecretName) }} - name: DB_BASIC_AUTH_USERNAME valueFrom: diff --git a/charts/opencost/values.yaml b/charts/opencost/values.yaml index 87a7100..e198844 100644 --- a/charts/opencost/values.yaml +++ b/charts/opencost/values.yaml @@ -214,6 +214,11 @@ opencost: secret_access_key: "" # -- AWS secret key id access_key_id: "" + + linode: + # -- Linode API token secret name + tokenSecret: "" + # -- A list of volume mounts to be added to the pod extraVolumeMounts: [] # -- List of additional environment variables to set in the container