K8S暴露端口-dubbo应用远程Debug
1.Dockerfile增加环境变量ENV JAVA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=9901,server=y,suspend=n"2.暴露端口template_service.yaml- port: 9901protocol: TCPname: debugtargetPort: 9901nodePort: 30901tem
·
1.Dockerfile增加环境变量
ENV JAVA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=9901,server=y,suspend=n"
2.暴露端口
template_service.yaml
- port: 9901
protocol: TCP
name: debug
targetPort: 9901
nodePort: 30901
template_deployment.yaml
- containerPort: 9901
3.通过K8S中任意Node IP连接
4.DEBUG
https://blog.csdn.net/yhd723948277/article/details/108670336
更多推荐



所有评论(0)