Skip to content
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

pkg/wireguard: allow configuring MTU #215

Merged
merged 1 commit into from
Jul 16, 2021
Merged

pkg/wireguard: allow configuring MTU #215

merged 1 commit into from
Jul 16, 2021

Conversation

squat
Copy link
Owner

@squat squat commented Jul 16, 2021

This commit makes it possible to configure the MTU for the WireGuard
interface created by Kilo.

Signed-off-by: Lucas Servén Marín lserven@gmail.com

Fixes: #208

This commit makes it possible to configure the MTU for the WireGuard
interface created by Kilo.

Signed-off-by: Lucas Servén Marín <lserven@gmail.com>
@@ -94,6 +95,7 @@ func Main() error {
local := flag.Bool("local", true, "Should Kilo manage routes within a location?")
logLevel := flag.String("log-level", logLevelInfo, fmt.Sprintf("Log level to use. Possible values: %s", availableLogLevels))
master := flag.String("master", "", "The address of the Kubernetes API server (overrides any value in kubeconfig).")
mtu := flag.Uint("mtu", wireguard.DefaultMTU, "The MTU of the WireGuard interface created by Kilo.")
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e2e tests were failing because the Kilo container was crashlooping. This happened because I was passing "master" as the first argument, which caused flag to panic during flag-parsing.

@squat squat merged commit 2c74a56 into main Jul 16, 2021
@squat squat deleted the set_mtu branch July 16, 2021 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to change MTU after installation?
2 participants