Home Business Analyst BA Agile Coach Init Containers-Kubernetes Certification- Crack the CKA with WeMakeDevOps

Init Containers-Kubernetes Certification- Crack the CKA with WeMakeDevOps

11
0



init containers: which run before the main containers get started in the same POD.
1) Init containers always run to completion.
2) Each init container must complete successfully before the next one starts.

https://kubernetes.io/docs/concepts/workloads/pods/init-containers/

###################################################################
Problem Statement: Add a init container in given pod manifest file.
Condition: Pod status should be running and do not delete any existing configuration
Twist:
/work/sharedfile.txt should exist in mount Volume

Solution:
1) Need to Add init container as per the task
2) Init Container will create this file (/work/sharedfile.txt) in the same mount Volume before to start main container in the same POD.

source

Previous articleInterview with a Postdoc, Junior Python Developer in 2022
Next articleApache Kafka® 101: ksqlDB

LEAVE A REPLY

Please enter your comment!
Please enter your name here