Skip to content

Commit e99dbad

Browse files
committed
fix(cilium): turn on l2-announcements (ARP) again to troubleshoot connection problems
I'm experiencing issues reaching services directly exposed to the internet At first only some carriers didn't load the pages, but it appears to be getting worse somehow Signed-off-by: Vegard Hagen <[email protected]>
1 parent 722f9d5 commit e99dbad

File tree

6 files changed

+32
-0
lines changed

6 files changed

+32
-0
lines changed

k8s/infra/network/cilium/kustomization.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ resources:
99
- bgp-cluster-config.yaml
1010
- dashboards/cilium.yaml
1111
- dashboards/cilium-operator.yaml
12+
- l2-announce.yaml
13+
- l2-ip-pool.yaml
1214

1315
helmCharts:
1416
- name: cilium
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: cilium.io/v2alpha1
2+
kind: CiliumL2AnnouncementPolicy
3+
metadata:
4+
name: default-l2-announcement-policy
5+
namespace: kube-system
6+
spec:
7+
externalIPs: true
8+
loadBalancerIPs: true
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: cilium.io/v2
2+
kind: CiliumLoadBalancerIPPool
3+
metadata:
4+
name: first-pool
5+
spec:
6+
blocks:
7+
- start: 192.168.1.220
8+
stop: 192.168.1.255
9+
serviceSelector:
10+
matchLabels:
11+
l2.cilium.io/ip-pool: default

k8s/infra/network/cilium/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ resources:
5959
#debug:
6060
# enabled: true
6161

62+
k8sClientRateLimit:
63+
qps: 20
64+
burst: 100
65+
66+
l2announcements:
67+
enabled: true
68+
6269
# https://docs.cilium.io/en/latest/network/bgp-control-plane/bgp-control-plane-v2/
6370
bgpControlPlane:
6471
enabled: true

k8s/infra/network/dns/unbound/svc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ metadata:
1010
lb-ipam.cilium.io/ip-pool: default-bgp
1111
spec:
1212
type: LoadBalancer
13+
externalTrafficPolicy: Local
1314
# https://kubernetes.io/docs/concepts/services-networking/cluster-ip-allocation/
1415
clusterIP: 10.96.0.11
1516
ports:

k8s/infra/network/gateway/gw-external.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@ spec:
99
labels:
1010
bgp.cilium.io/advertise-service: default
1111
lb-ipam.cilium.io/ip-pool: default-bgp
12+
l2.cilium.io/ip-pool: default
1213
addresses:
1314
- type: IPAddress
1415
value: 172.20.10.110
16+
- type: IPAddress
17+
value: 192.168.1.222
1518
listeners:
1619
- protocol: HTTPS
1720
port: 443

0 commit comments

Comments
 (0)