Compare commits

..

1 Commits

Author SHA1 Message Date
Christian Berendt
f959042489 k3s_server_post: add cilium_bgp_neighbors parameter
With the cilium_bgp_neighbors parameter it is possible to define
multiple BGP peer ASN & address pairs for Cilium.

Sample:

```
cilium_bgp_neighbors:
  - peer_address: 192.168.128.10
    peer_asn: 64512
  - peer_address: 192.168.128.11
    peer_asn: 64512
  - peer_address: 192.168.128.12
    peer_asn: 64512
```

It is possible to merge further lists with cilium_bgp_neighbors__*
parameters.

Sample:

```
cilium_bgp_neighbors__extra:
  - peer_address: 192.168.128.10
    peer_asn: 64512
cilium_bgp_neighbors:
  - peer_address: 192.168.128.11
    peer_asn: 64512
  - peer_address: 192.168.128.12
    peer_asn: 64512
```

This will result in the following list of BGP peer ASN & address pairs:

```
- peer_address: 192.168.128.10
  peer_asn: 64512
- peer_address: 192.168.128.11
  peer_asn: 64512
- peer_address: 192.168.128.12
  peer_asn: 64512
```

Signed-off-by: Christian Berendt <berendt@osism.tech>
2024-09-25 21:13:05 +02:00
5 changed files with 5 additions and 6 deletions

View File

@@ -11,7 +11,7 @@ jobs:
steps: steps:
- name: Check out the codebase - name: Check out the codebase
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # 4.2.0 uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 4.1.7
with: with:
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}

View File

@@ -11,7 +11,7 @@ jobs:
steps: steps:
- name: Check out the codebase - name: Check out the codebase
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # 4.2.0 uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 4.1.7
with: with:
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}
@@ -45,7 +45,7 @@ jobs:
runs-on: self-hosted runs-on: self-hosted
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # 4.2.0 uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 4.1.7
- name: Ensure SHA pinned actions - name: Ensure SHA pinned actions
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@0901cf7b71c7ea6261ec69a3dc2bd3f9264f893e # 3.0.12 uses: zgosalvez/github-actions-ensure-sha-pinned-actions@0901cf7b71c7ea6261ec69a3dc2bd3f9264f893e # 3.0.12
with: with:

View File

@@ -21,7 +21,7 @@ jobs:
steps: steps:
- name: Check out the codebase - name: Check out the codebase
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # 4.2.0 uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 4.1.7
with: with:
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}

View File

@@ -16,7 +16,6 @@ cilium_exportPodCIDR: true # noqa var-naming
cilium_bgp_my_asn: 64513 cilium_bgp_my_asn: 64513
cilium_bgp_peer_asn: 64512 cilium_bgp_peer_asn: 64512
cilium_bgp_neighbors: [] cilium_bgp_neighbors: []
cilium_bgp_neighbors_groups: ['k3s_all']
cilium_bgp_lb_cidr: 192.168.31.0/24 cilium_bgp_lb_cidr: 192.168.31.0/24
cilium_hubble: true cilium_hubble: true
cilium_mode: native cilium_mode: native

View File

@@ -72,7 +72,7 @@ argument_specs:
cilium_bgp_neighbors_groups: cilium_bgp_neighbors_groups:
description: Inventory group in which to search for additional cilium_bgp_neighbors parameters to merge. description: Inventory group in which to search for additional cilium_bgp_neighbors parameters to merge.
default: ['k3s_all'] default: k3s_all
cilium_bgp_lb_cidr: cilium_bgp_lb_cidr:
description: BGP load balancer IP range description: BGP load balancer IP range