28
loading...
This website collects cookies to deliver better user experience
v1.13.x
branch, choose the master
branch.test-instance
and test-instance-1
, belonging to the zones us-central1-a
and us-central1-b
respectively, belonging to the GCP project “Litmus GCP Instance Delete” with the ID of litmus-gcp-instance-delete
.secret.yaml
as follows:cloud-secret
and replace the respective fields of the secret with your own service account credentials. Once done, apply the secret in the litmus
namespace using the command:kubectl apply -f secret.yaml -n litmus
gcp/gcp-vm-instance-stop
.ChaosExperiment
:ChaosExperiment
to be mounted at the path /tmp/
.ChaosEngine
as follows:INSTANCE_ZONES
in the same order of the VM_INSTANCE_NAMES
. If you like, feel free to modify the other parameters of the experiment such as the RAMP_TIME
, TOTAL_CHAOS_DURATION
, etc. As you would have noticed, some of the experiment tunables are common for both the ChaosEngine
and ChaosExperiment
, and the values of ChaosExperiment
get overridden by that of the values of the ChaosEngine
if they differ in both the manifests. Once done, click Save Changes. We’ve now specified all the experiment details and are ready to go to the next step. Click Next.ChaosResult
verdict which should say the experiment has passed. The Probe Success Percentage should be 100% as all our instances restarted successfully post their shutdown.https://slack.k8s.io/
#litmus
channel on the Kubernetes slack or use this link after joining the Kubernetes slack: [https://slack.litmuschaos.io/](https://slack.litmuschaos.io/)