Skip to content

Commit

Permalink
refactor(logagent): update log file port (#1872)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo Ryu committed Apr 6, 2023
1 parent d8e6321 commit 4605180
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions pkg/logagent/registry/logagent/storage/fileproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 + ":" + util.LogagentPort},
namespace: proxyOpts.Namespace,
pod: proxyOpts.Pod,
container: proxyOpts.Container,
Expand Down
2 changes: 1 addition & 1 deletion pkg/logagent/util/logagent.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
)

const (
LogagentPort = "8090"
LogagentPort = "31139"
)

type ReaderCloserGetter interface {
Expand Down

0 comments on commit 4605180

Please sign in to comment.