summaryrefslogtreecommitdiffstats
path: root/performanceTests/Makefile
diff options
context:
space:
mode:
authorPawel <pawel.kasperkiewicz@nokia.com>2020-05-19 09:17:12 +0200
committerPawel <pawel.kasperkiewicz@nokia.com>2020-05-26 07:49:46 +0200
commita4d74cd90b7aae6d7ecf2a87b4048a96aa7677d9 (patch)
treef5b43ac8fa66941ead0806f210b90d8889048efa /performanceTests/Makefile
parent540de931d7c0234759d0d6caedf7aaf3d7b86fad (diff)
Deployment Prometheus and Grafana on RKE for perf tests
Issue-ID: DCAEGEN2-608 Signed-off-by: Pawel <pawel.kasperkiewicz@nokia.com> Change-Id: Ib02808fa9ccd7c2d241a1598def19d55b1b54797
Diffstat (limited to 'performanceTests/Makefile')
-rw-r--r--performanceTests/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/performanceTests/Makefile b/performanceTests/Makefile
new file mode 100644
index 00000000..5583a613
--- /dev/null
+++ b/performanceTests/Makefile
@@ -0,0 +1,27 @@
+all: copy-performanceTests run-performanceTests
+
+
+RKE_NODE_USER_AND_HOSTNAME = <RKE_USER>@<RKE_IP> # for example ubuntu@10.183.36.205
+RKE_PRIVATE_KEY = <PEM_PRIVATE_KEY_FILE_PATH> # for example ~/.ssh/onap-5802.pem
+PERFORMANCE_TESTS_DIRECTORY = vesPerformanceTestsEnv
+RKE_KUBECONFIG_FILE_PATH = <KUBECONFIG_FILE_PATH_ON_RKE> # for example /home/ubuntu/.kube/config.onap
+
+copy-performanceTests:
+ @echo "\n##### Copy performance tests directory to lab environment #####"
+ scp -r -i $(RKE_PRIVATE_KEY) ./k8s $(RKE_NODE_USER_AND_HOSTNAME):$(PERFORMANCE_TESTS_DIRECTORY)
+ @echo "##### DONE #####"
+
+run-performanceTests:
+ @echo "\n##### Run prometheus and grafana in lab environment #####"
+ ssh -i $(RKE_PRIVATE_KEY) $(RKE_NODE_USER_AND_HOSTNAME) 'bash -c "export KUBECONFIG=$(RKE_KUBECONFIG_FILE_PATH) && cd $(PERFORMANCE_TESTS_DIRECTORY) && make all"'
+ @echo "##### DONE #####"
+
+clear-performanceTests:
+ @echo "\n##### Stop and clear prometheus and grafana in lab environment #####"
+ ssh -i $(RKE_PRIVATE_KEY) $(RKE_NODE_USER_AND_HOSTNAME) 'bash -c "export KUBECONFIG=$(RKE_KUBECONFIG_FILE_PATH) && cd $(PERFORMANCE_TESTS_DIRECTORY) && make clear"'
+ @echo "##### DONE #####"
+
+remove-performanceTests:
+ @echo "\n##### Remove performance tests #####"
+ ssh -i $(RKE_PRIVATE_KEY) $(RKE_NODE_USER_AND_HOSTNAME) 'bash -c "export KUBECONFIG=$(RKE_KUBECONFIG_FILE_PATH) && rm -rf $(PERFORMANCE_TESTS_DIRECTORY)"'
+ @echo "##### DONE #####" \ No newline at end of file