Chore(New Charts): Add charts for vm-poweroff experiment (#433)
* Chore(New Charts): Adding Charts for vm-delete experiment Signed-off-by: Ubuntu <ubuntu@ip-172-31-31-101.ap-south-1.compute.internal>
This commit is contained in:
BIN
charts/vmware/icons/vm-poweroff.png
Normal file
BIN
charts/vmware/icons/vm-poweroff.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
BIN
charts/vmware/icons/vmware.png
Normal file
BIN
charts/vmware/icons/vmware.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
46
charts/vmware/vm-poweroff/engine.yaml
Normal file
46
charts/vmware/vm-poweroff/engine.yaml
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
apiVersion: litmuschaos.io/v1alpha1
|
||||||
|
kind: ChaosEngine
|
||||||
|
metadata:
|
||||||
|
name: nginx-chaos
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
# It can be true/false
|
||||||
|
annotationCheck: 'false'
|
||||||
|
# It can be active/stop
|
||||||
|
engineState: 'active'
|
||||||
|
#ex. values: ns1:name=percona,ns2:run=nginx
|
||||||
|
auxiliaryAppInfo: ''
|
||||||
|
chaosServiceAccount: vm-poweroff-sa
|
||||||
|
# It can be delete/retain
|
||||||
|
jobCleanUpPolicy: 'delete'
|
||||||
|
experiments:
|
||||||
|
- name: vm-poweroff
|
||||||
|
spec:
|
||||||
|
components:
|
||||||
|
env:
|
||||||
|
# set chaos duration (in sec) as desired
|
||||||
|
- name: TOTAL_CHAOS_DURATION
|
||||||
|
value: '30'
|
||||||
|
|
||||||
|
# provide vm moid
|
||||||
|
- name: APP_VM_MOID
|
||||||
|
value: ''
|
||||||
|
|
||||||
|
- name: VCENTERSERVER
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: vcenter-secret
|
||||||
|
key: VCENTERSERVER
|
||||||
|
|
||||||
|
- name: VCENTERUSER
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: vcenter-secret
|
||||||
|
key: VCENTERUSER
|
||||||
|
|
||||||
|
- name: VCENTERPASS
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: vcenter-secret
|
||||||
|
key: VCENTERPASS
|
||||||
|
|
82
charts/vmware/vm-poweroff/experiment.yaml
Normal file
82
charts/vmware/vm-poweroff/experiment.yaml
Normal file
@@ -0,0 +1,82 @@
|
|||||||
|
apiVersion: litmuschaos.io/v1alpha1
|
||||||
|
description:
|
||||||
|
message: |
|
||||||
|
stops a vm for a certain chaos duration
|
||||||
|
kind: ChaosExperiment
|
||||||
|
metadata:
|
||||||
|
name: vm-poweroff
|
||||||
|
labels:
|
||||||
|
name: vm-poweroff
|
||||||
|
app.kubernetes.io/part-of: litmus
|
||||||
|
app.kubernetes.io/component: chaosexperiment
|
||||||
|
app.kubernetes.io/version: latest
|
||||||
|
spec:
|
||||||
|
definition:
|
||||||
|
scope: Cluster
|
||||||
|
permissions:
|
||||||
|
- apiGroups:
|
||||||
|
- ""
|
||||||
|
- "batch"
|
||||||
|
- "litmuschaos.io"
|
||||||
|
resources:
|
||||||
|
- "jobs"
|
||||||
|
- "events"
|
||||||
|
- "pods/log"
|
||||||
|
- "pods/exec"
|
||||||
|
- "secrets"
|
||||||
|
- "pods"
|
||||||
|
- "chaosengines"
|
||||||
|
- "chaosexperiments"
|
||||||
|
- "chaosresults"
|
||||||
|
verbs:
|
||||||
|
- "create"
|
||||||
|
- "list"
|
||||||
|
- "get"
|
||||||
|
- "update"
|
||||||
|
- "patch"
|
||||||
|
- "delete"
|
||||||
|
image: "litmuschaos/go-runner:latest"
|
||||||
|
args:
|
||||||
|
- -c
|
||||||
|
- ./experiments -name vm-poweroff
|
||||||
|
command:
|
||||||
|
- /bin/bash
|
||||||
|
env:
|
||||||
|
|
||||||
|
- name: VCENTERSERVER
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: vcenter-secret
|
||||||
|
key: VCENTERSERVER
|
||||||
|
|
||||||
|
- name: VCENTERUSER
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: vcenter-secret
|
||||||
|
key: VCENTERUSER
|
||||||
|
|
||||||
|
- name: VCENTERPASS
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: vcenter-secret
|
||||||
|
key: VCENTERPASS
|
||||||
|
|
||||||
|
# provide the vm moid
|
||||||
|
- name: APP_VM_MOID
|
||||||
|
value: ''
|
||||||
|
|
||||||
|
- name: TOTAL_CHAOS_DURATION
|
||||||
|
value: '30'
|
||||||
|
|
||||||
|
|
||||||
|
- name: LIB
|
||||||
|
value: 'litmus'
|
||||||
|
|
||||||
|
- name: RAMP_TIME
|
||||||
|
value: ''
|
||||||
|
|
||||||
|
labels:
|
||||||
|
experiment: vm-poweroff
|
||||||
|
app.kubernetes.io/part-of: litmus
|
||||||
|
app.kubernetes.io/component: experiment-job
|
||||||
|
app.kubernetes.io/version: latest
|
47
charts/vmware/vm-poweroff/rbac.yaml
Normal file
47
charts/vmware/vm-poweroff/rbac.yaml
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: vm-poweroff-sa
|
||||||
|
namespace: default
|
||||||
|
labels:
|
||||||
|
name: vm-poweroff-sa
|
||||||
|
app.kubernetes.io/part-of: litmus
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRole
|
||||||
|
metadata:
|
||||||
|
name: vm-poweroff-sa
|
||||||
|
labels:
|
||||||
|
name: vm-poweroff-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"]
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
metadata:
|
||||||
|
name: vm-poweroff-sa
|
||||||
|
labels:
|
||||||
|
name: vm-poweroff-sa
|
||||||
|
app.kubernetes.io/part-of: litmus
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: ClusterRole
|
||||||
|
name: vm-poweroff-sa
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: vm-poweroff-sa
|
||||||
|
namespace: default
|
||||||
|
|
@@ -0,0 +1,39 @@
|
|||||||
|
apiVersion: litmuchaos.io/v1alpha1
|
||||||
|
kind: ChartServiceVersion
|
||||||
|
metadata:
|
||||||
|
createdAt: 2021-04-29T10:28:08Z
|
||||||
|
name: vm-poweroff
|
||||||
|
annotations:
|
||||||
|
categories: vmware
|
||||||
|
vendor: Wipro
|
||||||
|
support: https://app.slack.com/client/T09NY5SBT/CNXNB0ZTN
|
||||||
|
spec:
|
||||||
|
displayName: vm-poweroff
|
||||||
|
categoryDescription: |
|
||||||
|
Stops the vmware vm for a certain chaos duration
|
||||||
|
keywords:
|
||||||
|
- Kubernetes
|
||||||
|
- Vmware
|
||||||
|
- VM
|
||||||
|
platforms:
|
||||||
|
- vmware
|
||||||
|
maturity: alpha
|
||||||
|
maintainers:
|
||||||
|
- name: Delphine Joyneer
|
||||||
|
email: golkonda.joyneer@wipro.com
|
||||||
|
provider:
|
||||||
|
name: Wipro
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/component: chartserviceversion
|
||||||
|
app.kubernetes.io/version: latest
|
||||||
|
links:
|
||||||
|
- name: Source Code
|
||||||
|
url: https://github.com/litmuschaos/litmus-go/tree/master/experiments/vmware/vm-poweroff
|
||||||
|
- name: Documentation
|
||||||
|
url: https://docs.litmuschaos.io/docs/vm-poweroff
|
||||||
|
- name: Video
|
||||||
|
url:
|
||||||
|
icon:
|
||||||
|
- url:
|
||||||
|
mediatype: ""
|
||||||
|
chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/vmware/vm-poweroff/experiment.yaml
|
34
charts/vmware/vmware.chartserviceversion.yaml
Normal file
34
charts/vmware/vmware.chartserviceversion.yaml
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
apiVersion: litmuchaos.io/v1alpha1
|
||||||
|
kind: ChartServiceVersion
|
||||||
|
metadata:
|
||||||
|
createdAt: 2021-04-29T10:28:08Z
|
||||||
|
name: vmware
|
||||||
|
version: 0.1.0
|
||||||
|
annotations:
|
||||||
|
categories: vmware
|
||||||
|
chartDescription: Injects chaos on vmware components
|
||||||
|
spec:
|
||||||
|
displayName: VMware Chaos
|
||||||
|
categoryDescription: >
|
||||||
|
VMware contains chaos to disrupt the state of vmware resources
|
||||||
|
experiments:
|
||||||
|
- vm-poweroff
|
||||||
|
keywords:
|
||||||
|
- Kubernetes
|
||||||
|
- vmware
|
||||||
|
maintainers:
|
||||||
|
- name: Delphine Joyneer
|
||||||
|
email: golkonda.joyneer@wipro.com
|
||||||
|
provider:
|
||||||
|
name: Wipro
|
||||||
|
links:
|
||||||
|
- name: Kubernetes Website
|
||||||
|
url: https://kubernetes.io
|
||||||
|
- name: Source Code
|
||||||
|
url: https://github.com/litmuschaos/litmus-go/tree/master/experiments/vmware
|
||||||
|
- name: Community Slack
|
||||||
|
url: https://app.slack.com/client/T09NY5SBT/CNXNB0ZTN
|
||||||
|
icon:
|
||||||
|
- url:
|
||||||
|
mediatype:
|
||||||
|
chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/vmware/experiments.yaml
|
5
charts/vmware/vmware.package.yaml
Normal file
5
charts/vmware/vmware.package.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
packageName: vmware
|
||||||
|
experiments:
|
||||||
|
- name: vm-poweroff
|
||||||
|
CSV: vm-poweroff.chartserviceversion.yaml
|
||||||
|
desc: "vm-poweroff"
|
Reference in New Issue
Block a user