https://pulumi.com logo
#kubernetes
Title
# kubernetes
p

prehistoric-account-60014

05/29/2020, 4:33 PM
Is the recommended way of managing migrations with Kubernetes still
initContainers
? Would something like https://github.com/pulumi/pulumi-kubernetes/pull/633 help with waiting for a migration
Job
to finish before deploying other resources?
g

gorgeous-egg-16927

05/29/2020, 5:29 PM
Yeah, I’ve seen it done both ways. The Job resource will wait until it has run to completion, so that can be a good option if you don’t want to use
initContainers
.
p

prehistoric-account-60014

05/29/2020, 5:29 PM
Great! Thanks 🙂
g

gorgeous-egg-16927

05/29/2020, 5:30 PM
The API docs have more detailed info on the await behavior of each k8s resource: https://www.pulumi.com/docs/reference/pkg/kubernetes/batch/v1/job/
👍 1
4 Views