Skip to content

Commit

Permalink
fix(cilium): revert kubevirt changes, prepare cluster for BGP
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgon committed Apr 30, 2024
1 parent 85b6c04 commit 7a265a8
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
35 changes: 35 additions & 0 deletions kubernetes/apps/kube-system/cilium/templates/bgp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# {{ if not .Values.skipCiliumExternals }}
# disable it for now, keep for future
# ---
# apiVersion: cilium.io/v2alpha1
# kind: CiliumLoadBalancerIPPool
# metadata:
# name: pool
# spec:
# cidrs:
# - cidr: "<path:kubernetes/data/internal/base#CIDR_LOADBALANCER>"
# ---
# apiVersion: cilium.io/v2alpha1
# kind: CiliumBGPPeeringPolicy
# metadata:
# name: bgp-peering-policy-worker
# spec:
# virtualRouters:
# - localASN: <path:kubernetes/data/internal/base#ASN_CLUSTER>
# serviceSelector:
# matchExpressions:
# - key: "io.cilium/bgp-announce"
# operator: NotIn
# values:
# - ignore
# neighbors:
# - peerAddress: "<path:kubernetes/data/internal/base#IP_GATEWAY>/32"
# peerASN: <path:kubernetes/data/internal/base#ASN_GATEWAY>
# eBGPMultihopTTL: 10
# connectRetryTimeSeconds: 120
# holdTimeSeconds: 90
# keepAliveTimeSeconds: 30
# gracefulRestart:
# enabled: true
# restartTimeSeconds: 120
# {{ end }}
8 changes: 6 additions & 2 deletions kubernetes/apps/kube-system/cilium/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ cilium:
bbr: true
bpf:
masquerade: false
bgp:
enabled: false
bgpControlPlane:
enabled: true
cgroup:
autoMount:
enabled: false
Expand Down Expand Up @@ -117,3 +117,7 @@ cilium:
socketLB:
hostNamespaceOnly: true
tunnelProtocol: geneve # using vxlan here will break VPN pod-gateway

# when implementing full BGP, remove this encapsulation and try
# autoDirectNodeRoutes: true
# routingMode: native

0 comments on commit 7a265a8

Please sign in to comment.