[bug] add replicasets.apps to ClusterRole to avoid permission issue#15741
Merged
blakerouse merged 3 commits intoelastic:masterfrom Feb 1, 2020
Merged
[bug] add replicasets.apps to ClusterRole to avoid permission issue#15741blakerouse merged 3 commits intoelastic:masterfrom
blakerouse merged 3 commits intoelastic:masterfrom
Conversation
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
Contributor
|
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
1 similar comment
Contributor
|
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
blakerouse
approved these changes
Feb 1, 2020
Contributor
blakerouse
left a comment
There was a problem hiding this comment.
Doing some testing with Kubernetes 1.17 with metricbeats and hit the same issue. This solves it.
4 tasks
jsoriano
pushed a commit
to jsoriano/beats
that referenced
this pull request
Oct 16, 2020
…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
pushed a commit
to jsoriano/beats
that referenced
this pull request
Oct 16, 2020
…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
added a commit
that referenced
this pull request
Oct 16, 2020
#21891) * 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) Co-authored-by: Izek Chen <mz00000102@gmail.com>
jsoriano
added a commit
that referenced
this pull request
Oct 16, 2020
#21892) * 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) Co-authored-by: Izek Chen <mz00000102@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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