Support optional Redis sessions and heap dumps

This commit is contained in:
2026-06-01 13:26:44 +09:00
parent 0707f726b8
commit 4e1d15c574
9 changed files with 106 additions and 2 deletions
Vendored
+4
View File
@@ -162,6 +162,10 @@ spec:
done
fi
if [ "${TARGET_ENV}" = "dev" ]; then
kubectl -n ${APP_NS} patch deploy ${DEPLOY} --type=strategic -p '{"spec":{"template":{"spec":{"containers":[{"name":"'${DEPLOY}'","env":[{"name":"SPRING_PROFILES_ACTIVE","value":"redis-session"}],"volumeMounts":[{"name":"heapdumps","mountPath":"/heapdumps"}]}],"volumes":[{"name":"heapdumps","nfs":{"server":"192.168.0.120","path":"/volume2/NFS/helpdesk-dev/heapdumps"}}]}}}}'
fi
kubectl -n ${APP_NS} set image deploy/${DEPLOY} ${DEPLOY}=${REG}/${IMAGE}:${IMAGE_TAG}
if [ "${IS_SESSION_JOB}" = "true" ]; then