Skip to content

Commit

Permalink
Allow defining resources for Cluster Controller (#3679)
Browse files Browse the repository at this point in the history
* add resources to CC

Signed-off-by: Chip Zoller <[email protected]>

* fix indentation

Signed-off-by: Chip Zoller <[email protected]>

---------

Signed-off-by: Chip Zoller <[email protected]>
Signed-off-by: chipzoller <[email protected]>
  • Loading branch information
chipzoller authored Sep 29, 2024
1 parent 99777d0 commit 8bed9b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ spec:
- name: http-server
containerPort: 9731
hostPort: 9731
resources:
{{- toYaml .Values.clusterController.resources | nindent 12 }}
serviceAccount: {{ template "kubecost.clusterControllerName" . }}
serviceAccountName: {{ template "kubecost.clusterControllerName" . }}
{{- with .Values.clusterController.tolerations }}
Expand Down
1 change: 1 addition & 0 deletions cost-analyzer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2803,6 +2803,7 @@ clusterController:
priorityClassName: ""
# Set custom tolerations for the cluster controller.
tolerations: []
resources: {}
## Set Affinity for pod assignment
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
##
Expand Down

0 comments on commit 8bed9b7

Please sign in to comment.