Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[clusteragent] Remove the CPU/memory limits by default for the init container #30266

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

iamluc
Copy link

@iamluc iamluc commented Oct 18, 2024

What does this PR do?

  • Remove the CPU/memory limits by default for the init container
  • create new configs to set the limits
  • Increase the cpu request for the init container

Motivation

The current limits are too low for the SSI init container.
We decided to drop them and just keep the "requests".

Also, the current CPU limit (0.05 of a CPU core) is very low. I suggest to use 0.3 .

Describe how to test/QA your changes

Need help for this: I don't know much about kubernetes 🙈

Possible Drawbacks / Trade-offs

Additional Notes

@iamluc iamluc force-pushed the luc/clusteragent-ssi-increase-k8s-resources branch from d11f0fb to 5ea4dd9 Compare October 18, 2024 13:59
@agent-platform-auto-pr
Copy link
Contributor

agent-platform-auto-pr bot commented Oct 18, 2024

[Fast Unit Tests Report]

On pipeline 46930637 (CI Visibility). The following jobs did not run any unit tests:

Jobs:
  • tests_flavor_dogstatsd_deb-x64
  • tests_flavor_heroku_deb-x64
  • tests_flavor_iot_deb-x64

If you modified Go files and expected unit tests to run in these jobs, please double check the job logs. If you think tests should have been executed reach out to #agent-devx-help

@agent-platform-auto-pr
Copy link
Contributor

agent-platform-auto-pr bot commented Oct 18, 2024

Test changes on VM

Use this command from test-infra-definitions to manually test this PR changes on a VM:

inv create-vm --pipeline-id=46930637 --os-family=ubuntu

Note: This applies to commit 6fd7387

@iamluc iamluc changed the title [clusteragent] Increase the cpu/memory requests for the init container [clusteragent] Increase the cpu request for the init container Oct 18, 2024
@iamluc iamluc changed the title [clusteragent] Increase the cpu request for the init container [clusteragent] Remove the CPU/memory limits by default for the init container Oct 18, 2024
if err != nil {
return resources, err
}
resources.Limits[corev1.ResourceCPU] = quantity
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it OK to not set a limit at all (same for the memory)?

@iamluc iamluc marked this pull request as ready for review October 18, 2024 15:45
@iamluc iamluc requested review from a team as code owners October 18, 2024 15:45
Copy link
Contributor

@aliciascott aliciascott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good for docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants