Files
litmus-hub/experiments/openebs/openebs-nfs-provisioner-kill/rbac.yaml
Amit Kumar Das 7adf5d35a1 Directory restructure to add scenarios and experiments (#559)
* Updated dir struture with scenarios and experiments dir

Signed-off-by: Amit Kumar Das <amit.das@harness.io>

* Added icons

Signed-off-by: Amit Kumar Das <amit.das@harness.io>
2022-07-15 17:30:39 +05:30

38 lines
1020 B
YAML

---
apiVersion: v1
kind: ServiceAccount
metadata:
name: nfs-chaos-sa
namespace: default
labels:
name: nfs-chaos-sa
app.kubernetes.io/part-of: litmus
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: nfs-chaos-sa
labels:
name: nfs-chaos-sa
app.kubernetes.io/part-of: litmus
rules:
- apiGroups: ["","apps","litmuschaos.io","batch","extensions","storage.k8s.io"]
resources: ["pods","pods/exec","pods/log", "deployments","events","jobs","configmaps","services","persistentvolumeclaims","storageclasses","persistentvolumes","chaosexperiments","chaosresults","chaosengines"]
verbs: ["create","list","get","patch","update","delete"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: nfs-chaos-sa
labels:
name: nfs-chaos-sa
app.kubernetes.io/part-of: litmus
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: nfs-chaos-sa
subjects:
- kind: ServiceAccount
name: nfs-chaos-sa
namespace: default