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

[Target Allocator] Enable Deployment and Daemonset modes for Agent #253

Merged
merged 2 commits into from
Oct 21, 2024

Conversation

okankoAMZ
Copy link
Contributor

@okankoAMZ okankoAMZ commented Oct 17, 2024

Issue #, if available:
We used to block Target Allocator usage with Agent whom have Deployment and Daemonset modes due to issues. However, After confirming that, Agent works with TA in these modes changing the error flag to just a warning, since it is no longer breaking.

Warning

Currently Target Allocator is NOT optimised for Daemonset and Deployment modes; thus, we have a warning recommending usage of Stateful Sets. It MUST be noted that this warning does not stop any helm upgrade or deployment, it merely recommends a optimised solution.

Description of changes:
*Change error text to warning when Agent is not in Stateful Set mode, and TA is enabled.

Testing

  1. I edited my helm chart to make agent a deployment and enabled TA
  2. I ran helm upgrade --install --namespace amazon-cloudwatch amazon-cloudwatch-operator ./ --create-namespace --set region=us-west-2
  3. Got the following warning
W1017 15:05:39.137631   38124 warnings.go:70] The OpenTelemetry Collector mode is set to deployment, we do not recommend enabling Target Allocator when not running as a StatefulSet
Release "amazon-cloudwatch-operator" has been upgraded. Happy Helming!
NAME: amazon-cloudwatch-operator
LAST DEPLOYED: Thu Oct 17 15:05:33 2024
NAMESPACE: amazon-cloudwatch
STATUS: deployed
REVISION: 2
TEST SUITE: None

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

@okankoAMZ okankoAMZ requested a review from musa-asad October 17, 2024 19:21
musa-asad
musa-asad previously approved these changes Oct 17, 2024
@okankoAMZ okankoAMZ merged commit b74b110 into target-allocator Oct 21, 2024
2 checks passed
@okankoAMZ okankoAMZ deleted the ta-mode-update branch October 21, 2024 22:13
okankoAMZ added a commit that referenced this pull request Nov 26, 2024
* Implemented Target Allocator Container (#214)

* Merge `main` into `target-allocator` (#232)

NodeJS merging-in from main

* Supporting K8s 1.31 (#222) (#236)

Co-authored-by: Mitali Salvi <44349099+mitali-salvi@users.noreply.github.com>

* Implemented TargetAllocator resource deployments. (#208)

* Adding target-allocator label to service selectors (#242)

* Target allocator TLS Implementation  (#239)

* Ta https server (#2921)

* Added https server, tests, secret marshalling


---------

Co-authored-by: ItielOlenick <67790309+ItielOlenick@users.noreply.github.com>

* [Target Allocator] Enable Deployment and Daemonset modes for Agent (#253)

* Changes error to warning

* [CI/CD] Add Target Allocator(TA) Build to Build and Upload Workflow (#247)

* edited workflow

* Clean up  managed resources when disabled (#255)

* Reconciler now removes un-used managed resources for CWA collector

* remove pprof endpoint (#260)

* [TA] One service per Target Allocator  (#259)

* added one-service per TA

* Setup cert-watcher for TA server cert (#264)

* [TA] Target Allocator TLS Unit-tests (#265)

* TLS tests

* Injecting Prometheus path if not specified in agent config (#258)

* Injecting Prom path if it doesn't exist

* Rebasing Target Allocator Branch to Main  (#266)

* Adding support for NodeJS auto instrumentation and integ tests (#220)

* Support configurable resources for NodeJS. (#225)

* Supporting JMX annotations (#240)

* Add support for a supplemental YAML configuration for the CloudWatchAgent (#241)

* Changed naming for OTLP container ports from agent JSON (#252)

* Updated Release Notes for 1.8.0 (#251)

* Adjust EKS add-on integration test service count expectations (#256)

* Add integration tests for JMX. (#250)

* Implemented Target Allocator Container (#214)

* Implemented TargetAllocator resource deployments. (#208)

* Update cmd/amazon-cloudwatch-agent-target-allocator/config/config.go

Co-authored-by: Musa <musaasad@amazon.com>

* Update internal/config/main.go

Co-authored-by: Musa <musaasad@amazon.com>

---------

Co-authored-by: Parampreet Singh <50599809+Paramadon@users.noreply.github.com>
Co-authored-by: Musa <musaasad@amazon.com>
Co-authored-by: Mitali Salvi <44349099+mitali-salvi@users.noreply.github.com>
Co-authored-by: Jeffrey Chien <chienjef@amazon.com>


---------

Co-authored-by: Musa <musaasad@amazon.com>
Co-authored-by: Mitali Salvi <44349099+mitali-salvi@users.noreply.github.com>
Co-authored-by: ItielOlenick <67790309+ItielOlenick@users.noreply.github.com>
Co-authored-by: Kaushik Surya <108111936+sky333999@users.noreply.github.com>
Co-authored-by: Parampreet Singh <50599809+Paramadon@users.noreply.github.com>
Co-authored-by: Jeffrey Chien <chienjef@amazon.com>
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