|
|
@@ -501,9 +501,9 @@ public class K8sClientUtil { |
|
|
computingResourceDao.updateUsedStateByNode(nodeName, Constant.Used_State_used); |
|
|
computingResourceDao.updateUsedStateByNode(nodeName, Constant.Used_State_used); |
|
|
} |
|
|
} |
|
|
} catch (ApiException e) { |
|
|
} catch (ApiException e) { |
|
|
log.error("创建pod异常:" + e.getResponseBody(), e); |
|
|
|
|
|
|
|
|
throw new RuntimeException("创建pod异常:" + e.getResponseBody()); |
|
|
} catch (Exception e) { |
|
|
} catch (Exception e) { |
|
|
log.error("创建pod系统异常:", e); |
|
|
|
|
|
|
|
|
throw new RuntimeException("创建pod系统异常:", e); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
V1Service service = createService(namespace, podName + "-svc", port, selector); |
|
|
V1Service service = createService(namespace, podName + "-svc", port, selector); |
|
|
|