Skip to content

Commit c1feea7

Browse files
author
Tim Bannister
committed
Update init containers concept to link to new API reference
1 parent a54e81e commit c1feea7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

content/en/docs/concepts/workloads/pods/init-containers.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ If a Pod's init container fails, the kubelet repeatedly restarts that init conta
3232
However, if the Pod has a `restartPolicy` of Never, and an init container fails during startup of that Pod, Kubernetes treats the overall Pod as failed.
3333

3434
To specify an init container for a Pod, add the `initContainers` field into
35-
the Pod specification, as an array of objects of type
36-
[Container](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#container-v1-core),
37-
alongside the app `containers` array.
35+
the [Pod specification](/docs/reference/kubernetes-api/workload-resources/pod-v1/#PodSpec),
36+
as an array of `container` items (similar to the app `containers` field and its contents).
37+
See [Container](/docs/reference/kubernetes-api/workload-resources/pod-v1/#Container) in the
38+
API reference for more details.
39+
3840
The status of the init containers is returned in `.status.initContainerStatuses`
3941
field as an array of the container statuses (similar to the `.status.containerStatuses`
4042
field).

0 commit comments

Comments
 (0)