initContainer and Jobs¶
You can add an initContainer
and an job
. By default, the initContainer waits that the job has completed. After the job has completed, the initContainer will stop (exit code 0) and the container/sidecar will start.
If your
job
andcontainer
uses the same image you can leave thecharts.job.image
value empty.
initContainer:
enabled: true
job:
enabled: false