Kubernetes manifests · Workloads
Run setup before the app starts
Run a container to completion before the main containers start.
initContainers:
- name: wait-for-db
image: busybox:1.36
command: ["sh", "-c", "until nc -z db 5432; do sleep 2; done"]
Official Kubernetes manifests documentation