Spring 启动管理员列出 kubernetes 内部 url。无法导航到应用程序页面
Spring boot admin listing kubernetes internal urls. Not able to navigate to the application page
问题
- 尝试使用 Spring 引导管理员对 Kubernetes 中的 spring 引导微服务 运行 进行深度监控。
- Spring 引导管理员列出微服务但指向内部 IP。
Spring boot admin application listing page showing the internal IP
The application details page has almost zero info
详情
- Kubernetes 1.15
- Spring 引导应用程序正在被 Spring 引导管理员使用 Spring 云发现
发现
- spring-cloud-kubernetes 版本 1.1.0.RELEASE
- 问题是 IP 属于内部 pod 网络,在任何现实世界场景中用户都无法访问。
Any hints on how to approach this scenario ? Any alternatives ?
我还想知道 spring 引导管理员在 pods 有多个副本的情况下会如何表现。我认为几乎不可能通过入口或节点端口指向唯一的 pod 副本。
Hack I am working on
如果我可以启动另一个向最终用户公开 Linux 桌面的 pod。从这个桌面的浏览器,用户可以访问 pod 网络 ips。这只是一个 hack 的疯狂想法。
Spring Boot Admin 根据下面 属性.
的名称注册每个 application/client
spring.boot.admin.client.instance.name=${spring.application.name}
如果您所有的 pods 都具有相同的名称,它可以通过启用 perfer-ip 属性(默认情况下为 false)来根据个人 ips 进行注册:
spring.boot.admin.client.instance.prefer-ip=true
你的情况,你想SBA注册基于Kubernetes的负载均衡url,那么service-base-url属性应该设置对应应用的url.
spring.boot.admin.client.instance.service-base-url=http://myapp.com
问题
- 尝试使用 Spring 引导管理员对 Kubernetes 中的 spring 引导微服务 运行 进行深度监控。
- Spring 引导管理员列出微服务但指向内部 IP。
Spring boot admin application listing page showing the internal IP
The application details page has almost zero info
详情
- Kubernetes 1.15
- Spring 引导应用程序正在被 Spring 引导管理员使用 Spring 云发现 发现
- spring-cloud-kubernetes 版本 1.1.0.RELEASE
- 问题是 IP 属于内部 pod 网络,在任何现实世界场景中用户都无法访问。
Any hints on how to approach this scenario ? Any alternatives ?
我还想知道 spring 引导管理员在 pods 有多个副本的情况下会如何表现。我认为几乎不可能通过入口或节点端口指向唯一的 pod 副本。
Hack I am working on
如果我可以启动另一个向最终用户公开 Linux 桌面的 pod。从这个桌面的浏览器,用户可以访问 pod 网络 ips。这只是一个 hack 的疯狂想法。
Spring Boot Admin 根据下面 属性.
的名称注册每个 application/clientspring.boot.admin.client.instance.name=${spring.application.name}
如果您所有的 pods 都具有相同的名称,它可以通过启用 perfer-ip 属性(默认情况下为 false)来根据个人 ips 进行注册:
spring.boot.admin.client.instance.prefer-ip=true
你的情况,你想SBA注册基于Kubernetes的负载均衡url,那么service-base-url属性应该设置对应应用的url.
spring.boot.admin.client.instance.service-base-url=http://myapp.com