diff --git a/README.md b/README.md index e97a9ce1..4d70379e 100644 --- a/README.md +++ b/README.md @@ -98,4 +98,5 @@ spec: externalKubeAPIEnabled: true ``` -With `externalKubeAPIEnabled=true` and `connection.type=proxy` tower will create the serivce with `LoadBlancer` type, content in annotation with key `tower.kubesphere.io/external-lb-service-annoations` will be applied to the service anntations as k-v, so that your can control how the `ccm` process the service. \ No newline at end of file +With `externalKubeAPIEnabled=true` and `connection.type=proxy` tower will create the serivce with `LoadBlancer` type, content in annotation with key `tower.kubesphere.io/external-lb-service-annoations` will be applied to the service anntations as k-v, so that your can control how the `ccm` process the service. +## diff --git a/cmd/proxy/main.go b/cmd/proxy/main.go index 3f126693..102d3e74 100644 --- a/cmd/proxy/main.go +++ b/cmd/proxy/main.go @@ -1,3 +1,4 @@ + package main import ( diff --git a/pkg/agent/agent.go b/pkg/agent/agent.go index 1c47d3b9..f38acc0f 100644 --- a/pkg/agent/agent.go +++ b/pkg/agent/agent.go @@ -79,7 +79,7 @@ func NewAgent(options *Options) (*Agent, error) { conf.CAData = ca conf.BearerToken = token - conf.KubernetesSvcHost = fmt.Sprintf("%s:%s", host, port) + conf.KubernetesSvcHost = net.JoinHostPort(host,port) } agent := &Agent{