mirror of
https://github.com/submariner-io/submariner-charts.git
synced 2026-09-20 20:20:35 +00:00
Add RBAC policy for listing pods in sm-route-agent ds pod
Submariner-route-agent daemonset pod needs to query the list of other sm-route-agent pods in the cluster for their hostIP addresses. The ipaddress will be used as remote VxLAN Vtep IPs. Currently, sm-route-agent pod does not have the necessary privileges to list the pods in the submariner namespace of local cluster. This patch addresses this issue by adding the necessary role. Error seen: Failed to list *v1.Pod: pods is forbidden: User "system:serviceaccount:submariner:submariner-routeagent" cannot list resource "pods" in API group "" in the namespace "submariner"
This commit is contained in:
@@ -32,6 +32,9 @@ rules:
|
||||
- apiGroups: ["submariner.io"]
|
||||
resources: ["clusters", "endpoints"]
|
||||
verbs: ["create", "get", "list", "watch", "patch", "update"]
|
||||
- apiGroups: [""]
|
||||
resources: ["pods"]
|
||||
verbs: ["get", "watch", "list"]
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: RoleBinding
|
||||
|
||||
Reference in New Issue
Block a user