Service Registry Implementation
在 Kubernetes 中,服务注册由平台控制,应用程序本身不会控制注册,它可能会像在其他平台上一样。因此,在 Spring Cloud Kubernetes 中使用 spring.cloud.service-registry.auto-registration.enabled
或设置 @EnableDiscoveryClient(autoRegister=false)
没有任何作用。
In Kubernetes service registration is controlled by the platform, the application itself does not control
registration as it may do in other platforms. For this reason using spring.cloud.service-registry.auto-registration.enabled
or setting @EnableDiscoveryClient(autoRegister=false)
will have no effect in Spring Cloud Kubernetes.