From 933cc226f78f6b32ff575adcbefd72d51f80388e Mon Sep 17 00:00:00 2001 From: Sergey Monakhov Date: Thu, 18 Feb 2021 08:42:28 +0300 Subject: [PATCH] updated description for worksInKubernetesCluster flag --- cmd/kg/main.go | 2 +- docs/kg.md | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/kg/main.go b/cmd/kg/main.go index c2ad934..abedf86 100644 --- a/cmd/kg/main.go +++ b/cmd/kg/main.go @@ -87,7 +87,7 @@ func Main() error { compatibility := flag.String("compatibility", "", fmt.Sprintf("Should Kilo run in compatibility mode? Possible values: %s", availableCompatibilities)) encapsulate := flag.String("encapsulate", string(encapsulation.Always), fmt.Sprintf("When should Kilo encapsulate packets within a location? Possible values: %s", availableEncapsulations)) granularity := flag.String("mesh-granularity", string(mesh.LogicalGranularity), fmt.Sprintf("The granularity of the network mesh to create. Possible values: %s", availableGranularities)) - worksInKubernetesCluster := flag.Bool("worksInKubernetesCluster", false, "use InClusterConfig metod to configure the Kubernetes API client.") + worksInKubernetesCluster := flag.Bool("worksInKubernetesCluster", true, "Set to true if run kilo in Kubernetes cluster.") kubeconfig := flag.String("kubeconfig", "", "Path to kubeconfig.") hostname := flag.String("hostname", "", "Hostname of the node on which this process is running.") iface := flag.String("interface", mesh.DefaultKiloInterface, "Name of the Kilo interface to use; if it does not exist, it will be created.") diff --git a/docs/kg.md b/docs/kg.md index 6f83f6d..ea344e9 100644 --- a/docs/kg.md +++ b/docs/kg.md @@ -37,6 +37,8 @@ Usage of bin/amd64/kg: Name of the Kilo interface to use; if it does not exist, it will be created. (default "kilo0") -kubeconfig string Path to kubeconfig. + -worksInKubernetesCluster bool + Set to true if run kilo in Kubernetes cluster. (default true) -listen string The address at which to listen for health and metrics. (default ":1107") -local