community
community copied to clipboard
I want to create a job which depend on postgres pod and other pods should start after job gets done
Created a job were I have define
initContainers: - name: wait-for-postgres image: busybox:1.28 command: ['sh', '-c', 'until nslookup postgres-service; do echo waiting for postgres-service; sleep 2; done']
and also use ttlSecondsAfterFinished: 60
to delete job but what other container should run afterword's,
How can I do this? Thanks