You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2020/05/19 05:57:57 UTC

[GitHub] [skywalking] EvanLjp commented on issue #4800: Is it a good idea to dynamic get config from configMap in kubernetes

EvanLjp commented on issue #4800:
URL: https://github.com/apache/skywalking/issues/4800#issuecomment-630598959


   Similar to cluster-kubernetes-plugi, it's depends on 
   <dependency>
               <groupId>io.kubernetes</groupId>
               <artifactId>client-java</artifactId>
           </dependency>
   
   
   the api is  use event to watch: watch = Watch.createWatch(client, api.listNamespacedPodCall(namespace, null, null, null, null, labelSelector, Integer.MAX_VALUE, null, null, Boolean.TRUE, null, null), new TypeToken<Watch.Response<V1Pod>>() {
               }.getType());
   
   and spring cloud config is already implement it ,you can refer to this
   
   https://github.com/spring-cloud/spring-cloud-kubernetes/tree/master/spring-cloud-kubernetes-config


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org