Browse Source

修改配置

dev-complex-computation
chenzhihang 1 year ago
parent
commit
b1556da623
2 changed files with 5 additions and 5 deletions
  1. +4
    -4
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/utils/K8sClientUtil.java
  2. +1
    -1
      ruoyi-modules/management-platform/src/main/resources/bootstrap.yml

+ 4
- 4
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/utils/K8sClientUtil.java View File

@@ -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异常");


+ 1
- 1
ruoyi-modules/management-platform/src/main/resources/bootstrap.yml View File

@@ -23,7 +23,7 @@ spring:
username: nacos
password: h1n2x3j4y5@
# 配置中心地址
server-addr: 1nacos-ci4s.argo.svc:8848
server-addr: nacos-ci4s.argo.svc:8848
# 配置文件格式
file-extension: yml
# 共享配置


Loading…
Cancel
Save