main
黄海 10 months ago
parent 712c1a2da1
commit 945ad9b5e4

@ -17,7 +17,7 @@ import java.util.regex.Pattern;
public class K8sClientTest {
public static void testGetAllPodList() throws IOException, ApiException {
public static void getAllPodList() throws IOException, ApiException {
//Master /root/.kube/config文件拷贝过来
String kubeConfigPath = PathKit.getRootClassPath() + "\\.kube\\config";
if (!new File(kubeConfigPath).exists()) {
@ -59,6 +59,6 @@ public class K8sClientTest {
}
public static void main(String[] args) throws IOException, ApiException {
testGetAllPodList();
getAllPodList();
}
}

Loading…
Cancel
Save