mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
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)
This commit is contained in:
@ -85,13 +85,14 @@ spec:
|
|||||||
runAsUser: 1000
|
runAsUser: 1000
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
exec:
|
||||||
path: /
|
command:
|
||||||
port: 9201
|
- sh
|
||||||
|
- -c
|
||||||
|
- curl -u admin:$OPENSEARCH_PASSWORD localhost:9201
|
||||||
initialDelaySeconds: 30
|
initialDelaySeconds: 30
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
timeoutSeconds: 10
|
failureThreshold: 6
|
||||||
failureThreshold: 120
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: opensearch-data
|
- name: opensearch-data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
|
|||||||
Reference in New Issue
Block a user