Complete DevOps Foundation Tutorials for Linux Admins
A step-by-step DevOps foundation guide covering Git, GitHub, Ansible, Jenkins, Docker, Kubernetes, and AWS basics tailored for Linux administrators.
1. Git and GitHub
Git is the most widely used version-control system. As a Linux Admin/DevOps engineer, you must know Git to manage scripts, automation code, infra-as-code, CI/CD pipelines, etc.
Install Git
RHEL/CentOS
Ubuntu
Configure Git
Basic Git Commands
Initialize a repo
Clone a repo
Check file status
Add files
Commit changes
Push to GitHub
Pull changes
Git Branching
Merge Branch
2. Ansible
Ansible is an automation tool used for configuration management, patching, deployments, and orchestration.
Install Ansible (RHEL)
Inventory File Example (/etc/ansible/hosts)
Test Connection
Run a Command on All Servers
Simple Playbook Example
playbook.yml
Run:
3. Jenkins Basics
Jenkins is a CI/CD automation tool widely used to automate deployments and build pipelines.
Install Jenkins (RHEL/CentOS)
Access UI
Basic Jenkins Concepts
| TermMeaning | |
| Job/Project | The task Jenkins executes |
| Pipeline | Scripted/Declarative automated flow |
| Build | Running the job |
| Workspace | Directory where Jenkins runs builds |
Create First Freestyle Job
Steps:
- New Item
- Freestyle Project
- Add Build Step → Execute shell
- Example:
- Save → Build Now
Simple Jenkins Pipeline Example
4. Docker
Docker allows you to run applications in lightweight containers.
Install Docker
Basic Commands
Pull Image
Run Container
List Containers
Stop Container
Remove Container
Build Docker Image
Create Dockerfile:
Build:
Run:
5. Kubernetes Fundamentals
Kubernetes (K8s) manages containerized applications.
Key Components
| ComponentDescription | |
| Pod | Smallest unit in Kubernetes |
| Node | Worker machine |
| Deployment | Controller for pods |
| Service | Access pods internally/externally |
| Namespace | Logical separation |
Install Kubernetes (Minikube)
Check Cluster Status
Create Deployment
Expose Deployment
Check Services
Scale Application
6. AWS Basics (EC2, VPC, IAM, S3)
AWS is the #1 cloud platform used by DevOps engineers.
EC2 (Linux server creation)
Launch EC2
Steps:
- Choose AMI (Amazon Linux / Ubuntu)
- Choose instance type (t2.micro)
- Configure VPC, subnet
- Add storage
- Add security group
- Launch with key pair
Connect to EC2
VPC (Virtual Private Cloud)
Key Components:
- VPC (Network)
- Subnets (Public/Private)
- Route tables
- Internet gateway
- NAT gateway
Create VPC (Basic)
- /16 network
- Create public subnet
- Associate route table
IAM (Identity & Access Management)
Create IAM User
- Go to IAM
- Add user
- Attach policy: AdministratorAccess or least privilege
Generate Access Keys
Used in CLI:
S3 (Object Storage)
Create Bucket
AWS Console → S3 → Create Bucket