小编Aru*_*mar的帖子

如何在不重启应用程序的情况下动态共享微服务副本之间的数据

我在 kubernetes 上有一个微服务。它最多可扩展到 4 个 pod。我创建了一个对象来使用rest api动态设置一些值。但是该对象将通过rest api在单个pod上更新。我必须同时在 3 个具有单个 URL 的 pod 上共享相同的值,而无需重新启动应用程序。

我正在考虑针对此要求使用hazelcast,但它需要我无法提供的管理员权限。

错误

{"date":"2019-03-19T08:30:32.920+00:00","loglevel":"ERROR","logger_name":"com.hazelcast.internal.cluster.impl.DiscoveryJoiner","thread_name":"main","message":"[10.128.10.37]:5701 [some-group] [3.10.2] Failure executing: GET at: https://kubernetes.default.svc/api/v1/namespaces/somespace/endpoints/some-service . Message: Forbidden!Configured service account doesn't have access. Service account may have been revoked. endpoints \"some-service\" is forbidden: User \"system:serviceaccount:some-test:default\" cannot get endpoints in the namespace \"somespace\": User \"system:serviceaccount:some-test:default\" cannot get endpoints in project \"somespace\".","stack_trace":"io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: GET at: https://kubernetes.default.svc/api/v1/namespaces/gaming/endpoints/some-service . Message: Forbidden!Configured service account doesn't have access. Service account may have been revoked. endpoints \"some-service\" …
Run Code Online (Sandbox Code Playgroud)

java spring-boot kubernetes microservices

5
推荐指数
0
解决办法
275
查看次数

标签 统计

java ×1

kubernetes ×1

microservices ×1

spring-boot ×1