Browse Source

Add ping_access_ip; allows to disable ping test (#7020)

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.
pull/7132/head
Cristian Klein 3 years ago
committed by GitHub
parent
commit
b9077d3ea2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 0 deletions
  1. 3
      inventory/sample/group_vars/all/all.yml
  2. 3
      roles/kubernetes/preinstall/defaults/main.yml
  3. 1
      roles/kubernetes/preinstall/tasks/0020-verify-settings.yml

3
inventory/sample/group_vars/all/all.yml

@ -109,3 +109,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
roles/kubernetes/preinstall/defaults/main.yml

@ -56,3 +56,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
roles/kubernetes/preinstall/tasks/0020-verify-settings.yml

@ -114,6 +114,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:

Loading…
Cancel
Save