mirror of
https://github.com/batonogov/learn-devops.git
synced 2026-02-19 19:00:43 +00:00
Add L2 Load Balancer (#16)
Co-authored-by: Fedor Batonogov <f.batonogov@yandex.ru>
This commit is contained in:
committed by
GitHub
parent
55deb994c6
commit
52a3d0eb3b
8
kubeadm/cilium/ippool.yaml
Normal file
8
kubeadm/cilium/ippool.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
apiVersion: "cilium.io/v2alpha1"
|
||||
kind: CiliumLoadBalancerIPPool
|
||||
metadata:
|
||||
name: "pool"
|
||||
spec:
|
||||
blocks:
|
||||
- cidr: "10.0.75.199/32"
|
||||
16
kubeadm/cilium/l2-announcement-policy.yaml
Normal file
16
kubeadm/cilium/l2-announcement-policy.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
apiVersion: "cilium.io/v2alpha1"
|
||||
kind: CiliumL2AnnouncementPolicy
|
||||
metadata:
|
||||
name: policy1
|
||||
spec:
|
||||
serviceSelector:
|
||||
matchLabels:
|
||||
color: blue
|
||||
nodeSelector:
|
||||
matchExpressions:
|
||||
- key: node-role.kubernetes.io/control-plane
|
||||
operator: DoesNotExist
|
||||
interfaces:
|
||||
- ^eth[0-9]+
|
||||
externalIPs: true
|
||||
loadBalancerIPs: true
|
||||
6
kubeadm/cilium/values.yaml
Normal file
6
kubeadm/cilium/values.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
kubeProxyReplacement: true
|
||||
k8sServiceHost: 10.0.75.80
|
||||
k8sServicePort: 8888
|
||||
l2announcements:
|
||||
enabled: true
|
||||
devices: eth+
|
||||
Reference in New Issue
Block a user