Align stage Redis session deployment
Main-Build / build-and-push (push) Has been cancelled

This commit is contained in:
2026-06-02 09:25:31 +09:00
parent 432c54b58e
commit c826047dae
3 changed files with 71 additions and 2 deletions
Vendored
+3 -1
View File
@@ -167,9 +167,11 @@ spec:
kubectl -n ${APP_NS} rollout status deploy/sayit-helpdesk-session-redis --timeout=120s
fi
kubectl -n ${APP_NS} patch deploy ${DEPLOY} --type=strategic -p '{"spec":{"strategy":{"type":"RollingUpdate","rollingUpdate":{"maxUnavailable":0,"maxSurge":1}},"template":{"spec":{"containers":[{"name":"'${DEPLOY}'","startupProbe":{"httpGet":{"path":"/health.do","port":8080,"scheme":"HTTP"},"periodSeconds":5,"timeoutSeconds":2,"failureThreshold":36},"readinessProbe":{"httpGet":{"path":"/health.do","port":8080,"scheme":"HTTP"},"initialDelaySeconds":10,"periodSeconds":5,"timeoutSeconds":2,"failureThreshold":3},"livenessProbe":{"httpGet":{"path":"/health.do","port":8080,"scheme":"HTTP"},"initialDelaySeconds":30,"periodSeconds":10,"timeoutSeconds":1,"failureThreshold":3}}]}}}}'
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
elif [ "${TARGET_ENV}" = "stage" ] || [ "${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