-
Notifications
You must be signed in to change notification settings - Fork 2
/
metallb-config-bgp-with-selector.yaml
73 lines (73 loc) · 1.75 KB
/
metallb-config-bgp-with-selector.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
apiVersion: v1
kind: ConfigMap
metadata:
namespace: metallb-system
name: config
data:
config: |
peers:
- peer-address: 6.5.3.1
peer-asn: 65310
my-asn: 65201
router-id: 6.4.5.20
source-address: 6.4.5.20
node-selectors:
- match-expressions:
- key: kubernetes.io/hostname
operator: In
values: [wk-a1]
- peer-address: 6.5.3.2
peer-asn: 65320
my-asn: 65201
router-id: 6.4.5.21
source-address: 6.4.5.21
node-selectors:
- match-expressions:
- key: kubernetes.io/hostname
operator: In
values: [wk-a2]
- peer-address: 6.5.3.1
peer-asn: 65310
my-asn: 65201
router-id: 6.4.5.22
source-address: 6.4.5.22
node-selectors:
- match-expressions:
- key: kubernetes.io/hostname
operator: In
values: [wk-a3]
- peer-address: 6.5.3.2
peer-asn: 65320
my-asn: 65201
router-id: 6.4.5.30
source-address: 6.4.5.30
node-selectors:
- match-expressions:
- key: kubernetes.io/hostname
operator: In
values: [ctl-a1]
- peer-address: 6.5.3.1
peer-asn: 65310
my-asn: 65201
router-id: 6.4.5.31
source-address: 6.4.5.31
node-selectors:
- match-expressions:
- key: kubernetes.io/hostname
operator: In
values: [ctl-a2]
- peer-address: 6.5.3.2
peer-asn: 65320
my-asn: 65201
router-id: 6.4.5.32
source-address: 6.4.5.32
node-selectors:
- match-expressions:
- key: kubernetes.io/hostname
operator: In
values: [ctl-a3]
address-pools:
- name: default
protocol: bgp
addresses:
- 10.254.254.240/28