Skip to content

Cherry-pick #15741 to 7.x: [bug] add replicasets.apps to ClusterRole to avoid permission issue#21891

Merged
jsoriano merged 1 commit intoelastic:7.xfrom
jsoriano:backport_15741_7.x
Oct 16, 2020
Merged

Cherry-pick #15741 to 7.x: [bug] add replicasets.apps to ClusterRole to avoid permission issue#21891
jsoriano merged 1 commit intoelastic:7.xfrom
jsoriano:backport_15741_7.x

Conversation

@jsoriano
Copy link
Copy Markdown
Member

@jsoriano jsoriano commented Oct 16, 2020

Cherry-pick of PR #15741 to 7.x 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
@botelastic botelastic Bot added the needs_team Indicates that the issue/PR needs a Team:* label label Oct 16, 2020
@elasticmachine
Copy link
Copy Markdown
Contributor

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

@botelastic botelastic Bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Oct 16, 2020
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 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 #21891 opened]

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

  • Duration: 63 min 11 sec

@jsoriano jsoriano merged commit 178002a into elastic:7.x Oct 16, 2020
@jsoriano jsoriano deleted the backport_15741_7.x 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