-
Notifications
You must be signed in to change notification settings - Fork 16
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
Service Account #25
Comments
I found the issue. When we use |
Thanks for catching this @omid-verneek! Looking into this |
Hi @omid-verneek, I tried but wasn't able to reproduce this. Could you confirm these steps or let me know any you did differently/in addition/omitted?
When I do these steps on a GKE autopilot cluster, the k8s ServiceAccount keeps its annotation so it doesn't look like the Operator is always removing that. I'm interested to see if you did anything differently from me that we could document. |
@damemi Not sure if it has any effect but I'm using a standard cluster. Also, I'm following the recipe for Cloud-trace. |
Sorry for the long update on this. Possibly related, the operator recently added an update to preserve existing service accounts using the |
@omid-verneek I have fixed the service account annotations problem. Apply to CRD opentelemetrycollectors, then the service account, otel-collector, will add the iam annotation.
|
Another customer hit this. We should adopt #25 (comment) in our documentation |
@dashpole There is the other solution. 1. create service account first, then apply otel-collector yaml with kubernetes service account.
collector-config.yaml
|
That would also work. Do you think that is a better/easier to understand solution? |
@dashpole I think the better solution is Apply to CRD opentelemetrycollectors with annotation. It is simpler and more intuitive. |
I have followed this but there is no place to assign the serviceaccount otel-collector to the config. In the example, it's just annotating the namespace. I get permission denied in my deployment.
adding
serviceAccount: "otel-collector"
doesn't help.I also changed the role to
admin
and no luck.The text was updated successfully, but these errors were encountered: