Skip to content
This repository was archived by the owner on Apr 17, 2019. It is now read-only.

Commit 0068579

Browse files
ingvagabundeparis
authored andcommitted
Allow to open cadvisor 4194/tcp port when deploying nodes. (#896)
Otherwise e2e tests proxing to cadvisor fail with: Error: 'dial tcp 10.8.52.190:4194: getsockopt: no route to host'\nTrying to reach: 'http://10.8.52.190:4194/containers/'
1 parent 216a5ee commit 0068579

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

ansible/roles/node/defaults/main.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
kubelet_working_dir: /var/lib/kubelet
22
localBuildOutput: ../../_output/local/go/bin
3+
open_cadvisor_port: false

ansible/roles/node/tasks/firewalld.yml

+10
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@
77
firewalld: port=10250/tcp permanent=true state=enabled
88
ignore_errors: yes
99

10+
- name: Open firewalld port for the cadvisor
11+
firewalld: port=4194/tcp permanent=false state=enabled
12+
ignore_errors: yes
13+
when: open_cadvisor_port
14+
15+
- name: Save firewalld port for the cadvisor
16+
firewalld: port=4194/tcp permanent=true state=enabled
17+
ignore_errors: yes
18+
when: open_cadvisor_port
19+
1020
- name: Open redirected service traffic
1121
command: /bin/firewall-cmd --direct --add-rule ipv4 filter INPUT 1
1222
-i docker0 -j ACCEPT -m comment --comment "kube-proxy redirects"

0 commit comments

Comments
 (0)