22 lines
No EOL
472 B
YAML
22 lines
No EOL
472 B
YAML
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRole
|
|
metadata:
|
|
name: vector-agent
|
|
rules:
|
|
- apiGroups: [""]
|
|
resources: ["namespaces", "nodes", "pods"]
|
|
verbs: ["list", "watch"]
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRoleBinding
|
|
metadata:
|
|
name: vector-agent
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: ClusterRole
|
|
name: vector-agent
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: vector-agent
|
|
namespace: observability |