From 143d542e40e21cd8bba3893cfc8fee8ee09617e5 Mon Sep 17 00:00:00 2001 From: saketjajoo Date: Mon, 10 Jul 2023 18:07:58 -0400 Subject: [PATCH] Updating the docs to include steps to delete the resources (nodepools and/or cluster) while cancelling the benchmark. Signed-off-by: saketjajoo --- prombench/docs/eks.md | 28 ++++++++++++++++++++++++++++ prombench/docs/gke.md | 25 +++++++++++++++++++++++++ 2 files changed, 53 insertions(+) diff --git a/prombench/docs/eks.md b/prombench/docs/eks.md index 3d1415fad..0f7e58abf 100644 --- a/prombench/docs/eks.md +++ b/prombench/docs/eks.md @@ -94,3 +94,31 @@ make node_create ```shell make resource_apply ``` + +### Stopping a benchmarking test manually + +--- + +- Set the following environment variables: +``` +export AUTH_FILE= +export CLUSTER_NAME=prombench +export SEPARATOR=, +export EKS_WORKER_ROLE_ARN= +export EKS_CLUSTER_ROLE_ARN= +export EKS_SUBNET_IDS=SUBNETID1,SUBNETID2,SUBNETID3 +export ZONE=us-east-1 +export PROVIDER=eks + +export PR_NUMBER= +``` + +- To delete just the nodepool (while keeping the cluster's main node intact), run: +``` +make clean +``` + +- To delete everything (complete teardown of the entire cluster and all the resources), run: +``` +make cluster_delete +``` diff --git a/prombench/docs/gke.md b/prombench/docs/gke.md index 9b2421ed0..483a260da 100644 --- a/prombench/docs/gke.md +++ b/prombench/docs/gke.md @@ -84,3 +84,28 @@ make node_create ``` make resource_apply ``` + +### Stopping a benchmarking test manually + +--- + +- Set the following environment variables: +``` +export GKE_PROJECT_ID= +export CLUSTER_NAME=prombench +export ZONE=us-east1-b +export AUTH_FILE= +export PROVIDER=gke + +export PR_NUMBER= +``` + +- To delete just the nodepool (while keeping the cluster's main node intact), run: +``` +make clean +``` + +- To delete everything (complete teardown of the entire cluster and all the resources), run: +``` +make cluster_delete +```