Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Enable container level resource requests/limits via cluster spec #252

Merged
merged 1 commit into from
Dec 9, 2022

Conversation

nolancon
Copy link
Collaborator

@nolancon nolancon commented Dec 9, 2022

Most of these containers won't need to have their resource consumption changed. The important ones are API Manager, Scheduler, Node and potentially CSI, but we may as well add the functionality for all our containers for completeness sake.

Below is an example of how to set resources via the cluster spec. Once changed the operator will restart the specified container(s) with the new resource settings.

However, if the updated requests force a change in pod QoS eg best-effort to guaranteed, then the pod will need to be manually deleted. Once the operator recreates it, it will be created with the new resources and subsequent QoS.

spec:
  containerResources:
    apiManagerContainer:
      limits:
        cpu: 110m
        memory: 200Mi
      requests:
        cpu: 20m
        memory: 600Mi
    kubeSchedulerContainer:
      limits:
        cpu: 110m
        memory: 200Mi
      requests:
        cpu: 20m
        memory: 600Mi

@nolancon nolancon requested a review from a team as a code owner December 9, 2022 11:28
@nolancon nolancon merged commit 1e15abd into main Dec 9, 2022
@nolancon nolancon deleted the set-resources branch December 9, 2022 11:53
nolancon added a commit to ondat/documentation that referenced this pull request Jan 10, 2023
nolancon added a commit to ondat/documentation that referenced this pull request Jan 12, 2023
nolancon added a commit to ondat/documentation that referenced this pull request Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants