|
|
|
@ -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();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|