Question:
1. Create a Deployment named as ic-deploy-devops.
2. Configure spec as replicas should be 1, labels app should be ic-devops, template's metadata lables app should be the same ic-devops.
3. The initContainers should be named as ic-msg-devops, use image centos, preferably with latest tag and use command '/bin/bash', '-c' and 'echo Init Done - Welcome to xFusionCorp Industries > /ic/ecommerce'. The volume mount should be named as ic-volume-devops and mount path should be /ic.
4. Main container should be named as ic-main-devops, use image centos, preferably with latest tag and use command '/bin/bash', '-c' and 'while true; do cat /ic/ecommerce; sleep 5; done'. The volume mount should be named as ic-volume-devops and mount path should be /ic.
5. Volume to be named as ic-volume-devops and it should be an emptyDir type.
# first we need to create a configuration YAML file based on the given details in the question.
check the below video too for how to do this task (i have done a sample task on Ubuntu OS)
LIKE, SUBSCRIBE my channel and stay tuned for more videos
Article is very useful, checkout this link also
ReplyDeleteDevOps Interview Questions with Answers
Docker Interview Questions with Answers
Git Interview Questions with Answers
It's really good article.Thanks for sharing!
ReplyDeleteDevOps Training
DevOps Online Training