From f421ccce23e98281e067c957eeee180d8bd0fa7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=9A=93=E6=98=B1?= Date: Thu, 27 May 2021 17:12:10 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=97=A5=E5=BF=97=E6=8C=82=E8=BD=BD=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E4=BF=AE=E6=94=B9=202.=E5=B0=B1=E7=BB=AA=E6=A3=80?= =?UTF-8?q?=E6=B5=8B=E4=B8=8E=E5=AD=98=E6=B4=BB=E6=A3=80=E6=B5=8B=E8=A7=84?= =?UTF-8?q?=E5=88=99=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deployment-master.yaml | 47 +++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 24 deletions(-) diff --git a/deployment-master.yaml b/deployment-master.yaml index 6a5ec81..5bd94c0 100644 --- a/deployment-master.yaml +++ b/deployment-master.yaml @@ -24,10 +24,9 @@ spec: prometheus.io/jl-pod: 'true' spec: volumes: - - name: log - persistentVolumeClaim: - claimName: log-pvc - readOnly: false + - name: log + hostPath: + path: /var/lib/docker/log/349553515466-prod/default-group/30days affinity: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -47,25 +46,25 @@ spec: mountPath: /log ports: - containerPort: 18012 #[8] 容器需要监听的端口号,与配置文件中的server.port参数相同,与参数[4]相同 -# livenessProbe: -# failureThreshold: 3 -# httpGet: -# port: 18012 #[11] pod存活检测端口,修改为该微服务配置文件中server.port的端口号,与参数[5]相同 -# path: /actuator/prometheus -# scheme: HTTP -# initialDelaySeconds: 300 -# periodSeconds: 60 -# successThreshold: 1 -# timeoutSeconds: 2 -# readinessProbe: -# failureThreshold: 1 -# httpGet: -# port: 18012 #[12] pod就绪检测端口,修改为该微服务配置文件中server.port的端口号,与参数[5]相同 -# path: /actuator/prometheus -# scheme: HTTP -# periodSeconds: 5 -# successThreshold: 2 -# timeoutSeconds: 2 + livenessProbe: + failureThreshold: 3 + httpGet: + port: 18012 #[11] pod存活检测端口,修改为该微服务配置文件中server.port的端口号,与参数[5]相同 + path: /actuator/health + scheme: HTTP + initialDelaySeconds: 300 + periodSeconds: 60 + successThreshold: 1 + timeoutSeconds: 2 + readinessProbe: + failureThreshold: 1 + httpGet: + port: 18012 #[12] pod就绪检测端口,修改为该微服务配置文件中server.port的端口号,与参数[5]相同 + path: /actuator/health + scheme: HTTP + periodSeconds: 5 + successThreshold: 2 + timeoutSeconds: 2 resources: requests: cpu: 1000m @@ -75,7 +74,7 @@ spec: memory: 6Gi env: - name: APP_NAME - value: biz_service_ebtp_project_master + value: biz_ebtp_project #24位长度限,制统一去掉service - name: AGENT_LICENCE value: 527BFA7B28577578 - name: APOLLO_CONFIGSERVICE