From b4919afab068b045ee2432d511403ce48c611d84 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Thu, 12 Feb 2026 14:24:25 -0600 Subject: [PATCH] feat: disable l2 announcement --- .../cilium-l2-announcement-policy.yaml | 17 ---- .../cilium-load-balancer-ip-pool.yaml | 2 - .../cl01tl/helm/cilium/templates/gateway.yaml | 91 +++++++++---------- clusters/cl01tl/helm/cilium/values.yaml | 3 +- 4 files changed, 46 insertions(+), 67 deletions(-) delete mode 100644 clusters/cl01tl/helm/cilium/templates/cilium-l2-announcement-policy.yaml diff --git a/clusters/cl01tl/helm/cilium/templates/cilium-l2-announcement-policy.yaml b/clusters/cl01tl/helm/cilium/templates/cilium-l2-announcement-policy.yaml deleted file mode 100644 index ddca45ede..000000000 --- a/clusters/cl01tl/helm/cilium/templates/cilium-l2-announcement-policy.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: "cilium.io/v2alpha1" -kind: CiliumL2AnnouncementPolicy -metadata: - name: node-gateway-l2-policy - namespace: {{ .Release.Namespace }} - labels: - app.kubernetes.io/name: node-gateway-l2-policy - app.kubernetes.io/instance: {{ .Release.Name }} - app.kubernetes.io/part-of: {{ .Release.Name }} -spec: - nodeSelector: - matchLabels: - kubernetes.io/hostname: talos-ix7-xku - interfaces: - - enp6s0 - externalIPs: true - loadBalancerIPs: true diff --git a/clusters/cl01tl/helm/cilium/templates/cilium-load-balancer-ip-pool.yaml b/clusters/cl01tl/helm/cilium/templates/cilium-load-balancer-ip-pool.yaml index cc2b7d45c..634949a6b 100644 --- a/clusters/cl01tl/helm/cilium/templates/cilium-load-balancer-ip-pool.yaml +++ b/clusters/cl01tl/helm/cilium/templates/cilium-load-balancer-ip-pool.yaml @@ -11,8 +11,6 @@ spec: blocks: - start: "10.232.1.21" stop: "10.232.1.23" - - start: "10.232.1.100" - stop: "10.232.1.200" --- apiVersion: cilium.io/v2 diff --git a/clusters/cl01tl/helm/cilium/templates/gateway.yaml b/clusters/cl01tl/helm/cilium/templates/gateway.yaml index 7bcb3f209..82c28512a 100644 --- a/clusters/cl01tl/helm/cilium/templates/gateway.yaml +++ b/clusters/cl01tl/helm/cilium/templates/gateway.yaml @@ -1,46 +1,45 @@ -apiVersion: gateway.networking.k8s.io/v1 -kind: Gateway -metadata: - name: cilium-tls-gateway - namespace: {{ .Release.Namespace }} - labels: - app.kubernetes.io/name: cilium-tls-gateway - app.kubernetes.io/instance: {{ .Release.Name }} - app.kubernetes.io/part-of: {{ .Release.Name }} - annotations: - cert-manager.io/cluster-issuer: letsencrypt-issuer - io.cilium/lb-ipam-ips: "10.232.1.100" -spec: - addresses: - - type: IPAddress - value: 10.232.1.100 - gatewayClassName: cilium - listeners: - - allowedRoutes: - namespaces: - from: All - hostname: '*.alexlebens.net' - name: https - port: 443 - protocol: HTTPS - tls: - certificateRefs: - - group: '' - kind: Secret - name: https-gateway-cert - namespace: kube-system - mode: Terminate - - allowedRoutes: - namespaces: - from: All - hostname: 'alexlebens.net' - name: https-domain - port: 443 - protocol: HTTPS - tls: - certificateRefs: - - group: '' - kind: Secret - name: https-gateway-cert - namespace: kube-system - mode: Terminate +# apiVersion: gateway.networking.k8s.io/v1 +# kind: Gateway +# metadata: +# name: cilium-tls-gateway +# namespace: {{ .Release.Namespace }} +# labels: +# app.kubernetes.io/name: cilium-tls-gateway +# app.kubernetes.io/instance: {{ .Release.Name }} +# app.kubernetes.io/part-of: {{ .Release.Name }} +# annotations: +# cert-manager.io/cluster-issuer: letsencrypt-issuer +# spec: +# addresses: +# - type: IPAddress +# value: 10.232.1.23 +# gatewayClassName: cilium +# listeners: +# - allowedRoutes: +# namespaces: +# from: All +# hostname: '*.alexlebens.net' +# name: https +# port: 443 +# protocol: HTTPS +# tls: +# certificateRefs: +# - group: '' +# kind: Secret +# name: https-gateway-cert +# namespace: kube-system +# mode: Terminate +# - allowedRoutes: +# namespaces: +# from: All +# hostname: 'alexlebens.net' +# name: https-domain +# port: 443 +# protocol: HTTPS +# tls: +# certificateRefs: +# - group: '' +# kind: Secret +# name: https-gateway-cert +# namespace: kube-system +# mode: Terminate diff --git a/clusters/cl01tl/helm/cilium/values.yaml b/clusters/cl01tl/helm/cilium/values.yaml index 790bc5bb8..5096da845 100644 --- a/clusters/cl01tl/helm/cilium/values.yaml +++ b/clusters/cl01tl/helm/cilium/values.yaml @@ -26,7 +26,7 @@ cilium: - SYS_ADMIN - SYS_RESOURCE l2announcements: - enabled: true + enabled: false bgpControlPlane: enabled: false secretsNamespace: @@ -38,7 +38,6 @@ cilium: bpf: hostLegacyRouting: true devices: end0 enp6s0 - enableK8sEndpointSlice: true ciliumEndpointSlice: enabled: true ingressController: