How to Read This Course
Hello friends! I am Ravindra Bagale. This DevOps course is my classroom on the website. I speak here the same way I speak in class: technical words stay in English, and the tip boxes have English, Marathi and Hindi tabs. English is selected by default. Read Why, then What, then How. Type every command yourself.
नमस्कार मित्रांनो! मी रविंद्र बागले. हा DevOps course म्हणजे माझा class – फक्त website वर. मी जसा class मध्ये बोलतो, तसाच इथे: technical गोष्टी English मध्ये, आणि tip boxes मध्ये English, मराठी आणि हिंदी tabs. English default selected असतो. Why, नंतर What, नंतर How वाचा. प्रत्येक command स्वतः टाइप करा.
नमस्कार दोस्तों! मैं रविंद्र बागले हूँ. यह DevOps course मेरी class है – बस website पर. मैं जैसे class में बोलता हूँ, वैसे ही यहाँ: technical बातें English में, और tip boxes में English, मराठी और हिंदी tabs. English default selected रहता है. Why, फिर What, फिर How पढ़िए. हर command खुद टाइप कीजिए।
What you will learn in this chapter
- Why DevOps sits beside the AWS course
- What you need on your laptop and in the cloud
- Course map and lab safety rules
- Why → What → How reading pattern
- How tip, Lab and recap boxes work here
Concepts in this chapter
- 0.1Why DevOps after (or beside) AWS
- 0.2What you need before Chapter 1
- 0.3Course map (where you are going)
- 0.4How each chapter is written
- 0.5Conventions: Why → What → How
- 0.6Lab safety checklist
The chapter recap is at the end of the last concept page.
Practice Tasks
Suppose we are on the DevOps team at Tata Consultancy Services, the IT consulting company, working from Mumbai. Priya Iyer leads the team, and we look after the HR leave portal. Costs are counted in INR. In the tasks below we do real DevOps jobs on this project using what this lesson teaches. Tata Consultancy Services is a real company, but this project, the people, servers, IP addresses and numbers are made up for practice.
0 / 12
Easy Name the practice
Why: Knowing the names helps you in interviews and design talks.
What to do: At Tata Consultancy Services every developer merges small changes into main several times a day, and each merge is built and tested automatically. What is this practice called (two-letter short form)?
- Write down the facts or numbers the task gives you.
- Work it out step by step.
- Type only the final answer (one word or number) in the box.
- Click Check answer.
Easy List all files with details
Why: Hidden files (like .env) and file sizes or owners only show with the right options.
What to do: Show a long listing of every file, including hidden ones, in /var/www/tcs.
- Find the Linux command that does this job.
- Add the options (like -r or -h) the task needs.
- Add the file names, folders or users in the right order.
- Click Check answer.
Easy Which port does the user hit?
Why: Mixing host and container ports is the most common docker mistake.
What to do: A container was started with -p 8443:3000. Which port do you open in the browser on the host?
- Write down the facts or numbers the task gives you.
- Work it out step by step.
- Type only the final answer (one word or number) in the box.
- Click Check answer.
Easy Stage every change
Why: Before the first commit you usually want every new file included.
What to do: Stage every new and changed file in the current folder and below.
- Read the task and pick the tool it needs (git, docker, kubectl, terraform, ansible...).
- Write the tool name, then the sub-command (the action word).
- Add the flags the task needs, each followed by its value.
- Add names, files or paths at the end, then click Check answer.
Easy Stage one file
Why: Only staged changes go into the next commit.
What to do: Stage only the file Dockerfile for the next commit.
- Read the task and pick the tool it needs (git, docker, kubectl, terraform, ansible...).
- Write the tool name, then the sub-command (the action word).
- Add the flags the task needs, each followed by its value.
- Add names, files or paths at the end, then click Check answer.
Easy Clone a repository
Why: Cloning gives you the full project and its history on your machine.
What to do: Download the repository https://github.com/tcs/tcs-hr-leave.git to this machine.
- Read the task and pick the tool it needs (git, docker, kubectl, terraform, ansible...).
- Write the tool name, then the sub-command (the action word).
- Add the flags the task needs, each followed by its value.
- Add names, files or paths at the end, then click Check answer.
Easy Commit with a message
Why: A clear message tells the team why the change was made.
What to do: Commit the staged changes with the message "Add health check to hr-leave".
- Read the task and pick the tool it needs (git, docker, kubectl, terraform, ansible...).
- Write the tool name, then the sub-command (the action word).
- Add the flags the task needs, each followed by its value.
- Add names, files or paths at the end, then click Check answer.
Medium Delivery or deployment?
Why: The two words mean different levels of automation.
What to do: At Tata Consultancy Services every change that passes tests goes to production automatically, with no human approval. Is this continuous delivery or continuous deployment? Type one word.
- Write down the facts or numbers the task gives you.
- Work it out step by step.
- Type only the final answer (one word or number) in the box.
- Click Check answer.
Medium Run the build inside a Docker agent
Why: A Docker agent gives a clean, versioned toolchain for every build.
What to do: Declarative pipeline with agent docker { image 'maven:3.9-eclipse-temurin-21' } and stage Build running sh 'mvn -B verify'.
- Start with pipeline { and close it with } at the end.
- Add agent, then stages { } with one stage('Name') { steps { } } per step.
- Put the commands inside steps using sh '...'.
- Count your { and } so every block is closed, then click Check answer.
Hard Name the approach
Why: GitOps tools like Argo CD are now common in K8s teams.
What to do: At Tata Consultancy Services a tool inside the cluster keeps pulling manifests from a Git repo and makes the cluster match it. What is this approach called (one word)?
- Write down the facts or numbers the task gives you.
- Work it out step by step.
- Type only the final answer (one word or number) in the box.
- Click Check answer.
Hard Build and push an image from CI
Why: Every merge to main gives a fresh image in the registry.
What to do: Workflow on push to main. Job image on ubuntu-latest. Steps: actions/checkout@v4; docker/login-action@v3 with registry ghcr.io, username ${{ github.actor }}, password ${{ secrets.GITHUB_TOKEN }}; docker/build-push-action@v6 with push true and tags ghcr.io/tcs-hr-leave:${{ github.sha }}.
- Start from the top-level keys the task names.
- Indent child keys with 2 spaces (no tabs).
- Use "- " for list items and fill each value from the task.
- Check the colons and spacing, then click Check answer.
Hard Use Jenkins credentials safely
Why: withCredentials masks the password and removes it after the block.
What to do: Inside stage Push steps, use withCredentials with usernamePassword(credentialsId: 'reg-cred', usernameVariable: 'U', passwordVariable: 'P') and run sh 'echo $P | docker login -u $U --password-stdin registry.tcs.example.com'. Wrap it in a full declarative pipeline with agent any.
- Start with pipeline { and close it with } at the end.
- Add agent, then stages { } with one stage('Name') { steps { } } per step.
- Put the commands inside steps using sh '...'.
- Count your { and } so every block is closed, then click Check answer.