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

Remove unnecessary LIST calls for k8s pods #1492

Closed

Conversation

dims
Copy link
Member

@dims dims commented Jan 9, 2025

Description of the issue

We are see the following Global list pod request served from cache by amazon-cloudwatch-agent daemonset

/api/v1/pods?limit=500&resourceVersion=0

On a large cluster with lots of pods, there is a huge cost for the kubernetes api server to serve this request from amazon-cloudwatch-agent.

Description of changes

Since it's not entirely clear if the information being requested is even needed anywhere in the codebase, filing this PR to check if any of the CI jobs fail

License

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Tests

Ran various unit tests in the repository.

Requirements

Before commit the code, please do the following steps.

  1. Run make fmt and make fmt-sh
  2. Run make lint

DONE! (both steps 1 and 2)

@dims dims requested a review from a team as a code owner January 9, 2025 17:40
@dims dims changed the title [WIP] Remove unnecessary LIST calls for k8s pods Remove unnecessary LIST calls for k8s pods Jan 9, 2025
@dims dims closed this Jan 13, 2025
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.

1 participant