aws-otel-helm-charts icon indicating copy to clipboard operation
aws-otel-helm-charts copied to clipboard

service account adot-collector-sa gives forbidden error

Open shettypriy opened this issue 1 year ago • 0 comments

I installed the adot collector using the helm using argocd, but if I check the logs for the daemonset it shows below error .When I check the clusterrole template file https://github.com/aws-observability/aws-otel-helm-charts/blob/main/charts/adot-exporter-for-eks-on-ec2/templates/adot-collector/clusterrole.yaml I do not see the permission of resource "services"

Failed to watch *v1.Service: failed to list *v1.Service: services is forbidden: User "system:serviceaccount:amazon-metrics:adot-collector-sa" cannot list resource "services" in API group "" at the cluster scopeW0512 17:39:48.906520 1 reflector.go:535] k8s.io/[email protected]/tools/cache/reflector.go:229: failed to list *v1.Service: services is forbidden: User "system:serviceaccount:amazon-metrics:adot-collector-sa" cannot list resource "services" in API group "" at the cluster scope

shettypriy avatar May 12 '24 17:05 shettypriy