Skip to content

Commit

Permalink
Update tasks.go
Browse files Browse the repository at this point in the history
get redundant interface for kubevip when add k8s nodes
  • Loading branch information
qyz87 authored Nov 9, 2023
1 parent 79d1949 commit 5d72464
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/kk/pkg/loadbalancer/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ func (g *GetInterfaceName) Execute(runtime connector.Runtime) error {
}
cmd := fmt.Sprintf("ip route "+
"| grep ' %s ' "+
"| grep 'proto kernel scope link src'"+
"| sed -e \"s/^.*dev.//\" -e \"s/.proto.*//\""+
"| uniq ", host.GetAddress())
interfaceName, err := runtime.GetRunner().SudoCmd(cmd, false)
Expand Down

0 comments on commit 5d72464

Please sign in to comment.