diff --git a/config/recipes/beats/filebeat_autodiscover.yaml b/config/recipes/beats/filebeat_autodiscover.yaml index 466e688ea7..35f3a2de91 100644 --- a/config/recipes/beats/filebeat_autodiscover.yaml +++ b/config/recipes/beats/filebeat_autodiscover.yaml @@ -75,6 +75,20 @@ rules: - get - watch - list +- apiGroups: ["apps"] + resources: + - replicasets + verbs: + - get + - list + - watch +- apiGroups: ["batch"] + resources: + - jobs + verbs: + - get + - list + - watch --- apiVersion: v1 kind: ServiceAccount diff --git a/config/recipes/beats/stack_monitoring.yaml b/config/recipes/beats/stack_monitoring.yaml index 444aa04fc9..f1e1baecb7 100644 --- a/config/recipes/beats/stack_monitoring.yaml +++ b/config/recipes/beats/stack_monitoring.yaml @@ -91,6 +91,20 @@ rules: - get - watch - list +- apiGroups: ["apps"] + resources: + - replicasets + verbs: + - get + - list + - watch +- apiGroups: ["batch"] + resources: + - jobs + verbs: + - get + - list + - watch --- apiVersion: v1 kind: ServiceAccount @@ -190,6 +204,20 @@ rules: - get - watch - list +- apiGroups: ["apps"] + resources: + - replicasets + verbs: + - get + - list + - watch +- apiGroups: ["batch"] + resources: + - jobs + verbs: + - get + - list + - watch --- apiVersion: v1 kind: ServiceAccount diff --git a/config/recipes/elastic-agent/kubernetes-integration.yaml b/config/recipes/elastic-agent/kubernetes-integration.yaml index 21bcd923a3..e9f3542632 100644 --- a/config/recipes/elastic-agent/kubernetes-integration.yaml +++ b/config/recipes/elastic-agent/kubernetes-integration.yaml @@ -154,6 +154,20 @@ rules: - get - create - update +- apiGroups: ["apps"] + resources: + - replicasets + verbs: + - get + - list + - watch +- apiGroups: ["batch"] + resources: + - jobs + verbs: + - get + - list + - watch --- apiVersion: v1 kind: ServiceAccount