Skip to content
Snippets Groups Projects
Verified Commit 9f08dba0 authored by Rafael László's avatar Rafael László :speech_balloon:
Browse files

Add prometheus exporter config

parent ff624db5
Branches
No related tags found
No related merge requests found
...@@ -20,4 +20,9 @@ ...@@ -20,4 +20,9 @@
- name: Install harbor - name: Install harbor
tags: ["harbor"] tags: ["harbor"]
import_tasks: tasks/harbor.yaml import_tasks: tasks/harbor.yaml
- name: Install Prometheus exporter
tags: ["monitoring"]
package:
state: present
name:
- prometheus-node-exporter
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
-A INPUT -p tcp -m tcp --dport {{ ssh.port }} --src 152.66.0.0/8,192.168.0.0/16,10.0.0.0/8 -j ACCEPT -A INPUT -p tcp -m tcp --dport {{ ssh.port }} --src 152.66.0.0/8,192.168.0.0/16,10.0.0.0/8 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
# Accept from the Kubernetes cluster
-A INPUT -p tcp -m tcp --dport 9100 --src 192.168.101.0/24 -j ACCEPT
-A INPUT -j DROP -A INPUT -j DROP
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
-A INPUT -p tcp -m tcp --dport {{ ssh.port }} --src 2001:738:2001::/48 -j ACCEPT -A INPUT -p tcp -m tcp --dport {{ ssh.port }} --src 2001:738:2001::/48 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
# TODO node exporter from Kubernetes ipv6
-A INPUT -j DROP -A INPUT -j DROP
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment