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

Support configurable resources for NodeJS. #225

Merged
merged 3 commits into from
Sep 9, 2024

Conversation

musa-asad
Copy link
Contributor

@musa-asad musa-asad commented Sep 8, 2024

Description of changes

NodeJS support was recently implemented: #220 & aws-observability/helm-charts#91. This change allows support for configurable resources for NodeJS init containers likewise to the #196 changes.

Testing

Ran make test and all unit tests were passing.

Manual testing

  1. helm upgrade --install amazon-cloudwatch-observability helm-charts/charts/amazon-cloudwatch-observability --values helm-charts/charts/amazon-cloudwatch-observability/values.yaml --set clusterName=<cluster-name> --set region=<region> --set manager.autoInstrumentationResources.nodejs.limits.cpu=200m --set manager.autoInstrumentationResources.nodejs.limits.memory=512Mi --set manager.autoInstrumentationResources.nodejs.requests.cpu=200m --set manager.autoInstrumentationResources.nodejs.requests.memory=51Mi
  2. kubectl edit deployment amazon-cloudwatch-observability-controller-manager
Screenshot 2024-09-08 at 12 18 21 PM
  1. kubectl apply -f amazon-cloudwatch-agent-operator/integration-tests/nodejs/sample-deployment-nodejs.yaml
  2. kubectl get pods
  3. kubectl describe pod nginx-XXXXXXXXXX-XXXXX
Screenshot 2024-09-08 at 12 21 51 PM

Test case

helm upgrade --install amazon-cloudwatch-observability helm-charts/charts/amazon-cloudwatch-observability --values helm-charts/charts/amazon-cloudwatch-observability/values.yaml --set clusterName=<cluster-name> --set region=<region> --set manager.autoInstrumentationResources.nodejs.limits.cpu=200m --set manager.autoInstrumentationResources.nodejs.limits.memory="" --set manager.autoInstrumentationResources.nodejs.requests.cpu=200m --set manager.autoInstrumentationResources.nodejs.requests.memory=51Mi
Screenshot 2024-09-08 at 12 24 05 PM
Screenshot 2024-09-08 at 12 26 14 PM

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

@musa-asad musa-asad self-assigned this Sep 8, 2024
@musa-asad musa-asad merged commit af44378 into aws:main Sep 9, 2024
6 checks passed
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.

3 participants