summaryrefslogtreecommitdiffstats
path: root/ansible
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-06-24 11:29:58 +0200
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-06-24 11:45:11 +0200
commit327b7dcc5ddb4961ff9aee2a25d023cd7d18ba57 (patch)
treee7d773510afab1d9f1cac0cc87e9d968927f1176 /ansible
parent8aa5c68c38ced1aa8db46f582e1033451450d779 (diff)
[ANSIBLE] Create a NodePort type service for Grafana dashboard
This will allow accessing Grafana UI on controlplane public port. Change-Id: Ic3c2f22f36616fe636c966d962b9e503ef56c735 Issue-ID: INT-1926 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'ansible')
-rw-r--r--ansible/roles/kube-prometheus-stack/defaults/main.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/ansible/roles/kube-prometheus-stack/defaults/main.yml b/ansible/roles/kube-prometheus-stack/defaults/main.yml
index 74d6564a..6b25a2e5 100644
--- a/ansible/roles/kube-prometheus-stack/defaults/main.yml
+++ b/ansible/roles/kube-prometheus-stack/defaults/main.yml
@@ -27,6 +27,14 @@ kube_prometheus_stack:
accessModes:
- ReadWriteOnce
size: 4Gi
+ service:
+ enabled: true
+ type: NodePort
+ port: 80
+ targetPort: 3000
+ annotations: {}
+ labels: {}
+ portName: service
prometheus:
prometheusSpec:
scrapeInterval: 60s