-
-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(talos): Add cilium bgpControlPlane support and CNI security sett…
…ings (#1296) * fix: Use cilium cni install values for Talos * fix: Use cilium cni install values for Talos * feat: Add cilium bgpControlPlane support for Talos * feat: Add cilium bgpControlPlane support for Talos * feat: Add LB cidr var for Talos BGPCP * feat: Add jinja template for cilium-bgp.yaml * Add cilium bgpControlPlane support for Talos * feat: Add cilium bgpControlPlane example config for Talos * fix: Remove invalid fields from bgp peering policy * fix: Add serviceSelector to bgp peering policy * Update bootstrap/templates/partials/cilium-values-full.partial.yaml.j2 * Update bootstrap/templates/partials/cilium-values-init.partial.yaml.j2 * Update bootstrap/templates/partials/cilium-values-full.partial.yaml.j2 * Update bootstrap/templates/partials/cilium-values-init.partial.yaml.j2 --------- Co-authored-by: Devin Buhl <onedr0p@users.noreply.github.com>
- Loading branch information
1 parent
81ffb39
commit 2549e36
Showing
6 changed files
with
111 additions
and
5 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
bootstrap/templates/kubernetes/apps/kube-system/cilium/app/cilium-bgp.yaml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
# https://docs.cilium.io/en/latest/network/bgp-control-plane/ | ||
apiVersion: cilium.io/v2alpha1 | ||
kind: CiliumBGPPeeringPolicy | ||
metadata: | ||
name: policy | ||
spec: | ||
nodeSelector: | ||
matchLabels: | ||
kubernetes.io/os: linux | ||
virtualRouters: | ||
- localASN: {{ distribution.talos.bgp.local_asn }} | ||
neighbors: | ||
{% if distribution.talos.bgp.peers %} | ||
{% for item in distribution.talos.bgp.peers %} | ||
- peerAddress: "{{ item }}/32" | ||
peerASN: {{ distribution.talos.bgp.peer_asn }} | ||
{% endfor %} | ||
{% else %} | ||
- peerAddress: "{{ nodes.host_network | nthhost(1) }}/32" | ||
peerASN: {{ distribution.talos.bgp.peer_asn }} | ||
{% endif %} | ||
serviceSelector: | ||
matchExpressions: | ||
- {key: somekey, operator: NotIn, values: ['never-used-value']} | ||
--- | ||
apiVersion: cilium.io/v2alpha1 | ||
kind: CiliumLoadBalancerIPPool | ||
metadata: | ||
name: pool | ||
spec: | ||
cidrs: | ||
- cidr: "${LOADBALANCER_CIDR}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters