Skip to content

Commit

Permalink
Add ping_access_ip; allows to disable ping test (kubernetes-sigs#7020)
Browse files Browse the repository at this point in the history
In some environments, it might not be possible to ping the IP address
of the nodes, e.g., because ICMP echo is blocked.

This commit allows kubespray to be configured to disable the ping
check, while performing all other checks.
  • Loading branch information
cristiklein authored and LuckySB committed Feb 1, 2021
1 parent 2e396d2 commit 6725ec4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions inventory/sample/group_vars/all/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,6 @@ no_proxy_exclude_workers: false
# rh_subscription_usage: "Development"
# rh_subscription_role: "Red Hat Enterprise Server"
# rh_subscription_sla: "Self-Support"

## Check if access_ip responds to ping. Set false if your firewall blocks ICMP.
# ping_access_ip: true
3 changes: 3 additions & 0 deletions roles/kubernetes/preinstall/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,6 @@ yum_repo_dir: /etc/yum.repos.d

# number of times package install task should be retried
pkg_install_retries: 4

# Check if access_ip responds to ping. Set false if your firewall blocks ICMP.
ping_access_ip: true
1 change: 1 addition & 0 deletions roles/kubernetes/preinstall/tasks/0020-verify-settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@
when:
- access_ip is defined
- not ignore_assert_errors
- ping_access_ip

- name: Stop if RBAC is not enabled when dashboard is enabled
assert:
Expand Down

0 comments on commit 6725ec4

Please sign in to comment.