This repository contains a Kubernetes DevOps project that demonstrates how to deploy a Django application using Kubernetes.

Before you begin, ensure that you have the following prerequisites installed:
- Docker: https://docs.docker.com/get-docker/
- Kubernetes: https://kubernetes.io/docs/setup/
To get started with this project, follow the steps below:
-
Clone the repository:
git clone https://github.com/Ab-D-ev/kubernetes-devops-project.git
-
Change into the project directory:
cd kubernetes-devops-project -
Build the Docker image:
docker build -t django-app . -
Deploy the Django application to Kubernetes:
kubectl apply -f kubernetes
-
Monitor the deployment:
kubectl get pods
Once the pods are running, you can access the Django application by using the exposed service.
The repository has the following structure:
django-app/: Contains the Django application source code.kubernetes/: Contains the Kubernetes deployment configuration files.
The configuration files for Kubernetes deployment are located in the kubernetes/ directory. Modify these files according to your requirements.
deployment.yaml: Defines the Kubernetes Deployment for the Django application.service.yaml: Defines the Kubernetes Service for the Django application.
Contributions to this project are welcome. If you find any issues or want to add new features, please open an issue or submit a pull request.
This project is licensed under the MIT License.