-
Notifications
You must be signed in to change notification settings - Fork 240
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
使用nodeport暴露端口,访问后登录时报错 #110
Comments
最后还是选择端口转发的方式,由于我是使用物理机访问虚拟机,所以需要用nginx作反向代理,安装文档中提到了这部分,我没有仔细看,我的错。 kubectl -n naftis port-forward $(kubectl -n naftis get pod -l app=naftis-ui -o jsonpath='{.items[0].metadata.name}') 8080:80 & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
按照github上的步骤进行端口转发失败后,使用nodeport暴露端口,访问后登录时报错。
To Reproduce
想试一下naftis的功能,但是到这一步,一直访问不了,想请大佬们指导指导。
Steps :
NAFTIIS_NODEPORT=$(kubectl get svc naftis-ui -n naftis -o jsonpath='{.spec.ports[0].nodePort}')
INGRESS_HOST=$(kubectl get node -o jsonpath='{.items[0].status.addresses[0].address}')
echo "http://$INGRESS_HOST:$NAFTIIS_NODEPORT/naftis-ui/"
app.common.errOthers(405)!
错误页面截图如下:
想请大佬们帮我看一下,端口暴露的方式是否正确,为什么不可以端口转发?
The text was updated successfully, but these errors were encountered: