Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] helm安装时 Nodeport 和已经存在的Ingress的port冲突且无法规避 #285

Open
pengln opened this issue May 10, 2023 · 2 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@pengln
Copy link

pengln commented May 10, 2023

Error: INSTALLATION FAILED: failed to create resource: Service "frontend-nodeport" is invalid: spec.ports[0].nodePort: Invalid value: 30080: provided port is already allocated

helm安装时必须填写NodePort的服务器所在的IP, 但是安装过程会和集群已经存在的ingress的NodePort冲突. 且无法规避这个端口, 导致无法安装.

上面的30080端口就是Ingress的NodePort.

@weilaaa
Copy link
Member

weilaaa commented May 11, 2023

/kind bug
/kubecube-chart

@weilaaa
Copy link
Member

weilaaa commented May 11, 2023

是得,这确实是一个问题,在 chart 中,frontend 的 NodePort service 的 nodePort 被硬编码为 30080,应该通过 helm value 将该值暴露出去。

https://github.com/kubecube-io/kubecube-chart/blob/c739280cc2acb22b6e3eee83bdb83b6c711b32cf/templates/frontend/service.yaml#LL15C1-L15C1

类似的问题还有 es 的 NodePort,promethues 的 NodePort 等等。除此之外还需要考虑是否通过配置 ingress 的方式去设置跨集群通信和暴露 frontend 服务。

@weilaaa weilaaa added the good first issue Good for newcomers label May 11, 2023
@zhujf1989 zhujf1989 removed their assignment Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants