aws / aws/amazon-cloudwatch-agent-operator

An error log occurs repeatedly in the deployment logs of amazon-cloudwatch-observability-controller-manager.

Open
#269 19 comments 30 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
Go
Stars
31
Forks
40
Avg merge
6d 15h
Merged PRs (30d)
3

Description

eks version : 1.30
add-on for eks: amazon-cloudwatch-observability
version: v2.2.0-eksbuild.1

deployment.apps/amazon-cloudwatch-observability-controller-manager
image: cloudwatch-agent-operator:1.8.0

kubectl -namazon-cloudwatch logs deployment.apps/amazon-cloudwatch-observability-controller-manager

{"level":"error","ts":"2024-11-06T01:27:19Z","logger":"controllers.AmazonCloudWatchAgent","msg":"cannot create liveness probe.","error":"no service available as part of the configuration","stacktrace":"github.com/aws/amazon-cloudwatch-agent-operator/internal/manifests/collector.Container\n\t/workspace/internal/manifests/collector/container.go:92\ngithub.com/aws/amazon-cloudwatch-agent-operator/internal/manifests/collector.DaemonSet\n\t/workspace/internal/manifests/collector/daemonset.go:42\ngithub.com/aws/amazon-cloudwatch-agent-operator/internal/manifests/collector.Build.func5\n\t/workspace/internal/manifests/builder.go:20\ngithub.com/aws/amazon-cloudwatch-agent-operator/internal/manifests/collector.Build\n\t/workspace/internal/manifests/collector/collector.go:51\ngithub.com/aws/amazon-cloudwatch-agent-operator/controllers.BuildCollector\n\t/workspace/controllers/common.go:50\ngithub.com/aws/amazon-cloudwatch-agent-operator/controllers.(*AmazonCloudWatchAgentReconciler).Reconcile\n\t/workspace/controllers/amazoncloudwatchagent_controller.go:107\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:119\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:316\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:227"}

Is it possible to take action by changing the settings? There appears to be no livenessprobe related information in yaml.

Contributor guide

Open the contributing guide

Research direction

Start at internal/manifests/collector/container.go:92 and follow daemonset.go:42, collector.go:51, and controllers/amazoncloudwatchagent_controller.go:107; compare liveness-probe construction with the reported deployment configuration. Determine whether a supported setting supplies the missing service or suppresses the error, then verify the resulting controller logs and deployment behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
devops, infrastructure, observability
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.