|
|
|
@@ -63,10 +63,10 @@ public class K8sClientUtil { |
|
|
|
this.http = http; |
|
|
|
this.token = token; |
|
|
|
try { |
|
|
|
this.apiClient = new ClientBuilder(). |
|
|
|
setBasePath(http).setVerifyingSsl(false). |
|
|
|
setAuthentication(new AccessTokenAuthentication(token)).build(); |
|
|
|
// this.apiClient = Config.fromCluster(); |
|
|
|
// this.apiClient = new ClientBuilder(). |
|
|
|
// setBasePath(http).setVerifyingSsl(false). |
|
|
|
// setAuthentication(new AccessTokenAuthentication(token)).build(); |
|
|
|
this.apiClient = Config.fromCluster(); |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("构建K8s-Client异常", e); |
|
|
|
throw new RuntimeException("构建K8s-Client异常"); |
|
|
|
|