You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing permissions in kubernetes deployment manifest of Elastic-Agent #35
metricbeat stderr: "E1108 07:59:03.061004 1702055 reflector.go:138] pkg/mod/k8s.io/client-go@v0.23.4/tools/cache/reflector.go:167: Failed to watch *v1.StorageClass: failed to list *v1.StorageClass: storageclasses.storage.k8s.io is forbidden: User \"system:serviceaccount:kube-system:elastic-agent\" cannot list resource \"storageclasses\" in API group \"storage.k8s.io\" at the cluster scope\n"
Hello @Danouchka! Thanks for the feedback and suggestion here.
@mjwolf is going to take a look at this and provide a solution. At first glance, those changes look reasonable; we should find out why they are missing.
I have a couple of questions:
Have you made any other changes to the YAML provided here? If so, can you share them?
What version of the Elastic stack are you connecting to?
Can you tell me anything else about your GKE cluster? The version, node type? (I assume this isn't autopilot)
Please find my answers below Have you made any other changes to the YAML provided here? If so, can you share them? => No other changes What version of the Elastic stack are you connecting to? => 8.5.3 Can you tell me anything else about your GKE cluster? The version, node type? (I assume this isn't autopilot) => 1.23.13-gke.900, no autopilot
There was already a fix for this in the agent template (this part of the elastic-defend template uses the agent template). I've created a PR to port the fix to the defend template
Activity
Danouchka commentedon Nov 30, 2022
cc @pierrehilbert
crowens commentedon Jan 10, 2023
@Danouchka is this still an issue? @norrietaylor
Danouchka commentedon Jan 10, 2023
Hi, As I have said, when I add the permissions on the manifest, the Elastic Agent does not send any error
norrietaylor commentedon Jan 11, 2023
Hello @Danouchka! Thanks for the feedback and suggestion here.
@mjwolf is going to take a look at this and provide a solution. At first glance, those changes look reasonable; we should find out why they are missing.
I have a couple of questions:
Danouchka commentedon Jan 11, 2023
Hello
Please find my answers below
Have you made any other changes to the YAML provided here? If so, can you share them? => No other changes
What version of the Elastic stack are you connecting to? => 8.5.3
Can you tell me anything else about your GKE cluster? The version, node type? (I assume this isn't autopilot) => 1.23.13-gke.900, no autopilot
mjwolf commentedon Jan 11, 2023
There was already a fix for this in the agent template (this part of the elastic-defend template uses the agent template). I've created a PR to port the fix to the defend template
norrietaylor commentedon Jan 12, 2023
Thanks for the quick turnaround on this, @mjwolf. I appreciate it.
Add storageclasses permissions to elastic-defend template (#38)