Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: cloudaware-reader
rules:
- apiGroups: ["*"]
  resources: ["*"]
  verbs: ["get", "watch", "list"]
---
kind: ClusterRoleBinding
metadata:
  name: <SAMPLE-ROLE-BINDING>
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: <CLUSTERcloudaware-READER>reader
subjects:
  - apiGroup: rbac.authorization.k8s.io
    kind: User
    name: <service-principal-object-id>

...

<SAMPLE-ROLE-BINDING> in metadata is a placeholder that needs to be replaced by your Cluster Role Binding name<CLUSTER-READER> in roleRef is a placeholder that needs to be replaced by your Cluster Role name

<service-principal-object-id> insubjects is a placeholder that needs to be replaced by your Azure Application Object ID

...