Linking the ServiceAccount to the ClusterRole

Link the ServiceAccount to the ClusterRole using ClusterRoleBinding as shown in the following sample YAML file.

Sample YAML file to add a ClusterRoleBinding

Deployment

kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: flogo-mon-service
subjects:
- kind: ServiceAccount
  name: flogo-mon-service-account
  namespace:  default
roleRef:
  kind: ClusterRole
  name: flogo-mon-cluster-role
  apiGroup: rbac.authorization.k8s.io