赞
踩
1、修改jar启动应用命令
在启动命令中增加:
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
如图:
2、配置k8s端口
配置k8s远端访问
- kind: Service
- apiVersion: v1
- metadata:
- name: tttt
- namespace: test001
- labels:
- app: tttt
- annotations:
- kubesphere.io/creator: test001
- spec:
- ports:
- - name: http-1111
- protocol: TCP
- port: 5005
- targetPort: 5005
- nodePort: 5005
- selector:
- io.kompose.service: test001
- clusterIP: 10.233.17.41
- clusterIPs:
- - 10.233.17.41
- type: NodePort
- sessionAffinity: None
- externalTrafficPolicy: Cluster
- ipFamilies:
- - IPv4
- ipFamilyPolicy: SingleStack
3、idea远程debug
配置IP和地址,如图
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。