From 3eca9d3a5fa11e90cf805ffd539dcf0f1d0dfae6 Mon Sep 17 00:00:00 2001 From: Scott Davidson <49713135+sd109@users.noreply.github.com> Date: Thu, 24 Jul 2025 02:30:31 +0100 Subject: [PATCH] Fix OpenSearch liveness probe (#9012) ### What problem does this PR solve? Fix Kubernetes liveness probe on the OpenSearch container. The previous HTTP probe received an 401 response from the OpenSearch API which treated as a failure and caused the container to be restarted every 20 minutes. ### Type of change - [X] Bug Fix (non-breaking change which fixes an issue) --- helm/templates/opensearch.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/helm/templates/opensearch.yaml b/helm/templates/opensearch.yaml index 889a634b7..cb721e097 100644 --- a/helm/templates/opensearch.yaml +++ b/helm/templates/opensearch.yaml @@ -85,13 +85,14 @@ spec: runAsUser: 1000 allowPrivilegeEscalation: false livenessProbe: - httpGet: - path: / - port: 9201 + exec: + command: + - sh + - -c + - curl -u admin:$OPENSEARCH_PASSWORD localhost:9201 initialDelaySeconds: 30 periodSeconds: 10 - timeoutSeconds: 10 - failureThreshold: 120 + failureThreshold: 6 volumes: - name: opensearch-data persistentVolumeClaim: