Skip to main content

Command Palette

Search for a command to run...

DevOps Simplified for Cloud Newbies!

Published
2 min read
  • Each section focuses on one tool.

  • Clean, visual highlights of terminologies, commands, file structure, and a simple file syntax example for Jenkins, Docker, Kubernetes, Terraform, and Ansible.

I’ve also added Kubernetes and Ansible sample deployment files with syntax explanations.


DevOps Essentials – Simplified for Cloud Newbies

Master Jenkins, Docker, Kubernetes, Terraform & Ansible
With key terms, commands, file structure & file syntax

#DevOps #CloudNewbies #100DaysOfCloud


Jenkins – Automate Everything

Key Terms: Pipeline, Agent, Jenkinsfile
Commands:

  • java -jar jenkins.war

  • jenkins --version

  • curl -X POST http://<jenkins_url>/job/<job_name>/build

File Structure:

  • Jenkinsfile (project root)

  • .jenkins/, workspace/, jobs/

Sample Jenkinsfile:

pipeline {
  agent any
  stages {
    stage('Build') { steps { echo 'Build...' } }
    stage('Test')  { steps { echo 'Test...' } }
    stage('Deploy'){ steps { echo 'Deploy...' } }
  }
}

Docker – Build. Ship. Run.

Key Terms: Image, Container, Dockerfile
Commands:

  • docker build -t app .

  • docker run -p 8080:80 app

  • docker ps, docker exec

File Structure:

  • Dockerfile, docker-compose.yml

Sample Dockerfile:

FROM node:14  
WORKDIR /app  
COPY . .  
RUN npm install  
CMD ["node", "index.js"]

Kubernetes – Container Orchestration

Key Terms: Pod, Deployment, Service, ConfigMap
Commands:

  • kubectl apply -f deploy.yaml

  • kubectl get pods

  • kubectl logs <pod>

File Structure:

  • k8s/ folder: deployment.yaml, service.yaml

Sample deployment.yaml:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: web-app
spec:
  replicas: 2
  selector:
    matchLabels:
      app: web
  template:
    metadata:
      labels:
        app: web
    spec:
      containers:
      - name: nginx
        image: nginx:latest
        ports:
        - containerPort: 80

Terraform – IaC Power Tool

Key Terms: Provider, Resource, State File
Commands:

  • terraform init, plan, apply, destroy

File Structure:

Sample main.tf:

provider "aws" {
  region = "us-east-1"
}

resource "aws_instance" "web" {
  ami           = "ami-0c55b159cbfafe1f0"
  instance_type = "t2.micro"
}

Ansible – Agentless Automation

Key Terms: Playbook, Inventory, Roles
Commands:

  • ansible all -m ping -i inventory

  • ansible-playbook playbook.yml

File Structure:

  • inventory, playbook.yml, roles/

Sample playbook.yml:

- name: Install & Start Apache
  hosts: webservers
  become: true
  tasks:
    - name: Install Apache
      apt:
        name: apache2
        state: present

    - name: Start Apache
      service:
        name: apache2
        state: started
        enabled: true

Final Thoughts

Keep It Simple. Learn It Right. Build With Confidence.
Drop a comment if you want a deep-dive series on any of these tools!

#CloudComputing #DevOpsCareers #TechSimplified #TheCloudJourneyHQ