1.日志挂载路径修改

2.就绪检测与存活检测规则修改
This commit is contained in:
王皓昱
2021-05-27 18:00:32 +08:00
parent b09f0e2f35
commit 3da588dd86

View File

@ -37,9 +37,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:
@ -60,25 +59,25 @@ spec:
mountPath: /log mountPath: /log
ports: ports:
- containerPort: 18018 - containerPort: 18018
#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/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: 18018 #[12] pod就绪检测端口,修改为该微服务配置文件中server.port的端口号,与参数[5]相同 port: 18018 #[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
@ -90,13 +89,21 @@ spec:
- name: AGENT_LICENCE - name: AGENT_LICENCE
value: 527BFA7B28577578 value: 527BFA7B28577578
- name: APP_NAME - name: APP_NAME
value: biz_service_ebtp_extend value: biz_ebtp_extend #24位长度限制统一去掉service
- name: APOLLO_CONFIGSERVICE - name: APOLLO_CONFIGSERVICE
value: http://apollo-configservice:8080 value: http://apollo-configservice:8080
- name: MY_POD_IP - name: MY_POD_IP
valueFrom: valueFrom:
fieldRef: fieldRef:
fieldPath: status.podIP fieldPath: status.podIP
- name: JAVA_TOOL_OPTIONS
value: -XX:+UnlockExperimentalVMOptions
-XX:+UseContainerSupport
-XX:+UseCGroupMemoryLimitForHeap
-XX:InitialRAMPercentage=40.0
-XX:MinRAMPercentage=20.0
-XX:MaxRAMPercentage=80.0
--- ---
kind: Service kind: Service
apiVersion: v1 apiVersion: v1