From bc19f408bd97e785edc4e5254e17d85d07bec00e Mon Sep 17 00:00:00 2001 From: Shuting Zhao Date: Thu, 12 Dec 2019 17:46:35 -0800 Subject: [PATCH] add rolebinding manifest for a ns admin --- definitions/rolebinding.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 definitions/rolebinding.yaml diff --git a/definitions/rolebinding.yaml b/definitions/rolebinding.yaml new file mode 100644 index 0000000000..b8240c0014 --- /dev/null +++ b/definitions/rolebinding.yaml @@ -0,0 +1,21 @@ +apiVersion: rbac.authorization.k8s.io/v1beta1 +kind: RoleBinding +metadata: + name: policyviolation + # change namespace below to create rolebinding for the namespace admin + namespace: default +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: policyviolation +subjects: +# configure below to access policy violation for the namespace admin +- kind: ServiceAccount + name: default + namespace: default +# - apiGroup: rbac.authorization.k8s.io +# kind: User +# name: +# - apiGroup: rbac.authorization.k8s.io +# kind: Group +# name: \ No newline at end of file