Java Kubernetes client SSLHandshakeException extension (5) 不应该以certificate_request
2022-09-02 02:24:50
当我尝试在本地运行一个 Java Kubernetes 客户端应用程序时,我得到“扩展 (5) 不应该在certificate_request中呈现”,该应用程序通过 lube 代理连接查询 Kubernetes 集群。有什么想法吗?提前致谢
ApiClient client = null;
try {
client = Config.defaultClient();
//client.setVerifyingSsl(false);
} catch (IOException e) {
e.printStackTrace();
}
Configuration.setDefaultApiClient(client);
CoreV1Api api = new CoreV1Api();
V1PodList list = null;
try {
list = api.listPodForAllNamespaces(null, null, null, null, null, null, null, null, null);
} catch (ApiException e) {
e.printStackTrace();
}
for (V1Pod item : list.getItems()) {
System.out.println(item.getMetadata().getName());
}