gitops/cilium: configure l2 ip address anouncement for external
loadbalancer ips
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
apiVersion: cilium.io/v2alpha1
|
||||
kind: CiliumL2AnnouncementPolicy
|
||||
metadata:
|
||||
name: default
|
||||
spec:
|
||||
interfaces:
|
||||
- ^en.* # Match your interfaces
|
||||
loadBalancerIPs: true
|
||||
serviceSelector:
|
||||
matchLabels: {}
|
||||
35
gitops/home-kubernetes/cilium/helmrelelase_cilium.yaml
Normal file
35
gitops/home-kubernetes/cilium/helmrelelase_cilium.yaml
Normal 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
|
||||
9
gitops/home-kubernetes/cilium/loadbalancer-ip-pools.yaml
Normal file
9
gitops/home-kubernetes/cilium/loadbalancer-ip-pools.yaml
Normal 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"
|
||||
@@ -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
|
||||
@@ -3,7 +3,7 @@ apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: podinfo
|
||||
namespace: default
|
||||
namespace: podinfo
|
||||
spec:
|
||||
chart:
|
||||
spec:
|
||||
|
||||
4
gitops/home-kubernetes/podinfo/namespace_podinfo.yaml
Normal file
4
gitops/home-kubernetes/podinfo/namespace_podinfo.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: podinfo
|
||||
Reference in New Issue
Block a user