From 90f81c5a487e6003402d2aafaf5ca334912eb162 Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Tue, 3 Sep 2024 10:16:12 -0500 Subject: [PATCH 01/16] fix: add readiness probe for lms/cms --- drydock/templates/drydock/k8s/lifecycle/cms.yml | 9 +++++++++ drydock/templates/drydock/k8s/lifecycle/lms.yml | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/drydock/templates/drydock/k8s/lifecycle/cms.yml b/drydock/templates/drydock/k8s/lifecycle/cms.yml index ebd6ac75..0c7ea02a 100644 --- a/drydock/templates/drydock/k8s/lifecycle/cms.yml +++ b/drydock/templates/drydock/k8s/lifecycle/cms.yml @@ -24,4 +24,13 @@ spec: timeoutSeconds: 3 periodSeconds: 5 failureThreshold: 5 + readinessProbe: + httpGet: + httpHeaders: + - name: Host + value: {{ CMS_HOST }} + path: /heartbeat + port: 8000 + periodSeconds: 5 + failureThreshold: 3 terminationGracePeriodSeconds: 60 diff --git a/drydock/templates/drydock/k8s/lifecycle/lms.yml b/drydock/templates/drydock/k8s/lifecycle/lms.yml index fc12f805..3fd75397 100644 --- a/drydock/templates/drydock/k8s/lifecycle/lms.yml +++ b/drydock/templates/drydock/k8s/lifecycle/lms.yml @@ -24,4 +24,13 @@ spec: timeoutSeconds: 3 periodSeconds: 5 failureThreshold: 5 + readinessProbe: + httpGet: + httpHeaders: + - name: Host + value: {{ CMS_HOST }} + path: /heartbeat + port: 8000 + periodSeconds: 5 + failureThreshold: 3 terminationGracePeriodSeconds: 60 From 41eadce4337499590f66a05c1acce0f27db2483a Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Tue, 3 Sep 2024 10:16:49 -0500 Subject: [PATCH 02/16] fix: add readiness probe for lms/cms --- drydock/templates/drydock/k8s/lifecycle/cms.yml | 2 +- drydock/templates/drydock/k8s/lifecycle/lms.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drydock/templates/drydock/k8s/lifecycle/cms.yml b/drydock/templates/drydock/k8s/lifecycle/cms.yml index 0c7ea02a..2c83799f 100644 --- a/drydock/templates/drydock/k8s/lifecycle/cms.yml +++ b/drydock/templates/drydock/k8s/lifecycle/cms.yml @@ -31,6 +31,6 @@ spec: value: {{ CMS_HOST }} path: /heartbeat port: 8000 - periodSeconds: 5 + periodSeconds: 10 failureThreshold: 3 terminationGracePeriodSeconds: 60 diff --git a/drydock/templates/drydock/k8s/lifecycle/lms.yml b/drydock/templates/drydock/k8s/lifecycle/lms.yml index 3fd75397..84fd82c4 100644 --- a/drydock/templates/drydock/k8s/lifecycle/lms.yml +++ b/drydock/templates/drydock/k8s/lifecycle/lms.yml @@ -31,6 +31,6 @@ spec: value: {{ CMS_HOST }} path: /heartbeat port: 8000 - periodSeconds: 5 + periodSeconds: 10 failureThreshold: 3 terminationGracePeriodSeconds: 60 From 144cbb272dfa2c77e9e1b8861bbf45dac052613c Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Tue, 3 Sep 2024 14:35:00 -0500 Subject: [PATCH 03/16] fix: add affinity to spread lms/cms to multiple nodes --- drydock/templates/drydock/k8s/lifecycle/cms.yml | 7 +++++++ drydock/templates/drydock/k8s/lifecycle/lms.yml | 9 ++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/drydock/templates/drydock/k8s/lifecycle/cms.yml b/drydock/templates/drydock/k8s/lifecycle/cms.yml index 2c83799f..54674b17 100644 --- a/drydock/templates/drydock/k8s/lifecycle/cms.yml +++ b/drydock/templates/drydock/k8s/lifecycle/cms.yml @@ -34,3 +34,10 @@ spec: periodSeconds: 10 failureThreshold: 3 terminationGracePeriodSeconds: 60 + affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchLabels: + app.kubernetes.io/name: cms + topologyKey: "kubernetes.io/hostname" diff --git a/drydock/templates/drydock/k8s/lifecycle/lms.yml b/drydock/templates/drydock/k8s/lifecycle/lms.yml index 84fd82c4..a90ee19f 100644 --- a/drydock/templates/drydock/k8s/lifecycle/lms.yml +++ b/drydock/templates/drydock/k8s/lifecycle/lms.yml @@ -28,9 +28,16 @@ spec: httpGet: httpHeaders: - name: Host - value: {{ CMS_HOST }} + value: {{ LMS_HOST }} path: /heartbeat port: 8000 periodSeconds: 10 failureThreshold: 3 terminationGracePeriodSeconds: 60 + affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchLabels: + app.kubernetes.io/name: lms + topologyKey: "kubernetes.io/hostname" From 28a21ebe30fd90cc9c188fd6df9c2b46666e1ef6 Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Tue, 3 Sep 2024 18:02:41 -0500 Subject: [PATCH 04/16] chore: remove readiness probe --- drydock/templates/drydock/k8s/lifecycle/cms.yml | 11 +---------- drydock/templates/drydock/k8s/lifecycle/lms.yml | 11 +---------- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/drydock/templates/drydock/k8s/lifecycle/cms.yml b/drydock/templates/drydock/k8s/lifecycle/cms.yml index 54674b17..55f114ee 100644 --- a/drydock/templates/drydock/k8s/lifecycle/cms.yml +++ b/drydock/templates/drydock/k8s/lifecycle/cms.yml @@ -24,19 +24,10 @@ spec: timeoutSeconds: 3 periodSeconds: 5 failureThreshold: 5 - readinessProbe: - httpGet: - httpHeaders: - - name: Host - value: {{ CMS_HOST }} - path: /heartbeat - port: 8000 - periodSeconds: 10 - failureThreshold: 3 terminationGracePeriodSeconds: 60 affinity: podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: + preferredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchLabels: app.kubernetes.io/name: cms diff --git a/drydock/templates/drydock/k8s/lifecycle/lms.yml b/drydock/templates/drydock/k8s/lifecycle/lms.yml index a90ee19f..186e7f73 100644 --- a/drydock/templates/drydock/k8s/lifecycle/lms.yml +++ b/drydock/templates/drydock/k8s/lifecycle/lms.yml @@ -24,19 +24,10 @@ spec: timeoutSeconds: 3 periodSeconds: 5 failureThreshold: 5 - readinessProbe: - httpGet: - httpHeaders: - - name: Host - value: {{ LMS_HOST }} - path: /heartbeat - port: 8000 - periodSeconds: 10 - failureThreshold: 3 terminationGracePeriodSeconds: 60 affinity: podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: + preferredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchLabels: app.kubernetes.io/name: lms From 2eb62e0344b44b5946c2409448973a8e5f6f23ab Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Wed, 4 Sep 2024 11:42:55 -0500 Subject: [PATCH 05/16] fix: reduce startup probe period seconds --- .../templates/drydock/k8s/lifecycle/cms.yml | 25 ++++++++--------- .../templates/drydock/k8s/lifecycle/lms.yml | 27 ++++++++++--------- 2 files changed, 27 insertions(+), 25 deletions(-) diff --git a/drydock/templates/drydock/k8s/lifecycle/cms.yml b/drydock/templates/drydock/k8s/lifecycle/cms.yml index 55f114ee..60732022 100644 --- a/drydock/templates/drydock/k8s/lifecycle/cms.yml +++ b/drydock/templates/drydock/k8s/lifecycle/cms.yml @@ -7,12 +7,6 @@ spec: spec: containers: - name: cms - lifecycle: - preStop: - exec: - command: - - "sleep" - - "30" startupProbe: httpGet: httpHeaders: @@ -22,13 +16,20 @@ spec: port: 8000 initialDelaySeconds: 5 timeoutSeconds: 3 - periodSeconds: 5 - failureThreshold: 5 + periodSeconds: 1 + failureThreshold: 30 terminationGracePeriodSeconds: 60 affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchLabels: - app.kubernetes.io/name: cms - topologyKey: "kubernetes.io/hostname" + - weight: 100 + podAffinityTerm: + labelSelector: + matchLabels: + app.kubernetes.io/name: cms + topologyKey: kubernetes.io/hostname + strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 1 + maxSurge: 2 diff --git a/drydock/templates/drydock/k8s/lifecycle/lms.yml b/drydock/templates/drydock/k8s/lifecycle/lms.yml index 186e7f73..22660451 100644 --- a/drydock/templates/drydock/k8s/lifecycle/lms.yml +++ b/drydock/templates/drydock/k8s/lifecycle/lms.yml @@ -7,12 +7,6 @@ spec: spec: containers: - name: lms - lifecycle: - preStop: - exec: - command: - - "sleep" - - "30" startupProbe: httpGet: httpHeaders: @@ -20,15 +14,22 @@ spec: value: {{ LMS_HOST }} path: /heartbeat port: 8000 - initialDelaySeconds: 5 + initialDelaySeconds: 1 timeoutSeconds: 3 - periodSeconds: 5 - failureThreshold: 5 + periodSeconds: 1 + failureThreshold: 30 terminationGracePeriodSeconds: 60 affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchLabels: - app.kubernetes.io/name: lms - topologyKey: "kubernetes.io/hostname" + - weight: 100 + podAffinityTerm: + labelSelector: + matchLabels: + app.kubernetes.io/name: lms + topologyKey: kubernetes.io/hostname + strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 1 + maxSurge: 2 From c48cd9d3aff826b30a66910269ab348864a42fb5 Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Wed, 4 Sep 2024 13:38:47 -0500 Subject: [PATCH 06/16] fix: gracefully kill uwsgi workers --- drydock/patches/uwsgi-config | 1 + 1 file changed, 1 insertion(+) diff --git a/drydock/patches/uwsgi-config b/drydock/patches/uwsgi-config index 673d0acb..c5c8ee5c 100644 --- a/drydock/patches/uwsgi-config +++ b/drydock/patches/uwsgi-config @@ -12,3 +12,4 @@ no-defer-accept = true master = true py-call-osafterfork = true vacuum = true +hook-master-start = unix_signal:1 gracefully_kill_them_all From 4b4d6d5161e7e55814c4b7fd103b9fc57143b654 Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Wed, 4 Sep 2024 13:39:02 -0500 Subject: [PATCH 07/16] fix: disable local file loggers --- drydock/patches/openedx-common-settings | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drydock/patches/openedx-common-settings b/drydock/patches/openedx-common-settings index 7bff027e..2da9a169 100644 --- a/drydock/patches/openedx-common-settings +++ b/drydock/patches/openedx-common-settings @@ -18,3 +18,6 @@ XBLOCK_SETTINGS["ScormXBlock"] = { "STORAGE_FUNC": scorm_xblock_storage, } {% endif %} + +LOGGING.get("loggers", {}).pop("tracking") +LOGGING.get("loggers", {}).pop("local") From ed733b5f667d8fbf8c317dcbec6e92e5c62ff1e5 Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Wed, 4 Sep 2024 19:29:31 -0500 Subject: [PATCH 08/16] fix: disable logging --- drydock/patches/openedx-common-settings | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drydock/patches/openedx-common-settings b/drydock/patches/openedx-common-settings index 2da9a169..be9525ee 100644 --- a/drydock/patches/openedx-common-settings +++ b/drydock/patches/openedx-common-settings @@ -20,4 +20,4 @@ XBLOCK_SETTINGS["ScormXBlock"] = { {% endif %} LOGGING.get("loggers", {}).pop("tracking") -LOGGING.get("loggers", {}).pop("local") +LOGGING["loggers"][""]["handlers"] = ["console"] From 9f0981378ad5173f87241a19325069911b17214f Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Thu, 5 Sep 2024 08:32:54 -0500 Subject: [PATCH 09/16] fix: reduce max unavailable to 0 --- drydock/templates/drydock/k8s/lifecycle/cms.yml | 4 ++-- drydock/templates/drydock/k8s/lifecycle/lms.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drydock/templates/drydock/k8s/lifecycle/cms.yml b/drydock/templates/drydock/k8s/lifecycle/cms.yml index 60732022..c40559b4 100644 --- a/drydock/templates/drydock/k8s/lifecycle/cms.yml +++ b/drydock/templates/drydock/k8s/lifecycle/cms.yml @@ -14,7 +14,7 @@ spec: value: {{ CMS_HOST }} path: /heartbeat port: 8000 - initialDelaySeconds: 5 + initialDelaySeconds: 1 timeoutSeconds: 3 periodSeconds: 1 failureThreshold: 30 @@ -31,5 +31,5 @@ spec: strategy: type: RollingUpdate rollingUpdate: - maxUnavailable: 1 + maxUnavailable: 0 maxSurge: 2 diff --git a/drydock/templates/drydock/k8s/lifecycle/lms.yml b/drydock/templates/drydock/k8s/lifecycle/lms.yml index 22660451..5af73547 100644 --- a/drydock/templates/drydock/k8s/lifecycle/lms.yml +++ b/drydock/templates/drydock/k8s/lifecycle/lms.yml @@ -31,5 +31,5 @@ spec: strategy: type: RollingUpdate rollingUpdate: - maxUnavailable: 1 + maxUnavailable: 0 maxSurge: 2 From 0cc23ccc726e2000ce02be02be4d20cc71e252d6 Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Thu, 5 Sep 2024 09:02:49 -0500 Subject: [PATCH 10/16] fix: add liveness probe for cms and lms --- drydock/patches/uwsgi-config | 1 + drydock/templates/drydock/k8s/lifecycle/cms.yml | 12 ++++++++++++ drydock/templates/drydock/k8s/lifecycle/lms.yml | 12 ++++++++++++ 3 files changed, 25 insertions(+) diff --git a/drydock/patches/uwsgi-config b/drydock/patches/uwsgi-config index c5c8ee5c..a449ca2f 100644 --- a/drydock/patches/uwsgi-config +++ b/drydock/patches/uwsgi-config @@ -13,3 +13,4 @@ master = true py-call-osafterfork = true vacuum = true hook-master-start = unix_signal:1 gracefully_kill_them_all +disable-logging = true diff --git a/drydock/templates/drydock/k8s/lifecycle/cms.yml b/drydock/templates/drydock/k8s/lifecycle/cms.yml index c40559b4..ae569d19 100644 --- a/drydock/templates/drydock/k8s/lifecycle/cms.yml +++ b/drydock/templates/drydock/k8s/lifecycle/cms.yml @@ -18,6 +18,18 @@ spec: timeoutSeconds: 3 periodSeconds: 1 failureThreshold: 30 + livenessProbe: + httpGet: + httpHeaders: + - name: Host + value: {{ LMS_HOST }} + path: /heartbeat + port: 8000 + initialDelaySeconds: 3 + timeoutSeconds: 30 + periodSeconds: 60 + failureThreshold: 2 + successThreshold: 1 terminationGracePeriodSeconds: 60 affinity: podAntiAffinity: diff --git a/drydock/templates/drydock/k8s/lifecycle/lms.yml b/drydock/templates/drydock/k8s/lifecycle/lms.yml index 5af73547..7e2cec12 100644 --- a/drydock/templates/drydock/k8s/lifecycle/lms.yml +++ b/drydock/templates/drydock/k8s/lifecycle/lms.yml @@ -18,6 +18,18 @@ spec: timeoutSeconds: 3 periodSeconds: 1 failureThreshold: 30 + livenessProbe: + httpGet: + httpHeaders: + - name: Host + value: {{ LMS_HOST }} + path: /heartbeat + port: 8000 + initialDelaySeconds: 3 + timeoutSeconds: 30 + periodSeconds: 60 + failureThreshold: 2 + successThreshold: 1 terminationGracePeriodSeconds: 60 affinity: podAntiAffinity: From dc52bed25d50c9fba97901913266a0467b20a1b3 Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Tue, 10 Sep 2024 09:44:05 -0500 Subject: [PATCH 11/16] fix: fail early on tracking logger removal --- drydock/patches/openedx-common-settings | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drydock/patches/openedx-common-settings b/drydock/patches/openedx-common-settings index be9525ee..f0effefe 100644 --- a/drydock/patches/openedx-common-settings +++ b/drydock/patches/openedx-common-settings @@ -19,5 +19,5 @@ XBLOCK_SETTINGS["ScormXBlock"] = { } {% endif %} -LOGGING.get("loggers", {}).pop("tracking") +LOGGING["loggers"].pop("tracking") LOGGING["loggers"][""]["handlers"] = ["console"] From 64bb8a684be94174fe1aea3aa6dfc1ea668579ec Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Tue, 10 Sep 2024 09:49:47 -0500 Subject: [PATCH 12/16] chore: remove rolling update options --- drydock/templates/drydock/k8s/lifecycle/cms.yml | 5 ----- drydock/templates/drydock/k8s/lifecycle/lms.yml | 5 ----- 2 files changed, 10 deletions(-) diff --git a/drydock/templates/drydock/k8s/lifecycle/cms.yml b/drydock/templates/drydock/k8s/lifecycle/cms.yml index ae569d19..a7b3c945 100644 --- a/drydock/templates/drydock/k8s/lifecycle/cms.yml +++ b/drydock/templates/drydock/k8s/lifecycle/cms.yml @@ -40,8 +40,3 @@ spec: matchLabels: app.kubernetes.io/name: cms topologyKey: kubernetes.io/hostname - strategy: - type: RollingUpdate - rollingUpdate: - maxUnavailable: 0 - maxSurge: 2 diff --git a/drydock/templates/drydock/k8s/lifecycle/lms.yml b/drydock/templates/drydock/k8s/lifecycle/lms.yml index 7e2cec12..8fec301b 100644 --- a/drydock/templates/drydock/k8s/lifecycle/lms.yml +++ b/drydock/templates/drydock/k8s/lifecycle/lms.yml @@ -40,8 +40,3 @@ spec: matchLabels: app.kubernetes.io/name: lms topologyKey: kubernetes.io/hostname - strategy: - type: RollingUpdate - rollingUpdate: - maxUnavailable: 0 - maxSurge: 2 From 514b0f1f0ad72b3ae3e80620153fd80212090e6b Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Tue, 10 Sep 2024 09:52:27 -0500 Subject: [PATCH 13/16] fix: restore preStop hook --- drydock/templates/drydock/k8s/lifecycle/cms.yml | 6 ++++++ drydock/templates/drydock/k8s/lifecycle/lms.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/drydock/templates/drydock/k8s/lifecycle/cms.yml b/drydock/templates/drydock/k8s/lifecycle/cms.yml index a7b3c945..71d4418c 100644 --- a/drydock/templates/drydock/k8s/lifecycle/cms.yml +++ b/drydock/templates/drydock/k8s/lifecycle/cms.yml @@ -7,6 +7,12 @@ spec: spec: containers: - name: cms + lifecycle: + preStop: + exec: + command: + - "sleep" + - "15" startupProbe: httpGet: httpHeaders: diff --git a/drydock/templates/drydock/k8s/lifecycle/lms.yml b/drydock/templates/drydock/k8s/lifecycle/lms.yml index 8fec301b..2c3f4ff4 100644 --- a/drydock/templates/drydock/k8s/lifecycle/lms.yml +++ b/drydock/templates/drydock/k8s/lifecycle/lms.yml @@ -7,6 +7,12 @@ spec: spec: containers: - name: lms + lifecycle: + preStop: + exec: + command: + - "sleep" + - "15" startupProbe: httpGet: httpHeaders: From 070ca3bc5e2e63b96942880c85fab25d94587461 Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Tue, 10 Sep 2024 12:36:52 -0500 Subject: [PATCH 14/16] fix: use right host for cms livenessProbe --- drydock/templates/drydock/k8s/lifecycle/cms.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drydock/templates/drydock/k8s/lifecycle/cms.yml b/drydock/templates/drydock/k8s/lifecycle/cms.yml index 71d4418c..c6417426 100644 --- a/drydock/templates/drydock/k8s/lifecycle/cms.yml +++ b/drydock/templates/drydock/k8s/lifecycle/cms.yml @@ -28,7 +28,7 @@ spec: httpGet: httpHeaders: - name: Host - value: {{ LMS_HOST }} + value: {{ CMS_HOST }} path: /heartbeat port: 8000 initialDelaySeconds: 3 From 2a3eb61c26314b9ff56eb24a6aa03e73d56a8cee Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Tue, 10 Sep 2024 13:34:27 -0500 Subject: [PATCH 15/16] fix: use lms/cms host only --- drydock/templates/drydock/k8s/lifecycle/cms.yml | 4 ++-- drydock/templates/drydock/k8s/lifecycle/lms.yml | 10 ++-------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/drydock/templates/drydock/k8s/lifecycle/cms.yml b/drydock/templates/drydock/k8s/lifecycle/cms.yml index c6417426..ee85f192 100644 --- a/drydock/templates/drydock/k8s/lifecycle/cms.yml +++ b/drydock/templates/drydock/k8s/lifecycle/cms.yml @@ -17,7 +17,7 @@ spec: httpGet: httpHeaders: - name: Host - value: {{ CMS_HOST }} + value: cms path: /heartbeat port: 8000 initialDelaySeconds: 1 @@ -28,7 +28,7 @@ spec: httpGet: httpHeaders: - name: Host - value: {{ CMS_HOST }} + value: lms path: /heartbeat port: 8000 initialDelaySeconds: 3 diff --git a/drydock/templates/drydock/k8s/lifecycle/lms.yml b/drydock/templates/drydock/k8s/lifecycle/lms.yml index 2c3f4ff4..04407e2f 100644 --- a/drydock/templates/drydock/k8s/lifecycle/lms.yml +++ b/drydock/templates/drydock/k8s/lifecycle/lms.yml @@ -7,17 +7,11 @@ spec: spec: containers: - name: lms - lifecycle: - preStop: - exec: - command: - - "sleep" - - "15" startupProbe: httpGet: httpHeaders: - name: Host - value: {{ LMS_HOST }} + value: lms path: /heartbeat port: 8000 initialDelaySeconds: 1 @@ -28,7 +22,7 @@ spec: httpGet: httpHeaders: - name: Host - value: {{ LMS_HOST }} + value: lms path: /heartbeat port: 8000 initialDelaySeconds: 3 From 8b244fe96f015f443989461dfb6aa8d371eb39ea Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Tue, 10 Sep 2024 15:19:07 -0500 Subject: [PATCH 16/16] chore: restore prestopHook --- drydock/templates/drydock/k8s/lifecycle/lms.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drydock/templates/drydock/k8s/lifecycle/lms.yml b/drydock/templates/drydock/k8s/lifecycle/lms.yml index 04407e2f..85895e7c 100644 --- a/drydock/templates/drydock/k8s/lifecycle/lms.yml +++ b/drydock/templates/drydock/k8s/lifecycle/lms.yml @@ -7,6 +7,12 @@ spec: spec: containers: - name: lms + lifecycle: + preStop: + exec: + command: + - "sleep" + - "15" startupProbe: httpGet: httpHeaders: