mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-13 21:34:40 +03:00
Install iputils with other packages
This commit is contained in:
@@ -54,9 +54,6 @@ etc_hosts_localhost_entries:
|
||||
minimal_node_memory_mb: 1024
|
||||
minimal_master_memory_mb: 1500
|
||||
|
||||
# Check if access_ip responds to ping. Set false if your firewall blocks ICMP.
|
||||
ping_access_ip: true
|
||||
|
||||
## NTP Settings
|
||||
# Start the ntpd or chrony service and enable it at system boot.
|
||||
ntp_enabled: false
|
||||
|
||||
@@ -53,23 +53,6 @@
|
||||
- not ignore_assert_errors
|
||||
- ip is defined
|
||||
|
||||
- name: Ensure ping package
|
||||
package:
|
||||
# noqa: jinja[spacing]
|
||||
name: >-
|
||||
{%- if ansible_os_family == 'Debian' -%}
|
||||
iputils-ping
|
||||
{%- else -%}
|
||||
iputils
|
||||
{%- endif -%}
|
||||
state: present
|
||||
when:
|
||||
- main_access_ip is defined
|
||||
- not ignore_assert_errors
|
||||
- ping_access_ip
|
||||
- not is_fedora_coreos
|
||||
- not ansible_os_family in ["Flatcar", "Flatcar Container Linux by Kinvolk"]
|
||||
|
||||
- name: Stop if access_ip is not pingable
|
||||
command: ping -c1 {{ main_access_ip }}
|
||||
when:
|
||||
|
||||
@@ -6,6 +6,9 @@ ansible_ssh_common_args: "{% if 'bastion' in groups['all'] %} -o ProxyCommand='s
|
||||
# selinux state
|
||||
preinstall_selinux_state: permissive
|
||||
|
||||
# Check if access_ip responds to ping. Set false if your firewall blocks ICMP.
|
||||
ping_access_ip: true
|
||||
|
||||
# Setting this value to false will fail
|
||||
# For details, read this comment https://github.com/kubernetes-sigs/kubespray/pull/11016#issuecomment-2004985001
|
||||
kube_api_anonymous_auth: true
|
||||
|
||||
@@ -41,6 +41,15 @@ pkgs:
|
||||
- "{{ 'k8s_cluster' in group_names }}"
|
||||
iptables:
|
||||
- "{{ ansible_os_family in ['Debian', 'RedHat'] }}"
|
||||
iputils:
|
||||
- "{{ not ansible_os_family in ['Flatcar', 'Flatcar Container Linux by Kinvolk', 'Debian'] }}"
|
||||
- "{{ main_access_ip is defined }}"
|
||||
- "{{ ping_access_ip }}"
|
||||
- "{{ not is_fedora_coreos }}"
|
||||
iputils-ping:
|
||||
- "{{ ansible_os_family == 'Debian' }}"
|
||||
- "{{ main_access_ip is defined }}"
|
||||
- "{{ ping_access_ip }}"
|
||||
ipvsadm:
|
||||
- "{{ kube_proxy_mode == 'ipvs' }}"
|
||||
- "{{ 'k8s_cluster' in group_names }}"
|
||||
|
||||
Reference in New Issue
Block a user