mirror of
https://github.com/techno-tim/k3s-ansible.git
synced 2025-12-28 11:42:37 +01:00
🌟 Complete
This commit is contained in:
@@ -32,3 +32,4 @@ argument_specs:
|
|||||||
systemd_dir:
|
systemd_dir:
|
||||||
description: Path to systemd services
|
description: Path to systemd services
|
||||||
default: /etc/systemd/system
|
default: /etc/systemd/system
|
||||||
|
required: true
|
||||||
|
|||||||
@@ -83,3 +83,4 @@ argument_specs:
|
|||||||
systemd_dir:
|
systemd_dir:
|
||||||
description: Path to systemd services
|
description: Path to systemd services
|
||||||
default: /etc/systemd/system
|
default: /etc/systemd/system
|
||||||
|
required: true
|
||||||
|
|||||||
@@ -2,11 +2,18 @@
|
|||||||
bpf_lb_algorithm: maglev
|
bpf_lb_algorithm: maglev
|
||||||
bpf_lb_mode: hybrid
|
bpf_lb_mode: hybrid
|
||||||
|
|
||||||
|
calico_blockSize: 26
|
||||||
calico_ebpf: false
|
calico_ebpf: false
|
||||||
|
calico_encapsulation: VXLANCrossSubnet
|
||||||
|
calico_natOutgoing: Enabled
|
||||||
|
calico_nodeSelector: all()
|
||||||
calico_tag: v3.27.2
|
calico_tag: v3.27.2
|
||||||
|
|
||||||
cilium_bgp: false
|
cilium_bgp: false
|
||||||
cilium_exportPodCIDR: true
|
cilium_exportPodCIDR: true
|
||||||
|
cilium_bgp_my_asn: 64513
|
||||||
|
cilium_bgp_peer_asn: 64512
|
||||||
|
cilium_bgp_lb_cidr: 192.168.31.0/24
|
||||||
cilium_hubble: true
|
cilium_hubble: true
|
||||||
cilium_mode: native
|
cilium_mode: native
|
||||||
|
|
||||||
@@ -18,3 +25,4 @@ group_name_master: master
|
|||||||
metal_lb_mode: layer2
|
metal_lb_mode: layer2
|
||||||
metal_lb_available_timeout: 240s
|
metal_lb_available_timeout: 240s
|
||||||
metal_lb_controller_tag_version: v0.14.3
|
metal_lb_controller_tag_version: v0.14.3
|
||||||
|
metal_lb_ip_range: 192.168.30.80-192.168.30.90
|
||||||
|
|||||||
@@ -15,11 +15,28 @@ argument_specs:
|
|||||||
description: BPF lb mode
|
description: BPF lb mode
|
||||||
default: hybrid
|
default: hybrid
|
||||||
|
|
||||||
|
calico_blockSize:
|
||||||
|
description: IP pool block size
|
||||||
|
type: int
|
||||||
|
default: 26
|
||||||
|
|
||||||
calico_ebpf:
|
calico_ebpf:
|
||||||
description: Use eBPF dataplane instead of iptables
|
description: Use eBPF dataplane instead of iptables
|
||||||
type: bool
|
type: bool
|
||||||
default: false
|
default: false
|
||||||
|
|
||||||
|
calico_encapsulation:
|
||||||
|
description: IP pool encapsulation
|
||||||
|
default: VXLANCrossSubnet
|
||||||
|
|
||||||
|
calico_natOutgoing:
|
||||||
|
description: IP pool NAT outgoing
|
||||||
|
default: Enabled
|
||||||
|
|
||||||
|
calico_nodeSelector:
|
||||||
|
description: IP pool node selector
|
||||||
|
default: all()
|
||||||
|
|
||||||
calico_iface:
|
calico_iface:
|
||||||
description: The network interface used for when Calico is enabled
|
description: The network interface used for when Calico is enabled
|
||||||
default: ~
|
default: ~
|
||||||
@@ -35,6 +52,24 @@ argument_specs:
|
|||||||
type: bool
|
type: bool
|
||||||
default: false
|
default: false
|
||||||
|
|
||||||
|
cilium_bgp_my_asn:
|
||||||
|
description: Local ASN for BGP peer
|
||||||
|
type: int
|
||||||
|
default: 64513
|
||||||
|
|
||||||
|
cilium_bgp_peer_asn:
|
||||||
|
description: BGP peer ASN
|
||||||
|
type: int
|
||||||
|
default: 64512
|
||||||
|
|
||||||
|
cilium_bgp_peer_address:
|
||||||
|
description: BGP peer address
|
||||||
|
default: ~
|
||||||
|
|
||||||
|
cilium_bgp_lb_cidr:
|
||||||
|
description: BGP load balancer IP range
|
||||||
|
default: 192.168.31.0/24
|
||||||
|
|
||||||
cilium_exportPodCIDR:
|
cilium_exportPodCIDR:
|
||||||
description: Export pod CIDR
|
description: Export pod CIDR
|
||||||
type: bool
|
type: bool
|
||||||
@@ -82,6 +117,10 @@ argument_specs:
|
|||||||
description: Wait for MetalLB resources
|
description: Wait for MetalLB resources
|
||||||
default: 240s
|
default: 240s
|
||||||
|
|
||||||
|
metal_lb_ip_range:
|
||||||
|
description: MetalLB ip range for load balancer
|
||||||
|
default: 192.168.30.80-192.168.30.90
|
||||||
|
|
||||||
metal_lb_controller_tag_version:
|
metal_lb_controller_tag_version:
|
||||||
description: Image tag for MetalLB
|
description: Image tag for MetalLB
|
||||||
default: v0.14.3
|
default: v0.14.3
|
||||||
@@ -92,3 +131,15 @@ argument_specs:
|
|||||||
choices:
|
choices:
|
||||||
- bgp
|
- bgp
|
||||||
- layer2
|
- layer2
|
||||||
|
|
||||||
|
metal_lb_bgp_my_asn:
|
||||||
|
description: BGP ASN configurations
|
||||||
|
default: ~
|
||||||
|
|
||||||
|
metal_lb_bgp_peer_asn:
|
||||||
|
description: BGP peer ASN configurations
|
||||||
|
default: ~
|
||||||
|
|
||||||
|
metal_lb_bgp_peer_address:
|
||||||
|
description: BGP peer address
|
||||||
|
default: ~
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ spec:
|
|||||||
calicoNetwork:
|
calicoNetwork:
|
||||||
# Note: The ipPools section cannot be modified post-install.
|
# Note: The ipPools section cannot be modified post-install.
|
||||||
ipPools:
|
ipPools:
|
||||||
- blockSize: {{ calico_blockSize | default('26') }}
|
- blockSize: {{ calico_blockSize }}
|
||||||
cidr: {{ cluster_cidr | default('10.52.0.0/16') }}
|
cidr: {{ cluster_cidr }}
|
||||||
encapsulation: {{ calico_encapsulation | default('VXLANCrossSubnet') }}
|
encapsulation: {{ calico_encapsulation }}
|
||||||
natOutgoing: {{ calico_natOutgoing | default('Enabled') }}
|
natOutgoing: {{ calico_natOutgoing }}
|
||||||
nodeSelector: {{ calico_nodeSelector | default('all()') }}
|
nodeSelector: {{ calico_nodeSelector }}
|
||||||
nodeAddressAutodetectionV4:
|
nodeAddressAutodetectionV4:
|
||||||
interface: {{ calico_iface }}
|
interface: {{ calico_iface }}
|
||||||
linuxDataplane: {{ 'BPF' if calico_ebpf else 'Iptables' }}
|
linuxDataplane: {{ 'BPF' if calico_ebpf else 'Iptables' }}
|
||||||
|
|||||||
7
roles/lxc/meta/main.yml
Normal file
7
roles/lxc/meta/main.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
argument_specs:
|
||||||
|
main:
|
||||||
|
short_description: Configure LXC
|
||||||
|
options:
|
||||||
|
custom_reboot_command:
|
||||||
|
default: ~
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
---
|
---
|
||||||
secure_path:
|
secure_path:
|
||||||
RedHat: '/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin'
|
RedHat: /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
|
||||||
Suse: '/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/bin'
|
Suse: /usr/sbin:/usr/bin:/sbin:/bin:/usr/local/bin
|
||||||
|
|||||||
7
roles/prereq/meta/main.yml
Normal file
7
roles/prereq/meta/main.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
argument_specs:
|
||||||
|
main:
|
||||||
|
short_description: Prerequisites
|
||||||
|
options:
|
||||||
|
system_timezone:
|
||||||
|
description: Timezone to be set on all nodes
|
||||||
9
roles/reset/meta/main.yml
Normal file
9
roles/reset/meta/main.yml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
argument_specs:
|
||||||
|
main:
|
||||||
|
short_description: Reset all nodes
|
||||||
|
options:
|
||||||
|
systemd_dir:
|
||||||
|
description: Path to systemd services
|
||||||
|
default: /etc/systemd/system
|
||||||
|
required: true
|
||||||
Reference in New Issue
Block a user