Skip to content

rajasamugam/devops-workflow-guide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

devops-workflow-guide Docker & Kubernetes — Step-by-Step Explanation

                                           **Overview**

📂 Repository Contents File Description Dockerfile Defines the container image for the sample application appAuto.yaml Kubernetes manifest for deploying the pod devops-workflow-guide.docx Full step‑by‑step explanation of all tasks README.md Project overview and instructions 🧪 Practice Tasks Included This workflow is divided into four core tasks, each representing a real DevOps activity.

Task 1 — Build & Push Docker Image You will:

Build a Docker image from the provided Dockerfile

Tag it with a version

Push it to your Docker Hub repository

Commands bash docker login docker build -t /myapp:v1 . docker push /myapp:v1 Task 2 — Create Namespace & Deploy Pod You will:

Create a dedicated Kubernetes namespace

Deploy a pod using appAuto.yaml

Commands bash kubectl create ns devproject kubectl apply -f appAuto.yaml -n devproject Task 3 — Verify Pod Status You will:

Check if the pod is running

Inspect pod details, events, and configuration

Commands bash kubectl get pod -n devproject kubectl describe pod myapp-pod -n devproject Task 4 — Access Application via Port‑Forward You will:

Forward a local port to the pod

Access the application in your browser

Command bash kubectl port-forward pod/myapp-pod 8080:80 -n devproject Then open:

Code http://localhost:8080

About

Docker & Kubernetes — Step-by-Step Explanation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors