OpenShift Init Container: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 8: Line 8:
* [[Kubernetes Init Containers]]
* [[Kubernetes Init Containers]]


=Life Cycle=
=Overview=


{{External|https://kubernetes.io/docs/concepts/workloads/pods/init-containers/#detailed-behavior}}
{{Internal|Kubernetes Init Containers|Kubernetes Init Containers}}
 
=Timeout=
 
An init container must finish initializing within ... otherwise it puts the deployment into an error state:
 
NAME        READY    STATUS    RESTARTS  AGE
a-1-deploy  0/1      Error    0          13m
 
=Resources=
 
{{External|https://kubernetes.io/docs/concepts/workloads/pods/init-containers/#resources}}
 
=Troubleshooting Init Containers=
 
The logs of init containers can be accessed by identifying the name of the init container with:
 
oc describe po/a-1-0g52b
...
Init Containers:
  b-dependency-checker:
  ...
 
and then getting the logs from that specific container:
 
oc logs -f -c b-dependency-checker po/a-1-0g52b
 
=Application Dependency Example=
 
{{External|https://github.com/NovaOrdis/playground/tree/master/openshift/applications/service-dependency}}
 
<font color=red>TODO: write a step-by-step article.</font>

Latest revision as of 02:04, 19 September 2019