去掉生产环境的k8s探针
This commit is contained in:
38
pro.yaml
38
pro.yaml
@ -47,25 +47,25 @@ spec:
|
|||||||
mountPath: /log
|
mountPath: /log
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 18018 #[8] 容器需要监听的端口号,与配置文件中的server.port参数相同,与参数[4]相同
|
- containerPort: 18018 #[8] 容器需要监听的端口号,与配置文件中的server.port参数相同,与参数[4]相同
|
||||||
livenessProbe:
|
#livenessProbe:
|
||||||
failureThreshold: 3
|
# failureThreshold: 3
|
||||||
httpGet:
|
# httpGet:
|
||||||
port: 18018 #[11] pod存活检测端口,修改为该微服务配置文件中server.port的端口号,与参数[5]相同
|
# port: 18018 #[11] pod存活检测端口,修改为该微服务配置文件中server.port的端口号,与参数[5]相同
|
||||||
path: /actuator/prometheus
|
# path: /actuator/prometheus
|
||||||
scheme: HTTP
|
# scheme: HTTP
|
||||||
initialDelaySeconds: 300
|
# initialDelaySeconds: 300
|
||||||
periodSeconds: 60
|
# periodSeconds: 60
|
||||||
successThreshold: 1
|
# successThreshold: 1
|
||||||
timeoutSeconds: 2
|
# timeoutSeconds: 2
|
||||||
readinessProbe:
|
#readinessProbe:
|
||||||
failureThreshold: 1
|
# failureThreshold: 1
|
||||||
httpGet:
|
# httpGet:
|
||||||
port: 18018 #[12] pod就绪检测端口,修改为该微服务配置文件中server.port的端口号,与参数[5]相同
|
# port: 18018 #[12] pod就绪检测端口,修改为该微服务配置文件中server.port的端口号,与参数[5]相同
|
||||||
path: /actuator/prometheus
|
# path: /actuator/prometheus
|
||||||
scheme: HTTP
|
# scheme: HTTP
|
||||||
periodSeconds: 5
|
# periodSeconds: 5
|
||||||
successThreshold: 2
|
# successThreshold: 2
|
||||||
timeoutSeconds: 2
|
# timeoutSeconds: 2
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 1000m
|
cpu: 1000m
|
||||||
|
@ -1,35 +1,30 @@
|
|||||||
package com.chinaunicom.mall.ebtp.extend.templatewarehouse.sevice.impl;
|
package com.chinaunicom.mall.ebtp.extend.templatewarehouse.sevice.impl;
|
||||||
|
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import java.io.IOException;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import java.net.URLEncoder;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import java.util.Map;
|
||||||
import com.chinaunicom.ebtp.mall.cloud.attachment.sdk.convertor.ModelConvertor;
|
import java.util.Optional;
|
||||||
import com.chinaunicom.mall.ebtp.common.util.JsonUtils;
|
|
||||||
import com.chinaunicom.mall.ebtp.extend.export.enums.ExportExceptionEnum;
|
|
||||||
import com.chinaunicom.mall.ebtp.extend.feign.client.DocumentCenterService;
|
|
||||||
import com.chinaunicom.mall.ebtp.extend.templatewarehouse.entity.BizBidClientVersion;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
import org.apache.commons.lang.time.DateFormatUtils;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
import com.chinaunicom.mall.ebtp.extend.templatewarehouse.dao.BizBidClientVersionMapper;
|
|
||||||
import com.chinaunicom.mall.ebtp.extend.templatewarehouse.sevice.BizBidClientVersionService;
|
|
||||||
import com.chinaunicom.mall.ebtp.common.base.service.impl.BaseServiceImpl;
|
|
||||||
import sun.nio.cs.ext.GBK;
|
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import javax.servlet.ServletOutputStream;
|
import javax.servlet.ServletOutputStream;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import java.io.*;
|
|
||||||
import java.net.URLEncoder;
|
import org.springframework.stereotype.Service;
|
||||||
import java.text.DateFormat;
|
|
||||||
import java.util.HashMap;
|
import com.alibaba.fastjson.JSON;
|
||||||
import java.util.Map;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import java.util.Optional;
|
import com.chinaunicom.ebtp.mall.cloud.attachment.sdk.convertor.ModelConvertor;
|
||||||
import java.util.zip.ZipEntry;
|
import com.chinaunicom.mall.ebtp.common.base.service.impl.BaseServiceImpl;
|
||||||
import java.util.zip.ZipOutputStream;
|
import com.chinaunicom.mall.ebtp.common.util.JsonUtils;
|
||||||
|
import com.chinaunicom.mall.ebtp.extend.export.enums.ExportExceptionEnum;
|
||||||
|
import com.chinaunicom.mall.ebtp.extend.feign.client.DocumentCenterService;
|
||||||
|
import com.chinaunicom.mall.ebtp.extend.templatewarehouse.dao.BizBidClientVersionMapper;
|
||||||
|
import com.chinaunicom.mall.ebtp.extend.templatewarehouse.entity.BizBidClientVersion;
|
||||||
|
import com.chinaunicom.mall.ebtp.extend.templatewarehouse.sevice.BizBidClientVersionService;
|
||||||
|
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 对数据表 biz_bid_client_version 操作的 serviceImpl
|
* 对数据表 biz_bid_client_version 操作的 serviceImpl
|
||||||
|
Reference in New Issue
Block a user