wanghongkai před 5 roky
rodič
revize
a0972e3380

+ 0 - 4
src/main/java/cn/seecoder/paas/util/K8sApiConfiguration.java

@@ -59,10 +59,6 @@ public class K8sApiConfiguration {
         // fabric client
         // fabric client
         io.fabric8.kubernetes.client.Config config = new ConfigBuilder().withMasterUrl(k8s.getApiServer()).withOauthToken(k8s.getToken()).withTrustCerts(k8s.isValidateSSL()).build();
         io.fabric8.kubernetes.client.Config config = new ConfigBuilder().withMasterUrl(k8s.getApiServer()).withOauthToken(k8s.getToken()).withTrustCerts(k8s.isValidateSSL()).build();
         this.fabricK8sClient = new DefaultKubernetesClient(config);
         this.fabricK8sClient = new DefaultKubernetesClient(config);
-        NodeMetricsList nodeMetricList =  this.fabricK8sClient.top().nodes().metrics();
-        nodeMetricList.getItems().forEach(item -> {
-            System.out.println(item.getUsage().toString());
-        });
     }
     }
 
 
     @Bean
     @Bean