gitops/cilium: configure l2 ip address anouncement for external

loadbalancer ips
This commit is contained in:
Jan Novak
2026-01-01 20:21:37 +01:00
parent 6447e39163
commit 01fe056584
7 changed files with 59 additions and 17 deletions

View File

@@ -0,0 +1,10 @@
apiVersion: cilium.io/v2alpha1
kind: CiliumL2AnnouncementPolicy
metadata:
name: default
spec:
interfaces:
- ^en.* # Match your interfaces
loadBalancerIPs: true
serviceSelector:
matchLabels: {}

View File

@@ -0,0 +1,35 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: cilium
namespace: kube-system
spec:
chart:
spec:
chart: cilium
reconcileStrategy: ChartVersion
sourceRef:
kind: HelmRepository
name: cilium
namespace: flux-system
version: 1.18.5
interval: 5m0s
values:
cluster:
name: "home-kube"
hubble:
relay:
enabled: true
ui:
enabled: true
ipam:
mode: cluster-pool
operator:
clusterPoolIPv4MaskSize: 24
clusterPoolIPv4PodCIDRList: "10.96.0.0/16"
l2announcements:
enabled: true
kubeProxyReplacement: true
k8sServiceHost: 192.168.0.31 # or LB IP
k8sServicePort: 6443

View File

@@ -0,0 +1,9 @@
apiVersion: "cilium.io/v2alpha1"
kind: CiliumLoadBalancerIPPool
metadata:
name: cilium-lb-ipam
namespace: kube-system
spec:
blocks:
- start: "192.168.0.35"
stop: "192.168.0.39"

View File

@@ -1,16 +0,0 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: cilium
namespace: kube-system
spec:
chart:
spec:
chart: cilium
reconcileStrategy: ChartVersion
sourceRef:
kind: HelmRepository
name: cilium
version: 1.16.5
interval: 5m0s

View File

@@ -3,7 +3,7 @@ apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease kind: HelmRelease
metadata: metadata:
name: podinfo name: podinfo
namespace: default namespace: podinfo
spec: spec:
chart: chart:
spec: spec:

View File

@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: podinfo