Commit 448da93b authored by 黎博's avatar 黎博

Merge branch 'master' into k8s

parents 3a82f756 4ea69848
......@@ -324,7 +324,7 @@ public class K8sService {
// 对象转列表
List<Map<String, Object>> resultList = new ArrayList<>();
for (Map<String, Object> map: podServiceMap.values()) {
if (map != null) {
if ((map != null) && (map.get("serviceName") != null)) {
resultList.add(map);
}
}
......@@ -1402,7 +1402,7 @@ public class K8sService {
public Service createMongodbService(String namespace) {
Service mongodbService = new Service();
ObjectMeta objectMeta = buildObjectMeta("fe", "mongodb", "base");
ObjectMeta objectMeta = buildObjectMeta(namespace, "mongodb", "base");
ServiceSpec serviceSpec = new ServiceSpec();
serviceSpec.setType("NodePort");
......@@ -1507,7 +1507,7 @@ public class K8sService {
cpuRequest.setFormat("m");
memoryRequest.setAmount("256");
memoryRequest.setFormat("Mi");
cpuLimit.setAmount("250");
cpuLimit.setAmount("1024");
cpuLimit.setFormat("m");
memoryLimit.setAmount("512");
memoryLimit.setFormat("Mi");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment