Commit 33e5407a authored by 黎博's avatar 黎博

fix bug

parent c68033ba
......@@ -654,6 +654,10 @@ public class TkeService {
}
Yaml yaml = new Yaml(new Constructor(Service.class));
Service service = yaml.load(serviceYaml);
// 设置下调试模式
if (serviceCreateVo.getDebug() == 1) {
service.getSpec().setType("NodePort");
}
log.info("开始在{}环境创建{}服务的k8s Service: \n{}", namespace, serviceName, serviceYaml);
return kubernetesClient.services().inNamespace(namespace).createOrReplace(service);
} catch (IOException e) {
......
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