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