mirror of
https://github.com/2martens/terraform.git
synced 2026-10-17 15:46:52 +02:00
Added additional ports needed for monitoring
This commit is contained in:
@@ -19,6 +19,9 @@ runcmd:
|
||||
- ufw allow 80 comment HTTP
|
||||
- ufw allow 443 comment HTTPS
|
||||
- ufw allow to ${node_ip} port 9100 comment "Metrics endpoint"
|
||||
- ufw allow to ${node_ip} port 10250 comment "cadvisor port"
|
||||
- ufw allow to ${node_ip} port 10259 comment "kube-scheduler port"
|
||||
- ufw allow to ${node_ip} port 10257 comment "kube-controller-manager port"
|
||||
- ufw enable
|
||||
- sed -i -e '/^\(#\|\)PermitRootLogin/s/^.*$/PermitRootLogin no/' /etc/ssh/sshd_config
|
||||
- sed -i -e '/^\(#\|\)PasswordAuthentication/s/^.*$/PasswordAuthentication no/' /etc/ssh/sshd_config
|
||||
|
||||
Reference in New Issue
Block a user