1.日志挂载路径修改

2.就绪检测与存活检测规则修改
This commit is contained in:
王皓昱
2021-05-27 17:12:10 +08:00
parent 88d5ca2fc3
commit f421ccce23

View File

@ -25,9 +25,8 @@ spec:
spec: spec:
volumes: volumes:
- name: log - name: log
persistentVolumeClaim: hostPath:
claimName: log-pvc path: /var/lib/docker/log/349553515466-prod/default-group/30days
readOnly: false
affinity: affinity:
podAntiAffinity: podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution: requiredDuringSchedulingIgnoredDuringExecution:
@ -47,25 +46,25 @@ spec:
mountPath: /log mountPath: /log
ports: ports:
- containerPort: 18012 #[8] 容器需要监听的端口号与配置文件中的server.port参数相同与参数[4]相同 - containerPort: 18012 #[8] 容器需要监听的端口号与配置文件中的server.port参数相同与参数[4]相同
# livenessProbe: livenessProbe:
# failureThreshold: 3 failureThreshold: 3
# httpGet: httpGet:
# port: 18012 #[11] pod存活检测端口,修改为该微服务配置文件中server.port的端口号,与参数[5]相同 port: 18012 #[11] pod存活检测端口,修改为该微服务配置文件中server.port的端口号,与参数[5]相同
# path: /actuator/prometheus path: /actuator/health
# 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: 18012 #[12] pod就绪检测端口,修改为该微服务配置文件中server.port的端口号,与参数[5]相同 port: 18012 #[12] pod就绪检测端口,修改为该微服务配置文件中server.port的端口号,与参数[5]相同
# path: /actuator/prometheus path: /actuator/health
# scheme: HTTP scheme: HTTP
# periodSeconds: 5 periodSeconds: 5
# successThreshold: 2 successThreshold: 2
# timeoutSeconds: 2 timeoutSeconds: 2
resources: resources:
requests: requests:
cpu: 1000m cpu: 1000m
@ -75,7 +74,7 @@ spec:
memory: 6Gi memory: 6Gi
env: env:
- name: APP_NAME - name: APP_NAME
value: biz_service_ebtp_project_master value: biz_ebtp_project #24位长度限制统一去掉service
- name: AGENT_LICENCE - name: AGENT_LICENCE
value: 527BFA7B28577578 value: 527BFA7B28577578
- name: APOLLO_CONFIGSERVICE - name: APOLLO_CONFIGSERVICE