Compare commits

..

6 Commits

Author SHA1 Message Date
Leo
3112e2b486 Merge ed82eb71dd into 422621c69c 2024-11-24 08:56:25 +00:00
Leo
ed82eb71dd feat(k3s): Add documentation for MetalLB interfaces value 2024-11-24 09:56:01 +01:00
Techno Tim
34c0aee31a Merge branch 'master' into with-metal-lb-interface 2024-11-23 09:57:39 -06:00
Techno Tim
e210fc21b6 Merge branch 'master' into with-metal-lb-interface 2024-10-26 12:16:28 -07:00
Techno Tim
8e26ba8809 Merge branch 'master' into with-metal-lb-interface 2024-10-25 21:21:33 -07:00
Leo
754a379d42 feat(k3s): Add option to set MetalLB interfaces 2024-10-03 21:53:19 +02:00
9 changed files with 23 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
<!-- It's a good idea to check this post first for general troubleshooting https://github.com/timothystewart6/k3s-ansible/discussions/19 -->
<!-- It's a good idea to check this post first for general troubleshooting https://github.com/techno-tim/k3s-ansible/discussions/19 -->
<!--- Provide a general summary of the issue in the Title above -->
@@ -82,4 +82,4 @@ node
## Possible Solution
<!--- Not obligatory, but suggest a fix/reason for the bug, -->
- [ ] I've checked the [General Troubleshooting Guide](https://github.com/timothystewart6/k3s-ansible/discussions/20)
- [ ] I've checked the [General Troubleshooting Guide](https://github.com/techno-tim/k3s-ansible/discussions/20)

View File

@@ -11,7 +11,7 @@ jobs:
steps:
- name: Check out the codebase
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # 5.0.0
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
with:
ref: ${{ github.event.pull_request.head.sha }}

View File

@@ -11,7 +11,7 @@ jobs:
steps:
- name: Check out the codebase
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # 5.0.0
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
with:
ref: ${{ github.event.pull_request.head.sha }}
@@ -45,7 +45,7 @@ jobs:
runs-on: self-hosted
steps:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # 5.0.0
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
- name: Ensure SHA pinned actions
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@38608ef4fb69adae7f1eac6eeb88e67b7d083bfd # 3.0.16
with:

View File

@@ -21,7 +21,7 @@ jobs:
steps:
- name: Check out the codebase
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # 5.0.0
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
with:
ref: ${{ github.event.pull_request.head.sha }}

View File

@@ -191,7 +191,7 @@ See the commands [here](https://technotim.live/posts/k3s-etcd-ansible/#testing-y
### Troubleshooting
Be sure to see [this post](https://github.com/timothystewart6/k3s-ansible/discussions/20) on how to troubleshoot common problems
Be sure to see [this post](https://github.com/techno-tim/k3s-ansible/discussions/20) on how to troubleshoot common problems
### Testing the playbook using molecule
@@ -218,7 +218,7 @@ collections:
- name: community.general
- name: ansible.posix
- name: kubernetes.core
- name: https://github.com/timothystewart6/k3s-ansible.git
- name: https://github.com/techno-tim/k3s-ansible.git
type: git
version: master
```

View File

@@ -56,16 +56,16 @@ dependencies:
kubernetes.core: '*'
# The URL of the originating SCM repository
repository: https://github.com/timothystewart6/k3s-ansible
repository: https://github.com/techno-tim/k3s-ansible
# The URL to any online docs
documentation: https://github.com/timothystewart6/k3s-ansible
documentation: https://github.com/techno-tim/k3s-ansible
# The URL to the homepage of the collection/project
homepage: https://www.youtube.com/watch?v=CbkEWcUZ7zM
# The URL to the collection issue tracker
issues: https://github.com/timothystewart6/k3s-ansible/issues
issues: https://github.com/techno-tim/k3s-ansible/issues
# A list of file glob-like patterns used to filter any files or directories that should not be included in the build
# artifact. A pattern is matched from the relative path of the file or directory of the collection directory. This

View File

@@ -30,3 +30,4 @@ metal_lb_mode: layer2
metal_lb_available_timeout: 240s
metal_lb_controller_tag_version: v0.14.3
metal_lb_ip_range: 192.168.30.80-192.168.30.90
metal_lb_interfaces:

View File

@@ -129,6 +129,10 @@ argument_specs:
description: MetalLB ip range for load balancer
default: 192.168.30.80-192.168.30.90
metal_lb_interfaces:
description: MetalLB interfaces to announce on. By default, announces on all interfaces.
default:
metal_lb_controller_tag_version:
description: Image tag for MetalLB
default: v0.14.3

View File

@@ -21,6 +21,13 @@ kind: L2Advertisement
metadata:
name: default
namespace: metallb-system
{% if metal_lb_interfaces %}
spec:
interfaces:
{% for interface in metal_lb_interfaces %}
- {{ interface }}
{% endfor %}
{% endif %}
{% endif %}
{% if metal_lb_mode == "bgp" %}
---