Skip to content

Commit f5b2eb6

Browse files
authored
Merge pull request #49197 from cgoncalves/metallb-fix-examples
Fix MetalLB YAML examples
2 parents 04e2740 + 3199e7a commit f5b2eb6

5 files changed

+27
-27
lines changed

modules/nw-metallb-advertise-address-pool-with-bgp-advanced.adoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ metadata:
5656
namespace: metallb-system
5757
spec:
5858
ipAddressPools:
59-
- doc-example-bgp-adv
60-
- communities:
59+
- doc-example-bgp-adv
60+
communities:
6161
- 65535:65282
62-
aggregationLength: 32
63-
localPref: 100
62+
aggregationLength: 32
63+
localPref: 100
6464
----
6565

6666
.. Apply the configuration:
@@ -81,11 +81,11 @@ metadata:
8181
namespace: metallb-system
8282
spec:
8383
ipAddressPools:
84-
- doc-example-bgp-adv
85-
- communities:
84+
- doc-example-bgp-adv
85+
communities:
8686
- 8000:800
87-
aggregationLength: 30
88-
aggregationLengthV6: 124
87+
aggregationLength: 30
88+
aggregationLengthV6: 124
8989
----
9090

9191
.. Apply the configuration:

modules/nw-metallb-configure-bgppeer.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ As a cluster administrator, you can add a BGP peer custom resource to exchange r
2222
+
2323
[source,yaml]
2424
----
25-
apiVersion: metallb.io/v1beta1
25+
apiVersion: metallb.io/v1beta2
2626
kind: BGPPeer
2727
metadata:
2828
namespace: metallb-system

modules/nw-metallb-configure-community-bgp-advertisement.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ spec:
6464
+
6565
[source,yaml]
6666
----
67-
apiVersion: metallb.io/v1beta1
67+
apiVersion: metallb.io/v1beta2
6868
kind: BGPPeer
6969
metadata:
7070
namespace: metallb-system
@@ -110,4 +110,4 @@ spec:
110110
[source,terminal]
111111
----
112112
$ oc apply -f bgpadvertisement.yaml
113-
----
113+
----

modules/nw-metallb-configure-specificpools-to-bgppeer.adoc

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ $ oc apply -f ipaddresspool2.yaml
7373
+
7474
[source,yaml]
7575
----
76-
apiVersion: metallb.io/v1beta1
76+
apiVersion: metallb.io/v1beta2
7777
kind: BGPPeer
7878
metadata:
7979
namespace: metallb-system
@@ -98,7 +98,7 @@ $ oc apply -f bgppeer1.yaml
9898
+
9999
[source,yaml]
100100
----
101-
apiVersion: metallb.io/v1beta1
101+
apiVersion: metallb.io/v1beta2
102102
kind: BGPPeer
103103
metadata:
104104
namespace: metallb-system
@@ -130,13 +130,13 @@ metadata:
130130
namespace: metallb-system
131131
spec:
132132
ipAddressPools:
133-
- pool1
133+
- pool1
134134
peers:
135135
- peer1
136-
- communities:
137-
- 65535:65282
138-
aggregationLength: 32
139-
aggregationLengthV6: 128
136+
communities:
137+
- 65535:65282
138+
aggregationLength: 32
139+
aggregationLengthV6: 128
140140
localPref: 100
141141
----
142142

@@ -160,13 +160,13 @@ metadata:
160160
namespace: metallb-system
161161
spec:
162162
ipAddressPools:
163-
- pool2
163+
- pool2
164164
peers:
165165
- peer2
166-
- communities:
167-
- 65535:65282
168-
aggregationLength: 32
169-
aggregationLengthV6: 128
166+
communities:
167+
- 65535:65282
168+
aggregationLength: 32
169+
aggregationLengthV6: 128
170170
localPref: 100
171171
----
172172

modules/nw-metallb-example-bgppeer.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ You can specify the node selectors field to control which nodes can connect to a
1313

1414
[source,yaml]
1515
----
16-
apiVersion: metallb.io/v1beta1
16+
apiVersion: metallb.io/v1beta2
1717
kind: BGPPeer
1818
metadata:
1919
name: doc-example-nodesel
@@ -37,7 +37,7 @@ BFD compliments BGP by providing more rapid detection of communication failures
3737

3838
[source,yaml]
3939
----
40-
apiVersion: metallb.io/v1beta1
40+
apiVersion: metallb.io/v1beta2
4141
kind: BGPPeer
4242
metadata:
4343
name: doc-example-peer-bfd
@@ -57,7 +57,7 @@ To support dual-stack networking, add one BGP peer custom resource for IPv4 and
5757

5858
[source,yaml]
5959
----
60-
apiVersion: metallb.io/v1beta1
60+
apiVersion: metallb.io/v1beta2
6161
kind: BGPPeer
6262
metadata:
6363
name: doc-example-dual-stack-ipv4
@@ -67,7 +67,7 @@ spec:
6767
peerASN: 64500
6868
myASN: 64500
6969
---
70-
apiVersion: metallb.io/v1beta1
70+
apiVersion: metallb.io/v1beta2
7171
kind: BGPPeer
7272
metadata:
7373
name: doc-example-dual-stack-ipv6

0 commit comments

Comments
 (0)