Skip to content

Commit

Permalink
chore(content-service): use recreate strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
tzuge authored Nov 13, 2024
1 parent 4f38d77 commit b258c7f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .openshift/managed/content-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ objects:
env:
- name: PORT
value: "3333"
- name: DATABASE_FILENAME
value: /opt/app-root/data/data.db
imagePullPolicy: IfNotPresent
name: content-service
ports:
Expand All @@ -120,8 +122,8 @@ objects:
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /opt/app-root/src/apps/content-service/.tmp
name: content-service-data
- name: content-service-data
mountPath: /opt/app-root/data
# readinessProbe:
# httpGet:
# path: /
Expand Down Expand Up @@ -152,10 +154,11 @@ objects:
securityContext: {}
terminationGracePeriodSeconds: 30
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxSurge: 25%
type: Recreate
# type: RollingUpdate
# rollingUpdate:
# maxUnavailable: 25%
# maxSurge: 25%
revisionHistoryLimit: 10
progressDeadlineSeconds: 600

Expand Down
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@
"recaptcha",
"reduxjs",
"signin",
"strapi",
"testid",
"traceparent",
"uischema",
"uninstantiated",
"upsert",
"uuidv"
Expand Down

0 comments on commit b258c7f

Please sign in to comment.