diff options
author | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2021-06-01 13:14:39 +0200 |
---|---|---|
committer | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2021-06-01 13:17:08 +0000 |
commit | 74ff05ddf0a685a7945dc6bae9acb37ff3e27432 (patch) | |
tree | bb02895febdc085f7e5fb6de56469666d95a202f | |
parent | a466ed6a85faed331e4ad7645be86d1e63c04bc4 (diff) |
[ANSIBLE] Add kube_prometheus playbook
Change-Id: I65a7560423554d375b825fe0de04e6dd558e9371
Issue-ID: INT-1926
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
-rwxr-xr-x | ansible/group_vars/infrastructure.yml | 1 | ||||
-rw-r--r-- | ansible/kube_prometheus.yml | 5 | ||||
-rw-r--r-- | ansible/site.yml | 2 |
3 files changed, 8 insertions, 0 deletions
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 |