Enable Redis sessions for prod validation
Main-Build / build-and-push (push) Has been cancelled

This commit is contained in:
2026-06-01 14:58:33 +09:00
parent ffce1ef370
commit 432c54b58e
3 changed files with 75 additions and 1 deletions
Vendored
+7
View File
@@ -162,8 +162,15 @@ spec:
done
fi
if [ -f "k8s/${TARGET_ENV}/session-redis.yaml" ]; then
kubectl apply -f "k8s/${TARGET_ENV}/session-redis.yaml"
kubectl -n ${APP_NS} rollout status deploy/sayit-helpdesk-session-redis --timeout=120s
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"}}]}}}}'
elif [ "${TARGET_ENV}" = "prod" ]; 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"}]}]}}}}'
fi
kubectl -n ${APP_NS} set image deploy/${DEPLOY} ${DEPLOY}=${REG}/${IMAGE}:${IMAGE_TAG}