Skip to content

[INFRA-434] - Add OpenSearch reindex Job component to Phoenix overlay#38

Open
akshat5302 wants to merge 1 commit into
mainfrom
add-opensearch-index-job
Open

[INFRA-434] - Add OpenSearch reindex Job component to Phoenix overlay#38
akshat5302 wants to merge 1 commit into
mainfrom
add-opensearch-index-job

Conversation

@akshat5302

Copy link
Copy Markdown
Member

What

Adds a one-off Kubernetes Job that rebuilds the OpenSearch document index by running:

python manage.py manage_search_index document index --force --parallel

Implemented as a new kustomize Component (opensearch-index-job), mirroring the existing migrator job pattern. Replicates makeplane/internal-scripts#44 in this repo.

Details

  • Component: kustomize/components/opensearch-index-job/ (job.yaml + kustomization.yaml).
  • Image: makeplane/backend-commercial (the API image); tag driven by APP_VERSION via the overlay replacement (the kind: Job target), like the migrator.
  • Env: same envFrom as the API deployment — plane-app-vars, plane-app-secrets, plane-doc-store-secrets, plane-opensearch-secrets, plane-silo-secrets.
  • Resources: requests 2 CPU / 4Gi, limits 4 CPU / 8Gi.
  • Ordering: referenced before nonroot-security-context and custom-ca in the Phoenix overlay so the Job receives the security-context and CA init-container patches like every other workload.
  • Enabled (uncommented) in the Phoenix overlay for this reindex run.

Verification

kubectl kustomize on the Phoenix overlay builds cleanly and renders plane-opensearch-index with the correct command, envFrom, resources, APP_VERSION-driven image, and the injected CA init container + non-root security context.

Note on lifecycle

After the reindex completes (the Job is TTL-cleaned after 2h), the manifest still lives in the release — a later deploy would re-create it and re-fire a --force reindex. Re-comment / remove the component once the reindex is done. Use the run-timestamp annotation to force a re-run while it is still enabled.

…erlay

Mirrors makeplane/internal-scripts#44: a one-off Job that rebuilds the
OpenSearch document index (manage_search_index document index --force
--parallel) on the backend-commercial image, referenced before
nonroot-security-context and custom-ca so it receives their patches.
@makeplane

makeplane Bot commented Jul 8, 2026

Copy link
Copy Markdown

Linked to Plane Work Item(s)

This comment was auto-generated by Plane

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant