summaryrefslogtreecommitdiffstats
path: root/performanceTests/environment/k8s/Makefile
diff options
context:
space:
mode:
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