💻 Tech
Init containers are containers defined under initContainers that are completed first before the containers defined in containers. They are usually used to perform one-time processes like setting up services. That said, non-init containers will be in pending state until the init containers are completed.
apiVersion: v1
kind: Pod
...
spec:
containers:
- name: app
image: busybox
command: ['sleep', '3000']
initContainers:
- name: init
image: busybox
command: ['sleep', '3000']