Skip to content
Discussion options

You must be logged in to vote

I put this on stackoverflow:

I understand that you want to deploy your pod so that it runs the migration at startup, keeps the pod alive while the migration is running, but does not make it available for consumption until the process is complete, meaning Kubernetes won't send traffic to it.

First of all, I want to let you know that in the next major version of Mongock there will be a feature specifically designed to handle long migrations. However, since this feature is not currently available, I suggest using the following approach.

The key idea here is to use the two main Kubernetes probes (liveness and readiness) to control the pod’s state. You can set up the readiness probe to return …

Replies: 0 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@vallishk
Comment options

@dieppa
Comment options

Comment options

You must be logged in to vote
1 reply
@dieppa
Comment options

Answer selected by dieppa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants