mirror of
https://github.com/techno-tim/k3s-ansible.git
synced 2025-12-29 12:12:38 +01:00
Compare commits
4 Commits
2d0596209e
...
635f0b21b3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
635f0b21b3 | ||
|
|
4a64ad42df | ||
|
|
d0537736de | ||
|
|
2149827800 |
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@@ -118,7 +118,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload log files
|
- name: Upload log files
|
||||||
if: always() # do this even if a step before has failed
|
if: always() # do this even if a step before has failed
|
||||||
uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 # 4.3.5
|
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # 4.3.6
|
||||||
with:
|
with:
|
||||||
name: logs
|
name: logs
|
||||||
path: |
|
path: |
|
||||||
|
|||||||
@@ -34,6 +34,18 @@ cilium_bgp_peer_asn: "64512"
|
|||||||
cilium_bgp_peer_address: "192.168.30.1"
|
cilium_bgp_peer_address: "192.168.30.1"
|
||||||
cilium_bgp_lb_cidr: "192.168.31.0/24" # cidr for cilium loadbalancer ipam
|
cilium_bgp_lb_cidr: "192.168.31.0/24" # cidr for cilium loadbalancer ipam
|
||||||
|
|
||||||
|
# enable kube-vip ARP broadcasts
|
||||||
|
kube_vip_arp: true
|
||||||
|
|
||||||
|
# enable kube-vip BGP peering
|
||||||
|
kube_vip_bgp: false
|
||||||
|
|
||||||
|
# bgp parameters for kube-vip
|
||||||
|
kube_vip_bgp_routerid: "127.0.0.1" # Defines the router ID for the BGP server
|
||||||
|
kube_vip_bgp_as: "64513" # Defines the AS for the BGP server
|
||||||
|
kube_vip_bgp_peeraddress: "192.168.30.1" # Defines the address for the BGP peer
|
||||||
|
kube_vip_bgp_peeras: "64512" # Defines the AS for the BGP peer
|
||||||
|
|
||||||
# apiserver_endpoint is virtual ip-address which will be configured on each master
|
# apiserver_endpoint is virtual ip-address which will be configured on each master
|
||||||
apiserver_endpoint: "192.168.30.222"
|
apiserver_endpoint: "192.168.30.222"
|
||||||
|
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ python-dateutil==2.8.2
|
|||||||
# via kubernetes
|
# via kubernetes
|
||||||
python-vagrant==1.0.0
|
python-vagrant==1.0.0
|
||||||
# via molecule-plugins
|
# via molecule-plugins
|
||||||
pyyaml==6.0.1
|
pyyaml==6.0.2
|
||||||
# via
|
# via
|
||||||
# -r requirements.in
|
# -r requirements.in
|
||||||
# ansible-compat
|
# ansible-compat
|
||||||
|
|||||||
@@ -8,6 +8,12 @@ kube_vip_iface: ~
|
|||||||
kube_vip_cloud_provider_tag_version: main
|
kube_vip_cloud_provider_tag_version: main
|
||||||
kube_vip_tag_version: v0.7.2
|
kube_vip_tag_version: v0.7.2
|
||||||
|
|
||||||
|
kube_vip_bgp: false
|
||||||
|
kube_vip_bgp_routerid: "127.0.0.1"
|
||||||
|
kube_vip_bgp_as: "64513"
|
||||||
|
kube_vip_bgp_peeraddress: "192.168.30.1"
|
||||||
|
kube_vip_bgp_peeras: "64512"
|
||||||
|
|
||||||
metal_lb_controller_tag_version: v0.14.3
|
metal_lb_controller_tag_version: v0.14.3
|
||||||
metal_lb_speaker_tag_version: v0.14.3
|
metal_lb_speaker_tag_version: v0.14.3
|
||||||
metal_lb_type: native
|
metal_lb_type: native
|
||||||
|
|||||||
@@ -26,11 +26,42 @@ argument_specs:
|
|||||||
description: Name of the master group
|
description: Name of the master group
|
||||||
default: master
|
default: master
|
||||||
|
|
||||||
|
k3s_create_kubectl_symlink:
|
||||||
|
description: Create the kubectl -> k3s symlink
|
||||||
|
default: false
|
||||||
|
type: bool
|
||||||
|
|
||||||
|
k3s_create_crictl_symlink:
|
||||||
|
description: Create the crictl -> k3s symlink
|
||||||
|
default: false
|
||||||
|
type: bool
|
||||||
|
|
||||||
kube_vip_arp:
|
kube_vip_arp:
|
||||||
description: Enables ARP broadcasts from Leader
|
description: Enables kube-vip ARP broadcasts
|
||||||
default: true
|
default: true
|
||||||
type: bool
|
type: bool
|
||||||
|
|
||||||
|
kube_vip_bgp:
|
||||||
|
description: Enables kube-vip BGP peering
|
||||||
|
default: false
|
||||||
|
type: bool
|
||||||
|
|
||||||
|
kube_vip_bgp_routerid:
|
||||||
|
description: Defines the router ID for the kube-vip BGP server
|
||||||
|
default: "127.0.0.1"
|
||||||
|
|
||||||
|
kube_vip_bgp_as:
|
||||||
|
description: Defines the AS for the kube-vip BGP server
|
||||||
|
default: "64513"
|
||||||
|
|
||||||
|
kube_vip_bgp_peeraddress:
|
||||||
|
description: Defines the address for the kube-vip BGP peer
|
||||||
|
default: "192.168.30.1"
|
||||||
|
|
||||||
|
kube_vip_bgp_peeras:
|
||||||
|
description: Defines the AS for the kube-vip BGP peer
|
||||||
|
default: "64512"
|
||||||
|
|
||||||
kube_vip_iface:
|
kube_vip_iface:
|
||||||
description:
|
description:
|
||||||
- Explicitly define an interface that ALL control nodes
|
- Explicitly define an interface that ALL control nodes
|
||||||
|
|||||||
@@ -27,7 +27,9 @@ spec:
|
|||||||
- manager
|
- manager
|
||||||
env:
|
env:
|
||||||
- name: vip_arp
|
- name: vip_arp
|
||||||
value: "{{ 'true' if kube_vip_arp | bool else 'false' }}"
|
value: "{{ 'true' if kube_vip_arp | default(true) | bool else 'false' }}"
|
||||||
|
- name: bgp_enable
|
||||||
|
value: "{{ 'true' if kube_vip_bgp | default(false) | bool else 'false' }}"
|
||||||
- name: port
|
- name: port
|
||||||
value: "6443"
|
value: "6443"
|
||||||
{% if kube_vip_iface %}
|
{% if kube_vip_iface %}
|
||||||
@@ -54,6 +56,24 @@ spec:
|
|||||||
value: "2"
|
value: "2"
|
||||||
- name: address
|
- name: address
|
||||||
value: {{ apiserver_endpoint }}
|
value: {{ apiserver_endpoint }}
|
||||||
|
{% if kube_vip_bgp | default(false) | bool %}
|
||||||
|
{% if kube_vip_bgp_routerid is defined %}
|
||||||
|
- name: bgp_routerid
|
||||||
|
value: "{{ kube_vip_bgp_routerid }}"
|
||||||
|
{% endif %}
|
||||||
|
{% if kube_vip_bgp_as is defined %}
|
||||||
|
- name: bgp_as
|
||||||
|
value: "{{ kube_vip_bgp_as }}"
|
||||||
|
{% endif %}
|
||||||
|
{% if kube_vip_bgp_peeraddress is defined %}
|
||||||
|
- name: bgp_peeraddress
|
||||||
|
value: "{{ kube_vip_bgp_peeraddress }}"
|
||||||
|
{% endif %}
|
||||||
|
{% if kube_vip_bgp_peeras is defined %}
|
||||||
|
- name: bgp_peeras
|
||||||
|
value: "{{ kube_vip_bgp_peeras }}"
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
image: ghcr.io/kube-vip/kube-vip:{{ kube_vip_tag_version }}
|
image: ghcr.io/kube-vip/kube-vip:{{ kube_vip_tag_version }}
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
name: kube-vip
|
name: kube-vip
|
||||||
|
|||||||
Reference in New Issue
Block a user