logging: force opensearch replicas to 0

This commit is contained in:
Brad Stein 2026-01-09 18:17:02 -03:00
parent ecf28580b9
commit b40a995225

View File

@ -2,7 +2,7 @@
apiVersion: batch/v1 apiVersion: batch/v1
kind: Job kind: Job
metadata: metadata:
name: opensearch-ism-setup-3 name: opensearch-ism-setup-4
namespace: logging namespace: logging
spec: spec:
backoffLimit: 3 backoffLimit: 3
@ -57,3 +57,7 @@ spec:
curl -sS -X PUT "${OS_URL}/_index_template/journald-logs" \ curl -sS -X PUT "${OS_URL}/_index_template/journald-logs" \
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \
-d "${journal_template}" >/dev/null -d "${journal_template}" >/dev/null
curl -sS -X PUT "${OS_URL}/_all/_settings" \
-H 'Content-Type: application/json' \
-d '{"index":{"number_of_replicas":0}}' >/dev/null