From 3714d6cd95a1cdea5d2a688e971c79e77272c645 Mon Sep 17 00:00:00 2001 From: liaozan <378024053@qq.com> Date: Tue, 18 Apr 2023 12:48:14 +0800 Subject: [PATCH] Probe active only when dev environment --- k8s-deploy-template.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/k8s-deploy-template.yaml b/k8s-deploy-template.yaml index f6a9914..e36941c 100644 --- a/k8s-deploy-template.yaml +++ b/k8s-deploy-template.yaml @@ -46,6 +46,7 @@ spec: protocol: TCP - containerPort: 1024 protocol: TCP + #if($PROFILE != 'dev') startupProbe: httpGet: scheme: HTTP @@ -66,6 +67,7 @@ spec: path: /actuator/health/readiness port: 1024 periodSeconds: 10 + #end volumeMounts: - name: ${APP_NAME}-volume mountPath: /data -- GitLab