Skip to content

Commit

Permalink
Merge pull request #120 from Poorunga/tunnel-port
Browse files Browse the repository at this point in the history
modify tunnelServer and tunnelAgent listen port
  • Loading branch information
kubeedge-bot authored Oct 12, 2021
2 parents 460d86c + 5ecd0f5 commit e705c8e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions agent/pkg/tunnel/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type TunnelAgentConfig struct {
// NodeName indicates the node name of tunnel agent
NodeName string `json:"nodeName"`
// ListenPort indicates the listen port of tunnel agent
// default 10006
// default 20006
ListenPort int `json:"listenPort"`
}

Expand All @@ -35,6 +35,6 @@ func NewTunnelAgentConfig() *TunnelAgentConfig {
TLSPrivateKeyFile: meshConstants.AgentDefaultKeyFile,
},
NodeName: nodeName,
ListenPort: 10006,
ListenPort: 20006,
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,4 @@ data:
excludeIP: "*"
tunnel:
enable: true
listenPort: 20006
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ data:
excludeIP: "*"
tunnel:
enable: true
listenPort: 10006
listenPort: 20006
2 changes: 1 addition & 1 deletion build/server/edgemesh/06-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
fieldRef:
fieldPath: spec.nodeName
ports:
- containerPort: 10004
- containerPort: 20004
name: relay
protocol: TCP
resources:
Expand Down
2 changes: 1 addition & 1 deletion server/cmd/edgemesh-server/app/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func NewEdgeMeshServerConfig() *EdgeMeshServerConfig {
TLSPrivateKeyFile: meshConstants.ServerDefaultKeyFile,
},
NodeName: nodeName,
ListenPort: 10004,
ListenPort: 20004,
PublicIP: "0.0.0.0",
}},
}
Expand Down
2 changes: 1 addition & 1 deletion server/pkg/tunnel/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type TunnelServerConfig struct {
// NodeName indicates the node name of tunnel server
NodeName string `json:"nodeName"`
// ListenPort indicates the listen port of tunnel server
// default 10004
// default 20004
ListenPort int `json:"listenPort"`
// PublicIP indicates the public ip of tunnel server
PublicIP string `json:"publicIP"`
Expand Down

0 comments on commit e705c8e

Please sign in to comment.