Skip to content

Commit

Permalink
rfactor(logagent): update log file port
Browse files Browse the repository at this point in the history
  • Loading branch information
leonarliu committed Apr 26, 2022
1 parent 7206f0f commit bd520ba
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 + ":31139"},
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 bd520ba

Please sign in to comment.