kubernetes Job dependency
# 🌱|help-and-getting-started
k
anyone doing anything with k8s Jobs in garden? specifically I'm trying to deploy a Job, and then have further services depend on that Job and not deploy until it's completed. unfortunately it looks like garden just waits for the Job to be deployed successfully and then immediately moves on to deploying the services that depend on it.
m
You may want to use a task instead
k
good call, I wasn't even thinking about tasks since I currently only use local exec tasks
however I've run into an issue, it looks like the pod the task spins up to run the task doesn't run the initContainer
q
Hmm, what are you targeting in your task resource? https://docs.garden.io/reference/module-types/kubernetes#tasks-.resource
2 Views