diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml index 61a67cb..6ded0d0 100644 --- a/.github/workflows/cache.yml +++ b/.github/workflows/cache.yml @@ -16,7 +16,7 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} - name: Set up Python ${{ env.PYTHON_VERSION }} - uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # 5.1.0 + uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # 5.1.1 with: python-version: ${{ env.PYTHON_VERSION }} cache: 'pip' # caching pip dependencies diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 79eb583..8239e9c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -16,7 +16,7 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} - name: Set up Python ${{ env.PYTHON_VERSION }} - uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # 5.1.0 + uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # 5.1.1 with: python-version: ${{ env.PYTHON_VERSION }} cache: 'pip' # caching pip dependencies diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3e74a20..4c8bf5a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -59,7 +59,7 @@ jobs: EOF - name: Set up Python ${{ env.PYTHON_VERSION }} - uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # 5.1.0 + uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # 5.1.1 with: python-version: ${{ env.PYTHON_VERSION }} cache: 'pip' # caching pip dependencies diff --git a/requirements.txt b/requirements.txt index 079e561..4788632 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,7 +6,7 @@ # ansible-compat==4.1.11 # via molecule -ansible-core==2.16.6 +ansible-core==2.17.2 # via # -r requirements.in # ansible-compat @@ -96,7 +96,7 @@ platformdirs==4.1.0 # via virtualenv pluggy==1.3.0 # via molecule -pre-commit==3.7.1 +pre-commit==3.8.0 # via -r requirements.in pre-commit-hooks==4.6.0 # via -r requirements.in diff --git a/roles/k3s_server/defaults/main.yml b/roles/k3s_server/defaults/main.yml index 6ca801a..ea12938 100644 --- a/roles/k3s_server/defaults/main.yml +++ b/roles/k3s_server/defaults/main.yml @@ -3,6 +3,7 @@ extra_server_args: "" group_name_master: master +kube_vip_arp: true kube_vip_iface: ~ kube_vip_cloud_provider_tag_version: main kube_vip_tag_version: v0.7.2 diff --git a/roles/k3s_server/meta/main.yml b/roles/k3s_server/meta/main.yml index 777abbd..0cd9889 100644 --- a/roles/k3s_server/meta/main.yml +++ b/roles/k3s_server/meta/main.yml @@ -26,6 +26,11 @@ argument_specs: description: Name of the master group default: master + kube_vip_arp: + description: Enables ARP broadcasts from Leader + default: true + type: bool + kube_vip_iface: description: - Explicitly define an interface that ALL control nodes diff --git a/roles/k3s_server/templates/vip.yaml.j2 b/roles/k3s_server/templates/vip.yaml.j2 index 1092557..47d4e8f 100644 --- a/roles/k3s_server/templates/vip.yaml.j2 +++ b/roles/k3s_server/templates/vip.yaml.j2 @@ -27,7 +27,7 @@ spec: - manager env: - name: vip_arp - value: "true" + value: "{{ 'true' if kube_vip_arp | bool else 'false' }}" - name: port value: "6443" {% if kube_vip_iface %}