diff --git a/cmd/kg/main.go b/cmd/kg/main.go index 8f603d1..e7d827c 100644 --- a/cmd/kg/main.go +++ b/cmd/kg/main.go @@ -80,6 +80,7 @@ var ( func Main() error { backend := flag.String("backend", k8s.Backend, fmt.Sprintf("The backend for the mesh. Possible values: %s", availableBackends)) cleanUpIface := flag.Bool("clean-up-interface", false, "Should Kilo delete its interface when it shuts down?") + createIface := flag.Bool("create-interface", true, "Should kilo create an interface on startup?") cni := flag.Bool("cni", true, "Should Kilo manage the node's CNI configuration?") cniPath := flag.String("cni-path", mesh.DefaultCNIPath, "Path to CNI config.") compatibility := flag.String("compatibility", "", fmt.Sprintf("Should Kilo run in compatibility mode? Possible values: %s", availableCompatibilities)) @@ -177,7 +178,7 @@ func Main() error { return fmt.Errorf("backend %v unknown; possible values are: %s", *backend, availableBackends) } - m, err := mesh.New(b, enc, gr, *hostname, uint32(port), s, *local, *cni, *cniPath, *iface, *cleanUpIface, log.With(logger, "component", "kilo")) + m, err := mesh.New(b, enc, gr, *hostname, uint32(port), s, *local, *cni, *cniPath, *iface, *cleanUpIface, *createIface, log.With(logger, "component", "kilo")) if err != nil { return fmt.Errorf("failed to create Kilo mesh: %v", err) } diff --git a/docs/kg.md b/docs/kg.md index ebded00..6f83f6d 100644 --- a/docs/kg.md +++ b/docs/kg.md @@ -27,6 +27,8 @@ Usage of bin/amd64/kg: Path to CNI config. (default "/etc/cni/net.d/10-kilo.conflist") -compatibility string Should Kilo run in compatibility mode? Possible values: flannel + -create-interface + Should kilo create an interface on startup? (default true) -encapsulate string When should Kilo encapsulate packets within a location? Possible values: never, crosssubnet, always (default "always") -hostname string diff --git a/docs/topology.md b/docs/topology.md index d789e9e..e5eafd0 100644 --- a/docs/topology.md +++ b/docs/topology.md @@ -14,7 +14,7 @@ Kilo will try to infer the location of the node using the [topology.kubernetes.i Additionally, Kilo supports using a custom topology label by setting the command line flag `--topology-label=