Skip to content

Commit 739dd03

Browse files
[#150]: added a new ClusterRole to allow pod metadata queries from the kubeapi
1 parent 595b2e5 commit 739dd03

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

core/src/testing/rolebinding.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,25 @@ roleRef:
2121
kind: Role
2222
name: coredns-configmap-access
2323
apiGroup: rbac.authorization.k8s.io
24+
---
25+
apiVersion: rbac.authorization.k8s.io/v1
26+
kind: ClusterRole
27+
metadata:
28+
name: cf-api-pods-access
29+
rules:
30+
- apiGroups: [ "" ]
31+
resources: [ "pods" ]
32+
verbs: [ "get", "list", "watch" ]
33+
---
34+
apiVersion: rbac.authorization.k8s.io/v1
35+
kind: ClusterRoleBinding
36+
metadata:
37+
name: cf-api-pods-access-binding
38+
subjects:
39+
- kind: ServiceAccount
40+
name: default
41+
namespace: cortexflow
42+
roleRef:
43+
kind: ClusterRole
44+
name: cf-api-pods-access
45+
apiGroup: rbac.authorization.k8s.io

0 commit comments

Comments
 (0)