Skip to content

Commit 875d974

Browse files
committed
refactoring
1 parent 134983c commit 875d974

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

docs/usage/networking/loadbalancer.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# LoadBalancer
22

3-
A `LoadBalancer` resource is an L3(IP-based) load balancer service implementation provided by Ironcore. It provides an externally accessible IP address that sends traffic to the correct port on your cluster nodes. Ironcore LoadBalancer allows targeting multiple `NetworkInterfaces` and distributes traffic between them. This Load Balancer supports dual stack IP addresses (IPv4/IPv6).
3+
A `LoadBalancer` resource is an L3(IP-based) load balancer service implementation provided by Ironcore. It provides an externally accessible IP address that sends traffic to the correct port on your cluster nodes. Ironcore LoadBalancer allows targeting multiple `NetworkInterfaces` and distributes traffic between them. This LoadBalancer supports dual stack IP addresses (IPv4/IPv6).
44

55
## Example Network Resource
6-
An example of how to define a `LoadBalancer` resource in `ironcore`
6+
An example of how to define a `LoadBalancer` resource in `Ironcore`
77
```
88
apiVersion: networking.ironcore.dev/v1alpha1
99
kind: LoadBalancer
@@ -28,26 +28,26 @@ spec:
2828
(`Note`: Refer to <a href="https://github.com/ironcore-dev/ironcore/tree/main/config/samples/e2e/loadbalancer-public">E2E Examples</a> for more detailed examples.)
2929

3030
# Key Fields:
31-
- `type`(`string`): Type is the type of LoadBalancer. Currently two types of Loadbalancer are supported:
31+
- `type`(`string`): The type of `LoadBalancer`. Currently two types of `Loadbalancer` are supported:
3232
- `Public`: LoadBalancer that allocates public IP and routes a stable public IP.
3333
- `Internal`: LoadBalancer that allocates and routes network-internal, stable IPs.
34-
- `ipFamilies`(`list`): ipFamiliesare the IP families the load balancer should have(Supported values are `IPv4` and `IPv6`).
35-
- `ips`(`list`): The IPs are the list of IPs to use. This can only be used when the Type is LoadBalancerTypeInternal.
36-
- `networkRef`(`string`): NetworkRef is the Network this LoadBalancer should belong to.
37-
- `networkInterfaceSelector`(`labelSelector`): NetworkInterfaceSelector defines the NetworkInterfaces for which this LoadBalancer should be applied
38-
- `ports`(`list`): Ports are the list of list of loadbalancer ports should allow
39-
- `protocol`(`string`): Protocol is the protocol the load balancer should allow. Supported protocols are `UDP`, `TCP`, and `SCTP`, if not specified defaults to TCP.
40-
- `port`(`int`): Port is the port to allow.
34+
- `ipFamilies`(`list`): ipFamilies are the IP families the LoadBalancer should have(Supported values are `IPv4` and `IPv6`).
35+
- `ips`(`list`): The ips are the list of IPs to use. This can only be used when the type is LoadBalancerTypeInternal.
36+
- `networkRef`(`string`): networkRef is the Network this LoadBalancer should belong to.
37+
- `networkInterfaceSelector`(`labelSelector`): networkInterfaceSelector defines the NetworkInterfaces for which this LoadBalancer should be applied
38+
- `ports`(`list`): ports are the list of LoadBalancer ports should allow
39+
- `protocol`(`string`): protocol is the protocol the load balancer should allow. Supported protocols are `UDP`, `TCP`, and `SCTP`, if not specified defaults to TCP.
40+
- `port`(`int`): port is the port to allow.
4141
- `endPort`(`int`): endPort marks the end of the port range to allow. If unspecified, only a single port `port` will be allowed.
4242

4343
# Reconciliation Process:
4444

45-
- **NetworkInterfaces selection**: LoadBalancerController continuously watches for LoadBalancer resources and reconciles. LoadBalancer resource dynamically selects multiple target `NetworkInterfaces` via a networkInterfaceSelector LabelSelector from the spec. Once the referenced Network is in `Available` state, the Loadbalancer destination IP list and referencing NetworkInterface is prepared by iterating over selected NetworkIntrefaces status information.
45+
- **NetworkInterfaces selection**: LoadBalancerController continuously watches for `LoadBalancer` resources and reconciles. LoadBalancer resource dynamically selects multiple target `NetworkInterfaces` via a `networkInterfaceSelector` LabelSelector from the spec. Once the referenced Network is in `Available` state, the Loadbalancer destination IP list and referencing `NetworkInterface` is prepared by iterating over selected NetworkIntrefaces status information.
4646

47-
- **Preparing Routing State Object**: Once the destination list is available `LoadBalancerRouting` resource is created. `LoadBalancerRouting` describes NetworkInterfaces load balanced traffic is routed to. This object describes the state of the LoadBalancer and results of the LoadBalancer definition specifically networkInterfaceSelector and networkRef.
48-
Later this information is used at the ironcore API level to describe the explicit targets in a pool traffic is routed to.
47+
- **Preparing Routing State Object**: Once the destination list is available `LoadBalancerRouting` resource is created. `LoadBalancerRouting` describes `NetworkInterfaces` load balanced traffic is routed to. This object describes the state of the LoadBalancer and results of the LoadBalancer definition specifically `networkInterfaceSelector` and `networkRef`.
48+
Later this information is used at the Ironcore API level to describe the explicit targets in a pool traffic is routed to.
4949

50-
Sample LoadBalancerRouting object(`Note`: it is created by LoadBalancerController)
50+
Sample `LoadBalancerRouting` object(`Note`: it is created by LoadBalancerController)
5151
```
5252
apiVersion: networking.ironcore.dev/v1alpha1
5353
kind: LoadBalancerRouting

docs/usage/networking/network.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Network
22

3-
A `Network` resource in `ironcore` refers to a logically isolated network.
3+
A `Network` resource in `Ironcore` refers to a logically isolated network.
44
This further allows you to fully control your networking environment, including resource placement, connectivity, peering and security.
5-
The `NetworkController` reconciler leverages this information to create a Network in ironcore infrastructure.
5+
The `NetworkController` reconciler leverages this information to create a Network in Ironcore infrastructure.
66
`Machine` type is provided with provision to integrate with the Network via `NetworkInterface`.
77

88
## Example Network Resource
9-
An example of how to define a `Network` resource in `ironcore`
9+
An example of how to define a `Network` resource in `Ironcore`
1010
```
1111
apiVersion: networking.ironcore.dev/v1alpha1
1212
kind: Network
@@ -20,20 +20,20 @@ spec:
2020
```
2121

2222
# Key Fields:
23-
- `providerID`(`string`): ProviderID is the provider-internal ID of the network.
24-
- `peerings`(`list`): Peerings are the list of network peerings with this network(Optional).
23+
- `providerID`(`string`): providerID is the provider-internal ID of the network.
24+
- `peerings`(`list`): peerings are the list of network peerings with this network(Optional).
2525
- `incomingPeerings`(`list`): incomingPeerings is a list of PeeringClaimRefs which is nothing but peering claim references of other networks.
2626

2727
# Reconciliation Process:
2828

29-
- **Network creation**: `ironcore-net` which is the network provider for ironcore realizes the `Network` resource and updates
29+
- **Network creation**: `ironcore-net` which is the network provider for Ironcore realizes the `Network` resource and updates
3030
providerID in the spec. Once resource is in available state status is marked to `Available`.
3131

3232
- **Network peering process**: Network peering is a technique used to interleave two isolated networks, allowing members of both networks to communicate with each
3333
other as if they were in the same networking domain, `NetworkPeeringController` facilitates this process.
3434
- Information related to the referenced `Network` to be paired with is retrieved from the `peering` part of the spec.
35-
- Validation is done to see if both Networks have specified a matching peering item (i.e. reference each other via networkRef) to mutually accept the peering.
36-
- The (binding) phase of a spec.peerings item is reflected in a corresponding `status.peerings` item with the same name.
35+
- Validation is done to see if both Networks have specified a matching peering item (i.e. reference each other via `networkRef`) to mutually accept the peering.
36+
- The (binding) phase of a `spec.peerings` item is reflected in a corresponding `status.peerings` item with the same name.
3737
The phase can either be `Pending`, meaning there is no active peering or `Bound` meaning the peering as described in the `spec.peerings` item is in place.
3838

3939
- **Network Release Controller**: `NetworkReleaseController` continuously checks if claiming Networks in other Network's peerings section still exist if not present it will be removed from the `incomingPeerings` list.

0 commit comments

Comments
 (0)