Skip to content

Commit

Permalink
Fix the default mtu parameter's describe
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyanker committed Jan 2, 2021
1 parent e7888f1 commit 076ab28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ You can use `--default-cidr` flags below to config default Pod CIDR or create a
--log_file_max_size uint Defines the maximum size a log file can grow to. Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800)
--logtostderr log to standard error instead of files (default true)
--mirror-iface string The mirror nic name that will be created by kube-ovn, default: mirror0 (default "mirror0")
--mtu int The MTU used by pod iface, default: iface MTU - 55
--mtu int The MTU used by pod iface, default: iface MTU - 100
--network-type string The ovn network type, default: geneve (default "geneve")
--node-local-dns-ip string If use nodelocaldns the local dns server ip should be set here, default empty.
--ovs-socket string The socket to local ovs-server
Expand Down
2 changes: 1 addition & 1 deletion pkg/daemon/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ type Configuration struct {
func ParseFlags() (*Configuration, error) {
var (
argIface = pflag.String("iface", "", "The iface used to inter-host pod communication can be a nic name or a group of regex separated by comma, default: the default route iface")
argMTU = pflag.Int("mtu", 0, "The MTU used by pod iface, default: iface MTU - 55")
argMTU = pflag.Int("mtu", 0, "The MTU used by pod iface, default: iface MTU - 100")
argEnableMirror = pflag.Bool("enable-mirror", false, "Enable traffic mirror, default: false")
argMirrorNic = pflag.String("mirror-iface", "mirror0", "The mirror nic name that will be created by kube-ovn, default: mirror0")
argBindSocket = pflag.String("bind-socket", "/var/run/cniserver.sock", "The socket daemon bind to.")
Expand Down

0 comments on commit 076ab28

Please sign in to comment.