mirror of
https://github.com/geerlingguy/ansible-role-kubernetes.git
synced 2024-11-23 19:06:33 +01:00
PR #75 follow-up: Make sure proper package is present and only run on older Debian and other OSes.
This commit is contained in:
parent
749d2869af
commit
690166af9a
@ -1,13 +1,21 @@
|
||||
---
|
||||
# See: https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/#letting-iptables-see-bridged-traffic
|
||||
- name: Set sysctl for IPv4 bridges
|
||||
sysctl:
|
||||
name: net.bridge.bridge-nf-call-iptables
|
||||
value: '1'
|
||||
- name: Ensure procps is installed.
|
||||
package:
|
||||
name: "{{ procps_package }}"
|
||||
state: present
|
||||
when: >
|
||||
ansible_distribution != 'Debian'
|
||||
or ansible_distribution_major_version | int < 10
|
||||
|
||||
- name: Set sysctl for IPv6 bridges
|
||||
# See: https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/#letting-iptables-see-bridged-traffic
|
||||
- name: Let iptables see bridged traffic.
|
||||
sysctl:
|
||||
name: net.bridge.bridge-nf-call-ip6tables
|
||||
name: "{{ item }}"
|
||||
value: '1'
|
||||
state: present
|
||||
loop:
|
||||
- net.bridge.bridge-nf-call-iptables
|
||||
- net.bridge.bridge-nf-call-ip6tables
|
||||
when: >
|
||||
ansible_distribution != 'Debian'
|
||||
or ansible_distribution_major_version | int < 10
|
||||
|
@ -1,2 +1,3 @@
|
||||
---
|
||||
procps_package: procps
|
||||
kubelet_environment_file_path: /etc/default/kubelet
|
||||
|
@ -1,4 +1,5 @@
|
||||
---
|
||||
procps_package: procps-ng
|
||||
kubelet_environment_file_path: /etc/sysconfig/kubelet
|
||||
kubernetes_packages:
|
||||
- name: kubelet-{{ kubernetes_version_rhel_package }}-0
|
||||
|
Loading…
Reference in New Issue
Block a user