Kubernetes with Python

This project demonstrates how to work with Kubernetes using Python.

Prerequisites

  • Python 3.12+
  • pip (Python package installer)

Installation

  1. Create a virtual environment:
python3 -m venv venv
  1. Activate the virtual environment:
source venv/bin/activate
  1. Install the dependencies:
pip3 install -r requirements.txt
  1. Run the application:
python -m uvicorn app.main:app --reload

The application will be available at http://localhost:8000

API Documentation

Once the application is running, you can access:

  • Interactive API documentation (Swagger UI): http://localhost:8000/docs
  • Alternative API documentation (ReDoc): http://localhost:8000/redoc

Deactivating the Virtual Environment

When you're done working on the project, you can deactivate the virtual environment:

deactivate