Commit 4ea69848 authored by 黎博's avatar 黎博

修复创建mongodb失败的bug

parent 99ce2cd9
......@@ -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