Files
litmus-hub/charts/generic/k8-prometheus-operator/rbac-admin.yaml
dharmaanu 031a41d9bf Create 3 new experiments for kubernetes (#367)
* Adding 3 experiments for kubernetes

Signed-off-by: Anushya Dharmarajan <anushya_dharmarajan@intuit.com>

* Correcting kiam label

Signed-off-by: Anushya Dharmarajan <anushya_dharmarajan@intuit.com>

* Fixing path in Readme

Signed-off-by: Anushya Dharmarajan <anushya_dharmarajan@intuit.com>

* removed custom-spiserver

Signed-off-by: Anushya Dharmarajan <anushya_dharmarajan@intuit.com>

Co-authored-by: Anushya Dharmarajan <anushya_dharmarajan@intuit.com>
2020-11-04 09:46:16 +05:30

39 lines
959 B
YAML

apiVersion: v1
kind: ServiceAccount
metadata:
name: chaos-admin
labels:
name: chaos-admin
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: chaos-admin
labels:
name: chaos-admin
rules:
- apiGroups: ["","apps","batch"]
resources: ["jobs","deployments","daemonsets"]
verbs: ["create","list","get","patch","delete"]
- apiGroups: ["","litmuschaos.io"]
resources: ["pods","configmaps","events","services","chaosengines","chaosexperiments","chaosresults","deployments","jobs"]
verbs: ["get","create","update","patch","delete","list"]
- apiGroups: [""]
resources: ["nodes"]
verbs : ["get","list"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: chaos-admin
labels:
name: chaos-admin
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: chaos-admin
subjects:
- kind: ServiceAccount
name: chaos-admin
namespace: default