-
Notifications
You must be signed in to change notification settings - Fork 1.9k
OSDOCS-16860: CQA 2.0 for Networking Overview and Fundamentals #104738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,17 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // * hosted_control_planes/hcp-prepare/hcp-requirements.adoc | ||
| // * /networking/networking_overview/cidr-range-definitions.adoc | ||
|
|
||
| :_mod-docs-content-type: REFERENCE | ||
| [id="hcp-cidr-ranges_{context}"] | ||
| = CIDR ranges for {hcp} | ||
|
|
||
| [role="_abstract"] | ||
| To successfully deploy {hcp} on {product-title}, define the network environment by using specific Classless Inter-Domain Routing (CIDR) subnet ranges. Establishing these nonoverlapping ranges ensures reliable communication between cluster components and prevents internal IP address conflicts. | ||
|
|
||
| For deploying {hcp} on {product-title}, use the following required Classless Inter-Domain Routing (CIDR) subnet ranges: | ||
|
|
||
| * `v4InternalSubnet`: 100.65.0.0/16 (OVN-Kubernetes) | ||
| * `clusterNetwork`: 10.132.0.0/14 (pod network) | ||
| * `serviceNetwork`: 172.31.0.0/16 | ||
|
|
||
|
|
||
| For more information about {product-title} CIDR range definitions, see "CIDR range definitions". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // * /networking/networking_overview/cidr-range-definitions.adoc | ||
|
|
||
| :_mod-docs-content-type: CONCEPT | ||
| [id="host-prefix-description_{context}"] | ||
| = Host prefix | ||
|
|
||
| [role="_abstract"] | ||
| To allocate a dedicated pool of IP addresses for pods on each node in {product-title}, specify the subnet prefix length in the hostPrefix parameter. Defining an appropriate prefix ensures that every machine has sufficient unique addresses to support its scheduled workloads without exhausting the cluster's network resources. | ||
|
|
||
| ifdef::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[] | ||
| For example, if you set the `hostPrefix` parameter to `/23`, each machine is assigned a `/23` subnet from the pod CIDR address range. The default is `/23`, allowing 512 cluster nodes and 512 pods per node. Note that where 512 cluster nodes and 512 pods are beyond the maximum supported. | ||
| endif::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[] | ||
|
|
||
| ifdef::openshift-enterprise,openshift-rosa,openshift-rosa-hcp,openshift-dedicated[] | ||
| For example, if the host prefix is set to `/23`, each machine is assigned a `/23` subnet from the pod CIDR address range. The default is `/23`, allowing 510 cluster nodes and 510 pod IP addresses per node. | ||
|
|
||
| Consider another example where you set the `clusterNetwork.cidr` parameter to `10.128.0.0/16`, you define the complete address space for the cluster. This assigns a pool of 65,536 IP addresses to your cluster. If you then set the `hostPrefix` parameter to `/23`, you define a subnet slice to each node in the cluster, where the `/23` slice becomes a subnet of the `/16` subnet network. This assigns 512 IP addresses to each node, where 2 IP addresses get reserved for networking and broadcasting purposes. The following example calculation uses these IP address figures to determine the maximum number of nodes that you can create for your cluster: | ||
|
|
||
| [source,text] | ||
| ---- | ||
| 65536 / 512 = 128 | ||
| ---- | ||
|
|
||
| You can use the link:https://access.redhat.com/labs/ocpnc/[Red Hat OpenShift Network Calculator] to calculate the maximum number of nodes for your cluster. | ||
| endif::openshift-enterprise,openshift-rosa,openshift-rosa-hcp,openshift-dedicated[] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // * /networking/networking_overview/cidr-range-definitions.adoc | ||
|
|
||
| :_mod-docs-content-type: CONCEPT | ||
| [id="machine-cidr-description_{context}"] | ||
| = Machine CIDR | ||
|
|
||
| [role="_abstract"] | ||
| To establish the network scope for cluster nodes in {product-title}, specify an IP address range in the Machine Classless Inter-Domain Routing (CIDR) parameter. Defining this range ensures that all machines within the environment have valid, routable addresses for internal cluster communication. | ||
|
|
||
| [NOTE] | ||
| ==== | ||
| You cannot change Machine CIDR ranges after you create your cluster. | ||
| ==== | ||
|
|
||
| ifdef::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[] | ||
| This range must encompass all CIDR address ranges for your virtual private cloud (VPC) subnets. Subnets must be contiguous. A minimum range of 128 IP addresses, using the subnet prefix `/25`, is supported for single availability zone deployments. A minimum address range of 256 addresses, using the subnet prefix `/24`, is supported for deployments that use multiple availability zones. | ||
| endif::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[] | ||
|
|
||
| The default is `10.0.0.0/16`. This range must not conflict with any connected networks. | ||
|
|
||
| ifdef::openshift-rosa-hcp[] | ||
| [NOTE] | ||
| ==== | ||
| When using {product-title}, the static IP address `172.20.0.1` is reserved for the internal Kubernetes API address. The machine, pod, and service CIDR ranges must not conflict with this IP address. | ||
| ==== | ||
| endif::openshift-rosa-hcp[] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,18 +6,17 @@ | |
| [id="nw-understanding-networking-core-layers-and-components_{context}"] | ||
| = Core network layers and components | ||
|
|
||
| {openshift-networking} is built on two fundamental layers: the `pod network` and the `service network`. The pod network is where your applications live. The service network makes your applications reliably accessible. | ||
| [role="_abstract"] | ||
| To build and expose resilient applications in {product-title}, configure the pod and service network layers. Defining these foundational layers ensures that your application workloads have a secure environment to run and remain reliably accessible to other services. | ||
|
|
||
| [id="the-pod-network_{context}"] | ||
| == The pod network | ||
| The pod network:: | ||
|
|
||
| The pod network is a flat network space where every pod in the cluster receives its own unique IP address. This network is managed by the Container Network Interface (CNI) plugin. The CNI plugin is responsible for wiring each pod into the cluster network. | ||
| + | ||
| This design allows pods to communicate directly with each other using their IP addresses, regardless of which node they are running on. However, these pod IP addresses are ephemeral. This means the IP addresses are destroyed when the pod is destroyed and a new IP address is assigned when a new pod is created. Because of this, you should never rely on pod IP addresses directly for long-lived communication. | ||
|
|
||
| This design allows pods to communicate directly with each other using their IP addresses, regardless of which node they are running on. However, these pod IPs are ephemeral. This means the IPs are destroyed when the pod is destroyed and a new IP address is assigned when a new pod is created. Because of this, you should never rely on pod IP addresses directly for long-lived communication. | ||
|
|
||
| [id="the-service-network_{context}"] | ||
| == The service network | ||
| The service network:: | ||
|
|
||
| A service is a networking object that provides a single, stable virtual IP address, called a ClusterIP, and a DNS name for a logical group of pods. | ||
|
|
||
| When a request is sent to a service's ClusterIP, {product-title} automatically load-balances the traffic to one of the healthy pods backing that service. It uses Kubernetes labels and selectors to keep track of which pods belong to which service. This abstraction makes your applications resilient because individual pods can be created or destroyed without affecting the applications trying to reach them. | ||
| + | ||
| When a request is sent to a the ClusterIP of the service, {product-title} automatically load balances the traffic to one of the healthy pods backing that service. {product-title} uses Kubernetes labels and selectors to keep track of which pods belong to which service. This abstraction makes your applications resilient because individual pods can be created or destroyed without affecting the applications trying to reach them. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here: if you want this content to align with the paragraph above it, you'll want to add a + between them |
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,16 +6,15 @@ | |
| [id="nw-understanding-networking-managing-traffic-within_{context}"] | ||
| = Managing traffic within the cluster | ||
|
|
||
| Your applications need to communicate with each other inside the cluster. {product-title} provides two primary mechanisms for internal traffic: direct pod-to-pod communication for simple exchanges and robust service discovery for reliable connections. | ||
| [role="_abstract"] | ||
| To ensure reliable communication between applications in {product-title}, configure pod-to-pod traffic and service discovery mechanisms. Implementing these mechanisms allows cluster workloads to exchange data efficiently through either direct connections or robust discovery rules. | ||
|
|
||
| [id="pod-to-pod-communication_{context}"] | ||
| == Pod-to-pod communication | ||
| Pod-to-pod communication:: | ||
|
|
||
| Pods communicate directly using the unique IP addresses assigned by the pod network. A pod on one node can send traffic directly to a pod on another node without any network address translation (NAT). This direct communication model is efficient for services that need to exchange data quickly. Applications can simply target another pod’s IP address to establish a connection. | ||
| Pods communicate directly by using the unique IP addresses assigned by the pod network. A pod on one node can send traffic directly to a pod on another node without any network address translation (NAT). This direct communication model is efficient for services that need to exchange data quickly. Applications can simply target the IP address of another pod to establish a connection. | ||
|
|
||
| [id="service-discovery-with-dns_{context}"] | ||
| == Service discovery with DNS | ||
| Service discovery with DNS:: | ||
|
|
||
| Pods need a reliable way to find each other because pod IP addresses are ephemeral. {product-title} uses `CoreDNS`, a built-in DNS server, to provide this service discovery. | ||
|
|
||
| Every service you create automatically receives a stable DNS name. A pod can use this DNS name to connect to the service. The DNS system resolves the name to the service's stable `ClusterIP` address. This process ensures reliable communication even when individual pod IPs change. | ||
| + | ||
| Every service you create automatically receives a stable DNS name. A pod can use this DNS name to connect to the service. The DNS system resolves the name to the service's stable `ClusterIP` address. This process ensures reliable communication even when individual pod IPs change. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here |
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // * /networking/networking_overview/cidr-range-definitions.adoc | ||
|
|
||
| :_mod-docs-content-type: CONCEPT | ||
| [id="pod-cidr-description_{context}"] | ||
| = Pod CIDR | ||
|
|
||
| [role="_abstract"] | ||
| To allocate internal network addresses for cluster workloads in {product-title}, specify an IP address range in the pod Classless Inter-Domain Routing (CIDR) field. Defining this range ensures that pods can communicate with each other reliably without overlapping with the node or service networks. | ||
|
|
||
| ifdef::openshift-enterprise[] | ||
dfitzmau marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| The pod CIDR is the same as the `clusterNetwork` CIDR and the cluster CIDR. | ||
| endif::openshift-enterprise[] | ||
| ifdef::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[] | ||
| Red{nbsp}Hat recommends, but this task is not mandatory, that the address block is the same between clusters. This does not create IP address conflicts. | ||
| endif::openshift-rosa,openshift-rosa-hcp,openshift-dedicated[] | ||
| The range must be large enough to accommodate your workload. The address block must not overlap with any external service accessed from within the cluster. The default is `10.128.0.0/14`. | ||
| ifdef::openshift-enterprise[] | ||
| You can expand the range after cluster installation. | ||
| endif::openshift-enterprise[] | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you want this content to align with the paragraph above it, you'll want to add a + between them