This commit is contained in:
Vendored
+3
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user