Java KubernetesClientException:命名空间:[null]中名称为:[null]的种类:[Endpoints]的操作:[list]失败
关于带有Kubernetes的SpringBootAdmin服务器的问题 我有一个非常简单的SBA服务器应用程序,如下所示Java KubernetesClientException:命名空间:[null]中名称为:[null]的种类:[Endpoints]的操作:[list]失败,java,spring-boot,kubernetes,spring-boot-admin,Java,Spring Boot,Kubernetes,Spring Boot Admin,关于带有Kubernetes的SpringBootAdmin服务器的问题 我有一个非常简单的SBA服务器应用程序,如下所示 @EnableScheduling @EnableDiscoveryClient @EnableAdminServer @EnableConfigServer @SpringBootApplication public class Application { public static void main(String[] args) { Spri
@EnableScheduling
@EnableDiscoveryClient
@EnableAdminServer
@EnableConfigServer
@SpringBootApplication
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class);
}
}
为什么那些[null]请?我确实用过
spring.cloud.kubernetes.config.namespace=my-namespace
请问有什么问题
谢谢你我也有同样的问题。。。
ERROR [,e6d057e7abaf4a65,e6d057e7abaf4a65,true] 62 --- [ scheduling-1] o.s.c.k.d.KubernetesCatalogWatch : Error watching Kubernetes Services
io.fabric8.kubernetes.client.KubernetesClientException: Operation: [list] for kind: [Endpoints] with name: [null] in namespace: [null] failed.
at io.fabric8.kubernetes.client.KubernetesClientException.launderThrowable(KubernetesClientException.java:64) ~[kubernetes-client-4.10.3.jar!/:na]
spring.cloud.kubernetes.config.namespace=my-namespace