summaryrefslogtreecommitdiffstats
path: root/performanceTests/k8s/Makefile
diff options
context:
space:
mode:
authorPawel <pawel.kasperkiewicz@nokia.com>2020-06-10 14:26:08 +0200
committerPawel <pawel.kasperkiewicz@nokia.com>2020-06-10 14:26:08 +0200
commitc1d414af5f411eeda06cf707e57d401e134398b8 (patch)
treec73711615c18b1ad43ce990b8a299bcda823f2be /performanceTests/k8s/Makefile
parent3b6ba181623e844d5012362209d2f29616315395 (diff)
Refactor ves performance test
Issue-ID: DCAEGEN2-608 Signed-off-by: Pawel <pawel.kasperkiewicz@nokia.com> Change-Id: I17154b59390af7340b7e86ae0ac3336583dd9318
Diffstat (limited to 'performanceTests/k8s/Makefile')
-rw-r--r--performanceTests/k8s/Makefile63
1 files changed, 0 insertions, 63 deletions
diff --git a/performanceTests/k8s/Makefile b/performanceTests/k8s/Makefile
deleted file mode 100644
index bb9f061b..00000000
--- a/performanceTests/k8s/Makefile
+++ /dev/null
@@ -1,63 +0,0 @@
-all: create-configmaps deploy-influxdb deploy-prometheus deploy-grafana display-urls
-
-# Prometheus configuration
-PROMETHEUS_DIRECTORY = ./prometheus
-PROMETHEUS_DEPLOYMENT = deployment.yaml
-PROMETHEUS_CONFIGMAP = configmap.yaml
-
-# Grafana configuration
-GRAFANA_DIRECTORY = ./grafana
-GRAFANA_DEPLOYMENT = deployment.yaml
-DATASOURCE_CONFIGMAP = datasource.yaml
-DASHBOARD_PROVIDER_CONFIGMAP = dashboards-provider.yaml
-DASHBOARD_CONFIGMAP = dashboard.yaml
-
-#INFLUXDB configuration
-INFLUXDB_DIRECTORY = ./influxdb
-INFLUXDB_DEPLOYMENT = deployment.yaml
-INFLUXDB_CONFIGMAP = configmap.yaml
-
-#Node exporter configuration
-NODE_EXPORTER = node-exporter.yaml
-
-clear:
- @echo "\n##### Delete configmaps and $(GRAFANA_DEPLOYMENT)(grafana, prometheus)#####"
- kubectl delete -f $(GRAFANA_DIRECTORY)/$(GRAFANA_DEPLOYMENT) || true
- kubectl delete -f $(GRAFANA_DIRECTORY)/$(DASHBOARD_PROVIDER_CONFIGMAP) || true
- kubectl delete -f $(GRAFANA_DIRECTORY)/$(DATASOURCE_CONFIGMAP) || true
- kubectl delete -n onap configmap ves-grafana-dashboards || true
- kubectl delete -f $(PROMETHEUS_DIRECTORY)/$(PROMETHEUS_DEPLOYMENT) || true
- kubectl delete -f $(PROMETHEUS_DIRECTORY)/$(PROMETHEUS_CONFIGMAP) || true
- kubectl delete -f $(INFLUXDB_DIRECTORY)/$(INFLUXDB_DEPLOYMENT) || true
- kubectl delete -f $(INFLUXDB_DIRECTORY)/$(INFLUXDB_CONFIGMAP) || true
- kubectl delete -f $(NODE_EXPORTER) || true
- @echo "##### DONE #####"
-
-create-configmaps:
- @echo "\n##### Create configmaps #####"
- kubectl apply -f $(PROMETHEUS_DIRECTORY)/$(PROMETHEUS_CONFIGMAP)
- kubectl apply -f $(GRAFANA_DIRECTORY)/$(DATASOURCE_CONFIGMAP)
- kubectl apply -f $(GRAFANA_DIRECTORY)/$(DASHBOARD_PROVIDER_CONFIGMAP)
- kubectl apply -f $(INFLUXDB_DIRECTORY)/$(INFLUXDB_CONFIGMAP)
- kubectl apply -f $(NODE_EXPORTER)
- kubectl create configmap ves-grafana-dashboards -n onap --from-file grafana/dashboards/
- @echo "##### DONE #####"
-
-deploy-grafana:
- @echo "\n##### Deploy grafana #####"
- kubectl apply -f $(GRAFANA_DIRECTORY)/$(GRAFANA_DEPLOYMENT)
- @echo "##### DONE #####"
-
-deploy-prometheus:
- @echo "\n##### Deploy prometheus #####"
- kubectl apply -f $(PROMETHEUS_DIRECTORY)/$(PROMETHEUS_DEPLOYMENT)
- @echo "##### DONE #####"
-
-deploy-influxdb:
- @echo "\n##### Deploy influxdb #####"
- kubectl apply -f $(INFLUXDB_DIRECTORY)/$(INFLUXDB_DEPLOYMENT)
- @echo "##### DONE #####"
-
-display-urls:
- @echo "\e[32m##### Prometheus : http://<WORKER_IP>:30069/ #####\e[39m"
- @echo "\e[32m##### Grafana http://<WORKER_IP>:30001/ #####\e[39m"