如何解决Kubernetes Federation v2中的标志重新定义错误?

时间:2019-01-28 14:49:18

标签: go kubernetes

我正在遵循kubefed2 user guide来部署多集群联合。当我运行命令./bin/kubefed2 join cluster1 --cluster-context cluster1 --host-cluster-context cluster1 --add-to-registry --v=2将集群加入联盟时,出现了Flag refined错误。

错误消息:

./bin/kubefed2 join cluster2 --cluster-context cluster2 \
>     --host-cluster-context cluster1 --add-to-registry --v=2
./bin/kubefed2 flag redefined: log_dir
panic: ./bin/kubefed2 flag redefined: log_dir

goroutine 1 [running]:
flag.(*FlagSet).Var(0xa896000, 0x90a5d40, 0xa965508, 0x8f236d5, 0x7, 0x8f5110b, 0x2f)
    /usr/local/go/src/flag/flag.go:805 +0x43b
flag.(*FlagSet).StringVar(0xa896000, 0xa965508, 0x8f236d5, 0x7, 0x0, 0x0, 0x8f5110b, 0x2f)
    /usr/local/go/src/flag/flag.go:708 +0x6a
flag.(*FlagSet).String(0xa896000, 0x8f236d5, 0x7, 0x0, 0x0, 0x8f5110b, 0x2f, 0xa965500)
    /usr/local/go/src/flag/flag.go:721 +0x67
flag.String(0x8f236d5, 0x7, 0x0, 0x0, 0x8f5110b, 0x2f, 0x0)
    /usr/local/go/src/flag/flag.go:728 +0x53

Golang版本:go version go1.11.5 linux/386

有人可以告诉我如何解决这个问题吗?

0 个答案:

没有答案