diff --git a/cost-analyzer/templates/cost-analyzer-deployment-template.yaml b/cost-analyzer/templates/cost-analyzer-deployment-template.yaml index baeba0ad8..fcdf4c5da 100644 --- a/cost-analyzer/templates/cost-analyzer-deployment-template.yaml +++ b/cost-analyzer/templates/cost-analyzer-deployment-template.yaml @@ -1223,6 +1223,10 @@ spec: affinity: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.topologySpreadConstraints }} + topologySpreadConstraints: + {{- toYaml . | nindent 8 }} + {{- end }} {{- if and .Values.kubecostDeployment.statefulSet.enabled .Values.kubecostDeployment.leaderFollower.enabled }} volumeClaimTemplates: - metadata: diff --git a/cost-analyzer/values.yaml b/cost-analyzer/values.yaml index 8021cb835..90222df73 100644 --- a/cost-analyzer/values.yaml +++ b/cost-analyzer/values.yaml @@ -572,6 +572,8 @@ tolerations: [] affinity: {} +topologySpreadConstraints: [] + # If true, creates a PriorityClass to be used by the cost-analyzer pod priority: enabled: false