This project demonstrates a Python-based automation system for deploying containerized applications on Kubernetes using Kind (Kubernetes in Docker) and Docker Hub as an image registry. It reflects real-world DevOps workflows with CI/CD-ready architecture.
- ✅ Automated Kubernetes deployment using Python
- 🔄 Auto-healing mechanism for failed pods
- 📊 Pod monitoring via script
- 🐳 Docker image build & push to Docker Hub
- ☸️ Deployment on Kind Kubernetes cluster
- 📦 Scalable architecture using replicas
- Programming: Python, Node.js
- Containerization: Docker
- Registry: Docker Hub
- Orchestration: Kubernetes (Kind)
- Automation: Python
k8s-python-automation/
│
├── app/
├── k8s/
│ ├── deployment.yaml
│ ├── service.yaml
│
├── Dockerfile
├── deploy.py
├── requirements.txt
└── README.md
- Application is containerized using Docker
- Image is pushed to Docker Hub
- Kubernetes (Kind) pulls image from Docker Hub
- Python script deploys application using YAML
- Script monitors and auto-heals pods
- Docker installed
- Docker Hub account
- Kind installed
- kubectl configured
- Python installed
git clone https://github.com/your-username/k8s-python-automation.git
cd k8s-python-automationdocker build -t nodejsonapp/devops-app:latest .
docker push nodejsonapp/devops-app:latestkind create cluster --name devops-clusterpython deploy.pykubectl port-forward service/devops-service 8080:80Open:
http://localhost:8080
- Ensure Docker image is pushed before deployment
- Use
imagePullPolicy: Always - Internet required for pulling image
- Docker image lifecycle (build → push → pull)
- Kubernetes deployment using external registry
- DevOps automation using Python
- Local cluster management using Kind
Aijaz Ahmed DevOps Engineer 🔗 https://github.com/Aijazkhan123