Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
K3sup | 5,455 | 2 | 11 days ago | 21 | April 13, 2021 | 12 | other | Go | ||
bootstrap K3s over SSH in < 60s 🚀 | ||||||||||
Guide | 5,441 | 4 days ago | 9 | mit | ||||||
Kubernetes clusters for the hobbyist. | ||||||||||
Porter | 3,923 | 3 days ago | 360 | August 10, 2023 | 106 | other | Go | |||
Kubernetes powered PaaS that runs in your own cloud. | ||||||||||
Komiser | 3,530 | 13 hours ago | 1 | January 29, 2021 | 199 | other | Go | |||
Build your cloud asset inventory and break down your cost at the resource level 💰 | ||||||||||
Chartmuseum | 3,302 | 3 | 7 days ago | 43 | June 14, 2023 | 100 | apache-2.0 | Go | ||
helm chart repository server | ||||||||||
Faasd | 2,664 | 9 days ago | 21 | April 12, 2021 | 33 | mit | Go | |||
A lightweight & portable faas engine | ||||||||||
Engine | 2,080 | 5 hours ago | 7 | gpl-3.0 | Rust | |||||
The Orchestration Engine To Deliver Self-Service Infrastructure ⚡️ | ||||||||||
Picsum Photos | 2,057 | 8 days ago | mit | Go | ||||||
Lorem Ipsum... but for photos. | ||||||||||
Typhoon | 1,850 | 4 days ago | 10 | mit | HCL | |||||
Minimal and free Kubernetes distribution with Terraform | ||||||||||
Routr | 1,202 | 17 | 3 days ago | 73 | September 16, 2023 | 6 | mit | TypeScript | ||
⚡ The future of programmable SIP servers. |
Learn how to deploy a production-ready Django application into a Kubernetes cluster.
Kubernetes is a tool to manage containers. This type of management is called orchestration because it does more than just manage the containers such as it will scale up and scale down resources as needed (among many other things).
Since Kubernetes is a massive tool, we're going to be covering a practical implementation using a Docker-based Django application.
Django is a way to build web applications rapidly using Python. There are many ways to get Django into production so the question is why use K8S at all? There's many reasons we'll cover throughout this series but here are a few:
Kubernetes can do a lot which makes it a great tool to learn but also a daunting one at that. To make it more approachable here's what we'll be doing:
We have partnered with DigitalOcean to bring you this series. Sign up for an account when you're ready to get started with this series.
Make sure you create web/.env
and fill in the following variables:
DEBUG=1
REGION=texas
DJANGO_SUPERUSER_USERNAME=admin
DJANGO_SUPERUSER_PASSWORD=mydjangopw
[email protected]
DJANGO_SECRET_KEY=fix_this_later
POSTGRES_READY=0
POSTGRES_DB=dockerdc
POSTGRES_PASSWORD=mysecretpassword
POSTGRES_USER=myuser
POSTGRES_HOST=localhost
POSTGRES_PORT=5434
REDIS_HOST=redis_db
REDIS_PORT=6388
If you change
POSTGRES_PORT
orREDIS_PORT
be sure to update those values indocker-compose.yaml
Once you have the above .env
file, navigate to your project root (right where docker-compose.yaml
is) and run:
docker compose up -d
This will create a postgresql
database that's running in the background for you. To bring this database down just run:
docker compose down
The data in the database will be persistent so you can run docker compose up -d
again with confidence.
Also in the root of your project:
python3.9 -m venv venv
source venv/bin/activate
pip install -r web/requirements.txt
This will ensure your Django project is ready to be used locally.