mirror of
https://github.com/techno-tim/k3s-ansible.git
synced 2025-12-28 11:42:37 +01:00
➕ Add meta for server
This commit is contained in:
@@ -1,12 +1,18 @@
|
|||||||
---
|
---
|
||||||
# If you want to explicitly define an interface that ALL control nodes
|
extra_server_args: ""
|
||||||
# should use to propagate the VIP, define it here. Otherwise, kube-vip
|
|
||||||
# will determine the right interface automatically at runtime.
|
|
||||||
kube_vip_iface: ~
|
|
||||||
|
|
||||||
kube_vip_cloud_provider_tag_version: main
|
|
||||||
group_name_master: master
|
group_name_master: master
|
||||||
|
|
||||||
|
kube_vip_iface: ~
|
||||||
|
kube_vip_cloud_provider_tag_version: main
|
||||||
|
kube_vip_tag_version: v0.7.2
|
||||||
|
|
||||||
|
metal_lb_controller_tag_version: v0.14.3
|
||||||
|
metal_lb_speaker_tag_version: v0.14.3
|
||||||
|
metal_lb_type: native
|
||||||
|
|
||||||
|
retry_count: 20
|
||||||
|
|
||||||
# yamllint disable rule:line-length
|
# yamllint disable rule:line-length
|
||||||
server_init_args: >-
|
server_init_args: >-
|
||||||
{% if groups[group_name_master | default('master')] | length > 1 %}
|
{% if groups[group_name_master | default('master')] | length > 1 %}
|
||||||
@@ -17,6 +23,6 @@ server_init_args: >-
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
--token {{ k3s_token }}
|
--token {{ k3s_token }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ extra_server_args | default('') }}
|
{{ extra_server_args }}
|
||||||
|
|
||||||
systemd_dir: /etc/systemd/system
|
systemd_dir: /etc/systemd/system
|
||||||
|
|||||||
@@ -3,10 +3,41 @@ argument_specs:
|
|||||||
main:
|
main:
|
||||||
short_description: Setup k3s servers
|
short_description: Setup k3s servers
|
||||||
options:
|
options:
|
||||||
|
apiserver_endpoint:
|
||||||
|
description: Virtual ip-address configured on each master
|
||||||
|
required: true
|
||||||
|
|
||||||
|
cilium_bgp:
|
||||||
|
description:
|
||||||
|
- Enable cilium BGP control plane for LB services and pod cidrs.
|
||||||
|
- Disables the use of MetalLB.
|
||||||
|
type: bool
|
||||||
|
default: ~
|
||||||
|
|
||||||
|
cilium_iface:
|
||||||
|
description: The network interface used for when Cilium is enabled
|
||||||
|
default: ~
|
||||||
|
|
||||||
|
extra_server_args:
|
||||||
|
description: Extra arguments for server nodes
|
||||||
|
default: ""
|
||||||
|
|
||||||
group_name_master:
|
group_name_master:
|
||||||
description: Name of the master group
|
description: Name of the master group
|
||||||
default: master
|
default: master
|
||||||
|
|
||||||
|
kube_vip_iface:
|
||||||
|
description:
|
||||||
|
- Explicitly define an interface that ALL control nodes
|
||||||
|
- should use to propagate the VIP, define it here.
|
||||||
|
- Otherwise, kube-vip will determine the right interface
|
||||||
|
- automatically at runtime.
|
||||||
|
default: ~
|
||||||
|
|
||||||
|
kube_vip_tag_version:
|
||||||
|
description: Image tag for kube-vip
|
||||||
|
default: v0.7.2
|
||||||
|
|
||||||
kube_vip_cloud_provider_tag_version:
|
kube_vip_cloud_provider_tag_version:
|
||||||
description: Tag for kube-vip-cloud-provider manifest when enabled
|
description: Tag for kube-vip-cloud-provider manifest when enabled
|
||||||
default: main
|
default: main
|
||||||
@@ -15,11 +46,40 @@ argument_specs:
|
|||||||
description: IP range for kube-vip load balancer
|
description: IP range for kube-vip load balancer
|
||||||
default: ~
|
default: ~
|
||||||
|
|
||||||
|
metal_lb_controller_tag_version:
|
||||||
|
description: Image tag for MetalLB
|
||||||
|
default: v0.14.3
|
||||||
|
|
||||||
|
metal_lb_speaker_tag_version:
|
||||||
|
description: Image tag for MetalLB
|
||||||
|
default: v0.14.3
|
||||||
|
|
||||||
|
metal_lb_type:
|
||||||
|
choices:
|
||||||
|
- frr
|
||||||
|
- native
|
||||||
|
default: native
|
||||||
|
|
||||||
proxy_env:
|
proxy_env:
|
||||||
type: dict
|
type: dict
|
||||||
description: Internet proxy configurations
|
description: Internet proxy configurations
|
||||||
default: ~
|
default: ~
|
||||||
options:
|
options:
|
||||||
HTTP_PROXY:
|
HTTP_PROXY:
|
||||||
|
required: true
|
||||||
HTTPS_PROXY:
|
HTTPS_PROXY:
|
||||||
|
required: true
|
||||||
NO_PROXY:
|
NO_PROXY:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
retry_count:
|
||||||
|
description: Amount of retries when verifying that nodes joined
|
||||||
|
type: int
|
||||||
|
default: 20
|
||||||
|
|
||||||
|
server_init_args:
|
||||||
|
description: Arguments for server nodes
|
||||||
|
|
||||||
|
systemd_dir:
|
||||||
|
description: Path to systemd services
|
||||||
|
default: /etc/systemd/system
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Create k3s.service.d directory
|
- name: Create k3s.service.d directory
|
||||||
file:
|
file:
|
||||||
path: '{{ systemd_dir }}/k3s.service.d'
|
path: '{{ systemd_dir }}/k3s.service.d'
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Stop k3s-init
|
- name: Stop k3s-init
|
||||||
systemd:
|
systemd:
|
||||||
name: k3s-init
|
name: k3s-init
|
||||||
|
|||||||
Reference in New Issue
Block a user