From 74ff05ddf0a685a7945dc6bae9acb37ff3e27432 Mon Sep 17 00:00:00 2001 From: Bartek Grzybowski Date: Tue, 1 Jun 2021 13:14:39 +0200 Subject: [ANSIBLE] Add kube_prometheus playbook Change-Id: I65a7560423554d375b825fe0de04e6dd558e9371 Issue-ID: INT-1926 Signed-off-by: Bartek Grzybowski --- ansible/group_vars/infrastructure.yml | 1 + ansible/kube_prometheus.yml | 5 +++++ ansible/site.yml | 2 ++ 3 files changed, 8 insertions(+) create mode 100644 ansible/kube_prometheus.yml diff --git a/ansible/group_vars/infrastructure.yml b/ansible/group_vars/infrastructure.yml index b351697b..c8d9210a 100755 --- a/ansible/group_vars/infrastructure.yml +++ b/ansible/group_vars/infrastructure.yml @@ -27,3 +27,4 @@ nexus3_image: sonatype/nexus3:3.15.2 dns_server_image: andyshinn/dnsmasq:2.76 nginx_server_image: own_nginx:2.0.0 chartmuseum_server_image: chartmuseum/chartmuseum +kube_prometheus_stack_enabled: false diff --git a/ansible/kube_prometheus.yml b/ansible/kube_prometheus.yml new file mode 100644 index 00000000..89408bfb --- /dev/null +++ b/ansible/kube_prometheus.yml @@ -0,0 +1,5 @@ +--- +- name: Deploy kube-prometheus stack + hosts: infrastructure + roles: + - kube-prometheus-stack diff --git a/ansible/site.yml b/ansible/site.yml index 7e22c5b2..6f00a9a2 100644 --- a/ansible/site.yml +++ b/ansible/site.yml @@ -16,5 +16,7 @@ - import_playbook: resources.yml - import_playbook: infrastructure.yml - import_playbook: rke.yml +- import_playbook: kube_prometheus.yml + when: kube_prometheus_stack_enabled - import_playbook: application.yml -- cgit 1.2.3-korg