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

Cherry-pick #15741 to 7.10: [bug] add replicasets.apps to ClusterRole to avoid permission issue #21892

Merged
merged 1 commit into from
Oct 16, 2020

Conversation

jsoriano
Copy link
Member

@jsoriano jsoriano commented Oct 16, 2020

Cherry-pick of PR #15741 to 7.10 branch. Original message:

  • Bug

Logs
E0120 09:24:12.769663 1 reflector.go:125] github.com/elastic/beats/libbeat/common/kubernetes/watcher.go:235: Failed to list *v1beta1.ReplicaSet: replicasets.apps is forbidden: User "system:serviceaccount:kube-system:metricbeat" cannot list resource "replicasets" in API group "apps" at the cluster scope
Why is it important?
You need this permission to make metricbeat work properly. Otherwise, it won't work

…c#15741)

* add replicasets.apps to avoid permission error

Error message:
E0120 09:24:12.769663       1 reflector.go:125] github.com/elastic/beats/libbeat/common/kubernetes/watcher.go:235: Failed to list *v1beta1.ReplicaSet: replicasets.apps is forbidden: User "system:serviceaccount:kube-system:metricbeat" cannot list resource "replicasets" in API group "apps" at the cluster scope

Fixed after add the permission

* recreate metricbeat-kubernetes.yaml file

* [bug] add replicasets.apps to ClusterRole to avoid permission issue

(cherry picked from commit 86e21f5)
@jsoriano jsoriano added [zube]: In Review backport Team:Platforms Label for the Integrations - Platforms team labels Oct 16, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-platforms (Team:Platforms)

@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Oct 16, 2020
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #21892 opened]

  • Start Time: 2020-10-16T10:41:40.450+0000

  • Duration: 66 min 42 sec

@jsoriano jsoriano merged commit 40f3c06 into elastic:7.10 Oct 16, 2020
@jsoriano jsoriano deleted the backport_15741_7.10 branch October 16, 2020 13:37
@zube zube bot removed the [zube]: Done label Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Team:Platforms Label for the Integrations - Platforms team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants