-
Notifications
You must be signed in to change notification settings - Fork 1.8k
OSDOCS-15649: modularizes CNI assembly MicroShift #101707
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 |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // * microshift_networking/microshift-cni.adoc.adoc | ||
|
|
||
| :_mod-docs-content-type: REFERENCE | ||
| [id="microshift-bridge-mappings_{context}"] | ||
| = Bridge mappings | ||
|
|
||
| [role="_abstract"] | ||
| Understand how provider network traffic reaches the physical network through bridge mappings. The following concepts apply: | ||
|
|
||
| * Traffic leaves the provider network and arrives at the `br-int` bridge. | ||
| * A patch port between `br-int` and `br-ex` then allows the traffic to traverse to and from the provider network and the edge network. | ||
| * Kubernetes pods are connected to the `br-int` bridge through a virtual ethernet pair. One end of the virtual ethernet pair is attached to the pod namespace, and the other end is attached to the `br-int` bridge. |
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 |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // * microshift_networking/microshift-cni.adoc.adoc | ||
|
|
||
| :_mod-docs-content-type: CONCEPT | ||
| [id="microshift-default-networking-plugin_{context}"] | ||
| = {microshift-short} default networking plugin | ||
|
|
||
| [role="_abstract"] | ||
| The OVN-Kubernetes Container Network Interface (CNI) plugin is the default networking solution for a {microshift-short} node. OVN-Kubernetes is a virtualized network for pods and services that is based on Open Virtual Network (OVN). | ||
|
|
||
| * Changing the CNI is not supported on {microshift-short}. | ||
| * Default network configuration and connections are applied automatically in {microshift-short} with the `microshift-networking` RPM during installation. | ||
| * A node that uses the OVN-Kubernetes network plugin also runs Open vSwitch (OVS) on the node. | ||
| * OVN-K configures OVS on the node to implement the declared network configuration. | ||
| * Host physical interfaces are not bound by default to the OVN-K gateway bridge, `br-ex`. You can use standard tools on the host for managing the default gateway, such as the Network Manager CLI (`nmcli`). | ||
|
|
||
| Using configuration files or custom scripts, you can configure the following networking settings: | ||
|
|
||
| * You can use subnet CIDR ranges to allocate IP addresses to pods. | ||
| * You can change the maximum transmission unit (MTU) value. | ||
| * You can configure firewall ingress and egress. | ||
| * You can define network policies in the {microshift-short}, including ingress and egress rules. | ||
| * You can use the {microshift-short} Multus plugin to chain other CNI plugins. | ||
| * You can configure or remove the ingress router. |
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 |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // * microshift_networking/microshift-cni.adoc.adoc | ||
|
|
||
| :_mod-docs-content-type: REFERENCE | ||
| [id="microshift-ip-forward_{context}"] | ||
| = IP forward | ||
|
|
||
| [role="_abstract"] | ||
| You must use `ip_forward` to access network connectivity. | ||
|
|
||
| The host network `sysctl net.ipv4.ip_forward` kernel parameter is automatically enabled by the `ovnkube-master` container when started. This is required to forward incoming traffic to the CNI. For example, accessing the NodePort service from outside of a node fails if `ip_forward` is disabled. |
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,26 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // * microshift_networking/microshift-cni.adoc.adoc | ||
|
|
||
| :_mod-docs-content-type: REFERENCE | ||
| [id="microshift-network-features_{context}"] | ||
| = Network features | ||
|
|
||
| [role="_abstract"] | ||
| Understand which networking feature are available and which are not for your {microshift-short} deployments. | ||
|
|
||
| Networking features available with {microshift-short} {product-version} include: | ||
|
|
||
| * Kubernetes network policy | ||
| * Dynamic node IP | ||
| * Custom gateway interface | ||
| * Second gateway interface | ||
| * Node network on specified host interface | ||
| * Blocking external access to NodePort service on specific host interfaces | ||
| Networking features not available with {microshift-short} {product-version}: | ||
|
|
||
| * Egress IP/firewall/QoS: disabled | ||
| * Hybrid networking: not supported | ||
| * IPsec: not supported | ||
| * Hardware offload: not supported |
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,14 @@ | ||
| // Module included in the following assemblies: | ||
| // | ||
| // * microshift_networking/microshift-cni.adoc.adoc | ||
|
|
||
| :_mod-docs-content-type: REFERENCE | ||
| [id="microshift-network-performance_{context}"] | ||
| = Network performance optimizations | ||
|
|
||
| [role="_abstract"] | ||
| By default, three performance optimizations are applied to OVS services to minimize resource consumption: | ||
|
|
||
| * CPU affinity to `ovs-vswitchd.service` and `ovsdb-server.service` | ||
| * `no-mlockall` to `openvswitch.service` | ||
| * Limit handler and `revalidator` threads to `ovs-vswitchd.service` |
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
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.
I like this lead in. Good option for tables.