-
Notifications
You must be signed in to change notification settings - Fork 518
/
cluster-rbac.yaml
27 lines (27 loc) · 995 Bytes
/
cluster-rbac.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# This file is exclusively to be used when you are using Microsoft Entra ID direct assignment for Kubertnetes RBAC
# and NOT when you are using Azure RBAC as your Kubernetes RBAC backing store.
#
# Mapping k8s cluster user facing roles to Microsoft Entra groups: https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
#apiVersion: rbac.authorization.k8s.io/v1
#kind: ClusterRoleBinding
#metadata:
# name: cluster-admins
#roleRef:
# apiGroup: rbac.authorization.k8s.io
# kind: ClusterRole
# name: cluster-admin
#subjects:
# - kind: Group
# name: <replace-with-a-microsoft-entra-group-object-id-for-this-cluster-role-binding>
#---
#apiVersion: rbac.authorization.k8s.io/v1
#kind: ClusterRoleBinding
#metadata:
# name: cluster-viewers
#roleRef:
# apiGroup: rbac.authorization.k8s.io
# kind: ClusterRole
# name: view
#subjects:
# - kind: Group
# name: <replace-with-a-microsoft-entra-group-object-id-for-this-cluster-role-binding>