From 45272c50ebf98f476581906d201c3025bc9eeb28 Mon Sep 17 00:00:00 2001 From: Mars <21408788+w-a-n-g-s-h-u-n@users.noreply.github.com> Date: Sat, 24 Jan 2026 02:04:04 +0800 Subject: [PATCH] support lifecycle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加下面env后,可用于覆盖前端页面文件 - name: _JAVA_OPTIONS value: >- -Dspring.web.resources.static-locations=file:./static/,classpath:/static/ --- apollo-portal/templates/deployment-portal.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apollo-portal/templates/deployment-portal.yaml b/apollo-portal/templates/deployment-portal.yaml index d57514c..8b18951 100644 --- a/apollo-portal/templates/deployment-portal.yaml +++ b/apollo-portal/templates/deployment-portal.yaml @@ -124,6 +124,8 @@ spec: periodSeconds: {{ .Values.readiness.periodSeconds }} resources: {{- toYaml .Values.resources | nindent 12 }} + lifecycle: + {{- toYaml .Values.lifecycle | nindent 12 }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }}