2 Commits

Author SHA1 Message Date
3f7d59f1af Update ghcr.io/moghtech/komodo-core Docker tag to v1.18.0 2025-06-07 01:13:54 +00:00
cb48587931 add bgp routing
All checks were successful
renovate / renovate (push) Successful in 2m20s
2025-06-06 20:12:08 -05:00
5 changed files with 65 additions and 14 deletions

View File

@@ -0,0 +1,16 @@
apiVersion: cilium.io/v2alpha1
kind: CiliumBGPAdvertisement
metadata:
name: cilium-bgp-advertisements
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: cilium-bgp-advertisements
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/part-of: {{ .Release.Name }}
advertise: bgp
spec:
advertisements:
- advertisementType: "Service"
service:
addresses:
- LoadBalancerIP

View File

@@ -0,0 +1,22 @@
apiVersion: cilium.io/v2alpha1
kind: CiliumBGPClusterConfig
metadata:
name: cilium-bgp
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: cilium-bgp
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/part-of: {{ .Release.Name }}
spec:
nodeSelector:
matchLabels:
node-role.kubernetes.io/bgp: "65020"
bgpInstances:
- name: "65020"
localASN: 65020
peers:
- name: "udm-65000"
peerASN: 65000
peerAddress: 192.168.1.1
peerConfigRef:
name: "cilium-peer"

View File

@@ -0,0 +1,19 @@
apiVersion: cilium.io/v2alpha1
kind: CiliumBGPPeerConfig
metadata:
name: cilium-peer
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: cilium-peer
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/part-of: {{ .Release.Name }}
spec:
gracefulRestart:
enabled: true
restartTimeSeconds: 15
families:
- afi: ipv4
safi: unicast
advertisements:
matchLabels:
advertise: "bgp"

View File

@@ -1,14 +0,0 @@
apiVersion: cilium.io/v2alpha1
kind: CiliumL2AnnouncementPolicy
metadata:
name: default-l2-announcement-policy
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: default-l2-announcement-policy
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/part-of: {{ .Release.Name }}
spec:
interfaces:
- enp6s0
externalIPs: true
loadBalancerIPs: true

View File

@@ -26,7 +26,15 @@ cilium:
- SYS_ADMIN
- SYS_RESOURCE
l2announcements:
enabled: false
bgpControlPlane:
enabled: true
secretsNamespace:
name: kube-system
statusReport:
enabled: true
routerIDAllocation:
mode: "default"
devices: end0 enp6s0
enableK8sEndpointSlice: true
ciliumEndpointSlice: