some changes
This commit is contained in:
parent
f7857cd5eb
commit
5abaf1febe
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
k3s_version: v1.17.5+k3s1
|
#k3s_version: v1.17.5+k3s1
|
||||||
|
k3s_version: v1.21.4+k3s1
|
||||||
ansible_user: pi
|
ansible_user: pi
|
||||||
systemd_dir: /etc/systemd/system
|
systemd_dir: /etc/systemd/system
|
||||||
master_ip: "{{ hostvars[groups['k3s_master'][0]]['ansible_host'] | default(groups['k3s_master'][0]) }}"
|
master_ip: "{{ hostvars[groups['k3s_master'][0]]['ansible_host'] | default(groups['k3s_master'][0]) }}"
|
||||||
|
@ -4,16 +4,16 @@
|
|||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
become: yes
|
become: yes
|
||||||
roles:
|
roles:
|
||||||
- role: prereq
|
- role: k3s_prereq
|
||||||
- role: download
|
- role: k3s_download
|
||||||
- role: raspberrypi
|
- role: k3s_raspberrypi
|
||||||
|
|
||||||
- hosts: master
|
- hosts: k3s_master
|
||||||
become: yes
|
become: yes
|
||||||
roles:
|
roles:
|
||||||
- role: k3s/master
|
- role: k3s/master
|
||||||
|
|
||||||
- hosts: node
|
- hosts: k3s_nodes
|
||||||
become: yes
|
become: yes
|
||||||
roles:
|
roles:
|
||||||
- role: k3s/node
|
- role: k3s/node
|
@ -7,7 +7,7 @@ After=network-online.target
|
|||||||
Type=notify
|
Type=notify
|
||||||
ExecStartPre=-/sbin/modprobe br_netfilter
|
ExecStartPre=-/sbin/modprobe br_netfilter
|
||||||
ExecStartPre=-/sbin/modprobe overlay
|
ExecStartPre=-/sbin/modprobe overlay
|
||||||
ExecStart=/usr/local/bin/k3s agent --server https://{{ master_ip }}:6443 --token {{ hostvars[groups['master'][0]]['token'] }} {{ extra_agent_args | default("") }}
|
ExecStart=/usr/local/bin/k3s agent --server https://{{ master_ip }}:6443 --token {{ hostvars[groups['k3s_master'][0]]['token'] }} {{ extra_agent_args | default("") }}
|
||||||
KillMode=process
|
KillMode=process
|
||||||
Delegate=yes
|
Delegate=yes
|
||||||
# Having non-zero Limit*s causes performance problems due to accounting overhead
|
# Having non-zero Limit*s causes performance problems due to accounting overhead
|
||||||
|
@ -17,9 +17,11 @@
|
|||||||
path: /usr/sbin/iptables-legacy
|
path: /usr/sbin/iptables-legacy
|
||||||
name: iptables
|
name: iptables
|
||||||
register: ip4_legacy
|
register: ip4_legacy
|
||||||
|
when: ansible_distribution_major_version|int > 9
|
||||||
|
|
||||||
- name: Changing to ip6tables-legacy
|
- name: Changing to ip6tables-legacy
|
||||||
alternatives:
|
alternatives:
|
||||||
path: /usr/sbin/ip6tables-legacy
|
path: /usr/sbin/ip6tables-legacy
|
||||||
name: ip6tables
|
name: ip6tables
|
||||||
register: ip6_legacy
|
register: ip6_legacy
|
||||||
|
when: ansible_distribution_major_version|int > 9
|
Loading…
Reference in New Issue
Block a user