Add MTU Configuration as a Variable for Proxmox Kubernetes SDN Integration #106
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.
Overview
This Pull Request introduces a new feature to the Proxmox Kubernetes project, allowing users to configure the MTU (Maximum Transmission Unit) value dynamically. This enhancement is crucial for environments utilizing the Software Defined Networking (SDN) feature in Proxmox, as SDN setups often require customized MTU settings to ensure proper network performance and compatibility.
Context and Motivation
Previously, users had to either manually modify the MTU setting on nodes or exclude it from automated configuration (e.g., via
ignores
). While functional, this approach was not aligned with the project's goal of providing an automated and seamless Kubernetes setup on Proxmox. By integrating MTU configuration directly into the project's variables, users can now handle this requirement more efficiently, reducing manual intervention and potential misconfigurations.Changes Introduced
New Variable for MTU Configuration
internatl_net_mtu
) to the configuration file to allow users to specify their desired MTU value.null
and therefor ignore the whole mtu setting in the moduleAutomation of MTU Configuration
internal_net_mtu
setting is applied automatically during node provisioning and configuration, eliminating the need for manual MTU adjustments.vm_net_mtu
is used, which also defaults tonull
Documentation Updates
internal_net_mtu
variable, its purpose, and how to use it effectively.Key Benefits
Implementation Details
internal_net_mtu
variable is integrated into the relevant moduleTesting
Backward Compatibility
This change maintains full compatibility with existing setups. If the mtu is not specified, the project defaults to using standard MTU settings of the hypervisor/bridge.
Related Issues
Notes for Reviewers
Please review the changes for any edge cases in non-SDN environments and verify the documentation's clarity regarding the
mtu
variable usage.Related Links
[add-variable-for-mtu](https://github.com/Mawiguk0/proxmox-kubernetes/tree/add-variable-for-mtu)