From b258c7f209b77d18b16095e7be8931b83df99022 Mon Sep 17 00:00:00 2001 From: tzuge <47162374+tzuge@users.noreply.github.com> Date: Tue, 12 Nov 2024 17:15:47 -0700 Subject: [PATCH] chore(content-service): use recreate strategy --- .openshift/managed/content-service.yml | 15 +++++++++------ .vscode/settings.json | 2 ++ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.openshift/managed/content-service.yml b/.openshift/managed/content-service.yml index 8e4753c5f..10ff732f0 100644 --- a/.openshift/managed/content-service.yml +++ b/.openshift/managed/content-service.yml @@ -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: @@ -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: / @@ -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 diff --git a/.vscode/settings.json b/.vscode/settings.json index 307bb9f8d..16fc90535 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -71,8 +71,10 @@ "recaptcha", "reduxjs", "signin", + "strapi", "testid", "traceparent", + "uischema", "uninstantiated", "upsert", "uuidv"