fix: cannot list resource pods

Looks like the vector container now requires new permissions. This was
detected here: https://github.com/openedx/tutor-contrib-aspects/issues/180#issuecomment-1639147060
This commit is contained in:
Régis Behmo 2023-07-18 10:53:06 +02:00 committed by Régis Behmo
parent 961d2c92c1
commit a22f4c3d14
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1 @@
- [Bugfix] Fix "cannot list resource 'pods'" on Kubernetes. (by @regisb)

View File

@ -2,7 +2,7 @@
####### Cairn plugin
# log collection
# https://vector.dev/docs/setup/installation/platforms/kubernetes/
# https://github.com/timberio/vector/blob/master/distribution/kubernetes/vector-agent/resources.yaml
# https://github.com/vectordotdev/vector/blame/master/distribution/kubernetes/vector-agent/rbac.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
@ -19,8 +19,11 @@ rules:
- apiGroups:
- ""
resources:
- namespaces
- nodes
- pods
verbs:
- list
- watch
---
apiVersion: rbac.authorization.k8s.io/v1