Skip to content

Commit

Permalink
fix: port
Browse files Browse the repository at this point in the history
  • Loading branch information
kqzh committed Sep 18, 2023
1 parent 9508215 commit 3a5b8d2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apis/apps/v1alpha1/nebulacluster_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ func generateContainers(c NebulaClusterComponent, cm *corev1.ConfigMap) []corev1
flags += " --assigned_zone=$NODE_ZONE"
}
if !c.IsDefaultThriftPort() {
flags += " --port=" + strconv.Itoa(int(c.GetHTTPPort()))
flags += " --port=" + strconv.Itoa(int(c.GetThriftPort()))
}
if !c.IsDefaultHTTPPort() {
flags += " --ws_http_port=" + strconv.Itoa(int(c.GetHTTPPort()))
Expand Down
2 changes: 0 additions & 2 deletions apis/apps/v1alpha1/nebulacluster_graphd.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ const (
defaultGraphdPortThrift = 9669
GraphdPortNameHTTP = "http"
defaultGraphdPortHTTP = 19669
GraphdPortNameHTTP2 = "http2"
defaultGraphdPortHTTP2 = 19670
defaultGraphdImage = "vesoft/nebula-graphd"
)

Expand Down
2 changes: 0 additions & 2 deletions apis/apps/v1alpha1/nebulacluster_metad.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ const (
defaultMetadPortThrift = 9559
MetadPortNameHTTP = "http"
defaultMetadPortHTTP = 19559
MetadPortNameHTTP2 = "http2"
defaultMetadPortHTTP2 = 19560
defaultMetadImage = "vesoft/nebula-metad"
)

Expand Down
6 changes: 4 additions & 2 deletions apis/apps/v1alpha1/nebulacluster_storaged.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ const (
defaultStoragedPortThrift = 9779
StoragedPortNameHTTP = "http"
defaultStoragedPortHTTP = 19779
StoragedPortNameHTTP2 = "http2"
defaultStoragedPortHTTP2 = 19780
StoragedPortNameAdmin = "admin"
defaultStoragedPortAdmin = 9778
defaultStoragedImage = "vesoft/nebula-storaged"
Expand Down Expand Up @@ -165,6 +163,10 @@ func (c *storagedComponent) GenerateContainerPorts() []corev1.ContainerPort {
Name: StoragedPortNameHTTP,
ContainerPort: c.nc.Spec.Storaged.HTTPPort,
},
{
Name: StoragedPortNameAdmin,
ContainerPort: c.nc.Spec.Storaged.Port - 1,
},
}
}

Expand Down

0 comments on commit 3a5b8d2

Please sign in to comment.