github.com/inspektor-gadget/inspektor-gadget@v0.28.1/docs/examples/init-containers.yaml (about)

     1  ---
     2  apiVersion: v1
     3  kind: Namespace
     4  metadata:
     5    name: init-containers
     6  ---
     7  apiVersion: v1
     8  kind: Pod
     9  metadata:
    10    name: test-pod
    11    namespace: init-containers
    12  spec:
    13    containers:
    14    - name: test-container
    15      image: busybox
    16      resources:
    17        limits:
    18          memory: "128Mi"
    19      command: ["sleep", "5m"]
    20    initContainers:
    21    - name: init-one
    22      image: busybox
    23      command: ["sleep", "1m"]
    24    - name: init-two
    25      image: busybox
    26      command: ["sleep", "1m"]