From a35694bd3a4f54895f34f49f0fa2e87769015a7e Mon Sep 17 00:00:00 2001 From: JJGadgets Date: Sat, 25 Feb 2023 04:24:17 +0800 Subject: [PATCH] feat(cilium): add CiliumBGPPeeringPolicy after Helm installed BGPCP CRDs Signed-off-by: JJGadgets --- .../1-core/01-networking/cilium/install.yaml | 62 +++++++++---------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/kube/3-deploy/1-core/01-networking/cilium/install.yaml b/kube/3-deploy/1-core/01-networking/cilium/install.yaml index 784b26a8..6c5478ce 100644 --- a/kube/3-deploy/1-core/01-networking/cilium/install.yaml +++ b/kube/3-deploy/1-core/01-networking/cilium/install.yaml @@ -1,36 +1,36 @@ -# --- -# apiVersion: cilium.io/v2alpha1 -# kind: CiliumBGPPeeringPolicy -# metadata: -# name: home-opnsense-main -# spec: -# nodeSelector: -# matchLabels: -# kubernetes.io/os: "linux" -# virtualRouters: -# - localASN: "${ASN_CLUSTER}" -# exportPodCIDR: true -# neighbors: -# - peerAddress: "${IP_ROUTER_VLAN_K8S}" -# peerASN: "${ASN_ROUTER}" --- -apiVersion: v1 -kind: ConfigMap +apiVersion: cilium.io/v2alpha1 +kind: CiliumBGPPeeringPolicy metadata: - name: bgp-config - namespace: kube-system -data: - config.yaml: | - peers: - - peer-address: "${IP_ROUTER_VLAN_K8S}" - peer-asn: "${ASN_ROUTER}" - my-asn: "${ASN_CLUSTER}" - address-pools: - - name: main-addr-pool - protocol: bgp - avoid-buggy-ips: true - addresses: - - "${IP_LB_CIDR}" + name: home-opnsense-main +spec: + nodeSelector: + matchLabels: + kubernetes.io/os: "linux" + virtualRouters: + - localASN: ${ASN_CLUSTER} + exportPodCIDR: true + neighbors: + - peerAddress: "${IP_ROUTER_VLAN_K8S}" + peerASN: ${ASN_ROUTER} +# --- +# apiVersion: v1 +# kind: ConfigMap +# metadata: +# name: bgp-config +# namespace: kube-system +# data: +# config.yaml: | +# peers: +# - peer-address: "${IP_ROUTER_VLAN_K8S}" +# peer-asn: ${ASN_ROUTER} +# my-asn: ${ASN_CLUSTER} +# address-pools: +# - name: main-addr-pool +# protocol: bgp +# avoid-buggy-ips: true +# addresses: +# - "${IP_LB_CIDR}" --- apiVersion: helm.toolkit.fluxcd.io/v2beta1 kind: HelmRelease