summaryrefslogtreecommitdiffstats
path: root/performanceTests/environment/k8s/Makefile
diff options
context:
space:
mode:
authorPawel <pawel.kasperkiewicz@nokia.com>2020-06-19 10:30:10 +0200
committerPawel <pawel.kasperkiewicz@nokia.com>2020-06-19 10:30:10 +0200
commit34a204f287a0095c31ede1771d794b95e81666c0 (patch)
tree6f823d1e59db08a9f1bf6173f9c499fe2fa453e4 /performanceTests/environment/k8s/Makefile
parenteca7d951a7632b8d8e745ca6552eff1ab8e536bb (diff)
Add DmaaP simulator, test scenarios and refactor dashboards
Issue-ID: DCAEGEN2-608 Signed-off-by: Pawel <pawel.kasperkiewicz@nokia.com> Change-Id: I294183c7f80be53f1ca44724deb78abef41e08ed
Diffstat (limited to 'performanceTests/environment/k8s/Makefile')
-rw-r--r--performanceTests/environment/k8s/Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/performanceTests/environment/k8s/Makefile b/performanceTests/environment/k8s/Makefile
index 0843f3b8..55bb1483 100644
--- a/performanceTests/environment/k8s/Makefile
+++ b/performanceTests/environment/k8s/Makefile
@@ -1,4 +1,4 @@
-all: --deploy-influxdb --deploy-prometheus --deploy-node-exporter --deploy-grafana --display-urls
+all: --deploy-influxdb --deploy-prometheus --deploy-node-exporter --deploy-grafana --deploy-dmaap-simulator --display-urls
# Prometheus configuration
PROMETHEUS_DIRECTORY = ./prometheus
@@ -21,6 +21,11 @@ INFLUXDB_CONFIGMAP = configmap.yaml
NODE_EXPORTER_DIRECTORY = ./nodeExporter
NODE_EXPORTER_DEPLOYMENT = deployment.yaml
+# DMaaaP Simulator configuration
+DMAAP_SIMULATOR_DIRECTORY = ./dmaapSimulator
+DMAAP_SIMULATOR_DEPLOYMENT = deployment.yaml
+DMAAP_SIMULATOR_IMAGE_ESCAPED := $(shell echo $(DMAAP_SIMULATOR_IMAGE) | sed 's/\//\\\//g')
+
clear:
@echo "\n##### Delete configmaps and deployments (prometheus, grafana, influxdb, node exporter) #####"
kubectl delete -f $(GRAFANA_DIRECTORY)/$(GRAFANA_DEPLOYMENT) || true
@@ -32,6 +37,7 @@ clear:
kubectl delete -f $(INFLUXDB_DIRECTORY)/$(INFLUXDB_DEPLOYMENT) || true
kubectl delete -f $(INFLUXDB_DIRECTORY)/$(INFLUXDB_CONFIGMAP) || true
kubectl delete -f $(NODE_EXPORTER_DIRECTORY)/$(NODE_EXPORTER_DEPLOYMENT) || true
+ kubectl delete -f $(DMAAP_SIMULATOR_DIRECTORY)/$(DMAAP_SIMULATOR_DEPLOYMENT) || true
@echo "##### DONE #####"
--deploy-node-exporter:
@@ -59,6 +65,13 @@ clear:
kubectl apply -f $(INFLUXDB_DIRECTORY)/$(INFLUXDB_DEPLOYMENT)
@echo "##### DONE #####"
+--deploy-dmaap-simulator:
+ @echo "\n##### Deploy dmaap simulator #####"
+ sed -i "s/DMAAP_SIMULATOR_IMAGE/$(DMAAP_SIMULATOR_IMAGE_ESCAPED)/g" $(DMAAP_SIMULATOR_DIRECTORY)/$(DMAAP_SIMULATOR_DEPLOYMENT)
+ kubectl apply -f $(DMAAP_SIMULATOR_DIRECTORY)/$(DMAAP_SIMULATOR_DEPLOYMENT)
+ @echo "##### DONE #####"
+
+
--display-urls:
@echo "Waiting for Grafana to start up..."
@sleep 10