Skip to content

Commit e435559

Browse files
committed
TELCODOCS-2168 MetalLB Annotation used by service need to be revised from metallb.universe.tf to metallb.io
1 parent 9f74055 commit e435559

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

modules/hcp-bm-ingress.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ kind: Service
146146
apiVersion: v1
147147
metadata:
148148
annotations:
149-
metallb.universe.tf/address-pool: ingress-public-ip
149+
metallb.io/address-pool: ingress-public-ip
150150
name: metallb-ingress
151151
namespace: openshift-ingress
152152
spec:

modules/nw-egress-service-ovn.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ metadata:
5353
name: example-service
5454
namespace: example-namespace
5555
annotations:
56-
metallb.universe.tf/address-pool: example-pool <1>
56+
metallb.io/address-pool: example-pool <1>
5757
spec:
5858
selector:
5959
app: example

modules/nw-metallb-addresspool-cr.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The fields for the `IPAddressPool` custom resource are described in the followin
1919
|`metadata.name`
2020
|`string`
2121
|Specifies the name for the address pool.
22-
When you add a service, you can specify this pool name in the `metallb.universe.tf/address-pool` annotation to select an IP address from a specific pool.
22+
When you add a service, you can specify this pool name in the `metallb.io/address-pool` annotation to select an IP address from a specific pool.
2323
The names `doc-example`, `silver`, and `gold` are used throughout the documentation.
2424

2525
|`metadata.namespace`
@@ -40,7 +40,7 @@ Specify each range in CIDR notation or as starting and ending IP addresses separ
4040
|`spec.autoAssign`
4141
|`boolean`
4242
|Optional: Specifies whether MetalLB automatically assigns IP addresses from this pool.
43-
Specify `false` if you want explicitly request an IP address from this pool with the `metallb.universe.tf/address-pool` annotation.
43+
Specify `false` if you want explicitly request an IP address from this pool with the `metallb.io/address-pool` annotation.
4444
The default value is `true`.
4545

4646
|`spec.avoidBuggyIPs`

modules/nw-metallb-configure-svc.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ $ oc describe service <service_name>
5151
Name: <service_name>
5252
Namespace: default
5353
Labels: <none>
54-
Annotations: metallb.universe.tf/address-pool: doc-example <1>
54+
Annotations: metallb.io/address-pool: doc-example <1>
5555
Selector: app=service_name
5656
Type: LoadBalancer <2>
5757
IP Family Policy: SingleStack

networking/metallb/metallb-configure-services.adoc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ kind: Service
2525
metadata:
2626
name: <service_name>
2727
annotations:
28-
metallb.universe.tf/address-pool: <address_pool_name>
28+
metallb.io/address-pool: <address_pool_name>
2929
spec:
3030
selector:
3131
<label_key>: <label_value>
@@ -52,7 +52,7 @@ Events:
5252
[id="request-ip-address-from-pool_{context}"]
5353
== Request an IP address from a specific pool
5454

55-
To assign an IP address from a specific range, but you are not concerned with the specific IP address, then you can use the `metallb.universe.tf/address-pool` annotation to request an IP address from the specified address pool.
55+
To assign an IP address from a specific range, but you are not concerned with the specific IP address, then you can use the `metallb.io/address-pool` annotation to request an IP address from the specified address pool.
5656

5757
.Example service YAML for an IP address from a specific pool
5858
[source,yaml]
@@ -62,7 +62,7 @@ kind: Service
6262
metadata:
6363
name: <service_name>
6464
annotations:
65-
metallb.universe.tf/address-pool: <address_pool_name>
65+
metallb.io/address-pool: <address_pool_name>
6666
spec:
6767
selector:
6868
<label_key>: <label_value>
@@ -104,7 +104,7 @@ spec:
104104
== Share a specific IP address
105105

106106
By default, services do not share IP addresses.
107-
However, if you need to colocate services on a single IP address, you can enable selective IP sharing by adding the `metallb.universe.tf/allow-shared-ip` annotation to the services.
107+
However, if you need to colocate services on a single IP address, you can enable selective IP sharing by adding the `metallb.io/allow-shared-ip` annotation to the services.
108108

109109
[source,yaml]
110110
----
@@ -113,8 +113,8 @@ kind: Service
113113
metadata:
114114
name: service-http
115115
annotations:
116-
metallb.universe.tf/address-pool: doc-example
117-
metallb.universe.tf/allow-shared-ip: "web-server-svc" <1>
116+
metallb.io/address-pool: doc-example
117+
metallb.io/allow-shared-ip: "web-server-svc" <1>
118118
spec:
119119
ports:
120120
- name: http
@@ -131,8 +131,8 @@ kind: Service
131131
metadata:
132132
name: service-https
133133
annotations:
134-
metallb.universe.tf/address-pool: doc-example
135-
metallb.universe.tf/allow-shared-ip: "web-server-svc"
134+
metallb.io/address-pool: doc-example
135+
metallb.io/allow-shared-ip: "web-server-svc"
136136
spec:
137137
ports:
138138
- name: https
@@ -144,7 +144,7 @@ spec:
144144
type: LoadBalancer
145145
loadBalancerIP: 172.31.249.7
146146
----
147-
<1> Specify the same value for the `metallb.universe.tf/allow-shared-ip` annotation. This value is referred to as the _sharing key_.
147+
<1> Specify the same value for the `metallb.io/allow-shared-ip` annotation. This value is referred to as the _sharing key_.
148148
<2> Specify different port numbers for the services.
149149
<3> Specify identical pod selectors if you must specify `externalTrafficPolicy: local` so the services send traffic to the same set of pods. If you use the `cluster` external traffic policy, then the pod selectors do not need to be identical.
150150
<4> Optional: If you specify the three preceding items, MetalLB might colocate the services on the same IP address. To ensure that services share an IP address, specify the IP address to share.

0 commit comments

Comments
 (0)