0

Does K8S RoleBinding or ClusterRoleBidning support reference using roleRef multiple roles? or do I have to create a binding for each role I want to give the user or group?

Something like this:

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: dev-user-binding
  namespace: xxxnamexxx
subjects:
- kind: ServiceAccount
  name: dev-user
  namespace: xxxnamexxx
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  **name: tigera-ui-user**
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  **name: tigera-dev-user**

Thanks in advance

Oren

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.