b2921d67e6a0dcb25dfe5c003f342f2ad8780b19
[dcaegen2/collectors/hv-ves.git] / tools / performance / cloud / grafana-deployment.yaml
1 # ============LICENSE_START=======================================================\r
2 # dcaegen2-collectors-veshv\r
3 # ================================================================================\r
4 # Copyright (C) 2019 NOKIA\r
5 # ================================================================================\r
6 # Licensed under the Apache License, Version 2.0 (the "License");\r
7 # you may not use this file except in compliance with the License.\r
8 # You may obtain a copy of the License at\r
9 #\r
10 #      http://www.apache.org/licenses/LICENSE-2.0\r
11 #\r
12 # Unless required by applicable law or agreed to in writing, software\r
13 # distributed under the License is distributed on an "AS IS" BASIS,\r
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
15 # See the License for the specific language governing permissions and\r
16 # limitations under the License.\r
17 # ============LICENSE_END=========================================================\r
18 \r
19 apiVersion: extensions/v1beta1\r
20 kind: Deployment\r
21 metadata:\r
22   name: grafana-hv-ves-deployment\r
23   namespace: onap\r
24   labels:\r
25     app: hv-collector-grafana\r
26 spec:\r
27   replicas: 1\r
28   selector:\r
29     matchLabels:\r
30       app: hv-collector-grafana\r
31   template:\r
32     metadata:\r
33       labels:\r
34         app: hv-collector-grafana\r
35     spec:\r
36       containers:\r
37       - name: hv-collector-grafana\r
38         image: grafana/grafana\r
39         env:\r
40         - name: GF_AUTH_DISABLE_LOGIN_FORM\r
41           value: "true"\r
42         - name: GF_AUTH_DISABLE_SIGNOUT_MENU\r
43           value: "true"\r
44         - name: GF_AUTH_ANONYMOUS_ENABLED\r
45           value: "true"\r
46         - name: GF_AUTH_ANONYMOUS_ORG_ROLE\r
47           value: "Admin"\r
48         - name: FOLDER\r
49           value: "/tmp/dashboards"\r
50         volumeMounts:\r
51         - name: grafana-datasources\r
52           mountPath: /etc/grafana/provisioning/datasources\r
53         - name: grafana-dashboards\r
54           mountPath: /etc/grafana/provisioning/dashboards\r
55         - name: grafana-connections\r
56           mountPath: /grafana/connections\r
57         - name: grafana-performance-tests\r
58           mountPath: /grafana/performance-tests\r
59         - name: grafana-processing\r
60           mountPath: /grafana/processing\r
61       volumes:\r
62       - name: grafana-datasources\r
63         configMap:\r
64           name: grafana-datasources\r
65       - name: grafana-dashboards\r
66         configMap:\r
67           name: grafana-dashboards\r
68       - name: grafana-connections\r
69         configMap:\r
70           name: grafana-connections\r
71       - name: grafana-performance-tests\r
72         configMap:\r
73           name: grafana-performance-tests\r
74       - name: grafana-processing\r
75         configMap:\r
76           name: grafana-processing\r
77 ---\r
78 apiVersion: v1\r
79 kind: Service\r
80 metadata:\r
81   name: grafana-service\r
82   namespace: onap\r
83   labels:\r
84     app: hv-collector-grafana\r
85   annotations:\r
86     prometheus.io/scrape: 'true'\r
87     prometheus.io/port:   '3000'\r
88 spec:\r
89   selector:\r
90     app: hv-collector-grafana\r
91   type: NodePort\r
92   ports:\r
93   - port: 3000\r
94     targetPort: 3000\r
95     nodePort: 30001\r
96 \r