Spring 启动管理员列出 kubernetes 内部 url。无法导航到应用程序页面

Spring boot admin listing kubernetes internal urls. Not able to navigate to the application page

问题

Spring boot admin application listing page showing the internal IP

The application details page has almost zero info

详情

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