Chore(ec2): Add charts for ec2 terminate experiment-by-id and ec2-terminate-by-tag (#440)
* Chore(ec2): Add charts for ec2 terminate experiment-by-id and ec2-terminate-by-tag Signed-off-by: uditgaurav <udit@chaosnative.com> * add ec2 terminates by id and tag in pkg and csv Signed-off-by: uditgaurav <udit@chaosnative.com>
This commit is contained in:
49
charts/kube-aws/ec2-terminate-by-id/rbac.yaml
Normal file
49
charts/kube-aws/ec2-terminate-by-id/rbac.yaml
Normal file
@@ -0,0 +1,49 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: ec2-terminate-by-id-sa
|
||||
namespace: default
|
||||
labels:
|
||||
name: ec2-terminate-by-id-sa
|
||||
app.kubernetes.io/part-of: litmus
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
name: ec2-terminate-by-id-sa
|
||||
labels:
|
||||
name: ec2-terminate-by-id-sa
|
||||
app.kubernetes.io/part-of: litmus
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["pods","events","secrets"]
|
||||
verbs: ["create","list","get","patch","update","delete","deletecollection"]
|
||||
- apiGroups: [""]
|
||||
resources: ["pods/exec","pods/log"]
|
||||
verbs: ["create","list","get"]
|
||||
- apiGroups: ["batch"]
|
||||
resources: ["jobs"]
|
||||
verbs: ["create","list","get","delete","deletecollection"]
|
||||
- apiGroups: ["litmuschaos.io"]
|
||||
resources: ["chaosengines","chaosexperiments","chaosresults"]
|
||||
verbs: ["create","list","get","patch","update"]
|
||||
- apiGroups: [""]
|
||||
resources: ["nodes"]
|
||||
verbs: ["patch","get","list"]
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: ec2-terminate-by-id-sa
|
||||
labels:
|
||||
name: ec2-terminate-by-id-sa
|
||||
app.kubernetes.io/part-of: litmus
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
name: ec2-terminate-by-id-sa
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: ec2-terminate-by-id-sa
|
||||
namespace: default
|
Reference in New Issue
Block a user