diff --git a/cost-analyzer/templates/_helpers.tpl b/cost-analyzer/templates/_helpers.tpl index a62f7ef54..98970ac4a 100755 --- a/cost-analyzer/templates/_helpers.tpl +++ b/cost-analyzer/templates/_helpers.tpl @@ -960,6 +960,9 @@ Begin Kubecost 2.0 templates # This hasn't been observed as a problem in cost-analyzer, likely because # of the init container that gives everything under /var/configs 777. mountPath: /var/configs/waterfowl + - name: saved-report-configs + mountPath: /var/configs/reports.json + subPath: reports.json {{- end }} {{- if and ((.Values.kubecostProductConfigs).productKey).enabled ((.Values.kubecostProductConfigs).productKey).secretname (eq (include "aggregator.deployMethod" .) "statefulset") }} - name: productkey-secret diff --git a/cost-analyzer/templates/aggregator-statefulset.yaml b/cost-analyzer/templates/aggregator-statefulset.yaml index 2ccc0c502..63d8ca540 100644 --- a/cost-analyzer/templates/aggregator-statefulset.yaml +++ b/cost-analyzer/templates/aggregator-statefulset.yaml @@ -74,6 +74,12 @@ spec: {{- end }} serviceAccountName: {{ template "aggregator.serviceAccountName" . }} volumes: + - name: saved-report-configs + configMap: + name: {{ .Values.savedReportConfigmapName | default "saved-report-configs" }} + items: + - key: saved-reports.json + path: reports.json - name: aggregator-staging emptyDir: sizeLimit: {{ .Values.kubecostAggregator.stagingEmptyDirSizeLimit }}