[RBAC] Add role binging for prometheus-server
In case of using RBAC in k8s we need to create role binding for
prometheus-server user to unlock creation of kubernetes-api target in
prometheus, otherwise we will get error:
`User \"prometheus-server\" cannot list nodes at the cluster scope`
Change-Id: I7ec27483f16169a5040aad24c9076c6361e02127
diff --git a/tests/pillar/common_storageclass.sls b/tests/pillar/common_storageclass.sls
index 47c3cec..6050fe9 100644
--- a/tests/pillar/common_storageclass.sls
+++ b/tests/pillar/common_storageclass.sls
@@ -70,3 +70,5 @@
nfs:
server: 10.0.0.1
path: /exported_path/inlfux01
+ monitoring:
+ backend: prometheus
diff --git a/tests/pillar/master_cluster.sls b/tests/pillar/master_cluster.sls
index a75c173..a0c2a2c 100644
--- a/tests/pillar/master_cluster.sls
+++ b/tests/pillar/master_cluster.sls
@@ -43,6 +43,8 @@
- cmp01
- cmp02
image: mirantis/virtlet:v0.8.0
+ monitoring:
+ backend: prometheus
master:
admin:
password: password
diff --git a/tests/pillar/master_contrail.sls b/tests/pillar/master_contrail.sls
index b562e66..c9b2ab3 100644
--- a/tests/pillar/master_contrail.sls
+++ b/tests/pillar/master_contrail.sls
@@ -47,6 +47,8 @@
enabled: true
namespace: kube-system
image: yashulyak/contrail-controller:latest
+ monitoring:
+ backend: prometheus
master:
admin:
password: password
diff --git a/tests/pillar/master_contrail4_0.sls b/tests/pillar/master_contrail4_0.sls
index fe63c4a..dbf8e87 100644
--- a/tests/pillar/master_contrail4_0.sls
+++ b/tests/pillar/master_contrail4_0.sls
@@ -43,6 +43,8 @@
hosts:
- cmp01
- cmp02
+ monitoring:
+ backend: prometheus
master:
service_addresses: 127.0.0.1/24
admin:
diff --git a/tests/pillar/pool_cluster.sls b/tests/pillar/pool_cluster.sls
index 35523bb..1dc2f0b 100644
--- a/tests/pillar/pool_cluster.sls
+++ b/tests/pillar/pool_cluster.sls
@@ -22,6 +22,8 @@
hosts:
- cmp01
- cmp02
+ monitoring:
+ backend: prometheus
pool:
enabled: true
version: v1.2.0
diff --git a/tests/pillar/pool_cluster_with_domain.sls b/tests/pillar/pool_cluster_with_domain.sls
index 595e39e..f756dd4 100644
--- a/tests/pillar/pool_cluster_with_domain.sls
+++ b/tests/pillar/pool_cluster_with_domain.sls
@@ -22,6 +22,8 @@
hosts:
- cmp01
- cmp02
+ monitoring:
+ backend: prometheus
pool:
enabled: true
version: v1.2.0
diff --git a/tests/pillar/pool_contrail4_0.sls b/tests/pillar/pool_contrail4_0.sls
index bdd87b7..da58e06 100644
--- a/tests/pillar/pool_contrail4_0.sls
+++ b/tests/pillar/pool_contrail4_0.sls
@@ -22,6 +22,8 @@
hosts:
- cmp01
- cmp02
+ monitoring:
+ backend: prometheus
pool:
enabled: true
version: v1.2.0