Skip to content

Latest commit

 

History

History
89 lines (55 loc) · 2.24 KB

File metadata and controls

89 lines (55 loc) · 2.24 KB

Minikube Django Application

This project demonstrates how to deploy a Django web application on Minikube, a tool that enables you to run Kubernetes locally. The web application is built using Django, a high-level Python web framework.

Prerequisites

Before you begin, ensure you have the following prerequisites installed on your local machine:

Installation

  1. Clone this repository to your local machine:

    git clone https://github.com/sohitdeveloper/minikube-python-app.git
  2. Navigate to the project directory:

    cd minikube-python-app
  3. Install the required Python packages:

    pip install -r requirements.txt

Usage

To run the Django web application locally, use the following command:

python manage.py runserver

This will start the Django development server, and you can access the web application by visiting http://localhost:8000 in your web browser.

Deployment on Minikube

To deploy the Django application on Minikube, follow these steps:

  1. Start Minikube:

    minikube start
  2. Build the Docker image:

    docker build -t minikube-django-app .
  3. Apply the Kubernetes manifests:

    kubectl apply -f deployment.yml
    kubectl apply -f service.yml
  4. Access the deployed application:

    minikube service minikube-django-app-service
  5. Docker image URL - pick V1

This will open the Django web application in your default web browser.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or create a pull request.

License

This project is licensed under the MIT License.


Make sure to replace minikube-django-app, deployment.yml, and service.yml with your actual project name and Kubernetes YAML file names. If you have any further questions or need additional assistance, feel free to ask!