[INFRA-434] - Add OpenSearch reindex Job component to Phoenix overlay#38
Open
akshat5302 wants to merge 1 commit into
Open
[INFRA-434] - Add OpenSearch reindex Job component to Phoenix overlay#38akshat5302 wants to merge 1 commit into
akshat5302 wants to merge 1 commit into
Conversation
…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.
|
Linked to Plane Work Item(s) This comment was auto-generated by Plane |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a one-off Kubernetes Job that rebuilds the OpenSearch document index by running:
Implemented as a new kustomize Component (
opensearch-index-job), mirroring the existing migrator job pattern. Replicates makeplane/internal-scripts#44 in this repo.Details
kustomize/components/opensearch-index-job/(job.yaml+kustomization.yaml).makeplane/backend-commercial(the API image); tag driven byAPP_VERSIONvia the overlay replacement (thekind: Jobtarget), like the migrator.envFromas the API deployment —plane-app-vars,plane-app-secrets,plane-doc-store-secrets,plane-opensearch-secrets,plane-silo-secrets.2 CPU / 4Gi, limits4 CPU / 8Gi.nonroot-security-contextandcustom-cain the Phoenix overlay so the Job receives the security-context and CA init-container patches like every other workload.Verification
kubectl kustomizeon the Phoenix overlay builds cleanly and rendersplane-opensearch-indexwith 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
--forcereindex. Re-comment / remove the component once the reindex is done. Use therun-timestampannotation to force a re-run while it is still enabled.