* add(node-poweroff): Added node-poweroff experiment (based on node-restart) Signed-off-by: Jordi Gil <jgil@redhat.com> * Update node-poweroff.chartserviceversion.yaml Co-authored-by: Karthik Satchitanand <karthik.s@mayadata.io>
41 lines
1003 B
YAML
41 lines
1003 B
YAML
---
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: node-poweroff-sa
|
|
namespace: default
|
|
labels:
|
|
name: node-poweroff-sa
|
|
app.kubernetes.io/part-of: litmus
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRole
|
|
metadata:
|
|
name: node-poweroff-sa
|
|
labels:
|
|
name: node-poweroff-sa
|
|
app.kubernetes.io/part-of: litmus
|
|
rules:
|
|
- apiGroups: ["","litmuschaos.io","batch","apps"]
|
|
resources: ["pods","jobs","secrets","events","chaosengines","pods/log","chaosexperiments","chaosresults"]
|
|
verbs: ["create","list","get","patch","update","delete","deletecollection"]
|
|
- apiGroups: [""]
|
|
resources: ["nodes"]
|
|
verbs: ["get","list"]
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRoleBinding
|
|
metadata:
|
|
name: node-poweroff-sa
|
|
labels:
|
|
name: node-poweroff-sa
|
|
app.kubernetes.io/part-of: litmus
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: ClusterRole
|
|
name: node-poweroff-sa
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: node-poweroff-sa
|
|
namespace: default
|