diff --git a/pkg/logagent/registry/logagent/storage/fileproxy.go b/pkg/logagent/registry/logagent/storage/fileproxy.go index 5967a8fced..de561aa238 100644 --- a/pkg/logagent/registry/logagent/storage/fileproxy.go +++ b/pkg/logagent/registry/logagent/storage/fileproxy.go @@ -3,12 +3,13 @@ package storage import ( "context" "fmt" - "k8s.io/apimachinery/pkg/api/errors" "net/http" "net/http/httputil" "net/url" "time" + "k8s.io/apimachinery/pkg/api/errors" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" netutil "k8s.io/apimachinery/pkg/util/net" @@ -51,7 +52,7 @@ func (r *LogfileProxyREST) Connect(ctx context.Context, clusterName string, opts return nil, errors.NewInternalError(fmt.Errorf("unable to get host ip with config %+v", *proxyOpts)) } return &logFileProxyHandler{ - location: &url.URL{Scheme: "http", Host: hostIP + ":8090"}, + location: &url.URL{Scheme: "http", Host: hostIP + ":31139"}, namespace: proxyOpts.Namespace, pod: proxyOpts.Pod, container: proxyOpts.Container, diff --git a/pkg/logagent/util/logagent.go b/pkg/logagent/util/logagent.go index 0b64ee472b..4f3e535bee 100644 --- a/pkg/logagent/util/logagent.go +++ b/pkg/logagent/util/logagent.go @@ -23,7 +23,7 @@ import ( ) const ( - LogagentPort = "8090" + LogagentPort = "31139" ) type ReaderCloserGetter interface {