Skip to content

Commit

Permalink
Add ETL resolution configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
nikovacevic committed Mar 4, 2021
1 parent 981d79c commit ac4be7d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions cost-analyzer/templates/cost-analyzer-deployment-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ spec:
{{- end }}
resources:
{{ toYaml .Values.initChownData.resources | indent 12 }}
{{- if and (.Values.kubecostModel.etlToDisk | default true) .Values.persistentVolume.dbPVEnabled }}
{{- if and (.Values.kubecostModel.etlToDisk | default true) .Values.persistentVolume.dbPVEnabled }}
command: ["sh", "-c", "/bin/chmod -R 777 /var/configs && /bin/chmod -R 777 /var/db"]
{{- else }}
command: ["sh", "-c", "/bin/chmod -R 777 /var/configs"]
Expand Down Expand Up @@ -349,7 +349,7 @@ spec:
secretKeyRef:
name: {{ .Values.global.prometheus.queryServiceBasicAuthSecretName }}
key: PASSWORD
{{- end }}
{{- end }}
{{- if .Values.global.prometheus.queryServiceBearerTokenSecretName }}
- name: DB_BEARER_TOKEN
valueFrom:
Expand Down Expand Up @@ -436,6 +436,10 @@ spec:
- name: ETL_STORE_DURATION_DAYS
value: {{ (quote .Values.kubecostModel.etlStoreDurationDays) | default (quote 120) }}
{{- end }}
- name: ETL_RESOLUTION_SECONDS
value: {{ (quote .Values.kubecostModel.etlResolutionSeconds) | default (quote 60) }}
- name: ETL_MAX_BATCH_HOURS
value: {{ (quote .Values.kubecostModel.etlMaxBatchHours) | default (quote 6) }}
{{- if .Values.systemProxy.enabled }}
- name: HTTP_PROXY
value: {{ .Values.systemProxy.httpProxyUrl }}
Expand Down Expand Up @@ -707,7 +711,7 @@ spec:
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 2 }}
{{- end }}
{{- end }}
{{- if .Values.priority }}
{{- if .Values.priority.enabled }}
priorityClassName: {{ template "cost-analyzer.fullname" . }}-priority
Expand Down

0 comments on commit ac4be7d

Please sign in to comment.