Skip to content

A FastAPI project with Docker, Kubernetes & Terraform.

License

Notifications You must be signed in to change notification settings

arman-bd/mini-fasty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini Fasty

This project is a template for a FastAPI project with Docker, Kubernetes and Terraform.

Requirements

Build Dcker Image

First you need to create a doker hub account and create a repository. Then you need to login to docker hub.

docker login

Then you need to build the docker image.

docker build -t <your_dockerhub_username>/fasty:latest .

After that you need to push the image to docker hub.

docker push <your_dockerhub_username>/fasty:latest

Deploy to Kubernetes

First you need to start minikube.

minikube start

Deploy to Kubernetes with Terraform

cd terraform
terraform init
terraform apply

In Action

Kubernetes Dashboard: Workloads

Kubernetes Dashboard: Services

NodePort

License

This project is licensed under the terms of the MIT license.

About

A FastAPI project with Docker, Kubernetes & Terraform.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published