Skip to content

pkg/wireguard: allow configuring MTU#215

Merged
squat merged 1 commit intomainfrom
set_mtu
Jul 16, 2021
Merged

pkg/wireguard: allow configuring MTU#215
squat merged 1 commit intomainfrom
set_mtu

Conversation

@squat
Copy link
Copy Markdown
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>
Comment thread cmd/kg/main.go
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
Copy Markdown
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