Skip to content

Commit e3adafd

Browse files
authored
Merge pull request #53075 from sjhala-ccs/cnv-18350
CNV-18350: Adding info about load balancing with MetalLB
2 parents ddbe6b8 + 698f89d commit e3adafd

File tree

3 files changed

+37
-21
lines changed

3 files changed

+37
-21
lines changed

modules/virt-about-services.adoc

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,8 @@ ClusterIP:: Exposes the service on an internal IP address within the cluster. `C
1313
NodePort:: Exposes the service on the same port of each selected node in the cluster. `NodePort` makes a service accessible from outside the cluster.
1414

1515
LoadBalancer:: Creates an external load balancer in the current cloud (if supported) and assigns a fixed, external IP address to the service.
16-
17-
18-
[id="services-dual-stack-cluster_{context}"]
19-
== Dual-stack support
20-
21-
If IPv4 and IPv6 dual-stack networking is enabled for your cluster, you can create a service that uses IPv4, IPv6, or both, by defining the `spec.ipFamilyPolicy` and the `spec.ipFamilies` fields in the `Service` object.
22-
23-
The `spec.ipFamilyPolicy` field can be set to one of the following values:
24-
25-
SingleStack:: The control plane assigns a cluster IP address for the service based on the first configured service cluster IP range.
26-
27-
PreferDualStack:: The control plane assigns both IPv4 and IPv6 cluster IP addresses for the service on clusters that have dual-stack configured.
28-
29-
RequireDualStack:: This option fails for clusters that do not have dual-stack networking enabled. For clusters that have dual-stack configured, the behavior is the same as when the value is set to `PreferDualStack`. The control plane allocates cluster IP addresses from both IPv4 and IPv6 address ranges.
30-
31-
You can define which IP family to use for single-stack or define the order of IP families for dual-stack by setting the `spec.ipFamilies` field to one of the following array values:
32-
33-
* `[IPv4]`
34-
* `[IPv6]`
35-
* `[IPv4, IPv6]`
36-
* `[IPv6, IPv4]`
16+
+
17+
[NOTE]
18+
====
19+
For on-premise clusters, you can configure a load balancing service by using the MetalLB Operator in layer 2 mode. The BGP mode is not supported. The MetalLB Operator is installed in the `metallb-system` namespace.
20+
====
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * virt/virtual_machines/vm_networking/virt-creating-service-vm.adoc
4+
5+
6+
:_content-type: REFERENCE
7+
[id="virt-dual-stack-support-services_{context}"]
8+
== Dual-stack support
9+
10+
If IPv4 and IPv6 dual-stack networking is enabled for your cluster, you can create a service that uses IPv4, IPv6, or both, by defining the `spec.ipFamilyPolicy` and the `spec.ipFamilies` fields in the `Service` object.
11+
12+
The `spec.ipFamilyPolicy` field can be set to one of the following values:
13+
14+
SingleStack:: The control plane assigns a cluster IP address for the service based on the first configured service cluster IP range.
15+
16+
PreferDualStack:: The control plane assigns both IPv4 and IPv6 cluster IP addresses for the service on clusters that have dual-stack configured.
17+
18+
RequireDualStack:: This option fails for clusters that do not have dual-stack networking enabled. For clusters that have dual-stack configured, the behavior is the same as when the value is set to `PreferDualStack`. The control plane allocates cluster IP addresses from both IPv4 and IPv6 address ranges.
19+
20+
You can define which IP family to use for single-stack or define the order of IP families for dual-stack by setting the `spec.ipFamilies` field to one of the following array values:
21+
22+
* `[IPv4]`
23+
* `[IPv6]`
24+
* `[IPv4, IPv6]`
25+
* `[IPv6, IPv4]`

virt/virtual_machines/vm_networking/virt-creating-service-vm.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ You can expose a virtual machine within the cluster or outside the cluster by us
1010

1111
include::modules/virt-about-services.adoc[leveloffset=+1]
1212

13+
[role="_additional-resources"]
14+
.Additional resources
15+
* xref:../../../networking/metallb/metallb-operator-install.adoc#metallb-operator-install[Installing the MetalLB Operator]
16+
* xref:../../../networking/metallb/metallb-configure-services.adoc#metallb-configure-services[Configuring services to use MetalLB]
17+
18+
include::modules/virt-dual-stack-support-services.adoc[leveloffset=+1]
19+
1320
include::modules/virt-creating-a-service-from-a-virtual-machine.adoc[leveloffset=+1]
1421

1522
[role="_additional-resources"]

0 commit comments

Comments
 (0)