aboutsummaryrefslogtreecommitdiffstats
path: root/tools/performance/cloud/prometheus-deployment.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'tools/performance/cloud/prometheus-deployment.yaml')
-rw-r--r--tools/performance/cloud/prometheus-deployment.yaml76
1 files changed, 76 insertions, 0 deletions
diff --git a/tools/performance/cloud/prometheus-deployment.yaml b/tools/performance/cloud/prometheus-deployment.yaml
new file mode 100644
index 00000000..d531f588
--- /dev/null
+++ b/tools/performance/cloud/prometheus-deployment.yaml
@@ -0,0 +1,76 @@
+# ============LICENSE_START=======================================================
+# dcaegen2-collectors-veshv
+# ================================================================================
+# Copyright (C) 2019 NOKIA
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ============LICENSE_END=========================================================
+
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: prometheus-hv-ves-deployment
+ namespace: onap
+ labels:
+ app: hv-collector-prometheus
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: hv-collector-prometheus
+ template:
+ metadata:
+ labels:
+ app: hv-collector-prometheus
+ spec:
+ containers:
+ - name: hv-collector-prometheus
+ image: prom/prometheus
+ args:
+ - "--config.file=/etc/prometheus/prometheus.yml"
+ - "--storage.tsdb.path=/prometheus/"
+ ports:
+ - containerPort: 9090
+ volumeMounts:
+ - name: prometheus-config-volume
+ mountPath: /etc/prometheus/
+ - name: prometheus-storage-volume
+ mountPath: /prometheus/
+ volumes:
+ - name: prometheus-config-volume
+ configMap:
+ defaultMode: 420
+ name: prometheus-server-conf
+
+ - name: prometheus-storage-volume
+ emptyDir: {}
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: prometheus-service
+ namespace: onap
+ labels:
+ app: hv-collector-prometheus
+ annotations:
+ prometheus.io/scrape: 'true'
+ prometheus.io/port: '9090'
+
+spec:
+ selector:
+ app: hv-collector-prometheus
+ type: NodePort
+ ports:
+ - port: 8080
+ targetPort: 9090
+ nodePort: 30000